Shelley Chen has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/57021 )
Change subject: WIP: Herobrine: Configure EC GPIOs ......................................................................
WIP: Herobrine: Configure EC GPIOs
Signed-off-by: Shelley Chen shchen@google.com Change-Id: I2a48660511bdb1f3250f89bf0aa723c46edfa7ec --- M src/mainboard/google/herobrine/board.h M src/mainboard/google/herobrine/chromeos.c 2 files changed, 8 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/21/57021/1
diff --git a/src/mainboard/google/herobrine/board.h b/src/mainboard/google/herobrine/board.h index 77a7d0f..505c096 100644 --- a/src/mainboard/google/herobrine/board.h +++ b/src/mainboard/google/herobrine/board.h @@ -6,6 +6,8 @@ #include <boardid.h> #include <gpio.h>
+#define GPIO_EC_IN_RW GPIO(68) +#define GPIO_AP_EC_INT GPIO(142) #define GPIO_SD_CD_L GPIO(91) #define GPIO_H1_AP_INT GPIO(54)
diff --git a/src/mainboard/google/herobrine/chromeos.c b/src/mainboard/google/herobrine/chromeos.c index 4eb77fc..6237f4f 100644 --- a/src/mainboard/google/herobrine/chromeos.c +++ b/src/mainboard/google/herobrine/chromeos.c @@ -7,6 +7,8 @@
void setup_chromeos_gpios(void) { + gpio_input_pullup(GPIO_EC_IN_RW); + gpio_input_pullup(GPIO_AP_EC_INT); gpio_input_pullup(GPIO_SD_CD_L); gpio_input_irq(GPIO_H1_AP_INT, IRQ_TYPE_RISING_EDGE, GPIO_PULL_UP); } @@ -14,6 +16,10 @@ void fill_lb_gpios(struct lb_gpios *gpios) { struct lb_gpio chromeos_gpios[] = { + {GPIO_EC_IN_RW.addr, ACTIVE_LOW, gpio_get(GPIO_EC_IN_RW), + "EC in RW"}, + {GPIO_AP_EC_INT.addr, ACTIVE_LOW, gpio_get(GPIO_AP_EC_INT), + "EC interrupt"}, {GPIO_SD_CD_L.addr, ACTIVE_LOW, gpio_get(GPIO_SD_CD_L), "SD card detect"}, {GPIO_H1_AP_INT.addr, ACTIVE_HIGH, gpio_get(GPIO_H1_AP_INT),