OMAP3: PM: fix save secure RAM to restore MPU power state
commit617fcc98020bbc9492cacdef40423b758c02a9df
authorKevin Hilman <khilman@ti.com>
Wed, 26 Jan 2011 00:40:01 +0000 (25 16:40 -0800)
committerKevin Hilman <khilman@ti.com>
Wed, 26 Jan 2011 20:47:56 +0000 (26 12:47 -0800)
tree303cc3a3e37d9aa6b510bbffee3a92347ebf19d0
parent28693ec01d0229b9e2a2ebe38ef8faa5e151b440
OMAP3: PM: fix save secure RAM to restore MPU power state

Currently, on HS/EMU devices, MPU power state forced to on during PM
init by the save secure RAM code.  Rather than forcing the state of
MPU powerdomain to on, simply read the current value and restore it
after the ROM code has run.

This only affects the !CPUidle case since when CPUidle is enabled, the
MPU power state is dynamically changed by CPUidle.  In the !CPUidle
case, MPU power state is initialized once at init and never touched.

Acked-by: Tero Kristo <tero.kristo@nokia.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
arch/arm/mach-omap2/pm34xx.c