Convert CONFIG_BOOTP_MAY_FAIL et al to Kconfig
[platform/kernel/u-boot.git] / cmd / Kconfig
index ffef3cc..d10deed 100644 (file)
@@ -471,7 +471,6 @@ config CMD_SAVEENV
 
 config CMD_ERASEENV
        bool "eraseenv"
-       default n
        depends on CMD_SAVEENV
        help
          Erase environment variables from the compiled-in persistent
@@ -614,6 +613,37 @@ config EEPROM_LAYOUT_HELP_STRING
            Help printed with the LAYOUT VERSIONS part of the 'eeprom'
            command's help.
 
+config SYS_I2C_EEPROM_BUS
+       int "I2C bus of the EEPROM device."
+       depends on CMD_EEPROM
+       default 0
+
+config SYS_I2C_EEPROM_ADDR_LEN
+       int "Length in bytes of the EEPROM memory array address"
+       depends on CMD_EEPROM || ID_EEPROM
+       default 1
+       range 1 2
+       help
+         Note: This is NOT the chip address length!
+
+config SYS_EEPROM_SIZE
+       depends on CMD_EEPROM
+       int "Size in bytes of the EEPROM device"
+       default 256
+
+config SYS_EEPROM_PAGE_WRITE_BITS
+       int "Number of bits used to address bytes in a single page"
+       depends on CMD_EEPROM
+       default 8
+       help
+         The EEPROM page size is 2^SYS_EEPROM_PAGE_WRITE_BITS.
+         A 64 byte page, for example would require six bits.
+
+config SYS_EEPROM_PAGE_WRITE_DELAY_MS
+       int "Number of milliseconds to delay between page writes"
+       depends on CMD_EEPROM || CMD_I2C
+       default 0
+
 config LOOPW
        bool "loopw"
        help
@@ -621,14 +651,12 @@ config LOOPW
 
 config CMD_MD5SUM
        bool "md5sum"
-       default n
        select MD5
        help
          Compute MD5 checksum.
 
 config MD5SUM_VERIFY
        bool "md5sum -v"
-       default n
        depends on CMD_MD5SUM
        help
          Add -v option to verify data against an MD5 checksum.
@@ -713,7 +741,7 @@ endif
 
 config SYS_MEMTEST_START
        hex "default start address for mtest"
-       default 0
+       default 0x0
        help
          This is the default start address for mtest for simple read/write
          test. If no arguments are given to mtest, default address is used
@@ -984,7 +1012,7 @@ config CMD_IDE
        select IDE
        help
          Provides an 'ide' command which allows accessing the IDE drive,
-         reseting the IDE interface, printing the partition table and
+         resetting the IDE interface, printing the partition table and
          geting device info. It also enables the 'diskboot' command which
          permits booting from an IDE drive.
 
@@ -1088,7 +1116,6 @@ if CMD_MMC
 config CMD_BKOPS_ENABLE
        bool "mmc bkops enable"
        depends on CMD_MMC
-       default n
        help
          Enable command for setting manual background operations handshake
          on a eMMC device. The feature is optionally available on eMMC devices
@@ -1416,7 +1443,6 @@ config CMD_SETEXPR
 
 config CMD_SETEXPR_FMT
        bool "setexpr_fmt"
-       default n
        depends on CMD_SETEXPR
        help
          Evaluate format string expression and store result in an environment
@@ -1428,7 +1454,6 @@ menu "Android support commands"
 
 config CMD_AB_SELECT
        bool "ab_select"
