| 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 | #include <baseboard/gpio.h> |
| 3 | #include <baseboard/variants.h> |
| 4 | #include <commonlib/helpers.h> |
| 5 | #include <gpio.h> |
| 6 | |
| 7 | /* GPIO configuration in ramstage */ |
| 8 | static const struct soc_amd_gpio override_gpio_table[] = { |
| 9 | /* SOC_PEN_DETECT_ODL */ |
| 10 | PAD_NC(GPIO_3), |
| 11 | |
| 12 | /* EN_PWR_WWAN_X */ |
| 13 | PAD_NC(GPIO_8), |
| 14 | |
| 15 | /* SD_AUX_RST_SOC_L */ |
| 16 | PAD_NC(GPIO_27), |
| 17 | |
| 18 | /* WWAN_RST_L */ |
| 19 | PAD_NC(GPIO_42), |
| 20 | |
| 21 | }; |
| 22 | |
| 23 | void variant_override_gpio_table(const struct soc_amd_gpio **gpio, size_t *size) |
| 24 | { |
| 25 | *size = ARRAY_SIZE(override_gpio_table); |
| 26 | *gpio = override_gpio_table; |
| 27 | } |