diff options
author | Tony Lindgren <tony@atomide.com> | 2015-04-27 20:18:14 +0300 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2015-06-22 14:25:04 +0300 |
commit | 5c188d748216f67c928d67a42f14b5569b6404a5 (patch) | |
tree | 51d7376dd9a9e8b3ada5998faf6d80ecce42b8a8 /include/linux/i2c | |
parent | 53960e2bff0107231d21f9ee7b31502b1daed344 (diff) | |
download | linux-5c188d748216f67c928d67a42f14b5569b6404a5.tar.xz |
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>
Diffstat (limited to 'include/linux/i2c')
-rw-r--r-- | include/linux/i2c/twl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/i2c/twl.h b/include/linux/i2c/twl.h index 0bc03f100d04..9ad7828d9d34 100644 --- a/include/linux/i2c/twl.h +++ b/include/linux/i2c/twl.h @@ -675,6 +675,7 @@ struct twl4030_power_data { struct twl4030_resconfig *board_config; #define TWL4030_RESCONFIG_UNDEF ((u8)-1) bool use_poweroff; /* Board is wired for TWL poweroff */ + bool ac_charger_quirk; /* Disable AC charger on board */ }; extern int twl4030_remove_script(u8 flags); |