summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Aaberg <jonas.aberg@stericsson.com>2011-09-20 13:34:23 +0200
committerJonas ABERG <jonas.aberg@stericsson.com>2011-09-29 08:53:57 +0200
commite575f436f06a23ae7d36e46e01bdf606091ca60d (patch)
treec0309ce4f7534cd08570def602a2296683824bd4
parent1f7d7a45e414156bc6a6c7a576d8c2c0609ed060 (diff)
ARM: ux500: suspend: Add calls for regulator debug
Change-Id: I9f648243fed644095a0fd9551ecbc72b56ee02c8 Signed-off-by: Jonas Aaberg <jonas.aberg@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32083
-rw-r--r--arch/arm/mach-ux500/pm/suspend.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/pm/suspend.c b/arch/arm/mach-ux500/pm/suspend.c
index 7baf1f96d36..06ddd9ea20d 100644
--- a/arch/arm/mach-ux500/pm/suspend.c
+++ b/arch/arm/mach-ux500/pm/suspend.c
@@ -12,6 +12,7 @@
#include <linux/suspend.h>
#include <linux/mfd/dbx500-prcmu.h>
#include <linux/gpio/nomadik.h>
+#include <linux/regulator/ab8500-debug.h>
#include <mach/context.h>
#include <mach/pm.h>
@@ -195,11 +196,13 @@ static int ux500_suspend_prepare_late(void)
{
/* ESRAM to retention instead of OFF until ROM is fixed */
(void) prcmu_config_esram0_deep_sleep(ESRAM0_DEEP_SLEEP_STATE_RET);
+ ab8500_regulator_debug_force();
return 0;
}
static void ux500_suspend_wake(void)
{
+ ab8500_regulator_debug_restore();
(void) prcmu_config_esram0_deep_sleep(ESRAM0_DEEP_SLEEP_STATE_RET);
}