ARM: OMAP2+: Configure voltage controller for cpcap to low-speed
authorTony Lindgren <tony@atomide.com>
Thu, 17 Oct 2019 13:34:34 +0000 (06:34 -0700)
committerTony Lindgren <tony@atomide.com>
Fri, 18 Oct 2019 22:09:54 +0000 (15:09 -0700)
commitc145649bf262a0614fbe5955bdffdfaba9023fce
treef945097809868d9c191f443cb4181661d62de22a
parent71065d3fe82dbb2a827a081ceeca272ab7fa0905
ARM: OMAP2+: Configure voltage controller for cpcap to low-speed

Looks like the i2c timings in high-speed mode do not work properly to
allow us to clear I2C_DISABLE bits for PRM_VOLTCTRL register and the
device reboots if I2C_DISABLE bits are cleared.

Let's configure the voltage controller i2c for low-speed mode as done in
the Motorola Mapphone Android Linux kernel. This saves us about 7mW of
power during retention compared to the high-speed values.

Let's also change the low-speed warning to pr_info about relying on the
bootloader configured low-speed values like we currently do.

Cc: Merlijn Wajer <merlijn@wizzup.org>
Cc: Pavel Machek <pavel@ucw.cz>
Cc: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/pmic-cpcap.c
arch/arm/mach-omap2/vc.c