From 867d0df7365f9a832ee2009899963ca82b50dc64 Mon Sep 17 00:00:00 2001 From: Jenny TC Date: Mon, 8 Feb 2016 14:44:30 +0530 Subject: google/lars: Turn on keyboard backlight in romstage Cherry-pick from Chromium: a60ac10 [Lars: Turn on keyboard backlight in romstage] Use the keyboard backlight to provide indication that the system is booting. This is useful for determining that a system is in S0 and is running BIOS code. TEST=boot on Lars and see keyboard backlight come on early Original-Change-Id: I4fede6cff85f4487cedfbccf6cc24c6380d905e0 Original-Signed-off-by: Jenny TC Original-Tested-by: Divagar Mohandass Original-Reviewed-by: Duncan Laurie Change-Id: I4b1fed10d9bd1ae1b265e848417836f816f252f3 Signed-off-by: Matt DeVillier Reviewed-on: https://review.coreboot.org/23572 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- src/mainboard/google/lars/romstage.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mainboard/google/lars') diff --git a/src/mainboard/google/lars/romstage.c b/src/mainboard/google/lars/romstage.c index 926be8749f..b3ef0d8d7a 100644 --- a/src/mainboard/google/lars/romstage.c +++ b/src/mainboard/google/lars/romstage.c @@ -17,6 +17,7 @@ #include #include +#include #include #include #include @@ -33,6 +34,10 @@ void mainboard_romstage_entry(struct romstage_params *params) GPIO_MEM_CONFIG_3, }; + /* Turn on keyboard backlight to indicate we are booting */ + if (params->power_state->prev_sleep_state != ACPI_S3) + google_chromeec_kbbacklight(25); + params->pei_data->mem_cfg_id = gpio_base2_value(spd_gpios, ARRAY_SIZE(spd_gpios)); /* Fill out PEI DATA */ -- cgit v1.2.3