diff options
Diffstat (limited to 'src/mainboard/google/guybrush')
3 files changed, 4 insertions, 1 deletions
diff --git a/src/mainboard/google/guybrush/chromeos.c b/src/mainboard/google/guybrush/chromeos.c index d2ef97ef91..f12995762f 100644 --- a/src/mainboard/google/guybrush/chromeos.c +++ b/src/mainboard/google/guybrush/chromeos.c @@ -10,6 +10,7 @@ void fill_lb_gpios(struct lb_gpios *gpios) struct lb_gpio chromeos_gpios[] = { {-1, ACTIVE_HIGH, get_lid_switch(), "lid"}, {-1, ACTIVE_HIGH, 0, "power"}, + {GPIO_EC_IN_RW, ACTIVE_HIGH, gpio_get(GPIO_EC_IN_RW), "EC in RW"}, }; lb_add_gpios(gpios, chromeos_gpios, ARRAY_SIZE(chromeos_gpios)); } diff --git a/src/mainboard/google/guybrush/variants/baseboard/gpio.c b/src/mainboard/google/guybrush/variants/baseboard/gpio.c index c73ec188fc..8505f12037 100644 --- a/src/mainboard/google/guybrush/variants/baseboard/gpio.c +++ b/src/mainboard/google/guybrush/variants/baseboard/gpio.c @@ -105,7 +105,7 @@ static const struct soc_amd_gpio base_gpio_table[] = { PAD_GPI(GPIO_89, PULL_NONE), /* HP_INT_ODL */ PAD_GPI(GPIO_90, PULL_NONE), - /* SD_EX_PRSNT_L */ + /* SD_EX_PRSNT_L(Guybrush BoardID 1 only) / EC_IN_RW_OD */ PAD_GPI(GPIO_91, PULL_NONE), /* CLK_REQ0_L */ PAD_NF(GPIO_92, CLK_REQ0_L, PULL_NONE), diff --git a/src/mainboard/google/guybrush/variants/baseboard/include/baseboard/gpio.h b/src/mainboard/google/guybrush/variants/baseboard/include/baseboard/gpio.h index be0fb72ffd..90f4420a59 100644 --- a/src/mainboard/google/guybrush/variants/baseboard/include/baseboard/gpio.h +++ b/src/mainboard/google/guybrush/variants/baseboard/include/baseboard/gpio.h @@ -7,5 +7,7 @@ /* SPI Write protect */ #define CROS_WP_GPIO GPIO_67 +/* GPIO to identify whether EC is in RO or RW */ +#define GPIO_EC_IN_RW GPIO_91 #endif /* __BASEBOARD_GPIO_H__ */ |