summaryrefslogtreecommitdiff
path: root/common/led_policy_std.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/led_policy_std.c')
-rw-r--r--common/led_policy_std.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/led_policy_std.c b/common/led_policy_std.c
index 416d8495ed..631d905754 100644
--- a/common/led_policy_std.c
+++ b/common/led_policy_std.c
@@ -124,6 +124,14 @@ int led_set_brightness(enum ec_led_id led_id, const uint8_t *brightness)
return EC_SUCCESS;
}
+#ifdef HAS_TASK_CHIPSET
+static void std_led_shutdown(void)
+{
+ pwr_led_set_color(LED_OFF);
+}
+DECLARE_HOOK(HOOK_CHIPSET_SHUTDOWN, std_led_shutdown, HOOK_PRIO_DEFAULT);
+#endif
+
static void std_led_set_power(void)
{
static int power_second;