mmc: move some SDHCI related options to Kconfig
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 7 Dec 2016 13:10:29 +0000 (22:10 +0900)
committerTom Rini <trini@konsulko.com>
Thu, 29 Dec 2016 18:08:16 +0000 (13:08 -0500)
While I moved the options, I also renamed them so that they are all
prefixed with MMC_SDHCI_.

This commit was created in the following steps.

[1] Rename with the following command
find . -name .git -prune -o ! -path ./scripts/config_whitelist.txt \
-type f -print | xargs sed -i -e '
s/CONFIG_MMC_SDMA/CONFIG_MMC_SDHCI_SDMA/g
s/CONFIG_BCM2835_SDHCI/CONFIG_MMC_SDHCI_BCM2835/g
s/CONFIG_KONA_SDHCI/CONFIG_MMC_SDHCI_KONA/g
s/CONFIG_MV_SDHCI/CONFIG_MMC_SDHCI_MV/g
s/CONFIG_S5P_SDHCI/CONFIG_MMC_SDHCI_S5P/g
s/CONFIG_SPEAR_SDHCI/CONFIG_MMC_SDHCI_SPEAR/g
'

[2] create the Kconfig entries in drivers/mmc/Kconfig

[3] Move the options by the following command
tools/moveconfig.py -y MMC_SDHCI_SDMA MMC_SDHCI_BCM2835 \
MMC_SDHCI_KONA MMC_SDHCI_MV MMC_SDHCI_S5P MMC_SDHCI_SPEAR

[4] Sort drivers/mmc/Makefile for readability

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
54 files changed:
arch/arm/mach-mvebu/cpu.c
board/broadcom/bcm23550_w1d/bcm23550_w1d.c
board/broadcom/bcm28155_ap/bcm28155_ap.c
configs/arndale_defconfig
configs/bayleybay_defconfig
configs/bcm11130_defconfig
configs/bcm11130_nand_defconfig
configs/bcm23550_w1d_defconfig
configs/bcm28155_ap_defconfig
configs/bcm28155_w1d_defconfig
configs/clearfog_defconfig
configs/conga-qeval20-qa3-e3845-internal-uart_defconfig
configs/conga-qeval20-qa3-e3845_defconfig
configs/crownbay_defconfig
configs/db-88f6820-gp_defconfig
configs/dfi-bt700-q7x-151_defconfig
configs/galileo_defconfig
configs/minnowmax_defconfig
configs/odroid-xu3_defconfig
configs/odroid_defconfig
configs/origen_defconfig
configs/peach-pi_defconfig
configs/peach-pit_defconfig
configs/rpi_2_defconfig
configs/rpi_3_32b_defconfig
configs/rpi_3_defconfig
configs/rpi_defconfig
configs/s5p_goni_defconfig
configs/s5pc210_universal_defconfig
configs/smdk5250_defconfig
configs/smdk5420_defconfig
configs/smdkv310_defconfig
configs/snow_defconfig
configs/spring_defconfig
configs/theadorable-x86-dfi-bt700_defconfig
configs/trats2_defconfig
configs/trats_defconfig
drivers/mmc/Kconfig
drivers/mmc/Makefile
drivers/mmc/sdhci.c
include/configs/bayleybay.h
include/configs/bcm23550_w1d.h
include/configs/bcm28155_ap.h
include/configs/clearfog.h
include/configs/conga-qeval20-qa3-e3845.h
include/configs/crownbay.h
include/configs/db-88f6820-gp.h
include/configs/dfi-bt700.h
include/configs/exynos-common.h
include/configs/exynos4-common.h
include/configs/galileo.h
include/configs/minnowmax.h
include/configs/rpi.h
include/configs/s5p_goni.h

index 5eb2a398d14c51bafa7f6b800b90d235c995e551..14457317ce7660c1dfda7ad05b8fb1a6322bd2ca 100644 (file)
@@ -475,7 +475,7 @@ int arch_misc_init(void)
 }
 #endif /* CONFIG_ARCH_MISC_INIT */
 
