diff options
Diffstat (limited to 'board/yorp/board.c')
-rw-r--r-- | board/yorp/board.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/board/yorp/board.c b/board/yorp/board.c index 133e0da19f..d573571aff 100644 --- a/board/yorp/board.c +++ b/board/yorp/board.c @@ -213,6 +213,12 @@ static void board_chipset_resume(void) { /* Enable Trackpad Power when chipset is in S0 */ gpio_set_level(GPIO_EN_P3300_TRACKPAD_ODL, 0); + + /* + * GPIO_ENABLE_BACKLIGHT is AND'ed with SOC_EDP_BKLTEN from the SoC and + * LID_OPEN connection in hardware. + */ + gpio_set_level(GPIO_ENABLE_BACKLIGHT, 1); } DECLARE_HOOK(HOOK_CHIPSET_RESUME, board_chipset_resume, HOOK_PRIO_DEFAULT); @@ -221,6 +227,12 @@ static void board_chipset_suspend(void) { /* Disable Trackpad Power when chipset transitions to sleep state */ gpio_set_level(GPIO_EN_P3300_TRACKPAD_ODL, 1); + + /* + * GPIO_ENABLE_BACKLIGHT is AND'ed with SOC_EDP_BKLTEN from the SoC and + * LID_OPEN connection in hardware. + */ + gpio_set_level(GPIO_ENABLE_BACKLIGHT, 0); } DECLARE_HOOK(HOOK_CHIPSET_SUSPEND, board_chipset_suspend, HOOK_PRIO_DEFAULT); |