diff options
author | Marc Jones <marcj303@gmail.com> | 2018-07-14 17:32:04 -0600 |
---|---|---|
committer | Marc Jones <marc@marcjonesconsulting.com> | 2018-07-17 01:57:34 +0000 |
commit | ee03dc2644ffd284847384080616a6a319e31a56 (patch) | |
tree | 0f45c942662cf562fb6abd110642e4a5716dd627 /src | |
parent | f3dc65951619d50da423daac0523420301af16e9 (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/mainboard/google/kahlee/smihandler.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 <arch/acpi.h> #include <cpu/x86/smm.h> #include <ec/google/chromeec/smm.h> +#include <gpio.h> #include <soc/smi.h> #include <variant/ec.h> +#include <variant/gpio.h> 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; } |