summaryrefslogtreecommitdiff
path: root/board/yorp
diff options
context:
space:
mode:
Diffstat (limited to 'board/yorp')
-rw-r--r--board/yorp/led.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/board/yorp/led.c b/board/yorp/led.c
index 9040452f17..5e97887722 100644
--- a/board/yorp/led.c
+++ b/board/yorp/led.c
@@ -20,6 +20,8 @@ const int led_charge_lvl_2 = 100;
/* Yorp: Note there is only LED for charge / power */
const struct led_descriptor
led_bat_state_table[LED_NUM_STATES][LED_NUM_PHASES] = {
+ [STATE_CHARGING_LVL_1] = {{EC_LED_COLOR_BLUE, 2 * LED_ONE_SEC},
+ {EC_LED_COLOR_AMBER, 2 * LED_ONE_SEC} },
[STATE_CHARGING_LVL_2] = {{EC_LED_COLOR_AMBER, LED_INDEFINITE} },
[STATE_CHARGING_FULL_CHARGE] = {{EC_LED_COLOR_BLUE, LED_INDEFINITE} },
[STATE_DISCHARGE_S0] = {{EC_LED_COLOR_BLUE, LED_INDEFINITE} },
@@ -28,7 +30,9 @@ const struct led_descriptor
[STATE_DISCHARGE_S5] = {{LED_OFF, LED_INDEFINITE} },
[STATE_BATTERY_ERROR] = {{EC_LED_COLOR_BLUE, 2 * LED_ONE_SEC},
{EC_LED_COLOR_AMBER, 2 * LED_ONE_SEC} },
+ [STATE_FACTORY_TEST] = {{EC_LED_COLOR_BLUE, LED_INDEFINITE} },
};
+BUILD_ASSERT(ARRAY_SIZE(led_bat_state_table) == LED_NUM_STATES);
const enum ec_led_id supported_led_ids[] = { EC_LED_ID_BATTERY_LED };