diff options
Diffstat (limited to 'board/drawcia/board.c')
-rw-r--r-- | board/drawcia/board.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/board/drawcia/board.c b/board/drawcia/board.c index 118b3178be..58def569be 100644 --- a/board/drawcia/board.c +++ b/board/drawcia/board.c @@ -610,19 +610,17 @@ uint16_t tcpc_get_alert_status(void) return status; } -void board_set_charge_limit(int port, int supplier, int charge_ma, int max_ma, - int charge_mv) +__override void board_set_charge_limit(int port, int supplier, int charge_ma, + int max_ma, int charge_mv) { - int icl = MAX(charge_ma, CONFIG_CHARGER_INPUT_CURRENT); - /* Limit C1 on board version 0 to 2.0 A */ if ((board_version == 0) && (port == 1)) - icl = MIN(icl, 2000); + charge_ma = MIN(charge_ma, 2000); /* * TODO(b/151955431): Characterize the input current limit in case a * scaling needs to be applied here */ - charge_set_input_current_limit(icl, charge_mv); + charge_set_input_current_limit(charge_ma, charge_mv); } int board_set_active_charge_port(int port) |