]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: twl4030-power: Fix pmic for boards that need AC charger disabled
authorTony Lindgren <tony@atomide.com>
Mon, 27 Apr 2015 17:18:14 +0000 (10:18 -0700)
committerLee Jones <lee.jones@linaro.org>
Mon, 22 Jun 2015 11:25:04 +0000 (12:25 +0100)
commit9da30ce75918671d77a4972c723413ca75e67ebf
tree51d7376dd9a9e8b3ada5998faf6d80ecce42b8a8
parent65fcf990efea5cd9a10a89c2d5639aa59b31260d
mfd: twl4030-power: Fix pmic for boards that need AC charger disabled

I noticed the PMIC configuration on 37xx-evm won't actually shut down
the voltages during off-idle. Turns out 37xx-evm needs the AC charger
state transitions disabled like we are doing for SDP and LDP in the
legacy booting case.

Let's fix this for device tree based booting by setting up the quirk
flag based on the compatible flag. And let's also use the existing
define for STARTON_CHG.

Note that SDP and EVM do not have the PMIC clken wired to gate the
the oscillator while LDP has.

Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/twl4030-power.c
include/linux/i2c/twl.h