From 3db94686e596bc87714f75077d609591c013c5ec Mon Sep 17 00:00:00 2001 From: Duncan Laurie Date: Thu, 12 Nov 2015 16:39:36 -0800 Subject: google/chell: 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. BUG=chrome-os-partner:47435 BRANCH=none TEST=boot on chell and see keyboard backlight come on early Change-Id: I43e699bcc2f34998d3d6ce33ce72c7b04b55c146 Signed-off-by: Patrick Georgi Original-Commit-Id: a3a0147b6de681365a9c995175076d5f397016fb Original-Change-Id: I2441c28431e71b13b70e6533e175d29ccfd8d7e9 Original-Signed-off-by: Duncan Laurie Original-Reviewed-on: https://chromium-review.googlesource.com/312358 Original-Reviewed-by: Aaron Durbin Reviewed-on: http://review.coreboot.org/12448 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/mainboard/google/chell/romstage.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/mainboard/google/chell') diff --git a/src/mainboard/google/chell/romstage.c b/src/mainboard/google/chell/romstage.c index 6aac80f17b..ecaae3a357 100644 --- a/src/mainboard/google/chell/romstage.c +++ b/src/mainboard/google/chell/romstage.c @@ -39,6 +39,10 @@ void mainboard_romstage_entry(struct romstage_params *params) /* Ensure the EC and PD are in the right mode for recovery */ google_chromeec_early_init(); + /* Turn on keyboard backlight to indicate we are booting */ + if (params->power_state->prev_sleep_state != SLEEP_STATE_S3) + google_chromeec_kbbacklight(100); + early_config_gpio(); /* Fill out PEI DATA */ -- cgit v1.2.3