summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortongjian <tongjian@huaqin.corp-partner.google.com>2021-07-21 19:58:39 +0800
committerCommit Bot <commit-bot@chromium.org>2021-07-22 02:50:57 +0000
commit8d5b7f35fed9e4e4cad86946296a138c63471118 (patch)
treefceabe5a58352f0c566b7798166571671b7b3e65
parent8c91746f7d9bc9fa72e5604c184b3bad0a346d19 (diff)
downloadchrome-ec-8d5b7f35fed9e4e4cad86946296a138c63471118.tar.gz
Homestar:LED:Modify the behavior of the LED to always be off in discharging
BUG=b:187539586 TEST=make -j BOARD=homestar Verify build on DVT board BRANCH=Trogdor Signed-off-by: tongjian <tongjian@huaqin.corp-partner.google.com> Change-Id: I3063ca561726c9a33a1ecd1b5f69d96d94576f52 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3043762 Reviewed-by: Wenchao Han <hanwenchao@huaqin.corp-partner.google.com> Reviewed-by: Wai-Hong Tam <waihong@google.com>
-rw-r--r--board/homestar/led.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/board/homestar/led.c b/board/homestar/led.c
index bf1bb51fa6..3950ce1ec0 100644
--- a/board/homestar/led.c
+++ b/board/homestar/led.c
@@ -102,21 +102,8 @@ static void board_led_set_battery(void)
}
break;
case PWR_STATE_DISCHARGE:
- if (chipset_in_state(CHIPSET_STATE_ON)) {
- /* S0, Green (soild on) */
- color = LED_GREEN;
- } else if (chipset_in_state(CHIPSET_STATE_ANY_SUSPEND)) {
- /* S3, Orange (1s on 3s off) */
- period = (2 + 2) * LED_ONE_SEC;
- battery_ticks = battery_ticks % period;
- if (battery_ticks < 1 * LED_ONE_SEC)
- color = LED_AMBER;
- else
- color = LED_OFF;
- } else if (chipset_in_state(CHIPSET_STATE_ANY_OFF)) {
- /* S5, off */
- color = LED_OFF;
- }
+ /* Always indicate off on when discharging */
+ color = LED_OFF;
break;
case PWR_STATE_ERROR:
/* Battery error, Red on 1sec off 1sec */