diff options
Diffstat (limited to 'board/damu/board.c')
-rw-r--r-- | board/damu/board.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/board/damu/board.c b/board/damu/board.c index 717276e768..ddc8885e22 100644 --- a/board/damu/board.c +++ b/board/damu/board.c @@ -236,6 +236,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; |