diff options
Diffstat (limited to 'src/mainboard/google/guybrush/variants/guybrush/gpio.c')
-rw-r--r-- | src/mainboard/google/guybrush/variants/guybrush/gpio.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/mainboard/google/guybrush/variants/guybrush/gpio.c b/src/mainboard/google/guybrush/variants/guybrush/gpio.c index 05c1542124..e71ed9d57a 100644 --- a/src/mainboard/google/guybrush/variants/guybrush/gpio.c +++ b/src/mainboard/google/guybrush/variants/guybrush/gpio.c @@ -18,6 +18,13 @@ static const struct soc_amd_gpio bid1_gpio_table[] = { PAD_GPI(GPIO_74, PULL_NONE), }; +/* This table is used by guybrush variant with board version < 2. */ +/* Use AUX Reset lines instead of PCIE_RST for Board Version 1 */ +static const struct soc_amd_gpio bid1_early_gpio_table[] = { + /* SD_AUX_RESET_L */ + PAD_GPO(GPIO_70, HIGH), +}; + const struct soc_amd_gpio *variant_override_gpio_table(size_t *size) { uint32_t board_version = board_id(); @@ -30,3 +37,16 @@ const struct soc_amd_gpio *variant_override_gpio_table(size_t *size) return NULL; } + +const struct soc_amd_gpio *variant_early_override_gpio_table(size_t *size) +{ + uint32_t board_version = board_id(); + *size = 0; + + if (board_version < 2) { + *size = ARRAY_SIZE(bid1_early_gpio_table); + return bid1_early_gpio_table; + } + + return NULL; +} |