ARM: omap3: enable off mode automatically
authorAndreas Kemnade <andreas@kemnade.info>
Fri, 11 Sep 2020 16:12:09 +0000 (18:12 +0200)
committerTony Lindgren <tony@atomide.com>
Thu, 24 Sep 2020 11:26:20 +0000 (14:26 +0300)
commitfb2c599f056640d289b2147fbe6d9eaee689f1b2
treeb842bba43be0e18776892003bc26ae086133682c
parent501e69b028a47e20cb0d842e267fc5aa5e5230aa
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>
arch/arm/mach-omap2/pm-debug.c
arch/arm/mach-omap2/pm.c
arch/arm/mach-omap2/pm.h
arch/arm/mach-omap2/pm34xx.c