summaryrefslogtreecommitdiff
path: root/arch/arm/mach-ux500/pm/suspend.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-ux500/pm/suspend.c')
-rw-r--r--arch/arm/mach-ux500/pm/suspend.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-ux500/pm/suspend.c b/arch/arm/mach-ux500/pm/suspend.c
index 8da91c3fbf0..96ee874d420 100644
--- a/arch/arm/mach-ux500/pm/suspend.c
+++ b/arch/arm/mach-ux500/pm/suspend.c
@@ -16,12 +16,16 @@
#include <mach/context.h>
#include <mach/pm.h>
+#include "suspend_dbg.h"
+
static int suspend(bool do_deepsleep)
{
int ret = 0;
nmk_gpio_clocks_enable();
+ ux500_suspend_dbg_add_wake_on_uart();
+
nmk_gpio_wakeups_suspend();
/* configure the prcm for a sleep wakeup */
@@ -88,6 +92,8 @@ exit:
nmk_gpio_wakeups_resume();
+ ux500_suspend_dbg_remove_wake_on_uart();
+
nmk_gpio_clocks_disable();
return ret;