diff options
Diffstat (limited to 'board/wheelie/board.c')
-rw-r--r-- | board/wheelie/board.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/board/wheelie/board.c b/board/wheelie/board.c index e8852a0b5a..9708dcca82 100644 --- a/board/wheelie/board.c +++ b/board/wheelie/board.c @@ -229,6 +229,18 @@ uint16_t tcpc_get_alert_status(void) return status; } +void board_set_charge_limit(int port, int supplier, int charge_ma, int max_ma, + int charge_mv) +{ + int icl = MAX(charge_ma, CONFIG_CHARGER_INPUT_CURRENT); + + /* + * TODO(b/151955431): Characterize the input current limit in case a + * scaling needs to be applied here + */ + charge_set_input_current_limit(icl, charge_mv); +} + int board_set_active_charge_port(int port) { int is_valid_port = (port >= 0 && port < CONFIG_USB_PD_PORT_MAX_COUNT); |