diff options
Diffstat (limited to 'baseboard')
-rw-r--r-- | baseboard/octopus/baseboard.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/baseboard/octopus/baseboard.c b/baseboard/octopus/baseboard.c index beb2e1754d..225ef9745d 100644 --- a/baseboard/octopus/baseboard.c +++ b/baseboard/octopus/baseboard.c @@ -251,6 +251,13 @@ int board_set_active_charge_port(int port) void board_set_charge_limit(int port, int supplier, int charge_ma, int max_ma, int charge_mv) { + /* + * Empirically, the charger seems to draw a little more current that + * it is set to, so we reduce our limit by 5%. + */ +#ifdef VARIANT_OCTOPUS_CHARGER_ISL9238 + charge_ma = (charge_ma * 95) / 100; +#endif charge_set_input_current_limit(MAX(charge_ma, CONFIG_CHARGER_INPUT_CURRENT), charge_mv); |