Chris Wang | 216d69d | 2021-03-02 22:33:00 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
| 3 | #include <baseboard/variants.h> |
Felix Held | dd73714 | 2021-03-26 00:44:35 +0100 | [diff] [blame] | 4 | #include <soc/fsp.h> |
Matt DeVillier | c429ee1 | 2022-11-11 16:14:33 -0600 | [diff] [blame^] | 5 | #include <soc/platform_descriptors.h> |
Chris Wang | 216d69d | 2021-03-02 22:33:00 +0800 | [diff] [blame] | 6 | |
| 7 | void __weak variant_updm_update(FSP_M_CONFIG *mcfg) {} |
| 8 | |
| 9 | void mainboard_updm_update(FSP_M_CONFIG *mcfg) |
| 10 | { |
| 11 | variant_updm_update(mcfg); |
| 12 | } |
Matt DeVillier | c429ee1 | 2022-11-11 16:14:33 -0600 | [diff] [blame^] | 13 | |
| 14 | void mb_pre_fspm(void) |
| 15 | { |
| 16 | const struct soc_amd_gpio *gpios; |
| 17 | size_t num_gpios; |
| 18 | |
| 19 | gpios = baseboard_romstage_gpio_table(&num_gpios); |
| 20 | gpio_configure_pads(gpios, num_gpios); |
| 21 | } |