Manuel Lauss
61f9c58da5
MIPS: Alchemy: new userspace suspend interface for development boards.
...
Replace the current sysctl-based suspend interface with a new sysfs-
based one which also uses the Linux-2.6 suspend model.
To configure wakeup sources, a subtree for the demoboards is created
under /sys/power/db1x:
sys/
`-- power
`-- db1x
|-- gpio0
|-- gpio1
|-- gpio2
|-- gpio3
|-- gpio4
|-- gpio5
|-- gpio6
|-- gpio7
|-- timer
|-- timer_timeout
|-- wakemsk
`-- wakesrc
The nodes 'gpio[0-7]' and 'timer' configure the GPIO0..7 and M2
bits of the SYS_WAKEMSK (wakeup source enable) register. Writing '1'
enables a wakesource, 0 disables it.
The 'timer_timeout' node holds the timeout in seconds after which the
TOYMATCH2 event should wake the system.
The 'wakesrc' node holds the SYS_WAKESRC register after wakeup (in hex),
the 'wakemsk' node can be used to get/set the wakeup mask directly.
For example, to have the timer wake the system after 10 seconds of sleep,
the following must be done in userspace:
echo 10 > /sys/power/db1x/timer_timeout
echo 1 > /sys/power/db1x/timer
echo mem > /sys/power/sleep
This patch also removes the homebrew CPU frequency switching code. I don't
understand how it could have ever worked reliably; it does not communicate
the clock changes to peripheral devices other than uarts.
Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
create mode 100644 arch/mips/alchemy/devboards/pm.c
2009-01-11 09:57:27 +00:00
..
2008-10-11 16:18:52 +01:00
2008-10-27 16:18:30 +00:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-01-11 09:57:27 +00:00
2008-10-15 12:46:50 +01:00
2009-01-11 09:57:21 +00:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-01-11 09:57:24 +00:00
2008-10-15 12:46:51 +01:00
2009-01-11 09:57:24 +00:00
2008-10-15 12:46:51 +01:00
2009-01-11 09:57:24 +00:00
2009-01-11 09:57:24 +00:00
2008-10-11 16:18:52 +01:00
2009-01-11 09:57:24 +00:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-27 16:18:29 +00:00
2008-10-11 16:18:52 +01:00
2008-11-20 19:42:33 +00:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-27 16:18:27 +00:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-01-11 09:57:21 +00:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-27 16:18:27 +00:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-12-12 18:12:23 +00:00
2009-01-06 15:59:10 -08:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-30 14:44:33 +00:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-30 14:44:34 +00:00
2008-11-24 16:35:07 +00:00
2008-10-11 16:18:52 +01:00
2009-01-06 18:10:27 -08:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-15 12:46:49 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-01-11 09:57:22 +00:00
2008-10-11 16:18:56 +01:00
2009-01-11 09:57:22 +00:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-12-22 08:54:47 +00:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-30 14:44:34 +00:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-01-11 09:57:21 +00:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-01-11 09:57:22 +00:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-12-13 21:20:26 +10:30
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-01-06 18:10:27 -08:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-20 08:52:41 -07:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-01-11 09:57:21 +00:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-01-11 09:57:22 +00:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-12-09 21:55:43 +00:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-01-11 09:57:22 +00:00
2009-01-11 09:57:23 +00:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-01-11 09:57:24 +00:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:54 +01:00
2008-10-15 12:46:50 +01:00
2009-01-11 09:57:24 +00:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2009-01-06 18:10:27 -08:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:57 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:56 +01:00
2009-01-11 09:57:26 +00:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:54 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:56 +01:00
2008-10-11 16:18:52 +01:00
2008-10-11 16:18:52 +01:00