diff options
author | Andreas Kemnade <andreas@kemnade.info> | 2020-09-11 18:12:09 +0200 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2020-09-24 13:26:20 +0200 |
commit | fb2c599f056640d289b2147fbe6d9eaee689f1b2 (patch) | |
tree | b842bba43be0e18776892003bc26ae086133682c /arch/arm/mach-omap2/pm.c | |
parent | Merge branch 'omap-for-v5.10/omap1' into omap-for-v5.10/soc (diff) | |
download | linux-fb2c599f056640d289b2147fbe6d9eaee689f1b2.tar.xz linux-fb2c599f056640d289b2147fbe6d9eaee689f1b2.zip |
ARM: omap3: enable off mode automatically
Enabling off mode was only reachable deeply hidden
in the debugfs. As powersaving is an important feature,
move the option out of its shady place.
The debugfs file can still be used to override the default.
Use the presence of a device compatible to ti,twl4030-idle or
ti,twl4030-idle-osc-off as an indicator that the board is wired correctly
for off mode.
Signed-off-by: Andreas Kemnade <andreas@kemnade.info>
[tony@atomide.com: updated to fix a checkpatch warning]
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/pm.c')
-rw-r--r-- | arch/arm/mach-omap2/pm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c index 01ec1ba4878b..da829a90fe8c 100644 --- a/arch/arm/mach-omap2/pm.c +++ b/arch/arm/mach-omap2/pm.c @@ -28,6 +28,8 @@ #include "clockdomain.h" #include "pm.h" +u32 enable_off_mode; + #ifdef CONFIG_SUSPEND /* * omap_pm_suspend: points to a function that does the SoC-specific |