[U-Boot] [PATCH 04/41] Convert CONFIG_CMD_MMC_SPI to Kconfig

Simon Glass sjg at chromium.org
Fri Jul 21 23:11:03 UTC 2017


This converts the following to Kconfig:
   CONFIG_CMD_MMC_SPI

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 cmd/Kconfig                        | 9 +++++++++
 configs/UCP1020_SPIFLASH_defconfig | 1 +
 configs/UCP1020_defconfig          | 1 +
 include/configs/UCP1020.h          | 1 -
 include/configs/am335x_shc.h       | 1 -
 scripts/config_whitelist.txt       | 1 -
 6 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/cmd/Kconfig b/cmd/Kconfig
index a0155b9735..3f12c42fa1 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -754,6 +754,15 @@ config CMD_MFSL
 	  Provides access to Microblaze special purpose register amd FSL,
 	  whatever that is.
 
+config CMD_MMC_SPI
+	bool "mmc_spi - Set up MMC SPI device"
+	help
+	  Provides a way to set up an MMC (Multimedia Card) SPI (Serial
+	  Peripheral Interface) device. The device provides a means of
+	  accessing an MMC device via SPI using a single data line, limited
+	  to 20MHz. It is useful since it reduces the amount of protocol code
+	  required.
+
 endmenu
 
 
diff --git a/configs/UCP1020_SPIFLASH_defconfig b/configs/UCP1020_SPIFLASH_defconfig
index 29bf82a456..868e4041a1 100644
--- a/configs/UCP1020_SPIFLASH_defconfig
+++ b/configs/UCP1020_SPIFLASH_defconfig
@@ -17,6 +17,7 @@ CONFIG_CMD_SPI=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_USB=y
 CONFIG_CMD_GPIO=y
+CONFIG_CMD_MMC_SPI=y
 CONFIG_CMD_DHCP=y
 CONFIG_CMD_MII=y
 CONFIG_CMD_PING=y
diff --git a/configs/UCP1020_defconfig b/configs/UCP1020_defconfig
index dbf073d774..ee40822182 100644
--- a/configs/UCP1020_defconfig
+++ b/configs/UCP1020_defconfig
@@ -17,6 +17,7 @@ CONFIG_CMD_SPI=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_USB=y
 CONFIG_CMD_GPIO=y
+CONFIG_CMD_MMC_SPI=y
 CONFIG_CMD_DHCP=y
 CONFIG_CMD_MII=y
 CONFIG_CMD_PING=y
diff --git a/include/configs/UCP1020.h b/include/configs/UCP1020.h
index 9a7aa81196..81f162526d 100644
--- a/include/configs/UCP1020.h
+++ b/include/configs/UCP1020.h
@@ -442,7 +442,6 @@
 #define CONFIG_FSL_ESDHC
 #define CONFIG_SYS_FSL_ESDHC_ADDR	CONFIG_SYS_MPC85xx_ESDHC_ADDR
 #define CONFIG_MMC_SPI
-#define CONFIG_CMD_MMC_SPI
 #endif
 
 /* Misc Extra Settings */
diff --git a/include/configs/am335x_shc.h b/include/configs/am335x_shc.h
index 247679eee3..3111cfebfb 100644
--- a/include/configs/am335x_shc.h
+++ b/include/configs/am335x_shc.h
@@ -19,7 +19,6 @@
 #undef CONFIG_SPL_AM33XX_ENABLE_RTC32K_OSC
 #undef CONFIG_CMD_EXT4
 #undef CONFIG_CMD_EXT4_WRITE
-#undef CONFIG_CMD_MMC_SPI
 #undef CONFIG_CMD_SPI
 
 #define CONFIG_CMD_CACHE
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
index 3fd2b5f6ab..0e33f65924 100644
--- a/scripts/config_whitelist.txt
+++ b/scripts/config_whitelist.txt
@@ -296,7 +296,6 @@ CONFIG_CM922T_XA10
 CONFIG_CMDLINE_EDITING
 CONFIG_CMDLINE_PS_SUPPORT
 CONFIG_CMDLINE_TAG
-CONFIG_CMD_MMC_SPI
 CONFIG_CMD_MTDPARTS_SPREAD
 CONFIG_CMD_ONENAND
 CONFIG_CMD_PCA953X
-- 
2.14.0.rc0.284.gd933b75aa4-goog



More information about the U-Boot mailing list