diff options
author | Mattias Wallin <mattias.wallin@stericsson.com> | 2011-05-08 20:08:56 +0200 |
---|---|---|
committer | Henrik Aberg <henrik.aberg@stericsson.com> | 2011-05-18 09:40:15 +0200 |
commit | 33b384989258f6bcd41da2e22431fe105b9d51dc (patch) | |
tree | 470feadc38e02d2720160bd28e9d2668121c8060 | |
parent | 3fa1f03baa6f07eba4eae3517442d07385368e79 (diff) |
mach-ux500: suspend workaround for security
This patch set the esram0 in retention instead of off during
deep sleep. This is a temporary workaraound and should be reverted
when security have solved the problem. It will cost approximately
40uA in deep sleep.
Signed-off-by: Mattias Wallin <mattias.wallin@stericsson.com>
ST-Ericsson ID: 336122
ST-Ericsson Linux next: na
ST-Ericsson FOSS-OUT ID: Trivial
Change-Id: Ie658c0e6e0f17931cae98eff9ac803338f1c3315
Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/22605
Reviewed-by: QATOOLS
Reviewed-by: Henrik CARLING <henrik.carling@stericsson.com>
-rw-r--r-- | arch/arm/mach-ux500/pm/suspend.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/arm/mach-ux500/pm/suspend.c b/arch/arm/mach-ux500/pm/suspend.c index 6b5659e318e..4ca62da3842 100644 --- a/arch/arm/mach-ux500/pm/suspend.c +++ b/arch/arm/mach-ux500/pm/suspend.c @@ -189,7 +189,13 @@ 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); + /* + * Below should be set to state OFF. Current workaround set state to + * RET since there is a problem with security saving data in esram + * which does not work during deep sleep. + * Once security is fixed below should be state OFF again to save 40uA. + */ + (void)prcmu_config_esram0_deep_sleep(ESRAM0_DEEP_SLEEP_STATE_RET); ab8500_regulator_debug_force(); return 0; |