summaryrefslogtreecommitdiff
path: root/driver/charger/isl923x.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver/charger/isl923x.c')
-rw-r--r--driver/charger/isl923x.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/driver/charger/isl923x.c b/driver/charger/isl923x.c
index 0bac8c608c..33a669b5ef 100644
--- a/driver/charger/isl923x.c
+++ b/driver/charger/isl923x.c
@@ -741,15 +741,26 @@ static void isl923x_init(int chgnum)
/*
* Ignore BATGONE on auxiliary charger ICs as it's not connected
* there.
+ * Clear DISABLE_GP_CMP & MCU_LDO_BAT_STATE_DISABLE to
+ * enable ALERT_B with control the power of sub-board
*/
if (chgnum != CHARGER_PRIMARY) {
if (raw_read16(chgnum, ISL9238_REG_CONTROL4, &reg))
goto init_fail;
reg |= RAA489000_C4_BATGONE_DISABLE;
+ reg &= ~RAA489000_C4_DISABLE_GP_CMP;
if (raw_write16(chgnum, ISL9238_REG_CONTROL4, reg))
goto init_fail;
+
+ if (raw_read16(chgnum, RAA489000_REG_CONTROL8, &reg))
+ goto init_fail;
+
+ reg &= ~RAA489000_C8_MCU_LDO_BAT_STATE_DISABLE;
+
+ if (raw_write16(chgnum, RAA489000_REG_CONTROL8, reg))
+ goto init_fail;
}
}
#endif /* CONFIG_OCPC */