summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/powermgmt-imx233.c
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-02-29 18:42:41 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2012-02-29 18:43:26 +0100
commit29c72591fd5c761d7a92c11d682f28599cc1ed9e (patch)
tree1f741dbfa866deec6fa2a0a89f3911da12518a1b /firmware/target/arm/imx233/powermgmt-imx233.c
parentb9bf6cdb2c400ccfa0c00999468dbd2b1f0ac8d3 (diff)
downloadrockbox-29c72591fd5c761d7a92c11d682f28599cc1ed9e.tar.gz
rockbox-29c72591fd5c761d7a92c11d682f28599cc1ed9e.tar.bz2
rockbox-29c72591fd5c761d7a92c11d682f28599cc1ed9e.zip
imx233: correctly stop charging on topoff (fix battery discharging)
Change-Id: Ied7ea0a882e532bcf673a96d224dd55fdaae05d4
Diffstat (limited to 'firmware/target/arm/imx233/powermgmt-imx233.c')
-rw-r--r--firmware/target/arm/imx233/powermgmt-imx233.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/imx233/powermgmt-imx233.c b/firmware/target/arm/imx233/powermgmt-imx233.c
index 0f3336d602..31f9ac7659 100644
--- a/firmware/target/arm/imx233/powermgmt-imx233.c
+++ b/firmware/target/arm/imx233/powermgmt-imx233.c
@@ -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;
}
}