diff options
Diffstat (limited to 'firmware/target/arm/imx31/gigabeat-s/powermgmt-imx31.c')
-rw-r--r-- | firmware/target/arm/imx31/gigabeat-s/powermgmt-imx31.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/target/arm/imx31/gigabeat-s/powermgmt-imx31.c b/firmware/target/arm/imx31/gigabeat-s/powermgmt-imx31.c index e563fede43..c6b3549afb 100644 --- a/firmware/target/arm/imx31/gigabeat-s/powermgmt-imx31.c +++ b/firmware/target/arm/imx31/gigabeat-s/powermgmt-imx31.c | |||
@@ -705,11 +705,17 @@ static void charger_control(void) | |||
705 | else if (pwr & POWER_INPUT_USB_CHARGER | 705 | else if (pwr & POWER_INPUT_USB_CHARGER |
706 | & POWER_INPUT_CHARGER) | 706 | & POWER_INPUT_CHARGER) |
707 | { | 707 | { |
708 | /* USB power only */ | ||
708 | if (changed & POWER_INPUT_USB_CHARGER) | 709 | if (changed & POWER_INPUT_USB_CHARGER) |
709 | { | 710 | { |
710 | /* USB charger plugged - try charge */ | 711 | /* USB charger plugged - try charge */ |
711 | autorecharge_counter = -1; | 712 | autorecharge_counter = -1; |
712 | } | 713 | } |
714 | else if (changed & POWER_INPUT_MAIN_CHARGER) | ||
715 | { | ||
716 | /* Main charger pulled - go to battery maintenence. */ | ||
717 | charger_setting = CHARGER_ADJUST; | ||
718 | } | ||
713 | } | 719 | } |
714 | } | 720 | } |
715 | } | 721 | } |