[coreboot-gerrit] New patch to review for coreboot: google/reef: Add LID_OPEN gpio to lb_gpios

Furquan Shaikh (furquan@google.com) gerrit at coreboot.org
Mon Jun 6 22:22:24 CEST 2016


Furquan Shaikh (furquan at google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/15082

-gerrit

commit c1a5eba12306075de056e4da98c8da9538588aae
Author: Furquan Shaikh <furquan at google.com>
Date:   Mon Jun 6 13:21:01 2016 -0700

    google/reef: Add LID_OPEN gpio to lb_gpios
    
    This can be later used by payloads(depthcharge) to resample lid open
    gpio.
    
    Change-Id: I8bfc21141cd4988433885dca13f431b165da2000
    Signed-off-by: Furquan Shaikh <furquan at google.com>
---
 src/mainboard/google/reef/chromeos.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/mainboard/google/reef/chromeos.c b/src/mainboard/google/reef/chromeos.c
index 4de6a70..c5da178 100644
--- a/src/mainboard/google/reef/chromeos.c
+++ b/src/mainboard/google/reef/chromeos.c
@@ -22,6 +22,7 @@
 
 #define GPIO_PCH_WP GPIO_75
 #define GPIO_EC_IN_RW GPIO_41
+#define GPIO_LID_OPEN GPIO_67
 
 void fill_lb_gpios(struct lb_gpios *gpios)
 {
@@ -29,7 +30,7 @@ void fill_lb_gpios(struct lb_gpios *gpios)
 		{-1, ACTIVE_HIGH, get_write_protect_state(), "write protect"},
 		{-1, ACTIVE_HIGH, get_recovery_mode_switch(), "recovery"},
 		{-1, ACTIVE_HIGH, get_developer_mode_switch(), "developer"},
-		{-1, ACTIVE_HIGH, get_lid_switch(), "lid"},
+		{GPIO_LID_OPEN, ACTIVE_HIGH, get_lid_switch(), "lid"},
 		{-1, ACTIVE_HIGH, 0, "power"},
 		{-1, ACTIVE_HIGH, gfx_get_init_done(), "oprom"},
 		{GPIO_EC_IN_RW, ACTIVE_HIGH,



More information about the coreboot-gerrit mailing list