forked from len0rd/rockbox
imx233: fix red on stmp3600
Change-Id: I56527f2d643cb3c453e08cd1f759b80ce10ceb66
This commit is contained in:
parent
3f55f01e92
commit
9dab30adf0
1 changed files with 2 additions and 0 deletions
|
@ -97,6 +97,7 @@ void powermgmt_init_target(void)
|
||||||
|
|
||||||
void charging_algorithm_step(void)
|
void charging_algorithm_step(void)
|
||||||
{
|
{
|
||||||
|
#if IMX233_SUBTARGET >= 3700
|
||||||
bool is_5v_present = usb_detect() == USB_INSERTED;
|
bool is_5v_present = usb_detect() == USB_INSERTED;
|
||||||
|
|
||||||
/* initial state & 5v -> battery transition */
|
/* initial state & 5v -> battery transition */
|
||||||
|
@ -185,6 +186,7 @@ void charging_algorithm_step(void)
|
||||||
BF_SET(POWER_CHARGE, PWD_BATTCHRG);
|
BF_SET(POWER_CHARGE, PWD_BATTCHRG);
|
||||||
charge_state = CHARGE_STATE_DISABLED;
|
charge_state = CHARGE_STATE_DISABLED;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void charging_algorithm_close(void)
|
void charging_algorithm_close(void)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue