From 06eb6946d00c921d25b05040b08e3888669d4472 Mon Sep 17 00:00:00 2001 From: Ivy Jian Date: Fri, 11 Nov 2022 15:57:49 +0800 Subject: [PATCH] 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/69468 Reviewed-by: Eric Lai Reviewed-by: Subrata Banik Tested-by: build bot (Jenkins) --- src/mainboard/google/rex/variants/rex0/gpio.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mainboard/google/rex/variants/rex0/gpio.c b/src/mainboard/google/rex/variants/rex0/gpio.c index c90c0c11f9..d8450ee4df 100644 --- a/src/mainboard/google/rex/variants/rex0/gpio.c +++ b/src/mainboard/google/rex/variants/rex0/gpio.c @@ -492,6 +492,8 @@ const struct pad_config *variant_romstage_gpio_table(size_t *num) } } -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);