imx233: correctly stop charging on topoff (fix battery discharging)
Change-Id: Ied7ea0a882e532bcf673a96d224dd55fdaae05d4
This commit is contained in:
parent
b9bf6cdb2c
commit
29c72591fd
1 changed files with 1 additions and 1 deletions
|
@ -136,7 +136,7 @@ void charging_algorithm_step(void)
|
|||
logf("pwrmgmt: charging finished");
|
||||
logf("pwrmgmt: topoff -> disabled");
|
||||
/* stop charging */
|
||||
__REG_SET(HW_POWER_5VCTRL) = HW_POWER_5VCTRL__PWD_CHARGE_4P2;
|
||||
__REG_SET(HW_POWER_CHARGE) = HW_POWER_CHARGE__PWD_BATTCHRG;
|
||||
charge_state = CHARGE_STATE_DISABLED;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue