Ivy Jian has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/69468 )
Change subject: mb/google/rex: Add Write Protect GPIO to cros_gpios ......................................................................
mb/google/rex: Add Write Protect GPIO to cros_gpios
This will enable crossystem to access WP GPIO
BUG=b:258048687 TEST= wpsw_cur in crossystem reads the correct gpio
Change-Id: I67f4a57025064dbf8c691255b0abae9d3fa0dbd3 Signed-off-by: Ivy Jian ivy.jian@quanta.corp-partner.google.com --- M src/mainboard/google/rex/variants/rex0/gpio.c 1 file changed, 18 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/68/69468/1
diff --git a/src/mainboard/google/rex/variants/rex0/gpio.c b/src/mainboard/google/rex/variants/rex0/gpio.c index 541402c..4a5a1dc 100644 --- a/src/mainboard/google/rex/variants/rex0/gpio.c +++ b/src/mainboard/google/rex/variants/rex0/gpio.c @@ -488,6 +488,8 @@ } }
-static const struct cros_gpio cros_gpios[] = {}; +static const struct cros_gpio cros_gpios[] = { + CROS_GPIO_WP_AH(GPIO_PCH_WP, CROS_GPIO_DEVICE_NAME), +};
DECLARE_WEAK_CROS_GPIOS(cros_gpios);