]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6f4e20570765fde24fb1eb6d686f2fc63425af65
treeb842bba43be0e18776892003bc26ae086133682c
parent5c0572f7d7a7f1cfa4db4d883cbc81dc63964d42
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