diff options
author | Matt DeVillier <matt.devillier@gmail.com> | 2022-12-21 14:12:40 -0600 |
---|---|---|
committer | Martin L Roth <gaumless@gmail.com> | 2023-01-02 20:39:27 +0000 |
commit | 17a07b38a17deec8dc0c332d832b542c741ebbac (patch) | |
tree | 481f61f797614ef29231016fd6fee7a4bb5f9f35 /src/mainboard/google/drallion/variants | |
parent | bfcea14a16eafd4b19fc44b28d6f33d554db5544 (diff) |
mb/google/drallion: Add method to set GPIOs in romstage
Add method variant_romstage_gpio_table() with empty implementation to
be used in a subsequent commit for touchscreen power sequencing.
Call method in romstage to program any GPIOs that may need to be set.
TEST=tested with rest of patch train
Change-Id: I0ad0c18a8b61e59a943a453882bf74762bac4700
Signed-off-by: Matt DeVillier <matt.devillier@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/71190
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/mainboard/google/drallion/variants')
-rw-r--r-- | src/mainboard/google/drallion/variants/drallion/gpio.c | 6 | ||||
-rw-r--r-- | src/mainboard/google/drallion/variants/drallion/include/variant/gpio.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/mainboard/google/drallion/variants/drallion/gpio.c b/src/mainboard/google/drallion/variants/drallion/gpio.c index 6220bf28b7..b008427b7b 100644 --- a/src/mainboard/google/drallion/variants/drallion/gpio.c +++ b/src/mainboard/google/drallion/variants/drallion/gpio.c @@ -249,6 +249,12 @@ const struct pad_config *variant_early_gpio_table(size_t *num) return early_gpio_table; } +const struct pad_config *variant_romstage_gpio_table(size_t *num) +{ + *num = 0; + return NULL; +} + static const struct cros_gpio cros_gpios[] = { CROS_GPIO_REC_AL(GPP_E8, CROS_GPIO_DEVICE_NAME), CROS_GPIO_WP_AH(GPP_E15, CROS_GPIO_DEVICE_NAME), diff --git a/src/mainboard/google/drallion/variants/drallion/include/variant/gpio.h b/src/mainboard/google/drallion/variants/drallion/include/variant/gpio.h index db0b3a9466..ee48fec46b 100644 --- a/src/mainboard/google/drallion/variants/drallion/include/variant/gpio.h +++ b/src/mainboard/google/drallion/variants/drallion/include/variant/gpio.h @@ -28,5 +28,6 @@ const struct pad_config *variant_gpio_table(size_t *num); const struct pad_config *variant_early_gpio_table(size_t *num); +const struct pad_config *variant_romstage_gpio_table(size_t *num); #endif |