diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mainboard/google/eve/ec.c | 4 | ||||
-rw-r--r-- | src/mainboard/google/eve/romstage.c | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/mainboard/google/eve/ec.c b/src/mainboard/google/eve/ec.c index 499f56484b..7ed07460c8 100644 --- a/src/mainboard/google/eve/ec.c +++ b/src/mainboard/google/eve/ec.c @@ -15,4 +15,8 @@ void mainboard_ec_init(void) }; google_chromeec_events_init(&info, acpi_is_wakeup_s3()); + + /* Turn off keyboard backlight after turning on in romstage */ + if (!acpi_is_wakeup_s3()) + google_chromeec_kbbacklight(0); } diff --git a/src/mainboard/google/eve/romstage.c b/src/mainboard/google/eve/romstage.c index f3c0f1140b..906f98e0bb 100644 --- a/src/mainboard/google/eve/romstage.c +++ b/src/mainboard/google/eve/romstage.c @@ -1,11 +1,14 @@ /* SPDX-License-Identifier: GPL-2.0-only */ +#include <acpi/acpi.h> #include <boardid.h> #include <string.h> +#include <ec/google/chromeec/ec.h> #include <fsp/soc_binding.h> #include <soc/romstage.h> #include <console/console.h> #include "spd/spd.h" +#include "ec.h" void mainboard_memory_init_params(FSPM_UPD *mupd) { @@ -41,4 +44,8 @@ void mainboard_memory_init_params(FSPM_UPD *mupd) printk(BIOS_WARNING, "Limiting memory to 1600MHz\n"); mem_cfg->DdrFreqLimit = 1600; } + + /* Turn on keyboard backlight to indicate we are booting */ + if (!acpi_is_wakeup_s3()) + google_chromeec_kbbacklight(50); } |