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 <tr...@konsulko.com>
---
Cc: Peng Fan <peng....@nxp.com>
Cc: Jaehoon Chung <jh80.ch...@samsung.com>
---
 drivers/mmc/Kconfig | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/drivers/mmc/Kconfig b/drivers/mmc/Kconfig
index 123bd3fa3148..4c46df0ffb87 100644
--- a/drivers/mmc/Kconfig
+++ b/drivers/mmc/Kconfig
@@ -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
@@ -382,6 +382,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.
@@ -588,7 +589,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.
 
@@ -653,7 +654,7 @@ config MMC_SDHCI_F_SDH30
 
 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
@@ -699,7 +700,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.
@@ -721,7 +722,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.
@@ -775,6 +776,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
@@ -833,7 +835,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,
@@ -867,6 +869,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
@@ -919,6 +922,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.
-- 
2.43.0

Reply via email to