Merge tag 'dm-pull-15nov20' of git://git.denx.de/u-boot-dm
[platform/kernel/u-boot.git] / cmd / Kconfig
index e111764..1595de9 100644 (file)
@@ -66,123 +66,6 @@ config SYS_XTRACE
          To enable the tracer a variable "xtrace" needs to be defined in
          the environment.
 
-menu "Autoboot options"
-
-config AUTOBOOT
-       bool "Autoboot"
-       default y
-       help
-         This enables the autoboot.  See doc/README.autoboot for detail.
-
-config AUTOBOOT_KEYED
-       bool "Stop autobooting via specific input key / string"
-       default n
-       help
-         This option enables stopping (aborting) of the automatic
-         boot feature only by issuing a specific input key or
-         string. If not enabled, any input key will abort the
-         U-Boot automatic booting process and bring the device
-         to the U-Boot prompt for user input.
-
-config AUTOBOOT_PROMPT
-       string "Autoboot stop prompt"
-       depends on AUTOBOOT_KEYED
-       default "Autoboot in %d seconds\\n"
-       help
-         This string is displayed before the boot delay selected by
-         CONFIG_BOOTDELAY starts. If it is not defined there is no
-         output indicating that autoboot is in progress.
-
-         Note that this define is used as the (only) argument to a
-         printf() call, so it may contain '%' format specifications,
-         provided that it also includes, sepearated by commas exactly
-         like in a printf statement, the required arguments. It is
-         the responsibility of the user to select only such arguments
-         that are valid in the given context.
-
-config AUTOBOOT_ENCRYPTION
-       bool "Enable encryption in autoboot stopping"
-       depends on AUTOBOOT_KEYED
-       help
-         This option allows a string to be entered into U-Boot to stop the
-         autoboot. The string itself is hashed and compared against the hash
-         in the environment variable 'bootstopkeysha256'. If it matches then
-         boot stops and a command-line prompt is presented.
-
-         This provides a way to ship a secure production device which can also
-         be accessed at the U-Boot command line.
-
-config AUTOBOOT_DELAY_STR
-       string "Delay autobooting via specific input key / string"
-       depends on AUTOBOOT_KEYED && !AUTOBOOT_ENCRYPTION
-       help
-         This option delays the automatic boot feature by issuing
-         a specific input key or string. If CONFIG_AUTOBOOT_DELAY_STR
-         or the environment variable "bootdelaykey" is specified
-         and this string is received from console input before
-         autoboot starts booting, U-Boot gives a command prompt. The
-         U-Boot prompt will time out if CONFIG_BOOT_RETRY_TIME is
-         used, otherwise it never times out.
-
-config AUTOBOOT_STOP_STR
-       string "Stop autobooting via specific input key / string"
-       depends on AUTOBOOT_KEYED && !AUTOBOOT_ENCRYPTION
-       help
-         This option enables stopping (aborting) of the automatic
-         boot feature only by issuing a specific input key or
-         string. If CONFIG_AUTOBOOT_STOP_STR or the environment
-         variable "bootstopkey" is specified and this string is
-         received from console input before autoboot starts booting,
-         U-Boot gives a command prompt. The U-Boot prompt never
-         times out, even if CONFIG_BOOT_RETRY_TIME is used.
-
-config AUTOBOOT_KEYED_CTRLC
-       bool "Enable Ctrl-C autoboot interruption"
-       depends on AUTOBOOT_KEYED && !AUTOBOOT_ENCRYPTION
-       default n
-       help
-         This option allows for the boot sequence to be interrupted
-         by ctrl-c, in addition to the "bootdelaykey" and "bootstopkey".
-         Setting this variable provides an escape sequence from the
-         limited "password" strings.
-
-config AUTOBOOT_STOP_STR_SHA256
-       string "Stop autobooting via SHA256 encrypted password"
-       depends on AUTOBOOT_KEYED && AUTOBOOT_ENCRYPTION
-       help
-         This option adds the feature to only stop the autobooting,
-         and therefore boot into the U-Boot prompt, when the input
-         string / password matches a values that is encypted via
-         a SHA256 hash and saved in the environment.
-
-config AUTOBOOT_USE_MENUKEY
-       bool "Allow a specify key to run a menu from the environment"
-       depends on !AUTOBOOT_KEYED
-       help
-         If a specific key is pressed to stop autoboot, then the commands in
-         the environment variable 'menucmd' are executed before boot starts.
-
-config AUTOBOOT_MENUKEY
-       int "ASCII value of boot key to show a menu"
-       default 0
-       depends on AUTOBOOT_USE_MENUKEY
-       help
-         If this key is pressed to stop autoboot, then the commands in the
-         environment variable 'menucmd' will be executed before boot starts.
-         For example, 33 means "!" in ASCII, so pressing ! at boot would take
-         this action.
-
-config AUTOBOOT_MENU_SHOW
-       bool "Show a menu on boot"
-       depends on CMD_BOOTMENU
-       help
-         This enables the boot menu, controlled by environment variables
-         defined by the board. The menu starts after running the 'preboot'
-         environmnent variable (if enabled) and before handling the boot delay.
-         See README.bootmenu for more details.
-
-endmenu
-
 config BUILD_BIN2C
        bool
 
