diff options
Diffstat (limited to 'board/taeko/board.c')
-rw-r--r-- | board/taeko/board.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/board/taeko/board.c b/board/taeko/board.c index e4a3814901..d7fe4e4399 100644 --- a/board/taeko/board.c +++ b/board/taeko/board.c @@ -53,9 +53,10 @@ static void board_chipset_resume(void) { /* Allow keyboard backlight to be enabled */ - /* TODO(b/194477160) - * Implement keyboard backlight control policy later. - */ + if (ec_cfg_has_keyboard_backlight() == 1) + gpio_set_level(GPIO_EC_KB_BL_EN_L, 1); + else + gpio_set_level(GPIO_EC_KB_BL_EN_L, 0); } DECLARE_HOOK(HOOK_CHIPSET_RESUME, board_chipset_resume, HOOK_PRIO_DEFAULT); @@ -64,9 +65,10 @@ static void board_chipset_suspend(void) { /* Turn off the keyboard backlight if it's on. */ - /* TODO(b/194477160) - * Implement keyboard backlight control policy later. - */ + if (ec_cfg_has_keyboard_backlight() == 1) + gpio_set_level(GPIO_EC_KB_BL_EN_L, 0); + else + gpio_set_level(GPIO_EC_KB_BL_EN_L, 1); } DECLARE_HOOK(HOOK_CHIPSET_SUSPEND, board_chipset_suspend, HOOK_PRIO_DEFAULT); |