google/eve: Enable keyboard backlight in bootblock
commit367c9b328fd084509f8ed41ecf3c64ebc2e02e17
authorDuncan Laurie <dlaurie@chromium.org>
Sat, 21 Jan 2017 23:42:26 +0000 (21 15:42 -0800)
committerDuncan Laurie <dlaurie@chromium.org>
Sun, 22 Jan 2017 18:24:22 +0000 (22 19:24 +0100)
tree2c94f9d934e2b559c6493b079071bfca6d812f02
parentba32f0f91cfd79434b53d60a16d4c072fac384ec
google/eve: Enable keyboard backlight in bootblock

Enable the keyboard backlight as early in boot as possible to
provide a indication that the BIOS is executing.

Since this is bootblock it can't use the convenience function
for checking for S3 resume so just read the PM1 value from the
SOC and check it directly.

Use a value of 75% for the current system as that is visible
without being full brightness.

BUG=chrome-os-partner:61464
TEST=boot on eve and check that keyboard backlight is enabled
as soon as the SOC starts booting

Change-Id: I9ac78e9c3913a2776943088f35142afe3ffef056
Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: https://review.coreboot.org/18197
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
src/mainboard/google/eve/bootblock.c