summaryrefslogtreecommitdiff
path: root/src/mainboard/google/kahlee
diff options
context:
space:
mode:
authorMarc Jones <marcj303@gmail.com>2018-07-14 17:37:30 -0600
committerMarc Jones <marc@marcjonesconsulting.com>2018-07-17 01:57:49 +0000
commit290c4459114473c6dfe9e1184481fb9b7564576e (patch)
tree65a4d41176056ce34554c75efa3e034410654670 /src/mainboard/google/kahlee
parentee03dc2644ffd284847384080616a6a319e31a56 (diff)
downloadcoreboot-290c4459114473c6dfe9e1184481fb9b7564576e.tar.xz
mainboard/google/kahlee: Enable backlight on resume
BUG=b:72694972 TEST=Backlight turns on ChromeOS resume Change-Id: I452e2ea94b508b137cf52301df5d2d1ad5c9ab70 Signed-off-by: Marc Jones <marcj303@gmail.com> Reviewed-on: https://review.coreboot.org/27488 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/mainboard/google/kahlee')
-rw-r--r--src/mainboard/google/kahlee/variants/baseboard/mainboard.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mainboard/google/kahlee/variants/baseboard/mainboard.c b/src/mainboard/google/kahlee/variants/baseboard/mainboard.c
index c873299bf1..54743ef7c1 100644
--- a/src/mainboard/google/kahlee/variants/baseboard/mainboard.c
+++ b/src/mainboard/google/kahlee/variants/baseboard/mainboard.c
@@ -15,6 +15,9 @@
#include <ec/google/chromeec/ec.h>
#include <baseboard/variants.h>
+#include <gpio.h>
+#include <variant/gpio.h>
+
uint8_t variant_board_sku(void)
{
@@ -25,3 +28,11 @@ uint8_t variant_board_sku(void)
return sku;
}
+
+#if IS_ENABLED(CONFIG_HAVE_ACPI_RESUME)
+void variant_mainboard_suspend_resume(void)
+{
+ /* Enable backlight - GPIO 133 active low */
+ gpio_set(GPIO_133, 0);
+}
+#endif