summaryrefslogtreecommitdiff
path: root/common/ocpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/ocpc.c')
-rw-r--r--common/ocpc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/ocpc.c b/common/ocpc.c
index 88308e5bc7..a176eea075 100644
--- a/common/ocpc.c
+++ b/common/ocpc.c
@@ -685,6 +685,10 @@ void ocpc_reset(struct ocpc_data *ocpc)
!(batt.flags & BATT_FLAG_BAD_VOLTAGE)) ?
batt.voltage :
battery_get_info()->voltage_normal;
+#ifdef CONFIG_CHARGER_NARROW_VDC
+ if (voltage < battery_get_info()->voltage_min)
+ voltage = battery_get_info()->voltage_min;
+#endif
CPRINTS("OCPC: C%d Init VSYS to %dmV", ocpc->active_chg_chip,
voltage);
charger_set_voltage(ocpc->active_chg_chip, voltage);