From ee03dc2644ffd284847384080616a6a319e31a56 Mon Sep 17 00:00:00 2001 From: Marc Jones Date: Sat, 14 Jul 2018 17:32:04 -0600 Subject: mainboard/google/kahlee: Enable backlight in SMI APMC Enable the backlight in the OS callback to SMI for APMC. This keeps the backlight off until the OS is ready to display something. BUG=b:72694972 TEST=Backlight turns on at ChromeOS splash screen Change-Id: Idf32b1a3d45971883571a829a5c0c1f8563bb1f7 Signed-off-by: Marc Jones Reviewed-on: https://review.coreboot.org/27487 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- src/mainboard/google/kahlee/smihandler.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mainboard/google/kahlee') diff --git a/src/mainboard/google/kahlee/smihandler.c b/src/mainboard/google/kahlee/smihandler.c index 62ba2b076d..83757a850d 100644 --- a/src/mainboard/google/kahlee/smihandler.c +++ b/src/mainboard/google/kahlee/smihandler.c @@ -17,8 +17,10 @@ #include #include #include +#include #include #include +#include void mainboard_smi_gpi(u32 gpi_sts) { @@ -39,5 +41,9 @@ int mainboard_smi_apmc(u8 apmc) if (IS_ENABLED(CONFIG_EC_GOOGLE_CHROMEEC)) chromeec_smi_apmc(apmc, MAINBOARD_EC_SCI_EVENTS, MAINBOARD_EC_SMI_EVENTS); + + /* Enable backlight - GPIO active low */ + gpio_set(GPIO_133, 0); + return 0; } -- cgit v1.2.3