summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-12-02 19:59:16 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2013-12-02 19:59:16 +0100
commit9dab30adf0d7b4153dfcc4dc5ca5bfc7129924e6 (patch)
treedbb5fd0d82208892969d43eeb1b2b75462be9c29
parent3f55f01e9210c2c5f83d623dbc7412001303e884 (diff)
downloadrockbox-9dab30a.tar.gz
rockbox-9dab30a.tar.bz2
rockbox-9dab30a.zip
imx233: fix red on stmp3600
Change-Id: I56527f2d643cb3c453e08cd1f759b80ce10ceb66
-rw-r--r--firmware/target/arm/imx233/powermgmt-imx233.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/powermgmt-imx233.c b/firmware/target/arm/imx233/powermgmt-imx233.c
index 26fb57305b..7a1ea8338e 100644
--- a/firmware/target/arm/imx233/powermgmt-imx233.c
+++ b/firmware/target/arm/imx233/powermgmt-imx233.c
@@ -97,6 +97,7 @@ void powermgmt_init_target(void)
void charging_algorithm_step(void)
{
+#if IMX233_SUBTARGET >= 3700
bool is_5v_present = usb_detect() == USB_INSERTED;
/* initial state & 5v -> battery transition */
@@ -185,6 +186,7 @@ void charging_algorithm_step(void)
BF_SET(POWER_CHARGE, PWD_BATTCHRG);
charge_state = CHARGE_STATE_DISABLED;
}
+#endif
}
void charging_algorithm_close(void)