aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorNishanth Menon <nm@ti.com>2011-10-14 09:41:42 -0500
committerColin Cross <ccross@android.com>2011-10-17 18:37:18 -0700
commit9d520bda4bb17424ded80d5f032346341da90f8f (patch)
tree46a2ed3f502f39786a7a0f929c7bad1347bb86ed /arch/arm
parentd4f9513b5f1ea1cbb0df4517f1ee8d2a4f8cd1a3 (diff)
downloadkernel_samsung_tuna-9d520bda4bb17424ded80d5f032346341da90f8f.zip
kernel_samsung_tuna-9d520bda4bb17424ded80d5f032346341da90f8f.tar.gz
kernel_samsung_tuna-9d520bda4bb17424ded80d5f032346341da90f8f.tar.bz2
OMAP4: PM: restore iva/l3inst for GP devices as well
On OMAP4430 GP devices, we were not capable of hitting OFF mode due to various reasons, however for 4460, we are able to do the same on GP devices, so we should restore the IVA and l3instr regs on GP as well, so split it out. Change-Id: Ib206e10e74e745128f11389bd6c10684ab322308 Signed-off-by: Nishanth Menon <nm@ti.com> Signed-off-by: Bryan Buckley <bryan.buckley@ti.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-omap2/omap4-mpuss-lowpower.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/omap4-mpuss-lowpower.c b/arch/arm/mach-omap2/omap4-mpuss-lowpower.c
index 4096a9e..4725b46 100644
--- a/arch/arm/mach-omap2/omap4-mpuss-lowpower.c
+++ b/arch/arm/mach-omap2/omap4-mpuss-lowpower.c
@@ -624,10 +624,11 @@ cpu_prepare:
}
if ((omap4_device_prev_state_off()) &&
- (omap_type() != OMAP2_DEVICE_TYPE_GP)) {
+ (omap_type() != OMAP2_DEVICE_TYPE_GP))
omap4_secure_dispatcher(PPA_SERVICE_0,
FLAG_START_CRITICAL,
0, 0, 0, 0, 0);
+ if (omap4_device_prev_state_off()) {
restore_ivahd_tesla_regs();
restore_l3instr_regs();
}