Convert CONFIG_MII et al to Kconfig
[platform/kernel/u-boot.git] / cmd / Kconfig
index 38406fc..d5abcfd 100644 (file)
@@ -137,8 +137,6 @@ config AUTOBOOT_STOP_STR_SHA256
 
 endmenu
 
 
 endmenu
 
-source "cmd/fastboot/Kconfig"
-
 config BUILD_BIN2C
        bool
 
 config BUILD_BIN2C
        bool
 
@@ -154,8 +152,8 @@ config CMD_BDI
 
 config CMD_CONFIG
        bool "config"
 
 config CMD_CONFIG
        bool "config"
-       select BUILD_BIN2C
        default SANDBOX
        default SANDBOX
+       select BUILD_BIN2C
        help
          Print ".config" contents.
 
        help
          Print ".config" contents.
 
@@ -228,7 +226,7 @@ config CMD_BOOTEFI
 
 config CMD_BOOTEFI_HELLO_COMPILE
        bool "Compile a standard EFI hello world binary for testing"
 
 config CMD_BOOTEFI_HELLO_COMPILE
        bool "Compile a standard EFI hello world binary for testing"
-       depends on CMD_BOOTEFI && (ARM || X86)
+       depends on CMD_BOOTEFI && (ARM || X86 || RISCV)
        default y
        help
          This compiles a standard EFI hello world application with U-Boot so
        default y
        help
          This compiles a standard EFI hello world application with U-Boot so
@@ -431,8 +429,8 @@ config CMD_BINOP
 
 config CMD_CRC32
        bool "crc32"
 
 config CMD_CRC32
        bool "crc32"
-       select HASH
        default y
        default y
+       select HASH
        help
          Compute CRC32.
 
        help
          Compute CRC32.
 
@@ -642,7 +640,6 @@ config CMD_DFU
 config CMD_DM
        bool "dm - Access to driver model information"
        depends on DM
 config CMD_DM
        bool "dm - Access to driver model information"
        depends on DM
-       default y
        help
          Provides access to driver model data structures and information,
          such as a list of devices, list of uclasses and the state of each
        help
          Provides access to driver model data structures and information,
          such as a list of devices, list of uclasses and the state of each
@@ -650,6 +647,18 @@ config CMD_DM
          can be useful to see the state of driver model for debugging or
          interest.
 
          can be useful to see the state of driver model for debugging or
          interest.
 
+config CMD_FASTBOOT
+       bool "fastboot - Android fastboot support"
+       depends on FASTBOOT
+       help
+         This enables the command "fastboot" which enables the Android
+         fastboot mode for the platform. Fastboot is a protocol for
+         downloading images, flashing and device control used on
+         Android devices. Fastboot requires either the network stack
+         enabled or support for acting as a USB device.
+
+         See doc/README.android-fastboot for more information.
+
 config CMD_FDC
        bool "fdcboot - Boot from floppy device"
        help
 config CMD_FDC
        bool "fdcboot - Boot from floppy device"
        help
@@ -697,6 +706,13 @@ config CMD_FPGA_LOADP
          Supports loading an FPGA device from a bitstream buffer containing
          a partial bitstream.
 
          Supports loading an FPGA device from a bitstream buffer containing
          a partial bitstream.
 
+config CMD_FPGA_LOAD_SECURE
+       bool "fpga loads - loads secure bitstreams (Xilinx only)"
+       depends on CMD_FPGA
+       help
+         Enables the fpga loads command which is used to load secure
+         (authenticated or encrypted or both) bitstreams on to FPGA.
+
 config CMD_FPGAD
        bool "fpgad - dump FPGA registers"
        help
 config CMD_FPGAD
        bool "fpgad - dump FPGA registers"
        help
@@ -720,9 +736,9 @@ config CMD_GPIO
 
 config CMD_GPT
        bool "GPT (GUID Partition Table) command"
 
 config CMD_GPT
        bool "GPT (GUID Partition Table) command"
-       select PARTITION_UUIDS
        select EFI_PARTITION
        select HAVE_BLOCK_DEVICE
        select EFI_PARTITION
        select HAVE_BLOCK_DEVICE
+       select PARTITION_UUIDS
        imply RANDOM_UUID
        help
          Enable the 'gpt' command to ready and write GPT style partition
        imply RANDOM_UUID
        help
          Enable the 'gpt' command to ready and write GPT style partition
@@ -816,6 +832,21 @@ config CMD_MMC
        help
          MMC memory mapped support.
 
        help
          MMC memory mapped support.
 
+config CMD_MMC_RPMB
+       bool "Enable support for RPMB in the mmc command"
+       depends on CMD_MMC
+       help
+         Enable the commands for reading, writing and programming the
+         key for the Replay Protection Memory Block partition in eMMC.
+
+config CMD_MMC_SWRITE
+       bool "mmc swrite"
+       depends on CMD_MMC && MMC_WRITE
+       select IMAGE_SPARSE
+       help
+         Enable support for the "mmc swrite" command to write Android sparse
+         images to eMMC.
+
 config CMD_NAND
        bool "nand"
        default y if NAND_SUNXI
 config CMD_NAND
        bool "nand"
        default y if NAND_SUNXI
