1 /* SPDX-License-Identifier: GPL-2.0-only */
4 #include "../../gpio.h"
6 /* GPIO pins used by coreboot should be initialized in bootblock */
8 static const struct soc_amd_gpio gpio_set_stage_reset
[] = {
10 PAD_GPI(GPIO_12
, PULL_UP
),
12 PAD_GPI(GPIO_17
, PULL_UP
),
14 PAD_GPI(GPIO_18
, PULL_UP
),
15 /* SDIO eMMC power control */
16 PAD_NF(GPIO_22
, EMMC_PWR_CTRL
, PULL_NONE
),
18 PAD_NF(GPIO_26
, PCIE_RST_L
, PULL_NONE
),
20 PAD_NF(GPIO_27
, PCIE_RST1_L
, PULL_NONE
),
22 PAD_NF(GPIO_30
, ESPI_CS_L
, PULL_NONE
),
24 PAD_NF(GPIO_85
, FANOUT0
, PULL_NONE
),
25 /* PC beep to codec */
26 PAD_NF(GPIO_91
, SPKR
, PULL_NONE
),
29 void mainboard_program_early_gpios(void)
31 gpio_configure_pads(gpio_set_stage_reset
, ARRAY_SIZE(gpio_set_stage_reset
));