davinci: add power management support
authorSekhar Nori <nsekhar@ti.com>
Thu, 17 Dec 2009 12:59:31 +0000 (18:29 +0530)
committerKevin Hilman <khilman@deeprootsystems.com>
Thu, 4 Feb 2010 21:29:55 +0000 (13:29 -0800)
commitefc1bb8a6fd56f6df5b797dff5156c935175c319
tree47b79c7f2d585ae73650acbf9d11058fb00ecb52
parent7307d093e6f05d845fc5ce47893c391c819a5c2b
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>
arch/arm/mach-davinci/Makefile
arch/arm/mach-davinci/include/mach/memory.h
arch/arm/mach-davinci/include/mach/pm.h [new file with mode: 0644]
arch/arm/mach-davinci/pm.c [new file with mode: 0644]
arch/arm/mach-davinci/sleep.S [new file with mode: 0644]