summaryrefslogtreecommitdiff
path: root/src/mainboard/google/rex
diff options
context:
space:
mode:
authorIvy Jian <ivy.jian@quanta.corp-partner.google.com>2022-11-11 15:57:49 +0800
committerMartin L Roth <gaumless@gmail.com>2022-11-12 23:09:44 +0000
commit06eb6946d00c921d25b05040b08e3888669d4472 (patch)
tree6baef718535561f74bb7e01b66256338ef580769 /src/mainboard/google/rex
parentea7c727a9402ea0c9012538d3ba0962700e8a5d6 (diff)
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> Reviewed-on: https://review.coreboot.org/c/coreboot/+/69468 Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Reviewed-by: Subrata Banik <subratabanik@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/google/rex')
-rw-r--r--src/mainboard/google/rex/variants/rex0/gpio.c4
1 files changed, 3 insertions, 1 deletions
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);