diff options
-rw-r--r-- | board/spring/usb_charging.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/board/spring/usb_charging.c b/board/spring/usb_charging.c index 787c128c08..2125dc8ec3 100644 --- a/board/spring/usb_charging.c +++ b/board/spring/usb_charging.c @@ -361,7 +361,12 @@ void board_pwm_duty_cycle(int percent) void board_pwm_init_limit(void) { - board_pwm_duty_cycle(I_LIMIT_500MA); + /* + * put a high initial limit to avoid browning out the system + * when we turn on charging, lower power bricks might cut off + * but we will re-enable them with a lower limit later. + */ + board_pwm_duty_cycle(I_LIMIT_2400MA); } /** |