From 9dab30adf0d7b4153dfcc4dc5ca5bfc7129924e6 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Mon, 2 Dec 2013 19:59:16 +0100 Subject: [PATCH] imx233: fix red on stmp3600 Change-Id: I56527f2d643cb3c453e08cd1f759b80ce10ceb66 --- firmware/target/arm/imx233/powermgmt-imx233.c | 2 ++ 1 file changed, 2 insertions(+) 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)