diff options
author | Philippe Langlais <philippe.langlais@linaro.org> | 2011-05-05 15:06:57 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@stericsson.com> | 2011-09-19 15:15:01 +0200 |
commit | 0bacd4f4c404cfdbba8f4824e61ebb1bbf33c682 (patch) | |
tree | 562c1b7239a1554dfb5a2ff35e0bbc5df9385da2 | |
parent | d99eef64dd6891a81e9d312a1359413bb90466fc (diff) |
mach-ux500: Deep sleep with ESRAM0 off in suspend
This patch makes sure that ESRAM0 is turned off when
going to deep sleep in suspend. This patch needs updated ISSW.
ST-Ericsson Linux next: -
ST-Ericsson ID: 326790
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Ic88a7dc04b64e8861901926d6d2b58187805167b
Signed-off-by: Rickard Andersson <rickard.andersson@stericsson.com>
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/18935
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Conflicts:
arch/arm/mach-ux500/include/mach/prcmu-fw-api.h
arch/arm/mach-ux500/prcmu-db8500.c
-rw-r--r-- | arch/arm/mach-ux500/pm/suspend.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/pm/suspend.c b/arch/arm/mach-ux500/pm/suspend.c index ae493ab4927..99ad773a594 100644 --- a/arch/arm/mach-ux500/pm/suspend.c +++ b/arch/arm/mach-ux500/pm/suspend.c @@ -168,6 +168,7 @@ static int ux500_suspend_valid(suspend_state_t state) static int ux500_suspend_prepare_late(void) { + (void)prcmu_config_esram0_deep_sleep(ESRAM0_DEEP_SLEEP_STATE_OFF); ab8500_regulator_debug_force(); return 0; @@ -176,6 +177,7 @@ static int ux500_suspend_prepare_late(void) static void ux500_suspend_wake(void) { ab8500_regulator_debug_restore(); + (void)prcmu_config_esram0_deep_sleep(ESRAM0_DEEP_SLEEP_STATE_RET); } static struct platform_suspend_ops ux500_suspend_ops = { |