diff options
Diffstat (limited to 'board/cherry/board.c')
-rw-r--r-- | board/cherry/board.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/board/cherry/board.c b/board/cherry/board.c index f8700404ed..c2ad54acb2 100644 --- a/board/cherry/board.c +++ b/board/cherry/board.c @@ -262,6 +262,13 @@ const struct usb_mux_chain usb_muxes[CONFIG_USB_PD_PORT_MAX_COUNT] = { }, }; +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); +} + /* Initialize board. */ static void board_init(void) { |