diff options
Diffstat (limited to 'board/dojo/board.c')
-rw-r--r-- | board/dojo/board.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/board/dojo/board.c b/board/dojo/board.c index 4d7178bfad..bb819b02d5 100644 --- a/board/dojo/board.c +++ b/board/dojo/board.c @@ -5,6 +5,8 @@ /* Dojo board configuration */ #include "cbi_fw_config.h" +#include "charge_manager.h" +#include "charge_state_v2.h" #include "common.h" #include "console.h" #include "cros_board_info.h" @@ -375,6 +377,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) { |