Felix Held | 346f391 | 2020-06-27 01:41:21 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
Elyes Haouas | 9aebc19 | 2023-01-30 20:02:03 +0100 | [diff] [blame^] | 3 | #include <gpio.h> |
Felix Held | 346f391 | 2020-06-27 01:41:21 +0200 | [diff] [blame] | 4 | #include "gpio.h" |
| 5 | |
| 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), |
Zheng Bao | 9ca96f3 | 2020-12-15 10:44:16 +0800 | [diff] [blame] | 9 | PAD_NF(GPIO_22, EMMC_PWR_CTRL, PULL_UP), |
Felix Held | 346f391 | 2020-06-27 01:41:21 +0200 | [diff] [blame] | 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), |
| 21 | }; |
| 22 | |
| 23 | /* Don't call this if the board uses the LPC bus. */ |
| 24 | void mainboard_program_emmc_gpios(void) |
| 25 | { |
Felix Held | 7011fa1 | 2021-09-22 16:36:12 +0200 | [diff] [blame] | 26 | gpio_configure_pads(emmc_gpios, ARRAY_SIZE(emmc_gpios)); |
Felix Held | 346f391 | 2020-06-27 01:41:21 +0200 | [diff] [blame] | 27 | } |