From 6ac2a834b5cbc5a7cf7b4d9a7eb8514d778f5d72 Mon Sep 17 00:00:00 2001 From: Vincent Palatin Date: Mon, 23 Sep 2013 14:59:03 -0700 Subject: spring: increase the initial current limit Put a higher initial current 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 current limit later. Signed-off-by: Vincent Palatin BRANCH=spring BUG=chrome-os-partner:22807 TEST=On Spring, reset the EC with various chargers plugged, and see that the charging subsystem is stable in all cases even though the brick might cut the current initially. Change-Id: I2bf7bace258a69a5c11b4475b1447d6d2e5e53a7 Reviewed-on: https://chromium-review.googlesource.com/170341 Commit-Queue: Vincent Palatin Tested-by: Vincent Palatin Reviewed-by: Vic Yang --- board/spring/usb_charging.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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); } /** -- cgit v1.2.1