From 270e531ea855ed64fe54d7ce59418e29d0f12537 Mon Sep 17 00:00:00 2001 From: Kevin Hilman Date: Thu, 10 Sep 2009 12:07:24 -0700 Subject: [PATCH] OMAP3: PM debug: snapshot PM regs on resume A snapshot of the PRCM registers is already taken just before suspend and available via # cat /debug/pm_debug/registers/1 This patch takes an additional snapshot just after resume and is availabl via # cat /debug/pm_debug/registers/2 This can be useful for low-level debugging of wakeup events. Signed-off-by: Kevin Hilman --- arch/arm/mach-omap2/pm34xx.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c index 4f9d6d37662..356819f23bf 100644 --- a/arch/arm/mach-omap2/pm34xx.c +++ b/arch/arm/mach-omap2/pm34xx.c @@ -448,6 +448,9 @@ void omap_sram_idle(void) _omap_sram_idle(omap3_arm_context, save_state); cpu_init(); + if (regset_save_on_suspend) + pm_dbg_regset_save(2); + /* Restore normal SDRC POWER settings */ if (omap_rev() >= OMAP3430_REV_ES3_0 && omap_type() != OMAP2_DEVICE_TYPE_GP && @@ -1218,6 +1221,7 @@ static void __init configure_vc(void) OMAP3_PRM_VOLTSETUP2_OFFSET); pm_dbg_regset_init(1); + pm_dbg_regset_init(2); } static int __init omap3_pm_early_init(void) -- 2.11.4.GIT