From: Rodolfo Giometti <giometti@linux.it>
To: linux-mips@linux-mips.org
Subject: [PATCH] New power management and sysfs support for au1x00
Date: Tue, 23 May 2006 18:40:40 +0200 [thread overview]
Message-ID: <20060523164040.GC28124@enneenne.com> (raw)
Hello,
here:
http://ftp.enneenne.com/pub/misc/au1100-patches/linux/patch-pm-sysfs
my new patch for power management and sysfs support for au1x00
CPUs. This patch is against linux 2.6.17-rc4 and has been tested with
an au1100 based board.
To suspend your system for 3 seconds use:
# echo mem > /sys/power/state
the default behaviour can be changed per board basis by defining a
special function as follow:
#ifdef CONFIG_PM
int my_board_before_sleep(void)
{
/* do whatever you want before sleeping */
/* then return the wake up reason */
return 1<<6; /* wait for GPIO 6 changes */
}
void my_board_after_sleep(int reason)
{
/* do whatever you want after sleeping */
}
#endif
void __init board_setup(void)
{
...
#ifdef CONFIG_PM
/* Setup sleeping functions */
board_before_sleep = my_board_before_sleep;
board_after_sleep = my_board_after_sleep;
#endif
...
Ciao,
Rodolfo
--
GNU/Linux Solutions e-mail: giometti@enneenne.com
Linux Device Driver giometti@gnudd.com
Embedded Systems giometti@linux.it
UNIX programming phone: +39 349 2432127
reply other threads:[~2006-05-23 16:40 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=20060523164040.GC28124@enneenne.com \
--to=giometti@linux.it \
--cc=linux-mips@linux-mips.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