-#ifdef CONFIG_MV_SDHCI
+#ifdef CONFIG_MMC_SDHCI_MV
 int board_mmc_init(bd_t *bis)
 {
        mv_sdh_init(MVEBU_SDIO_BASE, 0, 0,
index 0cb059f7480595b0a341307625cf0c3150ac0334..533e99ece681f3b3230b36a1f1bb3f8e39deffa9 100644 (file)
@@ -68,7 +68,7 @@ void dram_init_banksize(void)
        gd->bd->bi_dram[0].size = gd->ram_size;
 }
 
-#ifdef CONFIG_KONA_SDHCI
+#ifdef CONFIG_MMC_SDHCI_KONA
 /*
  * mmc_init - Initializes mmc
  */
index b3a4a4144d651ea12ea28484ba5c8e6559e88e34..b8688129724ba59c17053c008d19aaf8f349ad98 100644 (file)
@@ -75,7 +75,7 @@ void dram_init_banksize(void)
        gd->bd->bi_dram[0].size = gd->ram_size;
 }
 
-#ifdef CONFIG_KONA_SDHCI
+#ifdef CONFIG_MMC_SDHCI_KONA
 /*
  * mmc_init - Initializes mmc
  */
index a6eac81d091d1cdfd1980870a06a0ae06f478e10..cdfb73996fb30685a9cdb93fb9f774749301d28a 100644 (file)
@@ -23,6 +23,7 @@ CONFIG_CMD_SOUND=y
 CONFIG_CMD_EXT4_WRITE=y
 CONFIG_DM_I2C_COMPAT=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_S5P=y
 CONFIG_SOUND=y
 CONFIG_I2S=y
 CONFIG_I2S_SAMSUNG=y
index 6be1795702ef581023c0c9100f3af1b8c942674d..63d17b19f0b7981ca12e23deba21db9701b4998a 100644 (file)
@@ -42,6 +42,7 @@ CONFIG_REGMAP=y
 CONFIG_SYSCON=y
 CONFIG_CPU=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_SDMA=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_GIGADEVICE=y
 CONFIG_SPI_FLASH_MACRONIX=y
index a1a96781da54447371b22522209fa0fbf4cc2af5..bf2f1f7d736f261b08423e42a3840f9c85d302ed 100644 (file)
@@ -19,6 +19,8 @@ CONFIG_CMD_GPIO=y
 CONFIG_CMD_CACHE=y
 CONFIG_CMD_FAT=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_SDMA=y
+CONFIG_MMC_SDHCI_KONA=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
index 8493d1b8758d3ff75b7c839284e872cc19e935c0..7df4a52827aef7120c0f9cfe55a37f16fc75d652 100644 (file)
@@ -19,6 +19,8 @@ CONFIG_CMD_GPIO=y
 CONFIG_CMD_CACHE=y
 CONFIG_CMD_FAT=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_SDMA=y
+CONFIG_MMC_SDHCI_KONA=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
index 121372e39ec4bd8950e1fe9392faae14032b8c7b..4c7709c6a34116ae507a0c74ee9c0e86d521f64c 100644 (file)
@@ -25,6 +25,8 @@ CONFIG_CMD_GPIO=y
 CONFIG_CMD_CACHE=y
 CONFIG_CMD_FAT=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_SDMA=y
+CONFIG_MMC_SDHCI_KONA=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
index 173bfba7bf57a085f7352560fcac1264c115d945..3325a4da60a041f5fa6a5ca8820ee16900c52362 100644 (file)
@@ -26,6 +26,8 @@ CONFIG_CMD_GPIO=y
 CONFIG_CMD_CACHE=y
 CONFIG_CMD_FAT=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_SDMA=y
+CONFIG_MMC_SDHCI_KONA=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
index d5bb16607ae341564d26792dc9e9b320476500f5..b161d3836aa98a27aaeaece6cf4409fc1b916b5e 100644 (file)
@@ -20,6 +20,8 @@ CONFIG_CMD_GPIO=y
 CONFIG_CMD_CACHE=y
 CONFIG_CMD_FAT=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_SDMA=y
+CONFIG_MMC_SDHCI_KONA=y
 CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
index 2028568e19da59849e52ad7dbcdca295ecb57906..458780721f7bc34785cd10275e56cc75d358896a 100644 (file)
@@ -36,6 +36,8 @@ CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_SPL_OF_TRANSLATE=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_SDMA=y
+CONFIG_MMC_SDHCI_MV=y
 CONFIG_SPI_FLASH=y
 CONFIG_PCI=y
 CONFIG_DEBUG_UART=y
index a468e1355403daf25b759663b8d5242a13a36378..812f51650f0a150205131428077601697006424c 100644 (file)
@@ -46,6 +46,7 @@ CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_INTEL=y
 CONFIG_WINBOND_W83627=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_SDMA=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_GIGADEVICE=y
 CONFIG_SPI_FLASH_MACRONIX=y
