summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/sleep-t20.S
diff options
context:
space:
mode:
authorMayuresh Kulkarni <mkulkarni@nvidia.com>2011-09-15 14:56:10 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 00:57:42 -0700
commitb6de348b94e96a59ad74301e7effede2f8a9d97c (patch)
tree6309d40350009f22c9b86ea847993d356ec5cc45 /arch/arm/mach-tegra/sleep-t20.S
parentda897e21c4ebe8d62752b93dd6cee520ad3d3fea (diff)
arm: tegra: pm: issue a pl310 cache sync for tegra2
this needs to be done when the lp2 is aborted before the stipulated programmed time to wake-up for bug 867094 Change-Id: I02102ed8afa69d782de5950118352e80edc79df4 Signed-off-by: Mayuresh Kulkarni <mkulkarni@nvidia.com> Reviewed-on: http://git-master/r/52581 Reviewed-by: Jin Qian <jqian@nvidia.com> Reviewed-by: Krishna Reddy <vdumpa@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Rebase-Id: R5938771982b7cceb9ea23ee73852ca8b9b3490ae
Diffstat (limited to 'arch/arm/mach-tegra/sleep-t20.S')
-rw-r--r--arch/arm/mach-tegra/sleep-t20.S11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/sleep-t20.S b/arch/arm/mach-tegra/sleep-t20.S
index e718d3d59646..b129158afeaf 100644
--- a/arch/arm/mach-tegra/sleep-t20.S
+++ b/arch/arm/mach-tegra/sleep-t20.S
@@ -60,6 +60,8 @@
#define CLK_RESET_RST_CPU_CMPLX_SET 0x340
+#define TEGRA_PL310_VIRT (TEGRA_ARM_PL310_BASE - IO_PPSB_PHYS + IO_PPSB_VIRT)
+
#if defined(CONFIG_HOTPLUG_CPU) || defined(CONFIG_PM_SLEEP)
/*
* tegra20_hotplug_shutdown(void)
@@ -247,6 +249,15 @@ ENTRY(tegra2_sleep_wfi)
#endif
#endif
+#ifdef CONFIG_CACHE_L2X0
+ /* Issue a PL310 cache sync operation */
+ dsb
+ mov32 r2, TEGRA_PL310_VIRT + 0x730 @ cache sync
+ add r2, r2, r1
+ mov r1, #0
+ str r1, [r2]
+#endif
+
pop_ctx_regs r0, r1 @ restore context registers
mov pc, lr
ENDPROC(tegra2_sleep_wfi)