Convert CONFIG_CMD_SF_TEST to Kconfig
authorSimon Glass <sjg@chromium.org>
Fri, 4 Aug 2017 22:34:46 +0000 (16:34 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 11 Aug 2017 19:41:56 +0000 (15:41 -0400)
This converts the following to Kconfig:
   CONFIG_CMD_SF_TEST

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
13 files changed:
README
arch/Kconfig
cmd/Kconfig
configs/chromebit_mickey_defconfig
configs/chromebook_jerry_defconfig
configs/chromebook_minnie_defconfig
configs/efi-x86_defconfig
configs/sandbox_defconfig
include/configs/efi-x86.h
include/configs/sandbox.h
include/configs/veyron.h
include/configs/x86-common.h
scripts/config_whitelist.txt

diff --git a/README b/README
index d622acdffc76ab64474964b3ab0f2bf11a87caf6..ca2584934553452d2ee05d549596175f85aacd80 100644 (file)
--- a/README
+++ b/README
@@ -2495,12 +2495,6 @@ The following options need to be configured:
                CONFIG_SF_DEFAULT_MODE          (see include/spi.h)
                CONFIG_SF_DEFAULT_SPEED         in Hz
 
-               CONFIG_CMD_SF_TEST
-
-               Define this option to include a destructive SPI flash
-               test ('sf test').
-
-- SystemACE Support:
                CONFIG_SYSTEMACE
 
                Adding this option adds support for Xilinx SystemACE
index e063ee0d23b273b8a5582f9a609a8550c8aaf498..08f6e7f47d0b5074cc785b36861ea61e4771b454 100644 (file)
@@ -78,6 +78,7 @@ config SANDBOX
        imply LZMA
        imply SCSI
        imply CMD_SATA
+       imply CMD_SF_TEST
 
 config SH
        bool "SuperH architecture"
@@ -111,6 +112,7 @@ config X86
        imply CMD_GETTIME
        imply CMD_IO
        imply CMD_IRQ
+       imply CMD_SF_TEST
 
 config XTENSA
        bool "Xtensa architecture"
index 507e8a3402c2bee52bc90a48173a040eed0d0e81..5ac8389e4202bc3b639e3197f65b9f1d2eaccad4 100644 (file)
@@ -797,6 +797,17 @@ config CMD_SF
        help
          SPI Flash support
 
+config CMD_SF_TEST
+       bool "sf test - Allow testing of SPI flash"
+       help
+         Provides a way to test that SPI flash is working correctly. The
+         test is destructive, in that an area of SPI flash must be provided
+         for the test to use. Performance information is also provided,
+         measuring the performance of reading, writing and erasing in
+         Mbps (Million Bits Per Second). This value should approximately
+         equal the SPI bus speed for a single-bit-wide SPI bus, assuming
+         everything is working properly.
+
 config CMD_SPI
        bool "sspi"
        help
index 01032e733008f24c7c72788189097f43d1e13e1b..b4e727009c143816fc875e440576424e50ba7ee9 100644 (file)
@@ -20,6 +20,7 @@ CONFIG_CMD_SF=y
 CONFIG_CMD_SPI=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_GPIO=y
+CONFIG_CMD_SF_TEST=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_CMD_CACHE=y
 CONFIG_CMD_TIME=y
index b9d4fc9c12a0468f0a2fe7a73b5b1c28c61cba18..8e91db4014f7dae32123ecb3156e35f8cae7ff7f 100644 (file)
@@ -22,6 +22,7 @@ CONFIG_CMD_SF=y
 CONFIG_CMD_SPI=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_GPIO=y
+CONFIG_CMD_SF_TEST=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_CMD_CACHE=y
 CONFIG_CMD_TIME=y
index fb955e46c6df59b4bf04892c888c34bce09d6c96..e512ce1ef8874dc500e0f5fb9f2639eab86ab027 100644 (file)
@@ -21,6 +21,7 @@ CONFIG_CMD_SF=y
 CONFIG_CMD_SPI=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_GPIO=y
+CONFIG_CMD_SF_TEST=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_CMD_CACHE=y
 CONFIG_CMD_TIME=y
index 789c5ce5bfe748662090e1eae6822de7accb5e3e..a23d402deee5c9cbb16dc314b1bde8f7dd48b583 100644 (file)
@@ -11,6 +11,7 @@ CONFIG_HUSH_PARSER=y
 # CONFIG_CMD_IMLS is not set
 CONFIG_CMD_PART=y
 CONFIG_CMD_SF=y
+# CONFIG_CMD_SF_TEST is not set
 CONFIG_CMD_SPI=y
 CONFIG_CMD_USB=y
 CONFIG_CMD_GPIO=y
index a1844d30a28fad3655770299e2e288c2b7e6a096..349d3c727077f14736429b517a782ee63c6092ea 100644 (file)
@@ -41,6 +41,7 @@ CONFIG_CMD_USB=y
 CONFIG_CMD_REMOTEPROC=y
 CONFIG_CMD_GPIO=y
 CONFIG_CMD_PCI=y
+CONFIG_CMD_READ=y
 CONFIG_CMD_TFTPPUT=y
 CONFIG_CMD_TFTPSRV=y
 CONFIG_CMD_RARP=y
@@ -193,6 +194,3 @@ CONFIG_UNIT_TEST=y
 CONFIG_UT_TIME=y
 CONFIG_UT_DM=y
 CONFIG_UT_ENV=y
-CONFIG_CMD_MTDPARTS=y
-CONFIG_CMD_MTDPARTS_SPREAD=y
-CONFIG_CMD_READ=y
index 4a6b66507f3ba005bd99e433cff9cfb1db23c0d9..fa263632a25566da7be46c686025548e2aab6dcc 100644 (file)
@@ -9,8 +9,6 @@
 
 #include <configs/x86-common.h>
 
-#undef CONFIG_CMD_SF_TEST
-
 #undef CONFIG_TPM_TIS_BASE_ADDRESS
 
 #undef CONFIG_SCSI_AHCI
index beb5a124a2d6749bc0fbe1710d32297bf1b7bddb..13777abb4cf25fec8bc6e7047c54b5d07e8fb27c 100644 (file)
@@ -52,7 +52,6 @@
 #define CONFIG_ENV_SIZE                8192
 
 /* SPI - enable all SPI flash types for testing purposes */
-#define CONFIG_CMD_SF_TEST
 
 #define CONFIG_I2C_EDID
 
index 3f236aa13c8ac9a7f0971500bfff386cd11086e6..3a5fc065d87d569c55ecf61caf1d8470132ba732 100644 (file)
@@ -17,8 +17,6 @@
 #define CONFIG_SPL_SPI_LOAD
 #define CONFIG_SPI_FLASH_GIGADEVICE
 
-#define CONFIG_CMD_SF_TEST
-
 #define CONFIG_KEYBOARD
 
 #endif
index f5f7a92b8be8c16ca1d85c006502ef8f991f7792..43af193344b82c2f7579ca6c62392277912bf974 100644 (file)
 /*-----------------------------------------------------------------------
  * FLASH configuration
  */
-#define CONFIG_CMD_SF_TEST
 #define CONFIG_SPI
 
 /*-----------------------------------------------------------------------
index 885253a356f1bbbcb7bf93b7c5f5bb4aff297a9c..cd47dbca63f150dbfc64bb8c99f9d0ec3b819f62 100644 (file)
@@ -293,7 +293,6 @@ CONFIG_CM922T_XA10
 CONFIG_CMDLINE_EDITING
 CONFIG_CMDLINE_PS_SUPPORT
 CONFIG_CMDLINE_TAG
-CONFIG_CMD_SF_TEST
 CONFIG_CMD_SH_ZIMAGEBOOT
 CONFIG_CMD_SPL
 CONFIG_CMD_SPL_NAND_OFS