diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2012-03-04 11:41:25 +0100 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2012-03-04 12:23:05 +0100 |
commit | f6e17e86fed65cb503199691d69973e83c45ddbf (patch) | |
tree | 78134652dba68a308ccf45f62156e0e419382388 /firmware/target/arm/powermgmt-ascodec.c | |
parent | f8de21f4603657ac7f8e22fc36f269e6a1fab0f8 (diff) | |
download | rockbox-f6e17e86fed65cb503199691d69973e83c45ddbf.tar.gz rockbox-f6e17e86fed65cb503199691d69973e83c45ddbf.zip |
AMSv2: add proper definitions for charge current
Change-Id: I6a14570e94df1be62ae46816d2ff4e3f2b7bc21a
Diffstat (limited to 'firmware/target/arm/powermgmt-ascodec.c')
-rw-r--r-- | firmware/target/arm/powermgmt-ascodec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/powermgmt-ascodec.c b/firmware/target/arm/powermgmt-ascodec.c index c05fc7bf7a..0e4c8b7074 100644 --- a/firmware/target/arm/powermgmt-ascodec.c +++ b/firmware/target/arm/powermgmt-ascodec.c | |||
@@ -93,7 +93,7 @@ static void battery_voltage_sync(void) | |||
93 | /* Disable charger and minimize all settings. Reset timers, etc. */ | 93 | /* Disable charger and minimize all settings. Reset timers, etc. */ |
94 | static void disable_charger(void) | 94 | static void disable_charger(void) |
95 | { | 95 | { |
96 | ascodec_write_charger(TMPSUP_OFF | CHG_I_50MA | CHG_V_3_90V | CHG_OFF); | 96 | ascodec_write_charger(TMPSUP_OFF | CHG_OFF); |
97 | 97 | ||
98 | if (charge_state > DISCHARGING) | 98 | if (charge_state > DISCHARGING) |
99 | charge_state = DISCHARGING; /* Not an error state already */ | 99 | charge_state = DISCHARGING; /* Not an error state already */ |
@@ -126,7 +126,7 @@ void powermgmt_init_target(void) | |||
126 | { | 126 | { |
127 | /* Everything CHARGER, OFF! */ | 127 | /* Everything CHARGER, OFF! */ |
128 | ascodec_monitor_endofch(); | 128 | ascodec_monitor_endofch(); |
129 | ascodec_write_charger(TMPSUP_OFF | CHG_I_50MA | CHG_V_3_90V | CHG_OFF); | 129 | ascodec_write_charger(TMPSUP_OFF | CHG_OFF); |
130 | } | 130 | } |
131 | 131 | ||
132 | static inline void charger_plugged(void) | 132 | static inline void charger_plugged(void) |