summaryrefslogtreecommitdiff
path: root/arch/arm/mach-omap2/pm-debug.c
diff options
context:
space:
mode:
authorJim Wylder <jwylder@motorola.com>2014-04-15 12:08:38 -0500
committerDoug Zobel <dzobel1@motorola.com>2014-04-29 13:26:31 -0500
commit302f70450dd87df2d7daef1a37f38ff413c6593e (patch)
tree7f7ca9ddb60a1ab5457a1309ead8c26387da8cd9 /arch/arm/mach-omap2/pm-debug.c
parent45f47718c757cab219371cd24610a0a0cbc1797a (diff)
downloadolio-linux-3.10-302f70450dd87df2d7daef1a37f38ff413c6593e.tar.xz
olio-linux-3.10-302f70450dd87df2d7daef1a37f38ff413c6593e.zip
IKXCLOCK-938 arm: omap2: pm debug register dump
Reworking of earlier data reporting module. Register values can be read from <debugfs>/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 <jwylder@motorola.com>
Diffstat (limited to 'arch/arm/mach-omap2/pm-debug.c')
-rw-r--r--arch/arm/mach-omap2/pm-debug.c4
1 files changed, 4 insertions, 0 deletions
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;