summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com>2011-09-07 12:28:30 +0200
committerRobert Marklund <robert.marklund@stericsson.com>2011-10-05 13:01:17 +0200
commit1d4e311d63be8308451b89d7e7174a2c4722de2f (patch)
tree36b7fd550948d4679c2d312270f69d4cfe7d10b8 /arch
parente86aea9c20c792507694711e0927eac9200218ea (diff)
ux500: regulator: add debugging support for dbx500 regulators
ST-Ericsson ID: 360515 ST-Ericsson Linux next: NA ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I71dbb5bc63e08998486a7c3a699a4d90da59df4e Signed-off-by: Mian Yousaf Kaukab <mian.yousaf.kaukab@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/32137 Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com> Tested-by: Jonas ABERG <jonas.aberg@stericsson.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-ux500/pm/suspend.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/pm/suspend.c b/arch/arm/mach-ux500/pm/suspend.c
index 06ddd9ea20d..d64faa99a3a 100644
--- a/arch/arm/mach-ux500/pm/suspend.c
+++ b/arch/arm/mach-ux500/pm/suspend.c
@@ -13,6 +13,8 @@
#include <linux/mfd/dbx500-prcmu.h>
#include <linux/gpio/nomadik.h>
#include <linux/regulator/ab8500-debug.h>
+#include <linux/regulator/dbx500-prcmu.h>
+#include <linux/mfd/dbx500-prcmu.h>
#include <mach/context.h>
#include <mach/pm.h>
@@ -197,11 +199,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();
+ ux500_regulator_suspend_debug();
return 0;
}
static void ux500_suspend_wake(void)
{
+ ux500_regulator_resume_debug();
ab8500_regulator_debug_restore();
(void) prcmu_config_esram0_deep_sleep(ESRAM0_DEEP_SLEEP_STATE_RET);
}