diff options
Diffstat (limited to 'board/scarlet/board.c')
-rw-r--r-- | board/scarlet/board.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/board/scarlet/board.c b/board/scarlet/board.c index 66017e172d..34e5cc456c 100644 --- a/board/scarlet/board.c +++ b/board/scarlet/board.c @@ -212,6 +212,13 @@ int board_set_active_charge_port(int charge_port) return EC_SUCCESS; } +void board_set_charge_limit(int port, int supplier, int charge_ma, int max_ma, + int charge_mv) +{ + charge_set_input_current_limit( + MAX(charge_ma, CONFIG_CHARGER_INPUT_CURRENT), charge_mv); +} + int extpower_is_present(void) { /* |