summaryrefslogtreecommitdiff
path: root/arch/arm/mach-omap2/pm-debug-regs.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/pm-debug-regs.h')
-rw-r--r--arch/arm/mach-omap2/pm-debug-regs.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/pm-debug-regs.h b/arch/arm/mach-omap2/pm-debug-regs.h
new file mode 100644
index 00000000000..e403977affa
--- /dev/null
+++ b/arch/arm/mach-omap2/pm-debug-regs.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright (C) 2013 Motorola Mobility LLC
+ *
+ * This software is licensed under the terms of the GNU General Public
+ * License version 2, as published by the Free Software Foundation, and
+ * may be copied, distributed, and modified under those terms.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef __PM_DEBUG_REGS_H__
+#define __PM_DEBUG_REGS_H__
+
+#include <linux/dcache.h>
+
+#ifdef CONFIG_PM_DEBUG
+extern int pm_dbg_regs_init(struct dentry *d);
+extern void pm_dbg_regs_save(int reg_set);
+extern void pm_dbg_regs_dump(int reg_set);
+extern void pm_dbg_show_wakeup_source(void);
+#else
+static inline int pm_dbg_regs_init(struct dentry *d) { return 0; }
+static inline void pm_dbg_regs_save(int reg_set) {};
+static inline void pm_dbg_regs_dump(int reg_set) {};
+static inline void pm_dbg_show_wakeup_source(void) {};
+#endif
+
+#endif