diff options
author | Vic Yang <victoryang@chromium.org> | 2013-03-16 06:14:04 +0800 |
---|---|---|
committer | ChromeBot <chrome-bot@google.com> | 2013-03-19 14:59:47 -0700 |
commit | 6e07f94c908aaaf0e490e48073878c6cfb4b3ba7 (patch) | |
tree | b6b48de659c98f288e63d63f3e935a105e259395 /board/spring/usb_charging.c | |
parent | 24f0d888dd8110f7f0448b9dbeb47c13f5b1e298 (diff) | |
download | chrome-ec-stabilize-3881.0.B.tar.gz |
spring: More stable battery LED controlstabilize-3881.0.B
This includes:
- Discharging with AC present now recognized as battery assist mode
- Trigger LED update every second instead of from PMU task
- Minor breathing effect optimization
- Control LED power and color from the same task to prevent
simultaneous access to LED driver
BUG=chrome-os-partner:18244
TEST=Manual
BRANCH=spring
Change-Id: I9b34934f46cd4f04aaa7ca30cbe90316aec3e61e
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/45632
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'board/spring/usb_charging.c')
-rw-r--r-- | board/spring/usb_charging.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/board/spring/usb_charging.c b/board/spring/usb_charging.c index 5c29af3e69..ba60e4dbaf 100644 --- a/board/spring/usb_charging.c +++ b/board/spring/usb_charging.c @@ -386,12 +386,8 @@ static void usb_device_change(int dev_type) current_limit = I_LIMIT_1500MA; board_pwm_nominal_duty_cycle(current_limit); - - /* Turns on battery LED */ - lp5562_poweron(); } else { board_ilim_config(ILIM_CONFIG_MANUAL_ON); - lp5562_poweroff(); } /* Log to console */ |