diff options
-rw-r--r-- | board/agah/board.h | 2 | ||||
-rw-r--r-- | board/agah/charger_isl9241.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/board/agah/board.h b/board/agah/board.h index 68a8890c7f..e4d44f0f78 100644 --- a/board/agah/board.h +++ b/board/agah/board.h @@ -133,6 +133,8 @@ #define CONFIG_CHARGER_ISL9241 #define CONFIG_CHARGER_SENSE_RESISTOR 10 #define CONFIG_CHARGER_SENSE_RESISTOR_AC 10 +/* Round down 7700 max current to multiple of 128mA for ISL9241 AC prochot. */ +#define AGAH_AC_PROCHOT_CURRENT_MA 7680 /* Barrel jack adapter settings */ #undef CONFIG_DEDICATED_CHARGE_PORT_COUNT diff --git a/board/agah/charger_isl9241.c b/board/agah/charger_isl9241.c index 298110ba16..9578a5bd9a 100644 --- a/board/agah/charger_isl9241.c +++ b/board/agah/charger_isl9241.c @@ -278,5 +278,7 @@ static void bj_state_init(void) } bj_connect(); + + isl9241_set_ac_prochot(CHARGER_SOLO, AGAH_AC_PROCHOT_CURRENT_MA); } DECLARE_HOOK(HOOK_INIT, bj_state_init, HOOK_PRIO_INIT_CHARGE_MANAGER + 1); |