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 <marcj303@gmail.com>
Reviewed-on: https://review.coreboot.org/27487
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
Marc Jones 2018-07-14 17:32:04 -06:00 committed by Marc Jones
parent f3dc659516
commit ee03dc2644
1 changed files with 6 additions and 0 deletions

View File

@ -17,8 +17,10 @@
#include <arch/acpi.h> #include <arch/acpi.h>
#include <cpu/x86/smm.h> #include <cpu/x86/smm.h>
#include <ec/google/chromeec/smm.h> #include <ec/google/chromeec/smm.h>
#include <gpio.h>
#include <soc/smi.h> #include <soc/smi.h>
#include <variant/ec.h> #include <variant/ec.h>
#include <variant/gpio.h>
void mainboard_smi_gpi(u32 gpi_sts) void mainboard_smi_gpi(u32 gpi_sts)
{ {
@ -39,5 +41,9 @@ int mainboard_smi_apmc(u8 apmc)
if (IS_ENABLED(CONFIG_EC_GOOGLE_CHROMEEC)) if (IS_ENABLED(CONFIG_EC_GOOGLE_CHROMEEC))
chromeec_smi_apmc(apmc, MAINBOARD_EC_SCI_EVENTS, chromeec_smi_apmc(apmc, MAINBOARD_EC_SCI_EVENTS,
MAINBOARD_EC_SMI_EVENTS); MAINBOARD_EC_SMI_EVENTS);
/* Enable backlight - GPIO active low */
gpio_set(GPIO_133, 0);
return 0; return 0;
} }