aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Zhao <richard.zhao@linaro.org>2011-08-30 15:00:27 +0800
committerEric Miao <eric.miao@linaro.org>2011-10-14 09:56:49 +0800
commit8e58a8620189dcf3f12a8a105cd913c5f55906ad (patch)
tree266a166594d3d13651915bd355beae8e5a4293ce
parentc5e692f266d4ed1332f05d2f1bb6ea1e4541d781 (diff)
mx5: add suspend/resume support
It still can not resume from wfi. Signed-off-by: Richard Zhao <richard.zhao@linaro.org>
-rw-r--r--arch/arm/mach-mx5/pm-imx5.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mach-mx5/pm-imx5.c b/arch/arm/mach-mx5/pm-imx5.c
index e4529af0da7..4f9592b8070 100644
--- a/arch/arm/mach-mx5/pm-imx5.c
+++ b/arch/arm/mach-mx5/pm-imx5.c
@@ -33,6 +33,8 @@ static int mx5_suspend_enter(suspend_state_t state)
return -EINVAL;
}
+ if (tzic_enable_wake(0) != 0)
+ return -EAGAIN;
if (state == PM_SUSPEND_MEM) {
local_flush_tlb_all();
flush_cache_all();
@@ -63,8 +65,9 @@ static int __init mx5_pm_init(void)
gpc_dvfs_clk = clk_get(NULL, "gpc_dvfs");
if (!IS_ERR(gpc_dvfs_clk)) {
- if (cpu_is_mx51())
+ if (cpu_is_mx51() || cpu_is_mx53()) {
suspend_set_ops(&mx5_suspend_ops);
+ }
} else
return -EPERM;