]> 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)
commit28ad60bed9ece06d8743be1b97e0ef09dba400ed
tree51d7376dd9a9e8b3ada5998faf6d80ecce42b8a8
parent0c6334dda86a1c56908dc7472cb1c71d29de9684
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