]> git.sur5r.net Git - u-boot/commitdiff
mmc: sandbox: rename CONFIG, fix dependency, and use it in Makefile
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Mon, 30 Jan 2017 10:46:50 +0000 (19:46 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 31 Jan 2017 12:50:47 +0000 (21:50 +0900)
[1] Rename CONFIG_SANDBOX_MMC to CONFIG_MMC_SANDBOX for consistency
    I want all MMC driver options prefixed with CONFIG_MMC_.

[2] Fix dependency
    Add necessary depends on to avoid compile error.
    Instead "depends on MMC" is unneeded because this config entry
    resides inside of "if MMC".

[3] Currently, this config symbol is not referenced at all.
    Use it to enable/disable the driver in Makefile.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
configs/sandbox_defconfig
configs/sandbox_spl_defconfig
drivers/mmc/Kconfig
drivers/mmc/Makefile

index 877aa94909a6e18ee764acc2409849d246947652..01f6f5d5c6e75d8cee751b9cb996f4318001a891 100644 (file)
@@ -94,7 +94,7 @@ CONFIG_CROS_EC_SPI=y
 CONFIG_PWRSEQ=y
 CONFIG_SPL_PWRSEQ=y
 CONFIG_I2C_EEPROM=y
-CONFIG_SANDBOX_MMC=y
+CONFIG_MMC_SANDBOX=y
 CONFIG_SPI_FLASH_SANDBOX=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_ATMEL=y
index 0569647d06ab27ed9ade97dcbb4d0df4cf254c72..896b15d6087155daea82d0270029a9c0bacea5cc 100644 (file)
@@ -104,7 +104,7 @@ CONFIG_CROS_EC_SANDBOX=y
 CONFIG_CROS_EC_SPI=y
 CONFIG_PWRSEQ=y
 CONFIG_SPL_PWRSEQ=y
-CONFIG_SANDBOX_MMC=y
+CONFIG_MMC_SANDBOX=y
 CONFIG_SPI_FLASH_SANDBOX=y
 CONFIG_SPI_FLASH=y
 CONFIG_SPI_FLASH_ATMEL=y
index df4913ba7c6b7b517272ccd3bf1f243d48643b8a..97d245e4dc0700e16d5b65cb1eb36ed00d006dde 100644 (file)
@@ -187,9 +187,10 @@ config MMC_UNIPHIER
        help
          This selects support for the SD/MMC Host Controller on UniPhier SoCs.
 
-config SANDBOX_MMC
+config MMC_SANDBOX
        bool "Sandbox MMC support"
-       depends on MMC && SANDBOX
+       depends on SANDBOX
+       depends on BLK && DM_MMC_OPS && OF_CONTROL
        help
          This select a dummy sandbox MMC driver. At present this does nothing
          other than allow sandbox to be build with MMC support. This
index 6af7f79ff85e26b4af59d0e811d96bdafbd214a8..2747deb48800011c46f94158eb98877e3cd09c3e 100644 (file)
@@ -40,11 +40,7 @@ obj-$(CONFIG_X86) += pci_mmc.o
 obj-$(CONFIG_PXA_MMC_GENERIC) += pxa_mmc_gen.o
 obj-$(CONFIG_SUPPORT_EMMC_RPMB) += rpmb.o
 obj-$(CONFIG_S3C_SDI) += s3c_sdi.o
-ifdef CONFIG_BLK
-ifdef CONFIG_GENERIC_MMC
-obj-$(CONFIG_SANDBOX) += sandbox_mmc.o
-endif
-endif
+obj-$(CONFIG_MMC_SANDBOX)              += sandbox_mmc.o
 obj-$(CONFIG_SH_MMCIF) += sh_mmcif.o
 obj-$(CONFIG_SH_SDHI) += sh_sdhi.o
 obj-$(CONFIG_ZYNQ_SDHCI) += zynq_sdhci.o