diff options
Diffstat (limited to 'firmware/target/arm/imx31/gigabeat-s/power-gigabeat-s.c')
-rw-r--r-- | firmware/target/arm/imx31/gigabeat-s/power-gigabeat-s.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/firmware/target/arm/imx31/gigabeat-s/power-gigabeat-s.c b/firmware/target/arm/imx31/gigabeat-s/power-gigabeat-s.c index d7fe87f168..4540be671a 100644 --- a/firmware/target/arm/imx31/gigabeat-s/power-gigabeat-s.c +++ b/firmware/target/arm/imx31/gigabeat-s/power-gigabeat-s.c @@ -43,7 +43,7 @@ unsigned int power_input_status(void) if (GPIO3_DR & (1 << 20)) status |= POWER_INPUT_BATTERY; - if (usb_allowed_current() < 500) + if (usb_charging_maxcurrent() < 500) { /* ACK that USB is connected but NOT chargeable */ status &= ~(POWER_INPUT_USB_CHARGER & POWER_INPUT_CHARGER); @@ -52,6 +52,12 @@ unsigned int power_input_status(void) return status; } +void usb_charging_maxcurrent_change(int maxcurrent) +{ + (void)maxcurrent; + /* Nothing to do */ +} + /* Detect changes in presence of the AC adaptor. */ void charger_main_detect_event(void) { |