1 /* SPDX-License-Identifier: GPL-2.0-only */
6 /* eMMC controller driving either an SD card or eMMC device. */
7 static const struct soc_amd_gpio emmc_gpios
[] = {
8 PAD_NF(GPIO_21
, EMMC_CMD
, PULL_UP
),
9 PAD_NF(GPIO_22
, EMMC_PWR_CTRL
, PULL_UP
),
10 PAD_NF(GPIO_68
, EMMC_CD
, PULL_UP
),
11 PAD_NF(GPIO_70
, EMMC_CLK
, PULL_NONE
),
12 PAD_NF(GPIO_104
, EMMC_DATA0
, PULL_UP
),
13 PAD_NF(GPIO_105
, EMMC_DATA1
, PULL_UP
),
14 PAD_NF(GPIO_106
, EMMC_DATA2
, PULL_UP
),
15 PAD_NF(GPIO_107
, EMMC_DATA3
, PULL_NONE
),
16 PAD_NF(GPIO_74
, EMMC_DATA4
, PULL_UP
),
17 PAD_NF(GPIO_75
, EMMC_DATA6
, PULL_UP
),
18 PAD_NF(GPIO_87
, EMMC_DATA7
, PULL_UP
),
19 PAD_NF(GPIO_88
, EMMC_DATA5
, PULL_UP
),
20 PAD_NF(GPIO_109
, EMMC_DS
, PULL_UP
),
23 /* Don't call this if the board uses the LPC bus. */
24 void mainboard_program_emmc_gpios(void)
26 gpio_configure_pads(emmc_gpios
, ARRAY_SIZE(emmc_gpios
));