forked from len0rd/rockbox
AMSv2: add proper definitions for charge current
Change-Id: I6a14570e94df1be62ae46816d2ff4e3f2b7bc21a
This commit is contained in:
parent
f8de21f460
commit
f6e17e86fe
3 changed files with 24 additions and 13 deletions
|
|
@ -93,7 +93,7 @@ static void battery_voltage_sync(void)
|
|||
/* Disable charger and minimize all settings. Reset timers, etc. */
|
||||
static void disable_charger(void)
|
||||
{
|
||||
ascodec_write_charger(TMPSUP_OFF | CHG_I_50MA | CHG_V_3_90V | CHG_OFF);
|
||||
ascodec_write_charger(TMPSUP_OFF | CHG_OFF);
|
||||
|
||||
if (charge_state > DISCHARGING)
|
||||
charge_state = DISCHARGING; /* Not an error state already */
|
||||
|
|
@ -126,7 +126,7 @@ void powermgmt_init_target(void)
|
|||
{
|
||||
/* Everything CHARGER, OFF! */
|
||||
ascodec_monitor_endofch();
|
||||
ascodec_write_charger(TMPSUP_OFF | CHG_I_50MA | CHG_V_3_90V | CHG_OFF);
|
||||
ascodec_write_charger(TMPSUP_OFF | CHG_OFF);
|
||||
}
|
||||
|
||||
static inline void charger_plugged(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue