diff options
author | Tom Rini <trini@konsulko.com> | 2016-09-18 16:11:50 (GMT) |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-09-18 18:05:29 (GMT) |
commit | b58d3512442357cb023bce69f55c08b9fd21beaa (patch) | |
tree | 201b24f7b5edbcbc7564517572ff1eb61f34d0cd /drivers/power/axp209.c | |
parent | a7a97fddb390b998449264a005ce32a95dfd068b (diff) | |
parent | ca7628a91136364235de8fb4bd699944b981c504 (diff) | |
download | u-boot-b58d3512442357cb023bce69f55c08b9fd21beaa.tar.xz |
Merge branch 'master' of git://www.denx.de/git/u-boot-sunxi
Diffstat (limited to 'drivers/power/axp209.c')
-rw-r--r-- | drivers/power/axp209.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/power/axp209.c b/drivers/power/axp209.c index fc162a1..731b75e 100644 --- a/drivers/power/axp209.c +++ b/drivers/power/axp209.c @@ -167,6 +167,22 @@ int axp_init(void) return rc; } + /* + * Turn off LDOIO regulators / tri-state GPIO pins, when rebooting + * from android these are sometimes on. + */ + rc = pmic_bus_write(AXP_GPIO0_CTRL, AXP_GPIO_CTRL_INPUT); + if (rc) + return rc; + + rc = pmic_bus_write(AXP_GPIO1_CTRL, AXP_GPIO_CTRL_INPUT); + if (rc) + return rc; + + rc = pmic_bus_write(AXP_GPIO2_CTRL, AXP_GPIO_CTRL_INPUT); + if (rc) + return rc; + return 0; } |