[coreboot-gerrit] Change in coreboot[master]: mainboard/google/kahlee: Enable backlight on resume

Marc Jones (Code Review) gerrit at coreboot.org
Sun Jul 15 01:46:31 CEST 2018


Marc Jones has uploaded this change for review. ( https://review.coreboot.org/27488


Change subject: mainboard/google/kahlee: Enable backlight on resume
......................................................................

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 at gmail.com>
---
M src/mainboard/google/kahlee/variants/baseboard/mainboard.c
1 file changed, 11 insertions(+), 0 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/88/27488/1

diff --git a/src/mainboard/google/kahlee/variants/baseboard/mainboard.c b/src/mainboard/google/kahlee/variants/baseboard/mainboard.c
index c873299..54743ef 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 @@
 
 	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

-- 
To view, visit https://review.coreboot.org/27488
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I452e2ea94b508b137cf52301df5d2d1ad5c9ab70
Gerrit-Change-Number: 27488
Gerrit-PatchSet: 1
Gerrit-Owner: Marc Jones <marc at marcjonesconsulting.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180714/0569da42/attachment.html>


More information about the coreboot-gerrit mailing list