mmc: Tighten some mmc driver dependencies

A large number of mmc drivers cannot build without access to some
platform specific header files. Express those requirements in Kconfig as
well.

Signed-off-by: Tom Rini <trini@konsulko.com>
Acked-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
This commit is contained in:
Tom Rini 2025-07-11 09:16:07 -06:00
parent 1d2723731b
commit f57b4a94c5

View File

@ -284,7 +284,7 @@ config MMC_DW_K3
config MMC_DW_ROCKCHIP config MMC_DW_ROCKCHIP
bool "Rockchip SD/MMC controller support" bool "Rockchip SD/MMC controller support"
depends on OF_CONTROL depends on OF_CONTROL && ARCH_ROCKCHIP
depends on MMC_DW depends on MMC_DW
help help
This enables support for the Rockchip SD/MMM controller, which is This enables support for the Rockchip SD/MMM controller, which is
@ -391,6 +391,7 @@ config MVEBU_MMC
config MMC_OMAP_HS config MMC_OMAP_HS
bool "TI OMAP High Speed Multimedia Card Interface support" bool "TI OMAP High Speed Multimedia Card Interface support"
depends on ARCH_KEYSTONE || ARCH_OMAP2PLUS
select DM_REGULATOR_PBIAS if DM_REGULATOR select DM_REGULATOR_PBIAS if DM_REGULATOR
help help
This selects the TI OMAP High Speed Multimedia card Interface. This selects the TI OMAP High Speed Multimedia card Interface.
@ -597,7 +598,7 @@ config MMC_SDHCI_BCM2835
config MMC_SDHCI_BCMSTB config MMC_SDHCI_BCMSTB
tristate "SDHCI support for the BCMSTB SD/MMC Controller" tristate "SDHCI support for the BCMSTB SD/MMC Controller"
depends on MMC_SDHCI depends on MMC_SDHCI && (ARCH_BCMSTB || ARCH_BCM283X)
help help
This selects the Broadcom set-top box SD/MMC controller. This selects the Broadcom set-top box SD/MMC controller.
@ -672,7 +673,7 @@ config MMC_SDHCI_KONA
config MMC_SDHCI_MSM config MMC_SDHCI_MSM
bool "Qualcomm SDHCI controller" bool "Qualcomm SDHCI controller"
depends on MMC_SDHCI depends on MMC_SDHCI && ARCH_SNAPDRAGON
help help
Enables support for SDHCI 2.0 controller present on some Qualcomm Enables support for SDHCI 2.0 controller present on some Qualcomm
Snapdragon devices. This device is compatible with eMMC v4.5 and Snapdragon devices. This device is compatible with eMMC v4.5 and
@ -718,7 +719,7 @@ config MMC_SDHCI_ROCKCHIP
config MMC_SDHCI_S5P config MMC_SDHCI_S5P
bool "SDHCI support on Samsung S5P SoC" bool "SDHCI support on Samsung S5P SoC"
depends on MMC_SDHCI depends on MMC_SDHCI && S5P
help help
This selects the Secure Digital Host Controller Interface (SDHCI) This selects the Secure Digital Host Controller Interface (SDHCI)
on Samsung S5P SoCs. on Samsung S5P SoCs.
@ -740,7 +741,7 @@ config MMC_SDHCI_SNPS
config MMC_SDHCI_STI config MMC_SDHCI_STI
bool "SDHCI support for STMicroelectronics SoC" bool "SDHCI support for STMicroelectronics SoC"
depends on MMC_SDHCI && OF_CONTROL depends on MMC_SDHCI && OF_CONTROL && ARCH_STI
help help
This selects the Secure Digital Host Controller Interface (SDHCI) This selects the Secure Digital Host Controller Interface (SDHCI)
on STMicroelectronics STiH410 SoC. on STMicroelectronics STiH410 SoC.
@ -794,6 +795,7 @@ config TEGRA124_MMC_DISABLE_EXT_LOOPBACK
config MMC_SDHCI_ZYNQ config MMC_SDHCI_ZYNQ
bool "Arasan SDHCI controller support" bool "Arasan SDHCI controller support"
depends on OF_CONTROL depends on OF_CONTROL
depends on ARCH_VERSAL || ARCH_VERSAL_NET || ARCH_VERSAL2 || ARCH_ZYNQ || ARCH_ZYNQMP
depends on MMC_SDHCI depends on MMC_SDHCI
help help
Support for Arasan SDHCI host controller on Zynq/ZynqMP ARM SoCs platform Support for Arasan SDHCI host controller on Zynq/ZynqMP ARM SoCs platform
@ -852,7 +854,7 @@ config GENERIC_ATMEL_MCI
config STM32_SDMMC2 config STM32_SDMMC2
bool "STMicroelectronics STM32H7 SD/MMC Host Controller support" bool "STMicroelectronics STM32H7 SD/MMC Host Controller support"
depends on OF_CONTROL depends on OF_CONTROL && (ARCH_STM32 || ARCH_STM32MP)
help help
This selects support for the SD/MMC controller on STM32H7 SoCs. This selects support for the SD/MMC controller on STM32H7 SoCs.
If you have a board based on such a SoC and with a SD/MMC slot, If you have a board based on such a SoC and with a SD/MMC slot,
@ -886,6 +888,7 @@ config FSL_SDHC_V2_3
config FSL_ESDHC config FSL_ESDHC
bool "Freescale/NXP eSDHC controller support" bool "Freescale/NXP eSDHC controller support"
depends on ARCH_LS1021A || FSL_LSCH2 || FSL_LSCH3 || PPC
select FSL_SDHC_V2_3 if ARCH_P1010 || ARCH_BSC9131 || ARCH_BSC9132 \ select FSL_SDHC_V2_3 if ARCH_P1010 || ARCH_BSC9131 || ARCH_BSC9132 \
|| ARCH_C29X || ARCH_C29X
help help
@ -938,6 +941,7 @@ config ESDHCI_QUIRK_BROKEN_TIMEOUT_VALUE
config FSL_ESDHC_IMX config FSL_ESDHC_IMX
bool "Freescale/NXP i.MX eSDHC controller support" bool "Freescale/NXP i.MX eSDHC controller support"
depends on MACH_IMX
help help
This selects support for the i.MX eSDHC (Enhanced Secure Digital Host This selects support for the i.MX eSDHC (Enhanced Secure Digital Host
Controller) found on numerous Freescale/NXP SoCs. Controller) found on numerous Freescale/NXP SoCs.