aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Zhao <richard.zhao@linaro.org>2011-08-31 14:40:09 +0800
committerEric Miao <eric.miao@linaro.org>2011-10-14 09:56:49 +0800
commit4be5835e7e9c82f4853e96411942e6e4d377d589 (patch)
tree2fea897c481d0c47a279f4b73cf664571ab03b19
parent8e58a8620189dcf3f12a8a105cd913c5f55906ad (diff)
mx5: work around for suspend/resume
clear MXC_CORTEXA8_PLAT_LPC. If I don't clear it, resume can succeed, but I can not get back to console. Signed-off-by: Richard Zhao <richard.zhao@linaro.org>
-rw-r--r--arch/arm/mach-mx5/pm-imx5.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-mx5/pm-imx5.c b/arch/arm/mach-mx5/pm-imx5.c
index 4f9592b8070..050ce235300 100644
--- a/arch/arm/mach-mx5/pm-imx5.c
+++ b/arch/arm/mach-mx5/pm-imx5.c
@@ -44,6 +44,7 @@ static int mx5_suspend_enter(suspend_state_t state)
__raw_writel(0, MXC_SRPG_EMPGC1_SRPGCR);
}
cpu_do_idle();
+ __raw_writel(0, MXC_CORTEXA8_PLAT_LPC);
clk_disable(gpc_dvfs_clk);
return 0;