diff options
author | Sekhar Nori <nsekhar@ti.com> | 2009-12-17 18:29:31 +0530 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2010-02-04 13:29:55 -0800 |
commit | efc1bb8a6fd56f6df5b797dff5156c935175c319 (patch) | |
tree | 47b79c7f2d585ae73650acbf9d11058fb00ecb52 /arch/arm/mach-davinci/include/mach/memory.h | |
parent | 7307d093e6f05d845fc5ce47893c391c819a5c2b (diff) | |
download | op-kernel-dev-efc1bb8a6fd56f6df5b797dff5156c935175c319.zip op-kernel-dev-efc1bb8a6fd56f6df5b797dff5156c935175c319.tar.gz |
davinci: add power management support
This patch adds core power management (suspend-to-RAM)
support for DaVinci SoCs.
The code depends on the the "deepsleep" feature to suspend
the SoC and saves power by gating the input clock.
The wakeup can be based on an external event as supported
by the SoC.
Assembly code (in sleep.S) is added to aid gating DDR2
clocks. Code doing this work should not be accessing DDR2.
The assembly code is relocated to SRAM by the code in pm.c
The support has been validated on DA850/OMAP-L138 only
though the code is (hopefully) generic enough that other
SoCs supporting deepsleep feature simply requires SoC
specific code to start using this driver.
Note that all the device drivers don't support suspend/resume
still and are being worked on.
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-davinci/include/mach/memory.h')
-rw-r--r-- | arch/arm/mach-davinci/include/mach/memory.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/include/mach/memory.h b/arch/arm/mach-davinci/include/mach/memory.h index 7aeaf46..a91edfb 100644 --- a/arch/arm/mach-davinci/include/mach/memory.h +++ b/arch/arm/mach-davinci/include/mach/memory.h @@ -33,6 +33,7 @@ #define DDR2_SDRCR_OFFSET 0xc #define DDR2_SRPD_BIT BIT(23) +#define DDR2_MCLKSTOPEN_BIT BIT(30) #define DDR2_LPMODEN_BIT BIT(31) /* |