@@ -867,8 +898,8 @@ config CMD_ONENAND
 
 config CMD_PART
        bool "part"
 
 config CMD_PART
        bool "part"
-       select PARTITION_UUIDS
        select HAVE_BLOCK_DEVICE
        select HAVE_BLOCK_DEVICE
+       select PARTITION_UUIDS
        help
          Read and display information about the partition table on
          various media.
        help
          Read and display information about the partition table on
          various media.
@@ -980,11 +1011,12 @@ config CMD_USB_SDP
        help
          Enables the command "sdp" which is used to have U-Boot emulating the
          Serial Download Protocol (SDP) via USB.
        help
          Enables the command "sdp" which is used to have U-Boot emulating the
          Serial Download Protocol (SDP) via USB.
+
 config CMD_ROCKUSB
        bool "rockusb"
        depends on USB_FUNCTION_ROCKUSB
        help
 config CMD_ROCKUSB
        bool "rockusb"
        depends on USB_FUNCTION_ROCKUSB
        help
-          Rockusb protocol is widely used by Rockchip SoC based devices. It can
+         Rockusb protocol is widely used by Rockchip SoC based devices. It can
          read/write info, image to/from devices. This enable rockusb command
          support to communication with rockusb device. for more detail about
          this command, please read doc/README.rockusb.
          read/write info, image to/from devices. This enable rockusb command
          support to communication with rockusb device. for more detail about
          this command, please read doc/README.rockusb.
@@ -995,6 +1027,14 @@ config CMD_USB_MASS_STORAGE
        help
          USB mass storage support
 
        help
          USB mass storage support
 
+config CMD_AXI
+       bool "axi"
+       depends on AXI
+       help
+         Enable the command "axi" for accessing AXI (Advanced eXtensible
+         Interface) busses, a on-chip interconnect specification for managing
+         functional blocks in SoC designs, which is also often used in designs
+         involving FPGAs (e.g.  communication with IP cores in Xilinx FPGAs).
 endmenu
 
 
 endmenu
 
 
@@ -1034,6 +1074,7 @@ if NET
 menuconfig CMD_NET
        bool "Network commands"
        default y
 menuconfig CMD_NET
        bool "Network commands"
        default y
+       imply NETDEVICES
 
 if CMD_NET
 
 
 if CMD_NET
 
@@ -1089,6 +1130,16 @@ config BOOTP_HOSTNAME
        help
          The name may or may not be qualified with the local domain name.
 
        help
          The name may or may not be qualified with the local domain name.
 
+config BOOTP_PREFER_SERVERIP
+       bool "serverip variable takes precedent over DHCP server IP."
+       depends on CMD_BOOTP
+       help
+         By default a BOOTP/DHCP reply will overwrite the 'serverip' variable.
+
+         With this option enabled, the 'serverip' variable in the environment
+         takes precedence over DHCP server IP and will only be set by the DHCP
+         server if not already set in the environment.
+
 config BOOTP_SUBNETMASK
        bool "Request & store 'netmask' from BOOTP/DHCP server"
        default y
 config BOOTP_SUBNETMASK
        bool "Request & store 'netmask' from BOOTP/DHCP server"
        default y
@@ -1187,6 +1238,7 @@ config CMD_DNS
 
 config CMD_LINK_LOCAL
        bool "linklocal"
 
 config CMD_LINK_LOCAL
        bool "linklocal"
+       select LIB_RAND
        help
          Acquire a network IP address using the link-local protocol
 
        help
          Acquire a network IP address using the link-local protocol
 
@@ -1206,6 +1258,11 @@ config CMD_PXE
        help
          Boot image via network using PXE protocol
 
        help
          Boot image via network using PXE protocol
 
+config CMD_WOL
+       bool "wol"
+       help
+         Wait for wake-on-lan Magic Packet
+
 endif
 
 menu "Misc commands"
 endif
 
 menu "Misc commands"
@@ -1222,6 +1279,13 @@ config CMD_BMP
          the image into RAM, then using this command to look at it or display
          it.
 
          the image into RAM, then using this command to look at it or display
          it.
 
+config CMD_BOOTCOUNT
+       bool "bootcount"
+       depends on BOOTCOUNT_LIMIT
+       help
+         Enable the bootcount command, which allows interrogation and
+         reset of the bootcounter.
+
 config CMD_BSP
        bool "Enable board-specific commands"
        help
 config CMD_BSP
        bool "Enable board-specific commands"
        help
@@ -1301,6 +1365,13 @@ config CMD_MISC
        help
          Delay execution for some time
 
        help
          Delay execution for some time
 