index 515d60ae1c4da14019e7d89e9c2b24ab9d8133e4..cff6cc2a720eac7ca7f890d218ad9e2ca119ec06 100644 (file)
@@ -45,6 +45,7 @@ CONFIG_DM_I2C=y
 CONFIG_SYS_I2C_INTEL=y
 CONFIG_WINBOND_W83627=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_SDMA=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_GIGADEVICE=y
 CONFIG_SPI_FLASH_MACRONIX=y
index 0ff8a2d32e1d5b9ec768a2e8a804d8bfe80d2ec8..784c1b333743ce1776dc7bc74328f17116c9835c 100644 (file)
@@ -34,6 +34,7 @@ CONFIG_REGMAP=y
 CONFIG_SYSCON=y
 CONFIG_CPU=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_SDMA=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_GIGADEVICE=y
 CONFIG_SPI_FLASH_MACRONIX=y
index cd2149d2f7c91c65751e1e3a17869566a183a585..bcc312855ac53281ac403cf6144b7dd3ca1b7a5c 100644 (file)
@@ -33,6 +33,8 @@ CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_SPL_OF_TRANSLATE=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_SDMA=y
+CONFIG_MMC_SDHCI_MV=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_MACRONIX=y
 CONFIG_SPI_FLASH_STMICRO=y
index 84f05594b71279f9db5accf37df7eaed2b79de06..b7eb0061da77cbc99bd6a0f980b39d3fce2735f0 100644 (file)
@@ -43,6 +43,7 @@ CONFIG_CPU=y
 CONFIG_DM_I2C=y
 CONFIG_NUVOTON_NCT6102D=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_SDMA=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_GIGADEVICE=y
 CONFIG_SPI_FLASH_MACRONIX=y
index ca08a9b057fe4e0816c042af0f0be0603298c84f..7da870f03b662b879bd44b9d8ccd242b4ba5a64b 100644 (file)
@@ -38,6 +38,7 @@ CONFIG_REGMAP=y
 CONFIG_SYSCON=y
 CONFIG_CPU=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_SDMA=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_GIGADEVICE=y
 CONFIG_SPI_FLASH_MACRONIX=y
index 4b4c5f2754fe88b92491b1acda6ab9d10d9a22cd..f7ac94d389faffaa884c68e3ee0b22f527aa3d08 100644 (file)
@@ -42,6 +42,7 @@ CONFIG_REGMAP=y
 CONFIG_SYSCON=y
 CONFIG_CPU=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_SDMA=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_GIGADEVICE=y
 CONFIG_SPI_FLASH_MACRONIX=y
index 3dd0268dd2dfbc27b3d6f7363f2924ce55fac6f2..a6ec2ee20c879a0ae9bed2e96024af4ca5ff894d 100644 (file)
@@ -27,6 +27,7 @@ CONFIG_ADC_EXYNOS=y
 CONFIG_DFU_MMC=y
 CONFIG_DM_I2C_COMPAT=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_S5P=y
 CONFIG_DM_PMIC=y
 CONFIG_PMIC_S2MPS11=y
 CONFIG_DM_REGULATOR=y
index 66391b49caf7c3adc2f603bfddd436b80e8896b8..e12208cf3e1c99f40d09430df47e684bf4e1be7b 100644 (file)
@@ -37,6 +37,8 @@ CONFIG_OF_CONTROL=y
 CONFIG_DFU_MMC=y
 CONFIG_DM_I2C_COMPAT=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_SDMA=y
+CONFIG_MMC_SDHCI_S5P=y
 CONFIG_DM_PMIC=y
 CONFIG_DM_PMIC_MAX77686=y
 CONFIG_DM_REGULATOR=y
index 13ba60c9fb180282a68006b81f76d3c271cbf5e6..0dcc9e883990ad096f340e31bcefdee918ad1142 100644 (file)
@@ -30,6 +30,8 @@ CONFIG_CMD_FS_GENERIC=y
 CONFIG_OF_CONTROL=y
 CONFIG_DFU_MMC=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_SDMA=y
+CONFIG_MMC_SDHCI_S5P=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
index d5e11bf0412f1fb23a799c538d6d9a110f7cf175..ef02118421389c154ca21c7e277c2a7dafef9588 100644 (file)
@@ -33,6 +33,7 @@ CONFIG_CROS_EC_KEYB=y
 CONFIG_CROS_EC=y
 CONFIG_CROS_EC_SPI=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_S5P=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_GIGADEVICE=y
 CONFIG_SPI_FLASH_WINBOND=y
index d71172dfed8a99a970bb395f2c64e8397737d634..14fe00eb2a4d8d0ed23da67e62f58688a7ab5274 100644 (file)
@@ -33,6 +33,7 @@ CONFIG_CROS_EC_KEYB=y
 CONFIG_CROS_EC=y
 CONFIG_CROS_EC_SPI=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_S5P=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_GIGADEVICE=y
 CONFIG_SPI_FLASH_WINBOND=y
index da43b392d0f5ad427182da7072965c266d3b6524..9d669c92e42535ceb3f382e5ec93a164c9eb52b5 100644 (file)
@@ -15,6 +15,7 @@ CONFIG_CMD_USB=y
 CONFIG_CMD_GPIO=y
 CONFIG_OF_EMBED=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_BCM2835=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_KEYBOARD=y
index 991e5debffaa4a621f400fef8a877aba5e311fdd..d0f7beaa0b3e371c982b0e584584d8563aa16fea 100644 (file)
@@ -16,6 +16,7 @@ CONFIG_CMD_USB=y
 CONFIG_CMD_GPIO=y
 CONFIG_OF_EMBED=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_BCM2835=y
 # CONFIG_REQUIRE_SERIAL_CONSOLE is not set
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
index a4c7f69477ef4ebefa9d6d74cb98b55c34010ddf..ce28c312832efe9f4e2d1a9c174be6f5b2f3e64d 100644 (file)
@@ -16,6 +16,7 @@ CONFIG_CMD_USB=y
 CONFIG_CMD_GPIO=y
 CONFIG_OF_EMBED=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_BCM2835=y
 # CONFIG_REQUIRE_SERIAL_CONSOLE is not set
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
index e5cd9f8b4e1b2dc5b9708eed6d643215264df8ce..4a90ca8348612f188ed03516cf06c9fcb0c81780 100644 (file)
@@ -15,6 +15,7 @@ CONFIG_CMD_USB=y
 CONFIG_CMD_GPIO=y
 CONFIG_OF_EMBED=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_BCM2835=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_USB_KEYBOARD=y
index 1b39f89a87344f35cf03d922d692983505b4efcb..f716c385a11e113eaaeea5c299da04e85d4e2826 100644 (file)
@@ -26,6 +26,7 @@ CONFIG_DM_I2C_GPIO=y
 CONFIG_DM_PMIC=y
 CONFIG_DM_PMIC_MAX8998=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_S5P=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
 CONFIG_USB_GADGET_DWC2_OTG=y
index 9b6f902ff5b2617b7e59a16b43318bdd2774923a..b6cefb132af0361ac2df3b8e5690453c1a4f0607 100644 (file)
@@ -30,6 +30,8 @@ CONFIG_CMD_FS_GENERIC=y
 CONFIG_OF_CONTROL=y
 CONFIG_DFU_MMC=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_SDMA=y
+CONFIG_MMC_SDHCI_S5P=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
index 3c701202aae57880e5100b3d30974e1604f6b414..b785efe3061b3a26caf580aeffbf211f08f0a3e1 100644 (file)
@@ -27,6 +27,7 @@ CONFIG_CMD_REGULATOR=y
 CONFIG_CMD_EXT4_WRITE=y
 CONFIG_DM_I2C_COMPAT=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_S5P=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_GIGADEVICE=y
 CONFIG_SPI_FLASH_WINBOND=y
index 5bc793ce9a7e28b929e43ae7a1e02727493db627..daa46d482cc0748152d0fcee6feca52d05021bd6 100644 (file)
@@ -24,6 +24,7 @@ CONFIG_CMD_TIME=y
 CONFIG_CMD_EXT4_WRITE=y
 CONFIG_DM_I2C_COMPAT=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_S5P=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_GIGADEVICE=y
 CONFIG_SPI_FLASH_WINBOND=y
index 6347e973492ac0335491c4b91cfdc41f958df6c1..a75a1f0733c183f4604d2bbf0104ac59de288138 100644 (file)
@@ -23,5 +23,7 @@ CONFIG_CMD_EXT4_WRITE=y
 CONFIG_CMD_FAT=y
 CONFIG_CMD_FS_GENERIC=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_SDMA=y
+CONFIG_MMC_SDHCI_S5P=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
index dbb6006e5bcb87fbdf49dcf1362ba56e7c597192..47b498b6b2d9c32225b43651eb539120784a0f4c 100644 (file)
@@ -34,6 +34,7 @@ CONFIG_CROS_EC_KEYB=y
 CONFIG_CROS_EC=y
 CONFIG_CROS_EC_I2C=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_S5P=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_GIGADEVICE=y
 CONFIG_SPI_FLASH_WINBOND=y
index 27e66ec4a4525d0281b1a6fc861c679614cc45be..4a782c80da8f99eee816a3c7d2f071e4429a9709 100644 (file)
@@ -34,6 +34,7 @@ CONFIG_CROS_EC_KEYB=y
 CONFIG_CROS_EC=y
 CONFIG_CROS_EC_I2C=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_S5P=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_GIGADEVICE=y
 CONFIG_SPI_FLASH_WINBOND=y
index c28357e657e20e0a4fad53869b6e5520036c7b30..f3c2c86367ec9b4de5dc0154f2ea476ac2ac31a6 100644 (file)
@@ -43,6 +43,7 @@ CONFIG_CPU=y
 CONFIG_DM_I2C=y
 CONFIG_NUVOTON_NCT6102D=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_SDMA=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_GIGADEVICE=y
 CONFIG_SPI_FLASH_MACRONIX=y
index b6923bc9eed4b8c7e59e51206e7ed706c86c7dc5..9e8820167d9b802f7692553bea7bd91cd9db5bbd 100644 (file)
@@ -33,6 +33,8 @@ CONFIG_CMD_FS_GENERIC=y
 CONFIG_OF_CONTROL=y
 CONFIG_DFU_MMC=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_SDMA=y
+CONFIG_MMC_SDHCI_S5P=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
index 352750d295d94c011be978031c64ed99d84f67e8..92cf3f7ae00492552b09a48520699b54fc1c358a 100644 (file)
@@ -32,6 +32,8 @@ CONFIG_CMD_FS_GENERIC=y
 CONFIG_OF_CONTROL=y
 CONFIG_DFU_MMC=y
 CONFIG_MMC_SDHCI=y
+CONFIG_MMC_SDHCI_SDMA=y
+CONFIG_MMC_SDHCI_S5P=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
index 7d7ef370d4e2b166e5e0938162156c4bb6514a55..cfb4e147415c02eaf6f47ee04fb9241be70932e2 100644 (file)
@@ -132,6 +132,70 @@ config MMC_SDHCI
 
          If unsure, say N.
 
+config MMC_SDHCI_SDMA
+       bool "Support SDHCI SDMA"
+       depends on MMC_SDHCI
+       help
+         This enables support for the SDMA (Single Operation DMA) defined
+         in the SD Host Controller Standard Specification Version 1.00 .
+
+config MMC_SDHCI_BCM2835
+       tristate "SDHCI support for the BCM2835 SD/MMC Controller"
+       depends on ARCH_BCM283X
+       depends on MMC_SDHCI
+       help
+         This selects the BCM2835 SD/MMC controller.
+
+         If you have a BCM2835 platform with SD or MMC devices,
+         say Y here.
+
+         If unsure, say N.
+
+config MMC_SDHCI_KONA
+       bool "SDHCI support on Broadcom KONA platform"
+       depends on MMC_SDHCI
+       help
+         This selects the Broadcom Kona Secure Digital Host Controller
+         Interface(SDHCI) support.
+         This is used in Broadcom mobile SoCs.
+
+         If you have a controller with this interface, say Y here.
+
+config MMC_SDHCI_MV
+       bool "SDHCI support on Marvell platform"
+       depends on ARCH_MVEBU
+       depends on MMC_SDHCI
+       help
+         This selects the Secure Digital Host Controller Interface on
+         Marvell platform.
+
+         If you have a controller with this interface, say Y here.
+
+         If unsure, say N.
+
+config MMC_SDHCI_S5P
+       bool "SDHCI support on Samsung S5P SoC"
+       depends on MMC_SDHCI
+       help
+         This selects the Secure Digital Host Controller Interface (SDHCI)
+         on Samsung S5P SoCs.
+
+         If you have a controller with this interface, say Y here.
+
+         If unsure, say N.
+
+config MMC_SDHCI_SPEAR
+       bool "SDHCI support on ST SPEAr platform"
+       depends on MMC_SDHCI
+       help
+         This selects the Secure Digital Host Controller Interface (SDHCI)
+         often referrered to as the HSMMC block in some of the ST SPEAR range
+         of SoC
+
+         If you have a controller with this interface, say Y here.
+
+         If unsure, say N.
+
 endif
 
 endmenu
index dd88f7c77f94405ad2c1ae531402bf756f157c5f..2b136ea21e1362ecb79ae46758b4c44b9bf10a79 100644 (file)
@@ -15,7 +15,6 @@ endif
 
 obj-$(CONFIG_ARM_PL180_MMCI) += arm_pl180_mmci.o
 obj-$(CONFIG_ATMEL_SDHCI) += atmel_sdhci.o
-obj-$(CONFIG_BCM2835_SDHCI) += bcm2835_sdhci.o
 obj-$(CONFIG_BFIN_SDH) += bfin_sdh.o
 obj-$(CONFIG_DAVINCI_MMC) += davinci_mmc.o
 obj-$(CONFIG_DWMMC) += dw_mmc.o
@@ -29,10 +28,8 @@ ifdef CONFIG_SUPPORT_EMMC_BOOT
 obj-$(CONFIG_GENERIC_MMC) += mmc_boot.o
 endif
 obj-$(CONFIG_GENERIC_ATMEL_MCI) += gen_atmel_mci.o
-obj-$(CONFIG_KONA_SDHCI) += kona_sdhci.o
 obj-$(CONFIG_MMC_SPI) += mmc_spi.o
 obj-$(CONFIG_MMC_SUNXI) += sunxi_mmc.o
-obj-$(CONFIG_MV_SDHCI) += mv_sdhci.o
 obj-$(CONFIG_MVEBU_MMC) += mvebu_mmc.o
 obj-$(CONFIG_MXC_MMC) += mxcmmc.o
 obj-$(CONFIG_MXS_MMC) += mxsmmc.o
@@ -42,13 +39,11 @@ obj-$(CONFIG_PXA_MMC_GENERIC) += pxa_mmc_gen.o
 obj-$(CONFIG_ROCKCHIP_DWMMC) += rockchip_dw_mmc.o
 obj-$(CONFIG_SUPPORT_EMMC_RPMB) += rpmb.o
 obj-$(CONFIG_S3C_SDI) += s3c_sdi.o
-obj-$(CONFIG_S5P_SDHCI) += s5p_sdhci.o
 ifdef CONFIG_BLK
 ifdef CONFIG_GENERIC_MMC
 obj-$(CONFIG_SANDBOX) += sandbox_mmc.o
 endif
 endif
-obj-$(CONFIG_MMC_SDHCI) += sdhci.o
 obj-$(CONFIG_SH_MMCIF) += sh_mmcif.o
 obj-$(CONFIG_SH_SDHI) += sh_sdhi.o
 obj-$(CONFIG_SOCFPGA_DWMMC) += socfpga_dw_mmc.o
@@ -65,3 +60,11 @@ obj-$(CONFIG_GENERIC_MMC) += mmc_write.o
 endif
 obj-$(CONFIG_PIC32_SDHCI) += pic32_sdhci.o
 obj-$(CONFIG_MSM_SDHCI) += msm_sdhci.o
+
+# SDHCI
+obj-$(CONFIG_MMC_SDHCI)                        += sdhci.o
+obj-$(CONFIG_MMC_SDHCI_BCM2835)                += bcm2835_sdhci.o
+obj-$(CONFIG_MMC_SDHCI_KONA)           += kona_sdhci.o
+obj-$(CONFIG_MMC_SDHCI_MV)             += mv_sdhci.o
+obj-$(CONFIG_MMC_SDHCI_S5P)            += s5p_sdhci.o
+obj-$(CONFIG_MMC_SDHCI_SPEAR)          += spear_sdhci.o
index 766e9eef84a964df4e4762be5b864dd2743dcabf..cbf5f56221c2db11979705726bcac0f5c2a88270 100644 (file)
@@ -72,7 +72,7 @@ static int sdhci_transfer_data(struct sdhci_host *host, struct mmc_data *data,
                                unsigned int start_addr)
 {
        unsigned int stat, rdy, mask, timeout, block = 0;
-#ifdef CONFIG_MMC_SDMA
+#ifdef CONFIG_MMC_SDHCI_SDMA
        unsigned char ctrl;
        ctrl = sdhci_readb(host, SDHCI_HOST_CONTROL);
        ctrl &= ~SDHCI_CTRL_DMA_MASK;
@@ -98,7 +98,7 @@ static int sdhci_transfer_data(struct sdhci_host *host, struct mmc_data *data,
                        if (++block >= data->blocks)
                                break;
                }
-#ifdef CONFIG_MMC_SDMA
+#ifdef CONFIG_MMC_SDHCI_SDMA
                if (stat & SDHCI_INT_DMA_END) {
                        sdhci_writel(host, SDHCI_INT_DMA_END, SDHCI_INT_STATUS);
                        start_addr &= ~(SDHCI_DEFAULT_BOUNDARY_SIZE - 1);
@@ -204,7 +204,7 @@ static int sdhci_send_command(struct mmc *mmc, struct mmc_cmd *cmd,
                if (data->flags == MMC_DATA_READ)
                        mode |= SDHCI_TRNS_READ;
 
-#ifdef CONFIG_MMC_SDMA
+#ifdef CONFIG_MMC_SDHCI_SDMA
                if (data->flags == MMC_DATA_READ)
                        start_addr = (unsigned long)data->dest;
                else
@@ -241,7 +241,7 @@ static int sdhci_send_command(struct mmc *mmc, struct mmc_cmd *cmd,
        }
 
        sdhci_writel(host, cmd->cmdarg, SDHCI_ARGUMENT);
-#ifdef CONFIG_MMC_SDMA
+#ifdef CONFIG_MMC_SDHCI_SDMA
        trans_bytes = ALIGN(trans_bytes, CONFIG_SYS_CACHELINE_SIZE);
        flush_cache(start_addr, trans_bytes);
 #endif
@@ -540,7 +540,7 @@ int sdhci_setup_cfg(struct mmc_config *cfg, struct sdhci_host *host,
 
        caps = sdhci_readl(host, SDHCI_CAPABILITIES);
 
-#ifdef CONFIG_MMC_SDMA
+#ifdef CONFIG_MMC_SDHCI_SDMA
        if (!(caps & SDHCI_CAN_DO_SDMA)) {
                printf("%s: Your controller doesn't support SDMA!!\n",
                       __func__);
index 51d6ce0777d2a1f9ea092e6daf232f9ccfd1abba..89260475e7aa9802f315fdb2f988e3462e77b04c 100644 (file)
@@ -25,7 +25,6 @@
        {PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SATA_ALT}
 
 #define CONFIG_GENERIC_MMC
-#define CONFIG_MMC_SDMA
 
 /* Environment configuration */
 #define CONFIG_ENV_SECT_SIZE           0x1000
index 68212a8983ea3c9d5d4f8aafea2a4567c85e83b3..8f062e260f244e4f07306ac6ecc684d736c3c04b 100644 (file)
@@ -31,8 +31,6 @@
 #define CONFIG_KONA_GPIO
 
 /* MMC/SD Driver */
-#define CONFIG_MMC_SDMA
-#define CONFIG_KONA_SDHCI
 #define CONFIG_GENERIC_MMC
 
 #define CONFIG_SYS_SDIO_BASE0 SDIO1_BASE_ADDR
index 6fd0417c6dc0338fb493cd5ee46a80b67acc4bfc..0882531509c145af361f839ebadc70affaa13760 100644 (file)
@@ -30,8 +30,6 @@
 #define CONFIG_KONA_GPIO
 
 /* MMC/SD Driver */
-#define CONFIG_MMC_SDMA
-#define CONFIG_KONA_SDHCI
 #define CONFIG_GENERIC_MMC
 
 #define CONFIG_SYS_SDIO_BASE0 SDIO1_BASE_ADDR
index 0a5171f669ec7740ca8445fdd3ebfbf020f6c130..e520b1a735420f1cb6b6100d22ed991078d59dcc 100644 (file)
@@ -43,9 +43,7 @@
 /*
  * SDIO/MMC Card Configuration
  */
-#define CONFIG_MMC_SDMA
 #define CONFIG_GENERIC_MMC
-#define CONFIG_MV_SDHCI
 #define CONFIG_SYS_MMC_BASE            MVEBU_SDIO_BASE
 
 /* Partition support */
index f50b2a4c2030bbf0d9a409b8d6e43a178a51d8d2..b28a1f2254b7dab97878fc97b339220d918f1fd6 100644 (file)
@@ -28,7 +28,6 @@
        {PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SATA_ALT}
 
 #define CONFIG_GENERIC_MMC
-#define CONFIG_MMC_SDMA
 
 #undef CONFIG_USB_MAX_CONTROLLER_COUNT
 #define CONFIG_USB_MAX_CONTROLLER_COUNT                1
index 8f67d146751cc701449cba5b7cbf3cd15f60ecf6..cef2fd72dbbc4a8f1308e67eafb8a894462d0080 100644 (file)
@@ -27,7 +27,6 @@
        {PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_TCF_SATA}
 
 #define CONFIG_GENERIC_MMC
-#define CONFIG_MMC_SDMA
 
 /* Environment configuration */
 #define CONFIG_ENV_SECT_SIZE           0x1000
index 18a3f3688843b464572f0d47253d9b3be6f0f189..519f2d3de0ed014ecc424575933e550900aede36 100644 (file)
@@ -43,9 +43,7 @@
 /*
  * SDIO/MMC Card Configuration
  */
-#define CONFIG_MMC_SDMA
 #define CONFIG_GENERIC_MMC
-#define CONFIG_MV_SDHCI
 #define CONFIG_SYS_MMC_BASE            MVEBU_SDIO_BASE
 
 /*
index 779e834d9582012171b91c30b5942fb8abc56138..727baae061e27e4277c35c17b347b5f215828882 100644 (file)
@@ -30,7 +30,6 @@
        {PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SATA_ALT}
 
 #define CONFIG_GENERIC_MMC
-#define CONFIG_MMC_SDMA
 
 #undef CONFIG_USB_MAX_CONTROLLER_COUNT
 #define CONFIG_USB_MAX_CONTROLLER_COUNT                1
index 8f68f21ff84ea3f88f3d52af5e09402572c7a65f..9328a222fe842262bab6c41558db18f4843105b3 100644 (file)
@@ -39,7 +39,6 @@
 
 /* SD/MMC configuration */
 #define CONFIG_GENERIC_MMC
-#define CONFIG_S5P_SDHCI
 #define CONFIG_DWMMC
 #define CONFIG_EXYNOS_DWMMC
 #define CONFIG_BOUNCE_BUFFER
index 06fde3853cf5df6e0c5f90f318480d74304d2753..ec45640698b1868e17691930632586d6b300072e 100644 (file)
@@ -18,7 +18,6 @@
 #define CONFIG_REVISION_TAG
 
 /* SD/MMC configuration */
-#define CONFIG_MMC_SDMA
 #define CONFIG_MMC_DEFAULT_DEV 0
 
 #undef CONFIG_CMD_ONENAND
index 6109dd7acbbb2d5c708ce3884d315929a8e7b935..26eb12774c3761371bc81a1b5b16f265e318a642 100644 (file)
@@ -31,7 +31,6 @@
 
 /* SD/MMC support */
 #define CONFIG_GENERIC_MMC
-#define CONFIG_MMC_SDMA
 
 /* 10/100M Ethernet support */
 #define CONFIG_DESIGNWARE_ETH
index cc47d5a6d47b462983a72c9c9404d45e85886fbe..5b17fd7f2c9eed17ebb15be5409cae00836caed4 100644 (file)
@@ -28,7 +28,6 @@
        {PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_VALLEYVIEW_SATA_ALT}
 
 #define CONFIG_GENERIC_MMC
-#define CONFIG_MMC_SDMA
 
 #undef CONFIG_USB_MAX_CONTROLLER_COUNT
 #define CONFIG_USB_MAX_CONTROLLER_COUNT                1
index 351e234a1567c6d130b155d5e0eb2e2f8cb768c7..8005ac1ec6ba7e04a332cfe0ca667e3bc40f4569 100644 (file)
@@ -84,7 +84,6 @@
 /* SD/MMC configuration */
 #define CONFIG_GENERIC_MMC
 #define CONFIG_MMC_SDHCI_IO_ACCESSORS
-#define CONFIG_BCM2835_SDHCI
 
 #ifdef CONFIG_CMD_USB
 #define CONFIG_USB_DWC2
index a69f086de5857c1ccbfcd79d91b26d1bbd72f60c..6a61e5cd697edd08b4a0a9a1b7703e2208cb2fab 100644 (file)
@@ -48,7 +48,6 @@
 
 /* MMC */
 #define CONFIG_GENERIC_MMC
-#define CONFIG_S5P_SDHCI
 #define SDHCI_MAX_HOSTS                4
 
 /* PWM */