summaryrefslogtreecommitdiff
path: root/src/mainboard/google/poppy/variants/baseboard/gpio.c
diff options
context:
space:
mode:
authorTarun Tuli <taruntuli@google.com>2023-02-22 14:18:00 +0000
committerFelix Held <felix-coreboot@felixheld.de>2023-04-29 02:31:36 +0000
commit39c279acf89ec4cc7b8ca57c2e9f0f4bc897df54 (patch)
tree436cbdd58766967d600dc5bcc1433a12f6586e0d /src/mainboard/google/poppy/variants/baseboard/gpio.c
parent337f38ae0997691815da50376e14c3cce217d76d (diff)
mb/google/poppy: Add support for variant SKU romstage GPIO configs
Add functionality that allows a variant SKU to have a specific set of GPIO configs in romstage (modeled after the existing one in ramstage) BUG=b:245954151 TEST=builds Change-Id: I593a23951306908fadc00e6bc8d9d310f09c5e4b Signed-off-by: Tarun Tuli <taruntuli@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/73211 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Subrata Banik <subratabanik@google.com> Reviewed-by: Shelley Chen <shchen@google.com> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com>
Diffstat (limited to 'src/mainboard/google/poppy/variants/baseboard/gpio.c')
-rw-r--r--src/mainboard/google/poppy/variants/baseboard/gpio.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mainboard/google/poppy/variants/baseboard/gpio.c b/src/mainboard/google/poppy/variants/baseboard/gpio.c
index 9048e29688..ee2b1dc435 100644
--- a/src/mainboard/google/poppy/variants/baseboard/gpio.c
+++ b/src/mainboard/google/poppy/variants/baseboard/gpio.c
@@ -383,6 +383,13 @@ const struct pad_config * __weak
return NULL;
}
+const struct pad_config * __weak
+ variant_romstage_sku_gpio_table(size_t *num)
+{
+ *num = 0;
+ return NULL;
+}
+
static const struct cros_gpio cros_gpios[] = {
CROS_GPIO_REC_AL(CROS_GPIO_VIRTUAL, CROS_GPIO_DEVICE_NAME),
CROS_GPIO_WP_AH(GPIO_PCH_WP, CROS_GPIO_DEVICE_NAME),