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 <jenny.tc@intel.com> Original-Tested-by: Divagar Mohandass <divagar.mohandass@intel.com> Original-Reviewed-by: Duncan Laurie <dlaurie@chromium.org> Change-Id: I4b1fed10d9bd1ae1b265e848417836f816f252f3 Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/23572 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
01976815e4
commit
867d0df736
|
@ -17,6 +17,7 @@
|
|||
|
||||
#include <string.h>
|
||||
#include <gpio.h>
|
||||
#include <ec/google/chromeec/ec.h>
|
||||
#include <soc/pei_data.h>
|
||||
#include <soc/pei_wrapper.h>
|
||||
#include <soc/romstage.h>
|
||||
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue