]> git.sur5r.net Git - u-boot/commitdiff
mmc: move MMC_SDHCI_IO_ACCESSORS to Kconfig
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 7 Dec 2016 13:10:30 +0000 (22:10 +0900)
committerTom Rini <trini@konsulko.com>
Thu, 29 Dec 2016 18:08:17 +0000 (13:08 -0500)
This is a user-unconfigurable option that is selected by the
drivers that need to overwrite SDHCI IO memory accessors.
(BCM2835 SDHCI seems the only driver that needs to do so.)

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/Kconfig
include/configs/rpi.h

index cfb4e147415c02eaf6f47ee04fb9241be70932e2..2ba1254d70e299241a03c8df7d1597e0943b7a7a 100644 (file)
@@ -132,6 +132,13 @@ config MMC_SDHCI
 
          If unsure, say N.
 
+config MMC_SDHCI_IO_ACCESSORS
+       bool
+       depends on MMC_SDHCI
+       help
+         This is silent Kconfig symbol that is selected by the drivers that
+         need to overwrite SDHCI IO memory accessors.
+
 config MMC_SDHCI_SDMA
        bool "Support SDHCI SDMA"
        depends on MMC_SDHCI
@@ -143,6 +150,7 @@ config MMC_SDHCI_BCM2835
        tristate "SDHCI support for the BCM2835 SD/MMC Controller"
        depends on ARCH_BCM283X
        depends on MMC_SDHCI
+       select MMC_SDHCI_IO_ACCESSORS
        help
          This selects the BCM2835 SD/MMC controller.
 
index 8005ac1ec6ba7e04a332cfe0ca667e3bc40f4569..45d88247afa08c450d681c879615114661178195 100644 (file)
@@ -83,7 +83,6 @@
 
 /* SD/MMC configuration */
 #define CONFIG_GENERIC_MMC
-#define CONFIG_MMC_SDHCI_IO_ACCESSORS
 
 #ifdef CONFIG_CMD_USB
 #define CONFIG_USB_DWC2