mb/google/zork: Initialize the backlight in the OS

This fix needs to go into ACPI in the long-term, but this
should suffice in the short-term.

BUG=b:158087989
TEST=Boot berknip, verify backlight is enabled.  Test suspend
& resume sequence, backlight is still enabled.
BRANCH=Zork


Signed-off-by: Martin Roth <martinroth@chromium.org>
Change-Id: I6ecc3c9e397c9756a78e480d3f639c507879a0ea
Reviewed-on: https://review.coreboot.org/c/coreboot/+/45854
Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com>
Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Martin Roth 2020-09-29 17:04:16 -06:00 committed by Paul Fagerburg
parent 5ea556eeb0
commit 0cf0849cff
1 changed files with 6 additions and 0 deletions

View File

@ -33,5 +33,11 @@ int mainboard_smi_apmc(u8 apmc)
if (CONFIG(EC_GOOGLE_CHROMEEC))
chromeec_smi_apmc(apmc, MAINBOARD_EC_SCI_EVENTS,
MAINBOARD_EC_SMI_EVENTS);
/* Temporary fix - Needs to go into ACPI instead */
/* Turn on the backlight when we go to ACPI mode */
if (apmc == APM_CNT_ACPI_ENABLE)
gpio_set(GPIO_85, 0);
return 0;
}