Martin Roth | 3360862 | 2021-05-20 20:41:18 -0600 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
| 2 | |
| 3 | #include <baseboard/variants.h> |
| 4 | #include <soc/platform_descriptors.h> |
| 5 | |
| 6 | void mb_pre_fspm(void) |
| 7 | { |
| 8 | size_t base_num_gpios, override_num_gpios; |
| 9 | const struct soc_amd_gpio *base_gpios, *override_gpios; |
| 10 | |
Matt DeVillier | 6b8c06d | 2022-11-03 15:47:34 -0500 | [diff] [blame] | 11 | /* Initialize PCIe reset and other romstage GPIOs */ |
| 12 | base_gpios = baseboard_romstage_gpio_table(&base_num_gpios); |
| 13 | override_gpios = variant_romstage_override_gpio_table(&override_num_gpios); |
Martin Roth | 3360862 | 2021-05-20 20:41:18 -0600 | [diff] [blame] | 14 | |
| 15 | gpio_configure_pads_with_override(base_gpios, base_num_gpios, |
| 16 | override_gpios, override_num_gpios); |
Martin Roth | 3360862 | 2021-05-20 20:41:18 -0600 | [diff] [blame] | 17 | } |