diff options
author | Kevin Hilman <khilman@deeprootsystems.com> | 2009-10-06 17:25:09 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2009-11-11 17:42:27 -0500 |
commit | c40552bc82166adb21a1a7fcb1dc4e76352b1b79 (patch) | |
tree | 3625838f286478e88ccc3a3be09b1c330149106c /arch/arm/mach-omap2/pm.h | |
parent | 89139dce8a0060d97a46cebde570a8f55c314712 (diff) |
OMAP3: PM debug: allow runtime toggle of PM features
Allow enable/disable of low-power states during idle. To
enable low-power idle:
echo 1 > /debug/pm_debug/sleep_while_idle
to disable:
echo 0 > /debug/pm_debug/sleep_while_idle
Also allow enable/disable of OFF-mode. To enable:
echo 1 > /debug/pm_debug/enable_off_mode
to disable:
echo 0 > /debug/pm_debug/enable_off_mode
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 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/pm.h b/arch/arm/mach-omap2/pm.h index 45cafac716d1..9582793ce82d 100644 --- a/arch/arm/mach-omap2/pm.h +++ b/arch/arm/mach-omap2/pm.h | |||
@@ -13,7 +13,11 @@ | |||
13 | 13 | ||
14 | #include <plat/powerdomain.h> | 14 | #include <plat/powerdomain.h> |
15 | 15 | ||
16 | extern u32 enable_off_mode; | ||
17 | extern u32 sleep_while_idle; | ||
18 | |||
16 | extern void *omap3_secure_ram_storage; | 19 | extern void *omap3_secure_ram_storage; |
20 | extern void omap3_pm_off_mode_enable(int); | ||
17 | 21 | ||
18 | extern int omap3_pm_get_suspend_state(struct powerdomain *pwrdm); | 22 | extern int omap3_pm_get_suspend_state(struct powerdomain *pwrdm); |
19 | 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); |