mb/google/glados: use acpi_is_wakeup_s3() vs FSP UPD
To be consistent with other boards setting the keyboard backlight at boot. Change-Id: I40d8ebe468a967f0dfe1e82bff9c63f1986699c7 Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/76942 Reviewed-by: Felix Held <felix-coreboot@felixheld.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
|
||||
#include <acpi/acpi.h>
|
||||
#include <baseboard/variant.h>
|
||||
#include <ec/google/chromeec/ec.h>
|
||||
#include <gpio.h>
|
||||
@ -16,8 +17,7 @@ void mainboard_memory_init_params(FSPM_UPD *mupd)
|
||||
|
||||
#ifdef EC_ENABLE_KEYBOARD_BACKLIGHT
|
||||
/* Turn on keyboard backlight to indicate we are booting */
|
||||
const FSPM_ARCH_UPD *arch_upd = &mupd->FspmArchUpd;
|
||||
if (arch_upd->BootMode != FSP_BOOT_ON_S3_RESUME)
|
||||
if (!acpi_is_wakeup_s3())
|
||||
google_chromeec_kbbacklight(25);
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user