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)
commit5c188d748216f67c928d67a42f14b5569b6404a5
tree51d7376dd9a9e8b3ada5998faf6d80ecce42b8a8
parent53960e2bff0107231d21f9ee7b31502b1daed344
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