From 5a53c4ddafc47d9972c1d2724d3f922eb05ea5bc Mon Sep 17 00:00:00 2001 From: Matt DeVillier Date: Fri, 4 Aug 2023 09:06:50 -0500 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/76942 Reviewed-by: Felix Held Tested-by: build bot (Jenkins) --- src/mainboard/google/glados/romstage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/mainboard/google/glados/romstage.c b/src/mainboard/google/glados/romstage.c index 9a968b16d4..35b53e26af 100644 --- a/src/mainboard/google/glados/romstage.c +++ b/src/mainboard/google/glados/romstage.c @@ -1,5 +1,6 @@ /* SPDX-License-Identifier: GPL-2.0-only */ +#include #include #include #include @@ -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 -- cgit v1.2.3