linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: J.Weitzel@phytec.de (Jan Weitzel)
To: linux-arm-kernel@lists.infradead.org
Subject: The cleanest way to power off a board inside the kernel.
Date: Mon, 18 Apr 2011 11:50:32 +0200	[thread overview]
Message-ID: <1303120232.23368.3.camel@lws-weitzel> (raw)
In-Reply-To: <BANLkTinwsEmyCRVbRBm+grhth9Dx8N+Bfg@mail.gmail.com>

Am Montag, den 18.04.2011, 11:23 +0200 schrieb javier Martin:
> There are some boards out there, including Beagleboard xM, which are
> provided with a PMIC that is able to enable or disable power supply
> for the system. The interfaces used for that purpose usually include
> gpios or I2C.
> What is the cleanest way, provided there are some, to tell those
> circuits at the end of the power down process to cut off the power
> supply of the system?
> 
> At first glance I thought there could be a board specific hook for
> that purpose but I couldn't find any, just an endless loop "while
> (1);" instead.
Look for pm_power_off. It's a function pointer to optional machine
specific functions
.
Regards, Jan

      reply	other threads:[~2011-04-18  9:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-18  9:23 The cleanest way to power off a board inside the kernel javier Martin
2011-04-18  9:50 ` Jan Weitzel [this message]

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=1303120232.23368.3.camel@lws-weitzel \
    --to=j.weitzel@phytec.de \
    --cc=linux-arm-kernel@lists.infradead.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).