From 302f70450dd87df2d7daef1a37f38ff413c6593e Mon Sep 17 00:00:00 2001 From: Jim Wylder Date: Tue, 15 Apr 2014 12:08:38 -0500 Subject: IKXCLOCK-938 arm: omap2: pm debug register dump Reworking of earlier data reporting module. Register values can be read from /pm_debug/registers/current,1,2,3,4 Currently 1 is recorded before the last suspend and 2 is recorded after the last suspend. Change-Id: I061ec369a59c647c662879f30f4830f8d47e8996 Signed-off-by: Jim Wylder --- arch/arm/mach-omap2/pm-debug.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'arch/arm/mach-omap2/pm-debug.c') diff --git a/arch/arm/mach-omap2/pm-debug.c b/arch/arm/mach-omap2/pm-debug.c index 0b339861d75..cc38db9edf0 100644 --- a/arch/arm/mach-omap2/pm-debug.c +++ b/arch/arm/mach-omap2/pm-debug.c @@ -36,6 +36,7 @@ #include "cm2xxx_3xxx.h" #include "prm2xxx_3xxx.h" #include "pm.h" +#include "pm-debug-regs.h" u32 enable_off_mode; @@ -273,6 +274,9 @@ static int __init pm_dbg_init(void) (void) debugfs_create_file("enable_off_mode", S_IRUGO | S_IWUSR, d, &enable_off_mode, &pm_dbg_option_fops); + + pm_dbg_regs_init(d); + pm_dbg_init_done = 1; return 0; -- cgit v1.2.3-70-g09d2