diff options
Diffstat (limited to 'board/cherry/board.c')
-rw-r--r-- | board/cherry/board.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/board/cherry/board.c b/board/cherry/board.c index 69828d19b5..8160dafa62 100644 --- a/board/cherry/board.c +++ b/board/cherry/board.c @@ -4,6 +4,8 @@ */ /* Cherry board configuration */ +#include "charge_manager.h" +#include "charge_state_v2.h" #include "common.h" #include "console.h" #include "driver/accel_bma422.h" @@ -263,6 +265,13 @@ const struct usb_mux 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) { |