summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVic Yang <victoryang@chromium.org>2013-03-29 12:09:19 +0800
committerChromeBot <chrome-bot@google.com>2013-04-02 09:46:06 -0700
commitb41b1f5ba80108e27fc285ebc00fa76e75d98edd (patch)
tree4b006b95725f41eab87243ae75a792fd0a61ed3e
parentf9ed88d612297b40c6c7b072496c216a47d5eb6a (diff)
downloadchrome-ec-b41b1f5ba80108e27fc285ebc00fa76e75d98edd.tar.gz
Initialize LP5562 power on init
On init, we should either explicitly power on or off LP5562 in case. BUG=none TEST=Manual BRANCH=spring Original-Change-Id: I7e331349090f3383da19f840762fa4d72a1a054b Signed-off-by: Vic Yang <victoryang@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/46847 Reviewed-by: Vincent Palatin <vpalatin@chromium.org> (cherry picked from commit 4311bc5ccf666d7425f1ea50eee08e3a032e2508) Conflicts: common/lp5562_battery_led.c Change-Id: I2c7aca873d6b9563fb1845437704a7a0c37ab95e Signed-off-by: Vic Yang <victoryang@chromium.org> Reviewed-on: https://gerrit.chromium.org/gerrit/47094 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
-rw-r--r--board/spring/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/spring/board.c b/board/spring/board.c
index d66ffd2e88..69efeee81f 100644
--- a/board/spring/board.c
+++ b/board/spring/board.c
@@ -349,7 +349,7 @@ static void board_battery_led_update(void)
/* Current states and next states */
static uint32_t color = LED_COLOR_RED;
static int breathing;
- static int led_power;
+ static int led_power = -1;
int new_color = LED_COLOR_RED;
int new_breathing = 0;
int new_led_power;