Convert CONFIG_CMD_FUSE to Kconfig
authorSimon Glass <sjg@chromium.org>
Wed, 17 May 2017 09:25:22 +0000 (03:25 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 22 May 2017 13:33:58 +0000 (09:33 -0400)
This converts the following to Kconfig:
   CONFIG_CMD_FUSE

Signed-off-by: Simon Glass <sjg@chromium.org>
27 files changed:
README
arch/arm/cpu/armv7/mx6/Kconfig
arch/arm/cpu/armv7/mx7/Kconfig
cmd/Kconfig
configs/colibri_vf_defconfig
configs/mx51evk_defconfig
configs/sandbox_defconfig
configs/usbarmory_defconfig
configs/vf610twr_defconfig
configs/vf610twr_nand_defconfig
include/config_cmd_all.h
include/configs/ac14xx.h
include/configs/advantech_dms-ba16.h
include/configs/apalis_imx6.h
include/configs/aria.h
include/configs/colibri_imx6.h
include/configs/colibri_vf.h
include/configs/ge_bx50v3.h
include/configs/mecp5123.h
include/configs/mpc5121ads.h
include/configs/mx51evk.h
include/configs/mx6_common.h
include/configs/mx7_common.h
include/configs/pdm360ng.h
include/configs/usbarmory.h
include/configs/vf610twr.h
scripts/config_whitelist.txt

diff --git a/README b/README
index 41da5c3..3cc82a6 100644 (file)
--- a/README
+++ b/README
@@ -844,7 +844,6 @@ The following options need to be configured:
                CONFIG_CMD_FAT          * FAT command support
                CONFIG_CMD_FLASH          flinfo, erase, protect
                CONFIG_CMD_FPGA           FPGA device initialization support
-               CONFIG_CMD_FUSE         * Device fuse support
                CONFIG_CMD_GETTIME      * Get time since boot
                CONFIG_CMD_GO           * the 'go' command (exec code)
                CONFIG_CMD_GREPENV      * search environment
index 0ff9045..4fd60d4 100644 (file)
@@ -7,6 +7,7 @@ config MX6
        select ARM_ERRATA_751472 if !MX6UL
        select ARM_ERRATA_761320 if !MX6UL
        select ARM_ERRATA_794072 if !MX6UL
+       imply CMD_FUSE
 
 config MX6D
        bool
index 8dfb4c9..80c1290 100644 (file)
@@ -6,10 +6,12 @@ config MX7
        select CPU_V7_HAS_VIRT
        select CPU_V7_HAS_NONSEC
        select ARCH_SUPPORT_PSCI
+       imply CMD_FUSE
        default y
 
 config MX7D
        select ROM_UNIFIED_SECTIONS
+       imply CMD_FUSE
        bool
 
 choice
index 16cf961..495080f 100644 (file)
@@ -627,6 +627,14 @@ config CMD_FPGAD
          fpga_get_reg() function. This functions similarly to the 'md'
          command.
 
+config CMD_FUSE
+       bool "fuse - support for the fuse subssystem"
+       help
+         (deprecated - needs conversion to driver model)
+         This allows reading, sensing, programming or overriding fuses
+         which control the behaviour of the device. The command uses the
+         fuse_...() API.
+
 config CMD_REMOTEPROC
        bool "remoteproc"
        depends on REMOTEPROC
index b69ce65..cc9c4ee 100644 (file)
@@ -21,6 +21,7 @@ CONFIG_CMD_SPI=y
 CONFIG_CMD_USB=y
 CONFIG_CMD_DFU=y
 CONFIG_CMD_USB_MASS_STORAGE=y
+CONFIG_CMD_FUSE=y
 CONFIG_CMD_GPIO=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_CMD_DHCP=y
index d7e5404..3f57c88 100644 (file)
@@ -14,6 +14,7 @@ CONFIG_CMD_BOOTZ=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_SPI=y
 CONFIG_CMD_USB=y
+CONFIG_CMD_FUSE=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_CMD_DHCP=y
 CONFIG_CMD_MII=y
index 3b136e8..d4a1562 100644 (file)
@@ -44,6 +44,7 @@ CONFIG_CMD_CDP=y
 CONFIG_CMD_SNTP=y
 CONFIG_CMD_DNS=y
 CONFIG_CMD_LINK_LOCAL=y
+CONFIG_CMD_ETHSW=y
 CONFIG_CMD_BMP=y
 CONFIG_CMD_TIME=y
 CONFIG_CMD_TIMER=y
@@ -184,6 +185,5 @@ CONFIG_UNIT_TEST=y
 CONFIG_UT_TIME=y
 CONFIG_UT_DM=y
 CONFIG_UT_ENV=y
-CONFIG_CMD_ETHSW=y
 CONFIG_WDT=y
 CONFIG_WDT_SANDBOX=y
index 4325617..a71a757 100644 (file)
@@ -8,6 +8,7 @@ CONFIG_CMD_MEMTEST=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_USB=y
+CONFIG_CMD_FUSE=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
index 9198f65..4719309 100644 (file)
@@ -10,6 +10,7 @@ CONFIG_CMD_BOOTZ=y
 CONFIG_CMD_MEMTEST=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_I2C=y
+CONFIG_CMD_FUSE=y
 CONFIG_CMD_GPIO=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_CMD_DHCP=y
index ba4e596..f1dc19a 100644 (file)
@@ -10,6 +10,7 @@ CONFIG_CMD_BOOTZ=y
 CONFIG_CMD_MEMTEST=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_I2C=y
+CONFIG_CMD_FUSE=y
 CONFIG_CMD_GPIO=y
 # CONFIG_CMD_SETEXPR is not set
 CONFIG_CMD_DHCP=y
index 9b3d88a..7e9983e 100644 (file)
@@ -13,7 +13,6 @@
  * Alphabetical list of all possible commands.
  */
 
-#define CONFIG_CMD_FUSE                /* Device fuse support          */
 #define CONFIG_CMD_GETTIME     /* Get time since boot         */
 #define CONFIG_CMD_HASH                /* calculate hash / digest      */
 #define CONFIG_CMD_IDE         /* IDE harddisk support         */
index 2a46e9b..3d3c216 100644 (file)
 #define CONFIG_LOADS_ECHO              1
 #define CONFIG_SYS_LOADS_BAUD_CHANGE   1
 
-#undef CONFIG_CMD_FUSE
 #undef CONFIG_CMD_IDE
 #define CONFIG_CMD_JFFS2
 #define CONFIG_CMD_REGINFO
index b76f376..f320792 100644 (file)
@@ -36,7 +36,6 @@
 #define CONFIG_MXC_GPIO
 #define CONFIG_MXC_UART
 
-#define CONFIG_CMD_FUSE
 #define CONFIG_MXC_OCOTP
 
 /* SATA Configs */
index c1c0f59..8eddb68 100644 (file)
@@ -54,7 +54,6 @@
 #define CONFIG_SYS_I2C_SPEED           100000
 
 /* OCOTP Configs */
-#define CONFIG_CMD_FUSE
 #ifdef CONFIG_CMD_FUSE
 #define CONFIG_MXC_OCOTP
 #endif
index 4d946fc..3b5d56c 100644 (file)
 #define CONFIG_LOADS_ECHO              1
 #define CONFIG_SYS_LOADS_BAUD_CHANGE   1
 
-#undef CONFIG_CMD_FUSE
 #undef CONFIG_CMD_IDE
 #define CONFIG_CMD_JFFS2
 #define CONFIG_CMD_REGINFO
index 9c40852..6189a61 100644 (file)
@@ -52,7 +52,6 @@
 #define CONFIG_SYS_I2C_SPEED           100000
 
 /* OCOTP Configs */
-#define CONFIG_CMD_FUSE
 #ifdef CONFIG_CMD_FUSE
 #define CONFIG_MXC_OCOTP
 #endif
index 28383f4..6e8cd91 100644 (file)
@@ -20,7 +20,6 @@
 
 #define CONFIG_SKIP_LOWLEVEL_INIT
 
-#define CONFIG_CMD_FUSE
 #ifdef CONFIG_CMD_FUSE
 #define CONFIG_MXC_OCOTP
 #endif
index 198259b..f60a029 100644 (file)
@@ -47,7 +47,6 @@
 #define CONFIG_MXC_GPIO
 #define CONFIG_MXC_UART
 
-#define CONFIG_CMD_FUSE
 #define CONFIG_MXC_OCOTP
 
 /* SATA Configs */
index fe94e66..6e10caf 100644 (file)
 #define CONFIG_SYS_LOADS_BAUD_CHANGE   /* allow baudrate change        */
 
 #define CONFIG_CMD_REGINFO
-#undef CONFIG_CMD_FUSE
 #undef CONFIG_CMD_IDE
 #define CONFIG_CMD_JFFS2
 
index 7919320..bd7c4a6 100644 (file)
 #define CONFIG_CMD_JFFS2
 #define CONFIG_CMD_REGINFO
 
-#undef CONFIG_CMD_FUSE
-
 #if defined(CONFIG_PCI)
 #define CONFIG_CMD_PCI
 #endif
index 54bc563..4513adf 100644 (file)
@@ -33,7 +33,6 @@
  * Hardware drivers
  */
 #define CONFIG_FSL_IIM
-#define CONFIG_CMD_FUSE
 
 #define CONFIG_MXC_UART
 #define CONFIG_MXC_UART_BASE   UART1_BASE
index 21ac3fc..1a8ab4e 100644 (file)
@@ -78,7 +78,6 @@
 #define CONFIG_FSL_USDHC
 
 /* Fuses */
-#define CONFIG_CMD_FUSE
 #define CONFIG_MXC_OCOTP
 
 /* Secure boot (HAB) support */
index 9a20c77..fe46010 100644 (file)
@@ -59,7 +59,6 @@
 #define CONFIG_FSL_USDHC
 
 /* Fuses */
-#define CONFIG_CMD_FUSE
 #define CONFIG_MXC_OCOTP
 
 #define CONFIG_ARMV7_SECURE_BASE       0x00900000
index 4bd8236..676d55f 100644 (file)
 
 #define CONFIG_CMD_REGINFO
 
-#undef CONFIG_CMD_FUSE
-
 /*
  * Miscellaneous configurable options
  */
index f725b79..e25bf99 100644 (file)
@@ -53,7 +53,6 @@
 #define CONFIG_SYS_I2C_MXC_I2C2                /* enable I2C bus 2 */
 
 /* Fuse */
-#define CONFIG_CMD_FUSE
 #define CONFIG_FSL_IIM
 
 /* U-Boot memory offsets */
index 3e7dc9b..2460294 100644 (file)
@@ -20,7 +20,6 @@
 /* Enable passing of ATAGs */
 #define CONFIG_CMDLINE_TAG
 
-#define CONFIG_CMD_FUSE
 #ifdef CONFIG_CMD_FUSE
 #define CONFIG_MXC_OCOTP
 #endif
index 9938027..9180081 100644 (file)
@@ -383,7 +383,6 @@ CONFIG_CM922T_XA10
 CONFIG_CMDLINE_EDITING
 CONFIG_CMDLINE_PS_SUPPORT
 CONFIG_CMDLINE_TAG
-CONFIG_CMD_FUSE
 CONFIG_CMD_GETTIME
 CONFIG_CMD_GSC
 CONFIG_CMD_HASH