diff --git a/drivers/power/supply/rk817_charger.c b/drivers/power/supply/rk817_charger.c index 95c6c4f02..44fcfb1e0 100644 --- a/drivers/power/supply/rk817_charger.c +++ b/drivers/power/supply/rk817_charger.c @@ -625,10 +625,10 @@ static irqreturn_t rk817_plug_out_isr(int irq, void *cg) * For some reason the bits of RK817_PMIC_CHRG_IN reset whenever the * power cord is unplugged. This was not documented in the BSP kernel * or the datasheet and only discovered by trial and error. Set minimum - * USB input voltage to 4.5v and enable USB voltage input limit. + * USB input voltage to 4.0v and enable USB voltage input limit. */ regmap_write_bits(rk808->regmap, RK817_PMIC_CHRG_IN, - RK817_USB_VLIM_SEL, (0x05 << 4)); + RK817_USB_VLIM_SEL, 0x00); regmap_write_bits(rk808->regmap, RK817_PMIC_CHRG_IN, RK817_USB_VLIM_EN, (0x01 << 7)); @@ -1008,11 +1008,11 @@ static int rk817_battery_init(struct rk817_charger *charger, return ret; /* - * Set minimum USB input voltage to 4.5v and enable USB voltage input + * Set minimum USB input voltage to 4.0v and enable USB voltage input * limit. */ regmap_write_bits(rk808->regmap, RK817_PMIC_CHRG_IN, - RK817_USB_VLIM_SEL, (0x05 << 4)); + RK817_USB_VLIM_SEL, 0x00); regmap_write_bits(rk808->regmap, RK817_PMIC_CHRG_IN, RK817_USB_VLIM_EN, (0x01 << 7));