@@ -270,6 +153,12 @@ config SPL_CMD_TLV_EEPROM
        help
          Read system EEPROM data block in ONIE Tlvinfo format from SPL.
 
+config CMD_SBI
+       bool "sbi"
+       depends on RISCV_SMODE && SBI_V02
+       help
+         Display information about the SBI implementation.
+
 endmenu
 
 menu "Boot commands"
@@ -625,6 +514,15 @@ config CMD_BINOP
          Compute binary operations (xor, or, and) of byte arrays of arbitrary
          size from memory and store the result in memory or the environment.
 
+config CMD_BLOBLIST
+       bool "bloblist"
+       default y if BLOBLIST
+       help
+         Show information about the bloblist, a collection of binary blobs
+         held in memory that persist between SPL and U-Boot. In the case of
+         x86 devices the bloblist can be used to hold ACPI tables so that they
+         remain available in memory.
+
 config CMD_CRC32
        bool "crc32"
        default y
@@ -724,7 +622,7 @@ config CMD_MEMORY
            base - print or set address offset
            loop - initialize loop on address range
 
-config MEM_SEARCH
+config CMD_MEM_SEARCH
        bool "ms - Memory search"
        help
          Memory-search command
@@ -771,6 +669,18 @@ config SYS_ALT_MEMTEST
        help
          Use a more complete alternative memory test.
 
+if SYS_ALT_MEMTEST
+
+config SYS_ALT_MEMTEST_BITFLIP
+       bool "Bitflip test"
+       default y
+       help
+         The alternative memory test includes bitflip test since 2020.07.
+         The bitflip test significantly increases the overall test time.
+         Bitflip test can optionally be disabled here.
+
+endif
+
 config SYS_MEMTEST_START
        hex "default start address for mtest"
        default 0
@@ -854,7 +764,7 @@ config CMD_ARMFLASH
 config CMD_ADC
        bool "adc - Access Analog to Digital Converters info and data"
        select ADC
-       select DM_REGULATOR
+       depends on DM_REGULATOR
        help
          Shows ADC device info and permit printing one-shot analog converted
          data from a named Analog to Digital Converter.
@@ -1115,6 +1025,14 @@ config CMD_LSBLK
          Print list of available block device drivers, and for each, the list
          of known block devices.
 
+config CMD_MISC
+       bool "misc"
+       depends on MISC
+       help
+         Enable the command "misc" for accessing miscellaneous devices with
+         a MISC uclass driver. The command provides listing all MISC devices
+         as well as read and write functionalities via their drivers.
+
 config CMD_MMC
        bool "mmc"
        help
@@ -1156,6 +1074,14 @@ config CMD_CLONE
          initial flashing by external block device without network
          or usb support.
 
+config CMD_OPTEE_RPMB
+       bool "Enable read/write support on RPMB via OPTEE"
+       depends on SUPPORT_EMMC_RPMB && OPTEE
+       help
+         Enable the commands for reading, writing persistent named values
+         in the Replay Protection Memory Block partition in eMMC by
+         using Persistent Objects in OPTEE
+
 config CMD_MTD
        bool "mtd"
        depends on MTD
@@ -1163,6 +1089,12 @@ config CMD_MTD
        help
          MTD commands support.
 
+config CMD_MUX
+       bool "mux"
+       depends on MULTIPLEXER
+       help
+        List, select, and deselect mux controllers on the fly.
+
 config CMD_NAND
        bool "nand"
        default y if NAND_SUNXI
