aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInderpal Singh <inderpal.singh@linaro.org>2011-11-22 15:19:15 +0530
committerTushar Behera <tushar.behera@linaro.org>2012-06-20 11:15:37 +0530
commit377ca1a7f0a733e913844743b0ac6b78e127a743 (patch)
treeb069ea7a5c63cfa54904bd1ab1ed62a9ce33ebff
parent972a3d1a0773e72f51cd6ba8afc8fe51be1fc915 (diff)
Clear INFORM1 register used by u-boot to check the reset reason. If not cleared, u-boot will detect reboot as wake from sleep and jumps to an invalid address and hangs. Signed-off-by: Inderpal SIngh <inderpal.singh@linaro.org>
-rw-r--r--arch/arm/mach-exynos/pm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-exynos/pm.c b/arch/arm/mach-exynos/pm.c
index c06c992943a..239045f198e 100644
--- a/arch/arm/mach-exynos/pm.c
+++ b/arch/arm/mach-exynos/pm.c
@@ -312,6 +312,9 @@ static void exynos_pm_resume(void)
}
early_wakeup:
+ /* Clear INFORM Register */
+ __raw_writel(0, S5P_INFORM1);
+
return;
}