]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
mmc: Tighten some mmc driver dependencies
authorTom Rini <trini@konsulko.com>
Fri, 11 Jul 2025 15:16:07 +0000 (09:16 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 17 Jul 2025 17:39:07 +0000 (11:39 -0600)
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>
drivers/mmc/Kconfig

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