diff options
author | Kevin Hilman <khilman@deeprootsystems.com> | 2009-10-06 17:30:23 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2009-11-11 17:42:28 -0500 |
commit | d7814e4df6e9c54680a30de3f439c66a2a55ce94 (patch) | |
tree | d516729e2ec5203adf9325ca77a4a00672adfd85 /arch/arm/mach-omap2/pm.h | |
parent | c40552bc82166adb21a1a7fcb1dc4e76352b1b79 (diff) |
PM debug: allow configurable wakeup from suspend on OMAP GPtimer
Using debugfs, export a configurable wakeup timer to be used to
wakeup system from suspend.
If a non-zero value is written to
/debug/pm_debug/wakeup_timer_seconds, A timer wakeup event will wake
the system and resume after the configured number of seconds.
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-omap2/pm.h')
-rw-r--r-- | arch/arm/mach-omap2/pm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/pm.h b/arch/arm/mach-omap2/pm.h index 9582793ce82d..7eb769f4ef30 100644 --- a/arch/arm/mach-omap2/pm.h +++ b/arch/arm/mach-omap2/pm.h | |||
@@ -22,6 +22,9 @@ extern void omap3_pm_off_mode_enable(int); | |||
22 | extern int omap3_pm_get_suspend_state(struct powerdomain *pwrdm); | 22 | extern int omap3_pm_get_suspend_state(struct powerdomain *pwrdm); |
23 | extern int omap3_pm_set_suspend_state(struct powerdomain *pwrdm, int state); | 23 | extern int omap3_pm_set_suspend_state(struct powerdomain *pwrdm, int state); |
24 | 24 | ||
25 | extern u32 wakeup_timer_seconds; | ||
26 | extern struct omap_dm_timer *gptimer_wakeup; | ||
27 | |||
25 | #ifdef CONFIG_PM_DEBUG | 28 | #ifdef CONFIG_PM_DEBUG |
26 | extern void omap2_pm_dump(int mode, int resume, unsigned int us); | 29 | extern void omap2_pm_dump(int mode, int resume, unsigned int us); |
27 | extern int omap2_pm_debug; | 30 | extern int omap2_pm_debug; |