@@ -1370,6 +1302,13 @@ config CMD_USB_MASS_STORAGE
        help
          USB mass storage support
 
+config CMD_PVBLOCK
+       bool "Xen para-virtualized block device"
+       depends on XEN
+       select PVBLOCK
+       help
+         Xen para-virtualized block device support
+
 config CMD_VIRTIO
        bool "virtio"
        depends on VIRTIO
@@ -1620,6 +1559,7 @@ config CMD_CDP
 
 config CMD_SNTP
        bool "sntp"
+       select PROT_UDP
        help
          Synchronize RTC via network
 
@@ -1790,8 +1730,7 @@ config CMD_RNG
        help
          Print bytes from the hardware random number generator.
 
-# TODO: rename to CMD_SLEEP
-config CMD_MISC
+config CMD_SLEEP
        bool "sleep"
        default y
        help
@@ -1833,6 +1772,77 @@ config CMD_QFW
          feature is to allow easy loading of files passed to qemu-system
          via -kernel / -initrd
 
+config CMD_PSTORE
+       bool "pstore"
+       help
+         This provides access to Linux PStore with Rammoops backend. The main
+         feature is to allow to display or save PStore records.
+
+         See doc/pstore.rst for more information.
+
+if CMD_PSTORE
+
+config CMD_PSTORE_MEM_ADDR
+       hex "Memory Address"
+       depends on CMD_PSTORE
+       help
+         Base addr used for PStore ramoops memory, should be identical to
+         ramoops.mem_address parameter used by kernel
+
+config CMD_PSTORE_MEM_SIZE
+       hex "Memory size"
+       depends on CMD_PSTORE
+       default "0x10000"
+       help
+         Size of PStore ramoops memory, should be identical to ramoops.mem_size
+         parameter used by kernel, a power of 2 and larger than the sum of the
+         record sizes
+
+config CMD_PSTORE_RECORD_SIZE
+       hex "Dump record size"
+       depends on CMD_PSTORE
+       default "0x1000"
+       help
+         Size of each dump done on oops/panic, should be identical to
+         ramoops.record_size parameter used by kernel and a power of 2
+         Must be non-zero
+
+config CMD_PSTORE_CONSOLE_SIZE
+       hex "Kernel console log size"
+       depends on CMD_PSTORE
+       default "0x1000"
+       help
+         Size of kernel console log, should be identical to
+         ramoops.console_size parameter used by kernel and a power of 2
+         Must be non-zero
+
+config CMD_PSTORE_FTRACE_SIZE
+       hex "FTrace log size"
+       depends on CMD_PSTORE
+       default "0x1000"
+       help
+         Size of ftrace log, should be identical to ramoops.ftrace_size
+         parameter used by kernel and a power of 2
+
+config CMD_PSTORE_PMSG_SIZE
+       hex "User space message log size"
+       depends on CMD_PSTORE
+       default "0x1000"
+       help
+         Size of user space message log, should be identical to
+         ramoops.pmsg_size parameter used by kernel and a power of 2
+
+config CMD_PSTORE_ECC_SIZE
+       int "ECC size"
+       depends on CMD_PSTORE
+       default "0"
+       help
+       if non-zero, the option enables ECC support and specifies ECC buffer
+       size in bytes (1 is a special value, means 16 bytes ECC), should be
+       identical to ramoops.ramoops_ecc parameter used by kernel
+
+endif
+
 source "cmd/mvebu/Kconfig"
 
 config CMD_TERMINAL
@@ -2090,6 +2100,12 @@ config CMD_FAT
        help
          Support for the FAT fs
 
+config CMD_SQUASHFS
+       bool "SquashFS command support"
+       select FS_SQUASHFS
+       help
+         Enables SquashFS filesystem commands (e.g. load, ls).
+
 config CMD_FS_GENERIC
        bool "filesystem commands"
        help
@@ -2204,7 +2220,7 @@ config CMD_DIAG
 
 config CMD_IRQ
        bool "irq - Show information about interrupts"
-       depends on !ARM && !MIPS && !SH
+       depends on !ARM && !MIPS && !RISCV && !SH
        help
          This enables two commands:
 
@@ -2223,6 +2239,7 @@ config CMD_KGDB
 config CMD_LOG
        bool "log - Generation, control and access to logging"
        select LOG
+       select GETOPT
        help
          This provides access to logging features. It allows the output of
          log data to be controlled to a limited extent (setting up the default