xref: /openbmc/u-boot/common/Kconfig (revision 3f33f6a28b7a823bfa19157353e8b7c78c63f63c)
1ed36323fSMasahiro Yamadamenu "Command line interface"
2ed36323fSMasahiro Yamada
36c775090SMasahiro Yamadaconfig HUSH_PARSER
46c775090SMasahiro Yamada	bool "Use hush shell"
56c775090SMasahiro Yamada	select SYS_HUSH_PARSER
66c775090SMasahiro Yamada	help
76c775090SMasahiro Yamada	  This option enables the "hush" shell (from Busybox) as command line
86c775090SMasahiro Yamada	  interpreter, thus enabling powerful command line syntax like
96c775090SMasahiro Yamada	  if...then...else...fi conditionals or `&&' and '||'
106c775090SMasahiro Yamada	  constructs ("shell scripts").
116c775090SMasahiro Yamada
126c775090SMasahiro Yamada	  If disabled, you get the old, much simpler behaviour with a somewhat
136c775090SMasahiro Yamada	  smaller memory footprint.
146c775090SMasahiro Yamada
156c775090SMasahiro Yamadaconfig SYS_HUSH_PARSER
166c775090SMasahiro Yamada	bool
176c775090SMasahiro Yamada	help
186c775090SMasahiro Yamada	  Backward compatibility.
196c775090SMasahiro Yamada
20181bd9dcSNikita Kiryanovconfig SYS_PROMPT
21181bd9dcSNikita Kiryanov	string "Shell prompt"
22181bd9dcSNikita Kiryanov	default "=> "
23181bd9dcSNikita Kiryanov	help
24181bd9dcSNikita Kiryanov	  This string is displayed in the command line to the left of the
25181bd9dcSNikita Kiryanov	  cursor.
26181bd9dcSNikita Kiryanov
27d126e016SStefan Roesemenu "Autoboot options"
28d126e016SStefan Roese
29d126e016SStefan Roeseconfig AUTOBOOT_KEYED
30d126e016SStefan Roese	bool "Stop autobooting via specific input key / string"
31d126e016SStefan Roese	default n
32d126e016SStefan Roese	help
33d126e016SStefan Roese	  This option enables stopping (aborting) of the automatic
34d126e016SStefan Roese	  boot feature only by issuing a specific input key or
35d126e016SStefan Roese	  string. If not enabled, any input key will abort the
36d126e016SStefan Roese	  U-Boot automatic booting process and bring the device
37d126e016SStefan Roese	  to the U-Boot prompt for user input.
38d126e016SStefan Roese
39d126e016SStefan Roeseconfig AUTOBOOT_PROMPT
40d126e016SStefan Roese	string "Autoboot stop prompt"
41d126e016SStefan Roese	depends on AUTOBOOT_KEYED
42d126e016SStefan Roese	default "Autoboot in %d seconds\\n"
43d126e016SStefan Roese	help
44d126e016SStefan Roese	  This string is displayed before the boot delay selected by
45d126e016SStefan Roese	  CONFIG_BOOTDELAY starts. If it is not defined	there is no
46d126e016SStefan Roese	  output indicating that autoboot is in progress.
47d126e016SStefan Roese
48d126e016SStefan Roese	  Note that this define is used as the (only) argument to a
49d126e016SStefan Roese	  printf() call, so it may contain '%' format specifications,
50d126e016SStefan Roese	  provided that it also includes, sepearated by commas exactly
51d126e016SStefan Roese	  like in a printf statement, the required arguments. It is
52d126e016SStefan Roese	  the responsibility of the user to select only such arguments
53d126e016SStefan Roese	  that are valid in the given context.
54d126e016SStefan Roese
558f0b1e24SStefan Roeseconfig AUTOBOOT_ENCRYPTION
568f0b1e24SStefan Roese	bool "Enable encryption in autoboot stopping"
578f0b1e24SStefan Roese	depends on AUTOBOOT_KEYED
588f0b1e24SStefan Roese	default n
598f0b1e24SStefan Roese
60d126e016SStefan Roeseconfig AUTOBOOT_DELAY_STR
61d126e016SStefan Roese	string "Delay autobooting via specific input key / string"
628f0b1e24SStefan Roese	depends on AUTOBOOT_KEYED && !AUTOBOOT_ENCRYPTION
63d126e016SStefan Roese	help
64d126e016SStefan Roese	  This option delays the automatic boot feature by issuing
65d126e016SStefan Roese	  a specific input key or string. If CONFIG_AUTOBOOT_DELAY_STR
66d126e016SStefan Roese	  or the environment variable "bootdelaykey" is specified
67d126e016SStefan Roese	  and this string is received from console input before
68d126e016SStefan Roese	  autoboot starts booting, U-Boot gives a command prompt. The
69d126e016SStefan Roese	  U-Boot prompt will time out if CONFIG_BOOT_RETRY_TIME is
70d126e016SStefan Roese	  used, otherwise it never times out.
71d126e016SStefan Roese
72d126e016SStefan Roeseconfig AUTOBOOT_STOP_STR
73d126e016SStefan Roese	string "Stop autobooting via specific input key / string"
748f0b1e24SStefan Roese	depends on AUTOBOOT_KEYED && !AUTOBOOT_ENCRYPTION
75d126e016SStefan Roese	help
76d126e016SStefan Roese	  This option enables stopping (aborting) of the automatic
77d126e016SStefan Roese	  boot feature only by issuing a specific input key or
78d126e016SStefan Roese	  string. If CONFIG_AUTOBOOT_STOP_STR or the environment
79d126e016SStefan Roese	  variable "bootstopkey" is specified and this string is
80d126e016SStefan Roese	  received from console input before autoboot starts booting,
81d126e016SStefan Roese	  U-Boot gives a command prompt. The U-Boot prompt never
82d126e016SStefan Roese	  times out, even if CONFIG_BOOT_RETRY_TIME is used.
83d126e016SStefan Roese
84d126e016SStefan Roeseconfig AUTOBOOT_KEYED_CTRLC
85d126e016SStefan Roese	bool "Enable Ctrl-C autoboot interruption"
868f0b1e24SStefan Roese	depends on AUTOBOOT_KEYED && !AUTOBOOT_ENCRYPTION
87d126e016SStefan Roese	default n
88d126e016SStefan Roese	help
89d126e016SStefan Roese	  This option allows for the boot sequence to be interrupted
90d126e016SStefan Roese	  by ctrl-c, in addition to the "bootdelaykey" and "bootstopkey".
91d126e016SStefan Roese	  Setting this variable	provides an escape sequence from the
92d126e016SStefan Roese	  limited "password" strings.
93d126e016SStefan Roese
948f0b1e24SStefan Roeseconfig AUTOBOOT_STOP_STR_SHA256
958f0b1e24SStefan Roese	string "Stop autobooting via SHA256 encrypted password"
968f0b1e24SStefan Roese	depends on AUTOBOOT_KEYED && AUTOBOOT_ENCRYPTION
978f0b1e24SStefan Roese	help
988f0b1e24SStefan Roese	  This option adds the feature to only stop the autobooting,
998f0b1e24SStefan Roese	  and therefore boot into the U-Boot prompt, when the input
1008f0b1e24SStefan Roese	  string / password matches a values that is encypted via
1018f0b1e24SStefan Roese	  a SHA256 hash and saved in the environment.
1028f0b1e24SStefan Roese
103d126e016SStefan Roeseendmenu
104d126e016SStefan Roese
10560296a83SMasahiro Yamadacomment "Commands"
10660296a83SMasahiro Yamada
10760296a83SMasahiro Yamadamenu "Info commands"
10860296a83SMasahiro Yamada
10960296a83SMasahiro Yamadaconfig CMD_BDI
11060296a83SMasahiro Yamada	bool "bdinfo"
111ef0f2f57SJoe Hershberger	default y
11260296a83SMasahiro Yamada	help
11360296a83SMasahiro Yamada	  Print board info
11460296a83SMasahiro Yamada
11560296a83SMasahiro Yamadaconfig CMD_CONSOLE
11660296a83SMasahiro Yamada	bool "coninfo"
117ef0f2f57SJoe Hershberger	default y
11860296a83SMasahiro Yamada	help
11960296a83SMasahiro Yamada	  Print console devices and information.
12060296a83SMasahiro Yamada
1218e2fac05SSimon Glassconfig CMD_CPU
1228e2fac05SSimon Glass	bool "cpu"
1238e2fac05SSimon Glass	help
1248e2fac05SSimon Glass	  Print information about available CPUs. This normally shows the
1258e2fac05SSimon Glass	  number of CPUs, type (e.g. manufacturer, architecture, product or
1268e2fac05SSimon Glass	  internal name) and clock frequency. Other information may be
1278e2fac05SSimon Glass	  available depending on the CPU driver.
1288e2fac05SSimon Glass
12960296a83SMasahiro Yamadaconfig CMD_LICENSE
13060296a83SMasahiro Yamada	bool "license"
13160296a83SMasahiro Yamada	help
13260296a83SMasahiro Yamada	  Print GPL license text
13360296a83SMasahiro Yamada
13460296a83SMasahiro Yamadaendmenu
13560296a83SMasahiro Yamada
13660296a83SMasahiro Yamadamenu "Boot commands"
13760296a83SMasahiro Yamada
13860296a83SMasahiro Yamadaconfig CMD_BOOTD
13960296a83SMasahiro Yamada	bool "bootd"
140ef0f2f57SJoe Hershberger	default y
14160296a83SMasahiro Yamada	help
14260296a83SMasahiro Yamada	  Run the command stored in the environment "bootcmd", i.e.
14360296a83SMasahiro Yamada	  "bootd" does the same thing as "run bootcmd".
14460296a83SMasahiro Yamada
145dba16970SMasahiro Yamadaconfig CMD_BOOTM
14660296a83SMasahiro Yamada	bool "bootm"
147dba16970SMasahiro Yamada	default y
148dba16970SMasahiro Yamada	help
149dba16970SMasahiro Yamada	  Boot an application image from the memory.
150dba16970SMasahiro Yamada
151a7260759SBin Mengconfig CMD_ELF
152a7260759SBin Meng	bool "bootelf, bootvx"
153a7260759SBin Meng	default y
154a7260759SBin Meng	help
155a7260759SBin Meng	  Boot an ELF/vxWorks image from the memory.
156a7260759SBin Meng
15760296a83SMasahiro Yamadaconfig CMD_GO
15860296a83SMasahiro Yamada	bool "go"
159ca05ee9dSMasahiro Yamada	default y
160ca05ee9dSMasahiro Yamada	help
16160296a83SMasahiro Yamada	  Start an application at a given address.
16260296a83SMasahiro Yamada
16360296a83SMasahiro Yamadaconfig CMD_RUN
16460296a83SMasahiro Yamada	bool "run"
165ef0f2f57SJoe Hershberger	default y
16660296a83SMasahiro Yamada	help
16760296a83SMasahiro Yamada	  Run the command in the given environment variable.
16860296a83SMasahiro Yamada
16960296a83SMasahiro Yamadaconfig CMD_IMI
17060296a83SMasahiro Yamada	bool "iminfo"
171ef0f2f57SJoe Hershberger	default y
17260296a83SMasahiro Yamada	help
17360296a83SMasahiro Yamada	  Print header information for application image.
17460296a83SMasahiro Yamada
17560296a83SMasahiro Yamadaconfig CMD_IMLS
17660296a83SMasahiro Yamada	bool "imls"
177ef0f2f57SJoe Hershberger	default y
17860296a83SMasahiro Yamada	help
17960296a83SMasahiro Yamada	  List all images found in flash
18060296a83SMasahiro Yamada
18160296a83SMasahiro Yamadaconfig CMD_XIMG
18260296a83SMasahiro Yamada	bool "imxtract"
183ef0f2f57SJoe Hershberger	default y
18460296a83SMasahiro Yamada	help
18560296a83SMasahiro Yamada	  Extract a part of a multi-image.
18660296a83SMasahiro Yamada
18760296a83SMasahiro Yamadaendmenu
18860296a83SMasahiro Yamada
18960296a83SMasahiro Yamadamenu "Environment commands"
190ca05ee9dSMasahiro Yamada
191cccee189SMasahiro Yamadaconfig CMD_EXPORTENV
19260296a83SMasahiro Yamada	bool "env export"
193cccee189SMasahiro Yamada	default y
194cccee189SMasahiro Yamada	help
195cccee189SMasahiro Yamada	  Export environments.
196cccee189SMasahiro Yamada
1971d5c2015SMasahiro Yamadaconfig CMD_IMPORTENV
19860296a83SMasahiro Yamada	bool "env import"
1991d5c2015SMasahiro Yamada	default y
2001d5c2015SMasahiro Yamada	help
2011d5c2015SMasahiro Yamada	  Import environments.
2021d5c2015SMasahiro Yamada
20360296a83SMasahiro Yamadaconfig CMD_EDITENV
20460296a83SMasahiro Yamada	bool "editenv"
205ef0f2f57SJoe Hershberger	default y
20660296a83SMasahiro Yamada	help
20760296a83SMasahiro Yamada	  Edit environment variable.
20860296a83SMasahiro Yamada
20960296a83SMasahiro Yamadaconfig CMD_SAVEENV
21060296a83SMasahiro Yamada	bool "saveenv"
211ef0f2f57SJoe Hershberger	default y
21260296a83SMasahiro Yamada	help
213f38bec9fSJoe Hershberger	  Save all environment variables into the compiled-in persistent
214f38bec9fSJoe Hershberger	  storage.
21560296a83SMasahiro Yamada
2166aab5ae9SJoe Hershbergerconfig CMD_ENV_EXISTS
2176aab5ae9SJoe Hershberger	bool "env exists"
218ef0f2f57SJoe Hershberger	default y
2196aab5ae9SJoe Hershberger	help
2206aab5ae9SJoe Hershberger	  Check if a variable is defined in the environment for use in
2216aab5ae9SJoe Hershberger	  shell scripting.
2226aab5ae9SJoe Hershberger
22360296a83SMasahiro Yamadaendmenu
22460296a83SMasahiro Yamada
22560296a83SMasahiro Yamadamenu "Memory commands"
22660296a83SMasahiro Yamada
22760296a83SMasahiro Yamadaconfig CMD_MEMORY
22860296a83SMasahiro Yamada	bool "md, mm, nm, mw, cp, cmp, base, loop"
229ef0f2f57SJoe Hershberger	default y
23060296a83SMasahiro Yamada	help
23160296a83SMasahiro Yamada	  Memeory commands.
23260296a83SMasahiro Yamada	    md - memory display
23360296a83SMasahiro Yamada	    mm - memory modify (auto-incrementing address)
23460296a83SMasahiro Yamada	    nm - memory modify (constant address)
23560296a83SMasahiro Yamada	    mw - memory write (fill)
23660296a83SMasahiro Yamada	    cp - memory copy
23760296a83SMasahiro Yamada	    cmp - memory compare
23860296a83SMasahiro Yamada	    base - print or set address offset
23960296a83SMasahiro Yamada	    loop - initinite loop on address range
24060296a83SMasahiro Yamada
24160296a83SMasahiro Yamadaconfig CMD_CRC32
24260296a83SMasahiro Yamada	bool "crc32"
243726ac8e4SMasahiro Yamada	default y
244726ac8e4SMasahiro Yamada	help
24560296a83SMasahiro Yamada	  Compute CRC32.
24660296a83SMasahiro Yamada
24760296a83SMasahiro Yamadaconfig LOOPW
24860296a83SMasahiro Yamada	bool "loopw"
24960296a83SMasahiro Yamada	help
25060296a83SMasahiro Yamada	  Infinite write loop on address range
25160296a83SMasahiro Yamada
25260296a83SMasahiro Yamadaconfig CMD_MEMTEST
25341ffb45cSNikolaos Pasaloukos	bool "memtest"
25460296a83SMasahiro Yamada	help
25560296a83SMasahiro Yamada	  Simple RAM read/write test.
25660296a83SMasahiro Yamada
25760296a83SMasahiro Yamadaconfig CMD_MX_CYCLIC
25860296a83SMasahiro Yamada	bool "mdc, mwc"
25960296a83SMasahiro Yamada	help
26060296a83SMasahiro Yamada	  mdc - memory display cyclic
26160296a83SMasahiro Yamada	  mwc - memory write cyclic
26260296a83SMasahiro Yamada
26360296a83SMasahiro Yamadaconfig CMD_MEMINFO
26460296a83SMasahiro Yamada	bool "meminfo"
26560296a83SMasahiro Yamada	help
26660296a83SMasahiro Yamada	  Display memory information.
26760296a83SMasahiro Yamada
26860296a83SMasahiro Yamadaendmenu
26960296a83SMasahiro Yamada
27060296a83SMasahiro Yamadamenu "Device access commands"
27160296a83SMasahiro Yamada
272f058f154SSimon Glassconfig CMD_DM
273f058f154SSimon Glass	bool "dm - Access to driver model information"
274f058f154SSimon Glass	depends on DM
275f058f154SSimon Glass	default y
276f058f154SSimon Glass	help
277f058f154SSimon Glass	  Provides access to driver model data structures and information,
278f058f154SSimon Glass	  such as a list of devices, list of uclasses and the state of each
279f058f154SSimon Glass	  device (e.g. activated). This is not required for operation, but
280f058f154SSimon Glass	  can be useful to see the state of driver model for debugging or
281f058f154SSimon Glass	  interest.
282f058f154SSimon Glass
283f058f154SSimon Glassconfig CMD_DEMO
284f058f154SSimon Glass	bool "demo - Demonstration commands for driver model"
285f058f154SSimon Glass	depends on DM
286f058f154SSimon Glass	help
287f058f154SSimon Glass	  Provides a 'demo' command which can be used to play around with
288f058f154SSimon Glass	  driver model. To use this properly you will need to enable one or
289f058f154SSimon Glass	  both of the demo devices (DM_DEMO_SHAPE and DM_DEMO_SIMPLE).
290f058f154SSimon Glass	  Otherwise you will always get an empty list of devices. The demo
291f058f154SSimon Glass	  devices are defined in the sandbox device tree, so the easiest
292f058f154SSimon Glass	  option is to use sandbox and pass the -d point to sandbox's
293f058f154SSimon Glass	  u-boot.dtb file.
294f058f154SSimon Glass
29560296a83SMasahiro Yamadaconfig CMD_LOADB
29660296a83SMasahiro Yamada	bool "loadb"
297ef0f2f57SJoe Hershberger	default y
29860296a83SMasahiro Yamada	help
29960296a83SMasahiro Yamada	  Load a binary file over serial line.
30060296a83SMasahiro Yamada
30160296a83SMasahiro Yamadaconfig CMD_LOADS
30260296a83SMasahiro Yamada	bool "loads"
303ef0f2f57SJoe Hershberger	default y
30460296a83SMasahiro Yamada	help
30560296a83SMasahiro Yamada	  Load an S-Record file over serial line
30660296a83SMasahiro Yamada
30760296a83SMasahiro Yamadaconfig CMD_FLASH
30860296a83SMasahiro Yamada	bool "flinfo, erase, protect"
309ef0f2f57SJoe Hershberger	default y
31060296a83SMasahiro Yamada	help
31160296a83SMasahiro Yamada	  NOR flash support.
31260296a83SMasahiro Yamada	    flinfo - print FLASH memory information
31360296a83SMasahiro Yamada	    erase - FLASH memory
31460296a83SMasahiro Yamada	    protect - enable or disable FLASH write protection
31560296a83SMasahiro Yamada
3164bb66506SLinus Walleijconfig CMD_ARMFLASH
3174bb66506SLinus Walleij	depends on FLASH_CFI_DRIVER
3184bb66506SLinus Walleij	bool "armflash"
3194bb66506SLinus Walleij	help
3204bb66506SLinus Walleij	  ARM Ltd reference designs flash partition access
3214bb66506SLinus Walleij
32260296a83SMasahiro Yamadaconfig CMD_NAND
32360296a83SMasahiro Yamada	bool "nand"
32460296a83SMasahiro Yamada	help
32560296a83SMasahiro Yamada	  NAND support.
32660296a83SMasahiro Yamada
327f39eb75bSJagan Tekiconfig CMD_SF
328f39eb75bSJagan Teki	bool "sf"
329f39eb75bSJagan Teki	help
330f39eb75bSJagan Teki	  SPI Flash support
331f39eb75bSJagan Teki
33260296a83SMasahiro Yamadaconfig CMD_SPI
33360296a83SMasahiro Yamada	bool "sspi"
33460296a83SMasahiro Yamada	help
33560296a83SMasahiro Yamada	  SPI utility command.
33660296a83SMasahiro Yamada
33760296a83SMasahiro Yamadaconfig CMD_I2C
33860296a83SMasahiro Yamada	bool "i2c"
33960296a83SMasahiro Yamada	help
34060296a83SMasahiro Yamada	  I2C support.
34160296a83SMasahiro Yamada
34260296a83SMasahiro Yamadaconfig CMD_USB
34360296a83SMasahiro Yamada	bool "usb"
34460296a83SMasahiro Yamada	help
34560296a83SMasahiro Yamada	  USB support.
34660296a83SMasahiro Yamada
34760296a83SMasahiro Yamadaconfig CMD_FPGA
34860296a83SMasahiro Yamada	bool "fpga"
349ef0f2f57SJoe Hershberger	default y
35060296a83SMasahiro Yamada	help
35160296a83SMasahiro Yamada	  FPGA support.
35260296a83SMasahiro Yamada
353ddf56bc7SNishanth Menonconfig CMD_REMOTEPROC
354ddf56bc7SNishanth Menon	bool "remoteproc"
355ddf56bc7SNishanth Menon	depends on REMOTEPROC
356ddf56bc7SNishanth Menon	help
357ddf56bc7SNishanth Menon	  Support for Remote Processor control
35860296a83SMasahiro Yamadaendmenu
35960296a83SMasahiro Yamada
36060296a83SMasahiro Yamada
36160296a83SMasahiro Yamadamenu "Shell scripting commands"
36260296a83SMasahiro Yamada
36360296a83SMasahiro Yamadaconfig CMD_ECHO
36460296a83SMasahiro Yamada	bool "echo"
365ef0f2f57SJoe Hershberger	default y
36660296a83SMasahiro Yamada	help
36760296a83SMasahiro Yamada	  Echo args to console
36860296a83SMasahiro Yamada
36960296a83SMasahiro Yamadaconfig CMD_ITEST
37060296a83SMasahiro Yamada	bool "itest"
371ef0f2f57SJoe Hershberger	default y
37260296a83SMasahiro Yamada	help
37360296a83SMasahiro Yamada	  Return true/false on integer compare.
37460296a83SMasahiro Yamada
37560296a83SMasahiro Yamadaconfig CMD_SOURCE
37660296a83SMasahiro Yamada	bool "source"
377ef0f2f57SJoe Hershberger	default y
37860296a83SMasahiro Yamada	help
37960296a83SMasahiro Yamada	  Run script from memory
38060296a83SMasahiro Yamada
3817453cb59SJoe Hershbergerconfig CMD_SETEXPR
3827453cb59SJoe Hershberger	bool "setexpr"
383ef0f2f57SJoe Hershberger	default y
3847453cb59SJoe Hershberger	help
3857453cb59SJoe Hershberger	  Evaluate boolean and math expressions and store the result in an env
3867453cb59SJoe Hershberger	    variable.
3877453cb59SJoe Hershberger	  Also supports loading the value at a memory location into a variable.
3887453cb59SJoe Hershberger	  If CONFIG_REGEX is enabled, setexpr also supports a gsub function.
3897453cb59SJoe Hershberger
39060296a83SMasahiro Yamadaendmenu
39160296a83SMasahiro Yamada
39260296a83SMasahiro Yamadamenu "Network commands"
39360296a83SMasahiro Yamada
39460296a83SMasahiro Yamadaconfig CMD_NET
39560296a83SMasahiro Yamada	bool "bootp, tftpboot"
3966eed3786SJoe Hershberger        select NET
397ef0f2f57SJoe Hershberger	default y
39860296a83SMasahiro Yamada	help
39960296a83SMasahiro Yamada	  Network commands.
40060296a83SMasahiro Yamada	  bootp - boot image via network using BOOTP/TFTP protocol
40160296a83SMasahiro Yamada	  tftpboot - boot image via network using TFTP protocol
40260296a83SMasahiro Yamada
40360296a83SMasahiro Yamadaconfig CMD_TFTPPUT
40460296a83SMasahiro Yamada	bool "tftp put"
40560296a83SMasahiro Yamada	help
40660296a83SMasahiro Yamada	  TFTP put command, for uploading files to a server
40760296a83SMasahiro Yamada
40860296a83SMasahiro Yamadaconfig CMD_TFTPSRV
40960296a83SMasahiro Yamada	bool "tftpsrv"
41060296a83SMasahiro Yamada	help
41160296a83SMasahiro Yamada	  Act as a TFTP server and boot the first received file
41260296a83SMasahiro Yamada
41360296a83SMasahiro Yamadaconfig CMD_RARP
41460296a83SMasahiro Yamada	bool "rarpboot"
41560296a83SMasahiro Yamada	help
41660296a83SMasahiro Yamada	  Boot image via network using RARP/TFTP protocol
41760296a83SMasahiro Yamada
41860296a83SMasahiro Yamadaconfig CMD_DHCP
41960296a83SMasahiro Yamada	bool "dhcp"
42060296a83SMasahiro Yamada	help
42160296a83SMasahiro Yamada	  Boot image via network using DHCP/TFTP protocol
42260296a83SMasahiro Yamada
42360296a83SMasahiro Yamadaconfig CMD_NFS
42460296a83SMasahiro Yamada	bool "nfs"
425ef0f2f57SJoe Hershberger	default y
42660296a83SMasahiro Yamada	help
42760296a83SMasahiro Yamada	  Boot image via network using NFS protocol.
42860296a83SMasahiro Yamada
42960296a83SMasahiro Yamadaconfig CMD_PING
43060296a83SMasahiro Yamada	bool "ping"
43160296a83SMasahiro Yamada	help
43260296a83SMasahiro Yamada	  Send ICMP ECHO_REQUEST to network host
43360296a83SMasahiro Yamada
43460296a83SMasahiro Yamadaconfig CMD_CDP
43560296a83SMasahiro Yamada	bool "cdp"
43660296a83SMasahiro Yamada	help
43760296a83SMasahiro Yamada	  Perform CDP network configuration
43860296a83SMasahiro Yamada
43960296a83SMasahiro Yamadaconfig CMD_SNTP
44060296a83SMasahiro Yamada	bool "sntp"
44160296a83SMasahiro Yamada	help
44260296a83SMasahiro Yamada	  Synchronize RTC via network
44360296a83SMasahiro Yamada
44460296a83SMasahiro Yamadaconfig CMD_DNS
44560296a83SMasahiro Yamada	bool "dns"
44660296a83SMasahiro Yamada	help
44760296a83SMasahiro Yamada	  Lookup the IP of a hostname
44860296a83SMasahiro Yamada
44960296a83SMasahiro Yamadaconfig CMD_LINK_LOCAL
45060296a83SMasahiro Yamada	bool "linklocal"
45160296a83SMasahiro Yamada	help
45260296a83SMasahiro Yamada	  Acquire a network IP address using the link-local protocol
45360296a83SMasahiro Yamada
45460296a83SMasahiro Yamadaendmenu
45560296a83SMasahiro Yamada
45660296a83SMasahiro Yamadamenu "Misc commands"
45760296a83SMasahiro Yamada
458*3f33f6a2SFrancois Retiefconfig CMD_AMBAPP
459*3f33f6a2SFrancois Retief	bool "ambapp"
460*3f33f6a2SFrancois Retief	depends on LEON3
461*3f33f6a2SFrancois Retief	default y
462*3f33f6a2SFrancois Retief	help
463*3f33f6a2SFrancois Retief	  Lists AMBA Plug-n-Play information.
464*3f33f6a2SFrancois Retief
465*3f33f6a2SFrancois Retiefconfig SYS_AMBAPP_PRINT_ON_STARTUP
466*3f33f6a2SFrancois Retief	bool "Show AMBA PnP info on startup"
467*3f33f6a2SFrancois Retief	depends on CMD_AMBAPP
468*3f33f6a2SFrancois Retief	default n
469*3f33f6a2SFrancois Retief	help
470*3f33f6a2SFrancois Retief	  Show AMBA Plug-n-Play information on startup.
471*3f33f6a2SFrancois Retief
47260296a83SMasahiro Yamadaconfig CMD_TIME
47360296a83SMasahiro Yamada	bool "time"
47460296a83SMasahiro Yamada	help
47560296a83SMasahiro Yamada	  Run commands and summarize execution time.
47660296a83SMasahiro Yamada
47760296a83SMasahiro Yamada# TODO: rename to CMD_SLEEP
47860296a83SMasahiro Yamadaconfig CMD_MISC
47960296a83SMasahiro Yamada	bool "sleep"
480ef0f2f57SJoe Hershberger	default y
48160296a83SMasahiro Yamada	help
48260296a83SMasahiro Yamada	  Delay execution for some time
48360296a83SMasahiro Yamada
48460296a83SMasahiro Yamadaconfig CMD_TIMER
48560296a83SMasahiro Yamada	bool "timer"
48660296a83SMasahiro Yamada	help
48760296a83SMasahiro Yamada	  Access the system timer.
48860296a83SMasahiro Yamada
48960296a83SMasahiro Yamadaconfig CMD_SETGETDCR
49060296a83SMasahiro Yamada	bool "getdcr, setdcr, getidcr, setidcr"
49160296a83SMasahiro Yamada	depends on 4xx
492ef0f2f57SJoe Hershberger	default y
49360296a83SMasahiro Yamada	help
49460296a83SMasahiro Yamada	  getdcr - Get an AMCC PPC 4xx DCR's value
49560296a83SMasahiro Yamada	  setdcr - Set an AMCC PPC 4xx DCR's value
49660296a83SMasahiro Yamada	  getidcr - Get a register value via indirect DCR addressing
49760296a83SMasahiro Yamada	  setidcr - Set a register value via indirect DCR addressing
49860296a83SMasahiro Yamada
499de79a765SSimon Glassconfig CMD_SOUND
500de79a765SSimon Glass	bool "sound"
501de79a765SSimon Glass	depends on SOUND
502de79a765SSimon Glass	help
503de79a765SSimon Glass	  This provides basic access to the U-Boot's sound support. The main
504de79a765SSimon Glass	  feature is to play a beep.
505de79a765SSimon Glass
506de79a765SSimon Glass	     sound init   - set up sound system
507de79a765SSimon Glass	     sound play   - play a sound
508de79a765SSimon Glass
50960296a83SMasahiro Yamadaendmenu
510726ac8e4SMasahiro Yamada
511ee2b2434SSimon Glassmenu "Boot timing"
512ee2b2434SSimon Glass
513ee2b2434SSimon Glassconfig BOOTSTAGE
514ee2b2434SSimon Glass	bool "Boot timing and reporting"
515ee2b2434SSimon Glass	help
516ee2b2434SSimon Glass	  Enable recording of boot time while booting. To use it, insert
517ee2b2434SSimon Glass	  calls to bootstage_mark() with a suitable BOOTSTAGE_ID from
518ee2b2434SSimon Glass	  bootstage.h. Only a single entry is recorded for each ID. You can
519ee2b2434SSimon Glass	  give the entry a name with bootstage_mark_name(). You can also
520ee2b2434SSimon Glass	  record elapsed time in a particular stage using bootstage_start()
521ee2b2434SSimon Glass	  before starting and bootstage_accum() when finished. Bootstage will
522ee2b2434SSimon Glass	  add up all the accumated time and report it.
523ee2b2434SSimon Glass
524ee2b2434SSimon Glass	  Normally, IDs are defined in bootstage.h but a small number of
525ee2b2434SSimon Glass	  additional 'user' IDs can be used but passing BOOTSTAGE_ID_ALLOC
526ee2b2434SSimon Glass	  as the ID.
527ee2b2434SSimon Glass
528ee2b2434SSimon Glass	  Calls to show_boot_progress() wil also result in log entries but
529ee2b2434SSimon Glass	  these will not have names.
530ee2b2434SSimon Glass
531ee2b2434SSimon Glassconfig BOOTSTAGE_REPORT
532ee2b2434SSimon Glass	bool "Display a detailed boot timing report before booting the OS"
533ee2b2434SSimon Glass	depends on BOOTSTAGE
534ee2b2434SSimon Glass	help
535ee2b2434SSimon Glass	  Enable output of a boot time report just before the OS is booted.
536ee2b2434SSimon Glass	  This shows how long it took U-Boot to go through each stage of the
537ee2b2434SSimon Glass	  boot process. The report looks something like this:
538ee2b2434SSimon Glass
539ee2b2434SSimon Glass		Timer summary in microseconds:
540ee2b2434SSimon Glass		       Mark    Elapsed  Stage
541ee2b2434SSimon Glass			  0          0  reset
542ee2b2434SSimon Glass		  3,575,678  3,575,678  board_init_f start
543ee2b2434SSimon Glass		  3,575,695         17  arch_cpu_init A9
544ee2b2434SSimon Glass		  3,575,777         82  arch_cpu_init done
545ee2b2434SSimon Glass		  3,659,598     83,821  board_init_r start
546ee2b2434SSimon Glass		  3,910,375    250,777  main_loop
547ee2b2434SSimon Glass		 29,916,167 26,005,792  bootm_start
548ee2b2434SSimon Glass		 30,361,327    445,160  start_kernel
549ee2b2434SSimon Glass
550ee2b2434SSimon Glassconfig BOOTSTAGE_USER_COUNT
551ee2b2434SSimon Glass	hex "Number of boot ID numbers available for user use"
552ee2b2434SSimon Glass	default 20
553ee2b2434SSimon Glass	help
554ee2b2434SSimon Glass	  This is the number of available user bootstage records.
555ee2b2434SSimon Glass	  Each time you call bootstage_mark(BOOTSTAGE_ID_ALLOC, ...)
556ee2b2434SSimon Glass	  a new ID will be allocated from this stash. If you exceed
557ee2b2434SSimon Glass	  the limit, recording will stop.
558ee2b2434SSimon Glass
559ee2b2434SSimon Glassconfig CMD_BOOTSTAGE
560ee2b2434SSimon Glass	bool "Enable the 'bootstage' command"
561ee2b2434SSimon Glass	depends on BOOTSTAGE
562ee2b2434SSimon Glass	help
563ee2b2434SSimon Glass	  Add a 'bootstage' command which supports printing a report
564ee2b2434SSimon Glass	  and un/stashing of bootstage data.
565ee2b2434SSimon Glass
566ee2b2434SSimon Glassconfig BOOTSTAGE_FDT
567ee2b2434SSimon Glass	bool "Store boot timing information in the OS device tree"
568ee2b2434SSimon Glass	depends on BOOTSTAGE
569ee2b2434SSimon Glass	help
570ee2b2434SSimon Glass	  Stash the bootstage information in the FDT. A root 'bootstage'
571ee2b2434SSimon Glass	  node is created with each bootstage id as a child. Each child
572ee2b2434SSimon Glass	  has a 'name' property and either 'mark' containing the
573ee2b2434SSimon Glass	  mark time in microsecond, or 'accum' containing the
574ee2b2434SSimon Glass	  accumulated time for that bootstage id in microseconds.
575ee2b2434SSimon Glass	  For example:
576ee2b2434SSimon Glass
577ee2b2434SSimon Glass		bootstage {
578ee2b2434SSimon Glass			154 {
579ee2b2434SSimon Glass				name = "board_init_f";
580ee2b2434SSimon Glass				mark = <3575678>;
581ee2b2434SSimon Glass			};
582ee2b2434SSimon Glass			170 {
583ee2b2434SSimon Glass				name = "lcd";
584ee2b2434SSimon Glass				accum = <33482>;
585ee2b2434SSimon Glass			};
586ee2b2434SSimon Glass		};
587ee2b2434SSimon Glass
588ee2b2434SSimon Glass	  Code in the Linux kernel can find this in /proc/devicetree.
589ee2b2434SSimon Glass
590ee2b2434SSimon Glassconfig BOOTSTAGE_STASH
591ee2b2434SSimon Glass	bool "Stash the boot timing information in memory before booting OS"
592ee2b2434SSimon Glass	depends on BOOTSTAGE
593ee2b2434SSimon Glass	help
594ee2b2434SSimon Glass	  Some OSes do not support device tree. Bootstage can instead write
595ee2b2434SSimon Glass	  the boot timing information in a binary format at a given address.
596ee2b2434SSimon Glass	  This happens through a call to bootstage_stash(), typically in
597ee2b2434SSimon Glass	  the CPU's cleanup_before_linux() function. You can use the
598ee2b2434SSimon Glass	  'bootstage stash' and 'bootstage unstash' commands to do this on
599ee2b2434SSimon Glass	  the command line.
600ee2b2434SSimon Glass
601ee2b2434SSimon Glassconfig BOOTSTAGE_STASH_ADDR
602ee2b2434SSimon Glass	hex "Address to stash boot timing information"
603ee2b2434SSimon Glass	default 0
604ee2b2434SSimon Glass	help
605ee2b2434SSimon Glass	  Provide an address which will not be overwritten by the OS when it
606ee2b2434SSimon Glass	  starts, so that it can read this information when ready.
607ee2b2434SSimon Glass
608ee2b2434SSimon Glassconfig BOOTSTAGE_STASH_SIZE
609ee2b2434SSimon Glass	hex "Size of boot timing stash region"
610ee2b2434SSimon Glass	default 4096
611ee2b2434SSimon Glass	help
612ee2b2434SSimon Glass	  This should be large enough to hold the bootstage stash. A value of
613ee2b2434SSimon Glass	  4096 (4KiB) is normally plenty.
614ee2b2434SSimon Glass
615ee2b2434SSimon Glassendmenu
616ee2b2434SSimon Glass
617d89fdcf9SPrzemyslaw Marczakmenu "Power commands"
618d89fdcf9SPrzemyslaw Marczakconfig CMD_PMIC
619d89fdcf9SPrzemyslaw Marczak	bool "Enable Driver Model PMIC command"
620d89fdcf9SPrzemyslaw Marczak	depends on DM_PMIC
621d89fdcf9SPrzemyslaw Marczak	help
622d89fdcf9SPrzemyslaw Marczak	  This is the pmic command, based on a driver model pmic's API.
623d89fdcf9SPrzemyslaw Marczak	  Command features are unchanged:
624d89fdcf9SPrzemyslaw Marczak	  - list               - list pmic devices
625d89fdcf9SPrzemyslaw Marczak	  - pmic dev <id>      - show or [set] operating pmic device (NEW)
626d89fdcf9SPrzemyslaw Marczak	  - pmic dump          - dump registers
627d89fdcf9SPrzemyslaw Marczak	  - pmic read address  - read byte of register at address
628d89fdcf9SPrzemyslaw Marczak	  - pmic write address - write byte to register at address
629d89fdcf9SPrzemyslaw Marczak	  The only one change for this command is 'dev' subcommand.
6306262b72bSPrzemyslaw Marczak
6316262b72bSPrzemyslaw Marczakconfig CMD_REGULATOR
6326262b72bSPrzemyslaw Marczak	bool "Enable Driver Model REGULATOR command"
6336262b72bSPrzemyslaw Marczak	depends on DM_REGULATOR
6346262b72bSPrzemyslaw Marczak	help
6356262b72bSPrzemyslaw Marczak	  This command is based on driver model regulator's API.
6366262b72bSPrzemyslaw Marczak	  User interface features:
6376262b72bSPrzemyslaw Marczak	  - list               - list regulator devices
6386262b72bSPrzemyslaw Marczak	  - regulator dev <id> - show or [set] operating regulator device
6396262b72bSPrzemyslaw Marczak	  - regulator info     - print constraints info
6406262b72bSPrzemyslaw Marczak	  - regulator status   - print operating status
6416262b72bSPrzemyslaw Marczak	  - regulator value <val] <-f> - print/[set] voltage value [uV]
6426262b72bSPrzemyslaw Marczak	  - regulator current <val>    - print/[set] current value [uA]
6436262b72bSPrzemyslaw Marczak	  - regulator mode <id>        - print/[set] operating mode id
6446262b72bSPrzemyslaw Marczak	  - regulator enable           - enable the regulator output
6456262b72bSPrzemyslaw Marczak	  - regulator disable          - disable the regulator output
6466262b72bSPrzemyslaw Marczak
6476262b72bSPrzemyslaw Marczak	  The '-f' (force) option can be used for set the value which exceeds
6486262b72bSPrzemyslaw Marczak	  the limits, which are found in device-tree and are kept in regulator's
6496262b72bSPrzemyslaw Marczak	  uclass platdata structure.
6506262b72bSPrzemyslaw Marczak
651d89fdcf9SPrzemyslaw Marczakendmenu
6526262b72bSPrzemyslaw Marczak
653a7d660bcSSimon Glassmenu "Security commands"
654a7d660bcSSimon Glassconfig CMD_TPM
655a7d660bcSSimon Glass	bool "Enable the 'tpm' command"
656a7d660bcSSimon Glass	depends on TPM
657a7d660bcSSimon Glass	help
658a7d660bcSSimon Glass	  This provides a means to talk to a TPM from the command line. A wide
659a7d660bcSSimon Glass	  range of commands if provided - see 'tpm help' for details. The
660a7d660bcSSimon Glass	  command requires a suitable TPM on your board and the correct driver
661a7d660bcSSimon Glass	  must be enabled.
662a7d660bcSSimon Glass
663e76cb927SSimon Glassconfig CMD_TPM_TEST
664e76cb927SSimon Glass	bool "Enable the 'tpm test' command"
665e76cb927SSimon Glass	depends on CMD_TPM
666e76cb927SSimon Glass	help
667e76cb927SSimon Glass	  This provides a a series of tests to confirm that the TPM is working
668e76cb927SSimon Glass	  correctly. The tests cover initialisation, non-volatile RAM, extend,
669e76cb927SSimon Glass	  global lock and checking that timing is within expectations. The
670e76cb927SSimon Glass	  tests pass correctly on Infineon TPMs but may need to be adjusted
671e76cb927SSimon Glass	  for other devices.
672e76cb927SSimon Glass
673a7d660bcSSimon Glassendmenu
674a7d660bcSSimon Glass
675ed36323fSMasahiro Yamadaendmenu
676