[coreboot-gerrit] Patch set updated for coreboot: a2adf7d snow: Report the state of the power button GPIO in the coreboot tables.

Gabe Black (gabeblack@chromium.org) gerrit at coreboot.org
Tue Apr 16 06:32:26 CEST 2013


Gabe Black (gabeblack at chromium.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/3097

-gerrit

commit a2adf7d00dca58bb452004eaa2d58d994369736c
Author: Gabe Black <gabeblack at chromium.org>
Date:   Mon Apr 15 19:59:10 2013 -0700

    snow: Report the state of the power button GPIO in the coreboot tables.
    
    Change-Id: Ia7ce2b7342e186c565b92211e3ac15d80ce24b38
    Signed-off-by: Gabe Black <gabeblack at chromium.org>
---
 src/mainboard/google/snow/chromeos.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/mainboard/google/snow/chromeos.c b/src/mainboard/google/snow/chromeos.c
index e9e03aa..0c47458 100644
--- a/src/mainboard/google/snow/chromeos.c
+++ b/src/mainboard/google/snow/chromeos.c
@@ -36,7 +36,8 @@ enum {
 enum {
 	WP_GPIO = 6,
 	RECMODE_GPIO = 0,
-	LID_GPIO = 5
+	LID_GPIO = 5,
+	POWER_GPIO = 3
 };
 
 static struct exynos5_gpio_part1 *gpio_pt1 =
@@ -72,9 +73,10 @@ void fill_lb_gpios(struct lb_gpios *gpios)
 	count++;
 
 	/* Power: virtual GPIO active low */
-	gpios->gpios[count].port = -1;
+	gpios->gpios[count].port = EXYNOS5_GPX1;
 	gpios->gpios[count].polarity = ACTIVE_LOW;
-	gpios->gpios[count].value = 1;
+	gpios->gpios[count].value =
+		s5p_gpio_get_value(&gpio_pt2->x1, POWER_GPIO);
 	strncpy((char *)gpios->gpios[count].name, "power",
 		GPIO_MAX_NAME_LENGTH);
 	count++;



More information about the coreboot-gerrit mailing list