summaryrefslogtreecommitdiff
path: root/src/mainboard/google/chell
diff options
context:
space:
mode:
authorDuncan Laurie <dlaurie@chromium.org>2015-11-12 16:39:36 -0800
committerPatrick Georgi <pgeorgi@google.com>2015-11-18 16:29:05 +0100
commit3db94686e596bc87714f75077d609591c013c5ec (patch)
tree75866cae6f9c4a226efc9cf5ed337f27b8ac084c /src/mainboard/google/chell
parent4aca1477cbad0dd0511d974baa57a540b3cfc373 (diff)
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 <pgeorgi@chromium.org> Original-Commit-Id: a3a0147b6de681365a9c995175076d5f397016fb Original-Change-Id: I2441c28431e71b13b70e6533e175d29ccfd8d7e9 Original-Signed-off-by: Duncan Laurie <dlaurie@chromium.org> Original-Reviewed-on: https://chromium-review.googlesource.com/312358 Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/12448 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/mainboard/google/chell')
-rw-r--r--src/mainboard/google/chell/romstage.c4
1 files changed, 4 insertions, 0 deletions
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 */