summaryrefslogtreecommitdiff
path: root/board/fleex/led.c
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2019-01-17 16:01:29 -0700
committerchrome-bot <chrome-bot@chromium.org>2019-01-28 14:17:07 -0800
commit2223f8723d0bb25e9637802b22232664e0d974af (patch)
tree75e39e4d858875b42ef77ddbff29a88b68e62aa8 /board/fleex/led.c
parent10033d0f9dddc4863cbc2cc49aada8d356def28a (diff)
downloadchrome-ec-2223f8723d0bb25e9637802b22232664e0d974af.tar.gz
Fleex: Add new LED state for fully charged in S5
This change adds another battery LED state to represent a fully charged system in S5, so that fleex systems can have their LED off when this occurs. This state will be optional, and the state machine will fall back to using the previously defined FULL_CHARGE state if this new state is not defined. BUG=b:122636016 BRANCH=octopus TEST=flashed orbatrix and ensured LED went off in S5 after EC reported it was charged, flashed another octopus board to ensure it didn't regress Change-Id: I0265b268818e7f1ec20339afe5cf3544c882926b Signed-off-by: Diana Z <dzigterman@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1419477 Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'board/fleex/led.c')
-rw-r--r--board/fleex/led.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/fleex/led.c b/board/fleex/led.c
index 32a3855bd2..c658dc369e 100644
--- a/board/fleex/led.c
+++ b/board/fleex/led.c
@@ -23,6 +23,7 @@ struct led_descriptor led_bat_state_table[LED_NUM_STATES][LED_NUM_PHASES] = {
{LED_OFF, 1 * LED_ONE_SEC} },
[STATE_CHARGING_LVL_2] = {{EC_LED_COLOR_AMBER, LED_INDEFINITE} },
[STATE_CHARGING_FULL_CHARGE] = {{EC_LED_COLOR_WHITE, LED_INDEFINITE} },
+ [STATE_CHARGING_FULL_S5] = {{LED_OFF, LED_INDEFINITE} },
[STATE_DISCHARGE_S0] = {{EC_LED_COLOR_WHITE, LED_INDEFINITE} },
[STATE_DISCHARGE_S0_BAT_LOW] = {{EC_LED_COLOR_AMBER, 1 * LED_ONE_SEC},
{LED_OFF, 1 * LED_ONE_SEC} },