summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@gmail.com>2023-08-04 09:06:50 -0500
committerMatt DeVillier <matt.devillier@gmail.com>2023-08-05 16:01:51 +0000
commit5a53c4ddafc47d9972c1d2724d3f922eb05ea5bc (patch)
treec0f0a159047c84ad12e3c4484e54e371fec92020 /src
parente4f7c8fce8fbb7bcbe2bdfc1e4e013eae1ccf4a4 (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/mainboard/google/glados/romstage.c4
1 files changed, 2 insertions, 2 deletions
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 <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