summaryrefslogtreecommitdiffstats
path: root/include/linux/i2c
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2015-04-27 10:18:14 -0700
committerLee Jones <lee.jones@linaro.org>2015-06-22 12:25:04 +0100
commit5c188d748216f67c928d67a42f14b5569b6404a5 (patch)
tree51d7376dd9a9e8b3ada5998faf6d80ecce42b8a8 /include/linux/i2c
parent53960e2bff0107231d21f9ee7b31502b1daed344 (diff)
downloadop-kernel-dev-5c188d748216f67c928d67a42f14b5569b6404a5.zip
op-kernel-dev-5c188d748216f67c928d67a42f14b5569b6404a5.tar.gz
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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/i2c/twl.h b/include/linux/i2c/twl.h
index 0bc03f1..9ad7828 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);
OpenPOWER on IntegriCloud