From: haywshau@amazon.com (Hayward, Shaun)
To: kernelnewbies@lists.kernelnewbies.org
Subject: v2.6.39 GPIO power off
Date: Sat, 5 Aug 2017 03:19:59 +0000 [thread overview]
Message-ID: <1501903199.9985.19.camel@amazon.com> (raw)
Hi everyone,
I'm having a bit of a odd question regarding an fix for an old,
embedded MPC8308 PPC Linux system (Linux 2.6.39, and no scope to
upgrade to a newer kernel). The board needs to change the state of a
GPIO output pin on shutdown to turn off power. Up until now, the
shutdown and poweroff commands have never worked and users have just
hard powered off. This was "good enough" for years, but not any more!
In newer versions, this looks like it would be simply a case of adding
a gpio-poweroff node to the device tree, but in 2.6 there does not seem
to be anything as straight forward on this older kernel.
It looks like?arch/powerpc/platforms/83xx/mpc830x_rdb.c?defines the
specific settings for this board, but I'm having trouble finding
anything that looks like it would the "right place to start".
Are any of you able to give me some pointers as to where to start
digging for this one?
Thank you for your time and help!
Shaun
reply other threads:[~2017-08-05 3:19 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1501903199.9985.19.camel@amazon.com \
--to=haywshau@amazon.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).