diff options
-rw-r--r-- | board/quackingstick/board.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/board/quackingstick/board.c b/board/quackingstick/board.c index 8806e8c845..48414a2d0c 100644 --- a/board/quackingstick/board.c +++ b/board/quackingstick/board.c @@ -20,6 +20,7 @@ #include "driver/tcpm/tcpci.h" #include "gpio.h" #include "hooks.h" +#include "led_common.h" #include "lid_switch.h" #include "mkbp_input_devices.h" #include "peripheral_charger.h" @@ -450,6 +451,13 @@ DECLARE_HOOK(HOOK_INIT, board_tcpc_init, HOOK_PRIO_INIT_I2C+1); void board_hibernate(void) { int i; + uint8_t brightness_range[EC_LED_COLOR_COUNT] = { 0 }; + + /* + * Turn off LED. + */ + led_set_brightness(EC_LED_ID_BATTERY_LED, brightness_range); + led_auto_control(EC_LED_ID_BATTERY_LED, 0); /* * Sensors are unpowered in hibernate. Apply PD to the |