Commit 719d36ee36db92221e86b37edd1f7b922bde4f9d

Authored by Simon Glass
Committed by Tom Rini
1 parent efce2442d3

Convert CONFIG_CMD_SF_TEST to Kconfig

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>

Showing 13 changed files with 18 additions and 16 deletions Side-by-side Diff

... ... @@ -2495,12 +2495,6 @@
2495 2495 CONFIG_SF_DEFAULT_MODE (see include/spi.h)
2496 2496 CONFIG_SF_DEFAULT_SPEED in Hz
2497 2497  
2498   - CONFIG_CMD_SF_TEST
2499   -
2500   - Define this option to include a destructive SPI flash
2501   - test ('sf test').
2502   -
2503   -- SystemACE Support:
2504 2498 CONFIG_SYSTEMACE
2505 2499  
2506 2500 Adding this option adds support for Xilinx SystemACE
... ... @@ -78,6 +78,7 @@
78 78 imply LZMA
79 79 imply SCSI
80 80 imply CMD_SATA
  81 + imply CMD_SF_TEST
81 82  
82 83 config SH
83 84 bool "SuperH architecture"
... ... @@ -111,6 +112,7 @@
111 112 imply CMD_GETTIME
112 113 imply CMD_IO
113 114 imply CMD_IRQ
  115 + imply CMD_SF_TEST
114 116  
115 117 config XTENSA
116 118 bool "Xtensa architecture"
... ... @@ -797,6 +797,17 @@
797 797 help
798 798 SPI Flash support
799 799  
  800 +config CMD_SF_TEST
  801 + bool "sf test - Allow testing of SPI flash"
  802 + help
  803 + Provides a way to test that SPI flash is working correctly. The
  804 + test is destructive, in that an area of SPI flash must be provided
  805 + for the test to use. Performance information is also provided,
  806 + measuring the performance of reading, writing and erasing in
  807 + Mbps (Million Bits Per Second). This value should approximately
  808 + equal the SPI bus speed for a single-bit-wide SPI bus, assuming
  809 + everything is working properly.
  810 +
800 811 config CMD_SPI
801 812 bool "sspi"
802 813 help
configs/chromebit_mickey_defconfig
... ... @@ -20,6 +20,7 @@
20 20 CONFIG_CMD_SPI=y
21 21 CONFIG_CMD_I2C=y
22 22 CONFIG_CMD_GPIO=y
  23 +CONFIG_CMD_SF_TEST=y
23 24 # CONFIG_CMD_SETEXPR is not set
24 25 CONFIG_CMD_CACHE=y
25 26 CONFIG_CMD_TIME=y
configs/chromebook_jerry_defconfig
... ... @@ -22,6 +22,7 @@
22 22 CONFIG_CMD_SPI=y
23 23 CONFIG_CMD_I2C=y
24 24 CONFIG_CMD_GPIO=y
  25 +CONFIG_CMD_SF_TEST=y
25 26 # CONFIG_CMD_SETEXPR is not set
26 27 CONFIG_CMD_CACHE=y
27 28 CONFIG_CMD_TIME=y
configs/chromebook_minnie_defconfig
... ... @@ -21,6 +21,7 @@
21 21 CONFIG_CMD_SPI=y
22 22 CONFIG_CMD_I2C=y
23 23 CONFIG_CMD_GPIO=y
  24 +CONFIG_CMD_SF_TEST=y
24 25 # CONFIG_CMD_SETEXPR is not set
25 26 CONFIG_CMD_CACHE=y
26 27 CONFIG_CMD_TIME=y
configs/efi-x86_defconfig
... ... @@ -11,6 +11,7 @@
11 11 # CONFIG_CMD_IMLS is not set
12 12 CONFIG_CMD_PART=y
13 13 CONFIG_CMD_SF=y
  14 +# CONFIG_CMD_SF_TEST is not set
14 15 CONFIG_CMD_SPI=y
15 16 CONFIG_CMD_USB=y
16 17 CONFIG_CMD_GPIO=y
configs/sandbox_defconfig
... ... @@ -41,6 +41,7 @@
41 41 CONFIG_CMD_REMOTEPROC=y
42 42 CONFIG_CMD_GPIO=y
43 43 CONFIG_CMD_PCI=y
  44 +CONFIG_CMD_READ=y
44 45 CONFIG_CMD_TFTPPUT=y
45 46 CONFIG_CMD_TFTPSRV=y
46 47 CONFIG_CMD_RARP=y
... ... @@ -193,7 +194,4 @@
193 194 CONFIG_UT_TIME=y
194 195 CONFIG_UT_DM=y
195 196 CONFIG_UT_ENV=y
196   -CONFIG_CMD_MTDPARTS=y
197   -CONFIG_CMD_MTDPARTS_SPREAD=y
198   -CONFIG_CMD_READ=y
include/configs/efi-x86.h
... ... @@ -9,8 +9,6 @@
9 9  
10 10 #include <configs/x86-common.h>
11 11  
12   -#undef CONFIG_CMD_SF_TEST
13   -
14 12 #undef CONFIG_TPM_TIS_BASE_ADDRESS
15 13  
16 14 #undef CONFIG_SCSI_AHCI
include/configs/sandbox.h
... ... @@ -52,7 +52,6 @@
52 52 #define CONFIG_ENV_SIZE 8192
53 53  
54 54 /* SPI - enable all SPI flash types for testing purposes */
55   -#define CONFIG_CMD_SF_TEST
56 55  
57 56 #define CONFIG_I2C_EDID
58 57  
include/configs/veyron.h
... ... @@ -17,8 +17,6 @@
17 17 #define CONFIG_SPL_SPI_LOAD
18 18 #define CONFIG_SPI_FLASH_GIGADEVICE
19 19  
20   -#define CONFIG_CMD_SF_TEST
21   -
22 20 #define CONFIG_KEYBOARD
23 21  
24 22 #endif
include/configs/x86-common.h
... ... @@ -107,7 +107,6 @@
107 107 /*-----------------------------------------------------------------------
108 108 * FLASH configuration
109 109 */
110   -#define CONFIG_CMD_SF_TEST
111 110 #define CONFIG_SPI
112 111  
113 112 /*-----------------------------------------------------------------------
scripts/config_whitelist.txt
... ... @@ -293,7 +293,6 @@
293 293 CONFIG_CMDLINE_EDITING
294 294 CONFIG_CMDLINE_PS_SUPPORT
295 295 CONFIG_CMDLINE_TAG
296   -CONFIG_CMD_SF_TEST
297 296 CONFIG_CMD_SH_ZIMAGEBOOT
298 297 CONFIG_CMD_SPL
299 298 CONFIG_CMD_SPL_NAND_OFS