summaryrefslogtreecommitdiff
path: root/src/mainboard/google/lars
diff options
context:
space:
mode:
authorJenny TC <jenny.tc@intel.com>2016-02-08 14:44:30 +0530
committerMartin Roth <martinroth@google.com>2018-02-05 19:50:53 +0000
commit867d0df7365f9a832ee2009899963ca82b50dc64 (patch)
treeab555111a3cc6bc84f242a979fae59c8a7dd8afa /src/mainboard/google/lars
parent01976815e4bd012f83196499488e2b7849e6d95f (diff)
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>
Diffstat (limited to 'src/mainboard/google/lars')
-rw-r--r--src/mainboard/google/lars/romstage.c5
1 files changed, 5 insertions, 0 deletions
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 <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 */