diff options
author | Andrew Victor <linux@maxim.org.za> | 2008-09-21 16:35:18 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2008-09-21 18:01:01 -0400 |
commit | eaad2db03cbbf734aa95f99eb93fb6309637dbca (patch) | |
tree | 81812e0f56311489aaee20bba0359713ab9b0acd /arch/arm/mach-at91/Kconfig | |
parent | 77789ad8b1d58eb9ba5e14860f439d024c5e4120 (diff) |
[ARM] 5264/2: [AT91] Suspend-to-RAM disables main oscillator
This patch adds support for a low(er)-power suspend-to-RAM.
In addition to the SDRAM being put into self-refresh mode, the Master
Clock is set to the Slow-clock rate (32Khz) and PLLA & PLLB are
disabled.
Certain peripherals are therefore also disabled, and thus cannot be
used as wakeup sources.
This patch has been included in the AT91 patches in various forms
since 2.6.19 and a number of people have worked or commented on it,
most notably:
Savin Zlobec (for the original AT91RM9200 support)
Anti Sullin (for the SAM9260 version)
David Brownell, etc.
Signed-off-by: Andrew Victor <linux@maxim.org.za>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-at91/Kconfig')
-rw-r--r-- | arch/arm/mach-at91/Kconfig | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/Kconfig b/arch/arm/mach-at91/Kconfig index 68537e37387f..5aafb2e2ca7a 100644 --- a/arch/arm/mach-at91/Kconfig +++ b/arch/arm/mach-at91/Kconfig | |||
@@ -323,6 +323,19 @@ config AT91_PROGRAMMABLE_CLOCKS | |||
323 | Select this if you need to program one or more of the PCK0..PCK3 | 323 | Select this if you need to program one or more of the PCK0..PCK3 |
324 | programmable clock outputs. | 324 | programmable clock outputs. |
325 | 325 | ||
326 | config AT91_SLOW_CLOCK | ||
327 | bool "Suspend-to-RAM disables main oscillator" | ||
328 | depends on SUSPEND | ||
329 | help | ||
330 | Select this if you want Suspend-to-RAM to save the most power | ||
331 | possible (without powering off the CPU) by disabling the PLLs | ||
332 | and main oscillator so that only the 32 KiHz clock is available. | ||
333 | |||
334 | When only that slow-clock is available, some peripherals lose | ||
335 | functionality. Many can't issue wakeup events unless faster | ||
336 | clocks are available. Some lose their operating state and | ||
337 | need to be completely re-initialized. | ||
338 | |||
326 | config AT91_TIMER_HZ | 339 | config AT91_TIMER_HZ |
327 | int "Kernel HZ (jiffies per second)" | 340 | int "Kernel HZ (jiffies per second)" |
328 | range 32 1024 | 341 | range 32 1024 |