diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2013-09-23 14:59:03 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2013-09-25 00:50:10 +0000 |
commit | 6ac2a834b5cbc5a7cf7b4d9a7eb8514d778f5d72 (patch) | |
tree | 75d93657fcea4c39c92735f617c8718dbed659cf | |
parent | 4b2089d0d1c180630cbb4e30cf9a64b1b3df0728 (diff) | |
download | chrome-ec-6ac2a834b5cbc5a7cf7b4d9a7eb8514d778f5d72.tar.gz |
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 <vpalatin@chromium.org>
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 <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Vic Yang <victoryang@chromium.org>
-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); } /** |