diff options
author | Matt DeVillier <matt.devillier@gmail.com> | 2020-12-18 20:45:22 -0600 |
---|---|---|
committer | Matt DeVillier <matt.devillier@gmail.com> | 2023-08-05 16:01:41 +0000 |
commit | e4f7c8fce8fbb7bcbe2bdfc1e4e013eae1ccf4a4 (patch) | |
tree | 9bf544356f537ed1a923b0fd58b072ea6c16ef85 /src/mainboard/google/eve/ec.c | |
parent | 94ad304451c42c79b1a1fab5ede822aba40a909f (diff) |
mb/google/eve: Use keyboard backlight for proof-of-life at boot
This feature was originally present and then dropped, but turns out
that users prefer it. Set the backlight to 50% in romstage, back to
zero in ramstage; skip enabling on the S3 resume path.
TEST=build/boot google/eve, verify keyboard backlight turns on/off
as expected.
Change-Id: I33af888d614010538f69512bbd052ed2b83fcaa5
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/76803
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/mainboard/google/eve/ec.c')
-rw-r--r-- | src/mainboard/google/eve/ec.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mainboard/google/eve/ec.c b/src/mainboard/google/eve/ec.c index 499f56484b..7ed07460c8 100644 --- a/src/mainboard/google/eve/ec.c +++ b/src/mainboard/google/eve/ec.c @@ -15,4 +15,8 @@ void mainboard_ec_init(void) }; google_chromeec_events_init(&info, acpi_is_wakeup_s3()); + + /* Turn off keyboard backlight after turning on in romstage */ + if (!acpi_is_wakeup_s3()) + google_chromeec_kbbacklight(0); } |