diff options
Diffstat (limited to 'board/makomo/board.c')
-rw-r--r-- | board/makomo/board.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/board/makomo/board.c b/board/makomo/board.c index 5a7158b58a..24b34d9a75 100644 --- a/board/makomo/board.c +++ b/board/makomo/board.c @@ -235,6 +235,14 @@ 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_ma = (charge_ma * 95) / 100; + charge_set_input_current_limit( + MAX(charge_ma, CONFIG_CHARGER_INPUT_CURRENT), charge_mv); +} + int board_discharge_on_ac(int enable) { int ret, port; |