+config MP
+       bool "support for multiprocessor"
+       help
+         This provides an option to brinup
+         different processors in multiprocessor
+         cases.
+
 config CMD_TIMER
        bool "timer"
        help
 config CMD_TIMER
        bool "timer"
        help
@@ -1427,7 +1498,7 @@ config CMD_BLOB
          the original data.
 
          Sub-commands:
          the original data.
 
          Sub-commands:
-            blob enc - encapsulating data as a cryptgraphic blob
+           blob enc - encapsulating data as a cryptgraphic blob
            blob dec - decapsulating cryptgraphic blob to get the data
 
          Syntax:
            blob dec - decapsulating cryptgraphic blob to get the data
 
          Syntax:
@@ -1477,25 +1548,38 @@ config HASH_VERIFY
        help
          Add -v option to verify data against a hash.
 
        help
          Add -v option to verify data against a hash.
 
+config CMD_TPM_V1
+       bool
+
+config CMD_TPM_V2
+       bool
+       select CMD_LOG
+
 config CMD_TPM
        bool "Enable the 'tpm' command"
 config CMD_TPM
        bool "Enable the 'tpm' command"
-       depends on TPM
+       depends on TPM_V1 || TPM_V2
+       select CMD_TPM_V1 if TPM_V1
+       select CMD_TPM_V2 if TPM_V2
        help
          This provides a means to talk to a TPM from the command line. A wide
          range of commands if provided - see 'tpm help' for details. The
          command requires a suitable TPM on your board and the correct driver
          must be enabled.
 
        help
          This provides a means to talk to a TPM from the command line. A wide
          range of commands if provided - see 'tpm help' for details. The
          command requires a suitable TPM on your board and the correct driver
          must be enabled.
 
+if CMD_TPM
+
 config CMD_TPM_TEST
        bool "Enable the 'tpm test' command"
 config CMD_TPM_TEST
        bool "Enable the 'tpm test' command"
-       depends on CMD_TPM
+       depends on TPM_V1
        help
        help
-         This provides a a series of tests to confirm that the TPM is working
-         correctly. The tests cover initialisation, non-volatile RAM, extend,
-         global lock and checking that timing is within expectations. The
-         tests pass correctly on Infineon TPMs but may need to be adjusted
+         This provides a a series of tests to confirm that the TPMv1.x is
+         working correctly. The tests cover initialisation, non-volatile RAM,
+         extend, global lock and checking that timing is within expectations.
+         The tests pass correctly on Infineon TPMs but may need to be adjusted
          for other devices.
 
          for other devices.
 
+endif
+
 endmenu
 
 menu "Firmware commands"
 endmenu
 
 menu "Firmware commands"
@@ -1590,6 +1674,7 @@ config CMD_JFFS2
 
 config CMD_MTDPARTS
        bool "MTD partition support"
 
 config CMD_MTDPARTS
        bool "MTD partition support"
+       select MTD_DEVICE if (CMD_NAND || NAND)
        help
          MTD partition support
 
        help
          MTD partition support
 
@@ -1702,14 +1787,30 @@ config CMD_TRACE
          for analsys (e.g. using bootchart). See doc/README.trace for full
          details.
 
          for analsys (e.g. using bootchart). See doc/README.trace for full
          details.
 
+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:
+           avb init - initialize avb2 subsystem
+           avb read_rb - read rollback index
+           avb write_rb - write rollback index
+           avb is_unlocked - check device lock state
+           avb get_uuid - read and print uuid of a partition
+           avb read_part - read data from partition
+           avb read_part_hex - read data from partition and output to stdout
+           avb write_part - write data to partition
+           avb verify - run full verification chain
 endmenu
 
 config CMD_UBI
        tristate "Enable UBI - Unsorted block images commands"
 endmenu
 
 config CMD_UBI
        tristate "Enable UBI - Unsorted block images commands"
+       default y if NAND_SUNXI
+       select CMD_MTDPARTS
        select CRC32
        select MTD_UBI
        select CRC32
        select MTD_UBI
-       select CMD_MTDPARTS
-       default y if NAND_SUNXI
        help
          UBI is a software layer above MTD layer which admits use of LVM-like
          logical volumes on top of MTD devices, hides some complexities of
        help
          UBI is a software layer above MTD layer which admits use of LVM-like
          logical volumes on top of MTD devices, hides some complexities of
@@ -1721,9 +1822,9 @@ config CMD_UBI
 config CMD_UBIFS
        tristate "Enable UBIFS - Unsorted block images filesystem commands"
        depends on CMD_UBI
 config CMD_UBIFS
        tristate "Enable UBIFS - Unsorted block images filesystem commands"
        depends on CMD_UBI
+       default y if CMD_UBI
        select CRC32
        select LZO
        select CRC32
        select LZO
-       default y if CMD_UBI
        help
          UBIFS is a file system for flash devices which works on top of UBI.
 
        help
          UBIFS is a file system for flash devices which works on top of UBI.