-       default n
        depends on ANDROID_AB
        help
          On Android devices with more than one boot slot (multiple copies of
@@ -1460,6 +1485,15 @@ config CMD_DHCP
        help
          Boot image via network using DHCP/TFTP protocol
 
+config BOOTP_MAY_FAIL
+       bool "Allow for the BOOTP/DHCP server to not be found"
+       depends on CMD_BOOTP
+       help
+         If the DHCP server is not found after the configured retry count, the
+         call will fail instead of starting over.  This can be used to fail
+         over to Link-local IP address configuration if the DHCP server is not
+         available.
+
 config BOOTP_BOOTPATH
        bool "Request & store 'rootpath' from BOOTP/DHCP server"
        default y
@@ -1468,6 +1502,14 @@ config BOOTP_BOOTPATH
          Even though the config is called BOOTP_BOOTPATH, it stores the
          path in the variable 'rootpath'.
 
+config BOOTP_VENDOREX
+       bool "Support vendor extensions from BOOTP/DHCP server"
+       depends on CMD_BOOTP
+
+config BOOTP_BOOTFILESIZE
+       bool "Request & store 'bootfilesize' from BOOTP/DHCP server"
+       depends on CMD_BOOTP
+
 config BOOTP_DNS
        bool "Request & store 'dnsip' from BOOTP/DHCP server"
        default y
@@ -1515,10 +1557,18 @@ config BOOTP_SUBNETMASK
        default y
        depends on CMD_BOOTP
 
+config BOOTP_NISDOMAIN
+       bool "Request & store 'nisdomain' from BOOTP/DHCP server"
+       depends on CMD_BOOTP
+
 config BOOTP_NTPSERVER
        bool "Request & store 'ntpserverip' from BOOTP/DHCP server"
        depends on CMD_BOOTP
 
+config BOOTP_TIMEOFFSET
+       bool "Request & store 'timeoffset' from BOOTP/DHCP server"
+       depends on CMD_BOOTP && CMD_SNTP
+
 config CMD_PCAP
        bool "pcap capture"
        help
@@ -1733,7 +1783,6 @@ config CMD_EFIDEBUG
        bool "efidebug - display/configure UEFI environment"
        depends on EFI_LOADER
        select EFI_DEVICE_PATH_TO_TEXT
-       default n
        help
          Enable the 'efidebug' command which provides a subset of UEFI
          shell utility with simplified functionality. It will be useful
@@ -1790,18 +1839,26 @@ config CMD_RNG
        help
          Print bytes from the hardware random number generator.
 
+config CMD_KASLRSEED
+       bool "kaslrseed"
+       depends on DM_RNG
+       help
+         Set the kaslr-seed in the chosen node with entropy provided by a
+         hardware random number generator.
+
 config CMD_SLEEP
        bool "sleep"
        default y
        help
          Delay execution for some time
 
-config MP
-       bool "support for multiprocessor"
+config CMD_MP
+       bool "support for multiprocessor commands"
+       depends on MP
+       default y
        help
-         This provides an option to brinup
-         different processors in multiprocessor
-         cases.
+         This enables commands to bringup different processors
+         in multiprocessor cases.
 
 config CMD_TIMER
        bool "timer"
@@ -2195,6 +2252,27 @@ config CMD_JFFS2
          provide the ability to load files, list directories and obtain
          filesystem information.
 
+config JFFS2_DEV
+       string "Default device for JFFS2"
+       depends on CMD_JFFS2
+       default "nor0"
+       help
+         The default device to use with the jffs2 command.
+
+config JFFS2_PART_OFFSET
+       hex "Default offset within flash to locate the JFFS2 image"
+       depends on CMD_JFFS2
+       default 0x0
+       help
+         The default offset within flash to locate the JFFS2 image.
+
+config JFFS2_PART_SIZE
+       hex "Default size of JFFS2 partition"
+       depends on CMD_JFFS2
+       default 0xFFFFFFFF
+       help
+         The default size of the JFFS2 partition
+
 config CMD_MTDPARTS
        bool "MTD partition support"
        depends on MTD
@@ -2272,13 +2350,6 @@ endmenu
 
 menu "Debug commands"
 
-config CMD_BEDBUG
-       bool "bedbug"
-       help
-         The bedbug (emBEDded deBUGger) command provides debugging features
-         for some PowerPC processors. For details please see the
-         documentation in doc/README.bedbug.
-
 config CMD_CBSYSINFO
        bool "cbsysinfo"
        depends on X86
@@ -2326,6 +2397,8 @@ config CMD_LOG
 
 config CMD_TRACE
        bool "trace - Support tracing of function calls and timing"
+       depends on TRACE
+       default y
        help
          Enables a command to control using of function tracing within
          U-Boot. This allows recording of call traces including timing
@@ -2336,7 +2409,6 @@ config CMD_TRACE
 config CMD_AVB
        bool "avb - Android Verified Boot 2.0 operations"
        depends on AVB_VERIFY
-       default n
        help
          Enables a "avb" command to perform verification of partitions using
          Android Verified Boot 2.0 functionality. It includes such subcommands:
@@ -2376,7 +2448,6 @@ config CMD_UBI
 config CMD_UBI_RENAME
        bool "Enable rename"
        depends on CMD_UBI
-       default n
        help
          Enable a "ubi" command to rename ubi volume:
           ubi rename <oldname> <newname>
@@ -2389,4 +2460,14 @@ config CMD_UBIFS
        help
          UBIFS is a file system for flash devices which works on top of UBI.
 
+config MMC_SPEED_MODE_SET
+       bool "set speed mode using mmc command"
+       depends on CMD_MMC
+       default n
+       help
+         Enable setting speed mode using mmc rescan and mmc dev commands.
+         The speed mode is provided as the last argument in these commands
+         and is indicated using the index from enum bus_mode in
+         include/mmc.h. A speed mode can be set only if it has already
+         been enabled in the device tree.
 endmenu