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 20d126e016SStefan Roesemenu "Autoboot options" 21d126e016SStefan Roese 22d126e016SStefan Roeseconfig AUTOBOOT_KEYED 23d126e016SStefan Roese bool "Stop autobooting via specific input key / string" 24d126e016SStefan Roese default n 25d126e016SStefan Roese help 26d126e016SStefan Roese This option enables stopping (aborting) of the automatic 27d126e016SStefan Roese boot feature only by issuing a specific input key or 28d126e016SStefan Roese string. If not enabled, any input key will abort the 29d126e016SStefan Roese U-Boot automatic booting process and bring the device 30d126e016SStefan Roese to the U-Boot prompt for user input. 31d126e016SStefan Roese 32d126e016SStefan Roeseconfig AUTOBOOT_PROMPT 33d126e016SStefan Roese string "Autoboot stop prompt" 34d126e016SStefan Roese depends on AUTOBOOT_KEYED 35d126e016SStefan Roese default "Autoboot in %d seconds\\n" 36d126e016SStefan Roese help 37d126e016SStefan Roese This string is displayed before the boot delay selected by 38d126e016SStefan Roese CONFIG_BOOTDELAY starts. If it is not defined there is no 39d126e016SStefan Roese output indicating that autoboot is in progress. 40d126e016SStefan Roese 41d126e016SStefan Roese Note that this define is used as the (only) argument to a 42d126e016SStefan Roese printf() call, so it may contain '%' format specifications, 43d126e016SStefan Roese provided that it also includes, sepearated by commas exactly 44d126e016SStefan Roese like in a printf statement, the required arguments. It is 45d126e016SStefan Roese the responsibility of the user to select only such arguments 46d126e016SStefan Roese that are valid in the given context. 47d126e016SStefan Roese 488f0b1e24SStefan Roeseconfig AUTOBOOT_ENCRYPTION 498f0b1e24SStefan Roese bool "Enable encryption in autoboot stopping" 508f0b1e24SStefan Roese depends on AUTOBOOT_KEYED 518f0b1e24SStefan Roese default n 528f0b1e24SStefan Roese 53d126e016SStefan Roeseconfig AUTOBOOT_DELAY_STR 54d126e016SStefan Roese string "Delay autobooting via specific input key / string" 558f0b1e24SStefan Roese depends on AUTOBOOT_KEYED && !AUTOBOOT_ENCRYPTION 56d126e016SStefan Roese help 57d126e016SStefan Roese This option delays the automatic boot feature by issuing 58d126e016SStefan Roese a specific input key or string. If CONFIG_AUTOBOOT_DELAY_STR 59d126e016SStefan Roese or the environment variable "bootdelaykey" is specified 60d126e016SStefan Roese and this string is received from console input before 61d126e016SStefan Roese autoboot starts booting, U-Boot gives a command prompt. The 62d126e016SStefan Roese U-Boot prompt will time out if CONFIG_BOOT_RETRY_TIME is 63d126e016SStefan Roese used, otherwise it never times out. 64d126e016SStefan Roese 65d126e016SStefan Roeseconfig AUTOBOOT_STOP_STR 66d126e016SStefan Roese string "Stop autobooting via specific input key / string" 678f0b1e24SStefan Roese depends on AUTOBOOT_KEYED && !AUTOBOOT_ENCRYPTION 68d126e016SStefan Roese help 69d126e016SStefan Roese This option enables stopping (aborting) of the automatic 70d126e016SStefan Roese boot feature only by issuing a specific input key or 71d126e016SStefan Roese string. If CONFIG_AUTOBOOT_STOP_STR or the environment 72d126e016SStefan Roese variable "bootstopkey" is specified and this string is 73d126e016SStefan Roese received from console input before autoboot starts booting, 74d126e016SStefan Roese U-Boot gives a command prompt. The U-Boot prompt never 75d126e016SStefan Roese times out, even if CONFIG_BOOT_RETRY_TIME is used. 76d126e016SStefan Roese 77d126e016SStefan Roeseconfig AUTOBOOT_KEYED_CTRLC 78d126e016SStefan Roese bool "Enable Ctrl-C autoboot interruption" 798f0b1e24SStefan Roese depends on AUTOBOOT_KEYED && !AUTOBOOT_ENCRYPTION 80d126e016SStefan Roese default n 81d126e016SStefan Roese help 82d126e016SStefan Roese This option allows for the boot sequence to be interrupted 83d126e016SStefan Roese by ctrl-c, in addition to the "bootdelaykey" and "bootstopkey". 84d126e016SStefan Roese Setting this variable provides an escape sequence from the 85d126e016SStefan Roese limited "password" strings. 86d126e016SStefan Roese 878f0b1e24SStefan Roeseconfig AUTOBOOT_STOP_STR_SHA256 888f0b1e24SStefan Roese string "Stop autobooting via SHA256 encrypted password" 898f0b1e24SStefan Roese depends on AUTOBOOT_KEYED && AUTOBOOT_ENCRYPTION 908f0b1e24SStefan Roese help 918f0b1e24SStefan Roese This option adds the feature to only stop the autobooting, 928f0b1e24SStefan Roese and therefore boot into the U-Boot prompt, when the input 938f0b1e24SStefan Roese string / password matches a values that is encypted via 948f0b1e24SStefan Roese a SHA256 hash and saved in the environment. 958f0b1e24SStefan Roese 96d126e016SStefan Roeseendmenu 97d126e016SStefan Roese 9860296a83SMasahiro Yamadacomment "Commands" 9960296a83SMasahiro Yamada 10060296a83SMasahiro Yamadamenu "Info commands" 10160296a83SMasahiro Yamada 10260296a83SMasahiro Yamadaconfig CMD_BDI 10360296a83SMasahiro Yamada bool "bdinfo" 10460296a83SMasahiro Yamada help 10560296a83SMasahiro Yamada Print board info 10660296a83SMasahiro Yamada 10760296a83SMasahiro Yamadaconfig CMD_CONSOLE 10860296a83SMasahiro Yamada bool "coninfo" 10960296a83SMasahiro Yamada help 11060296a83SMasahiro Yamada Print console devices and information. 11160296a83SMasahiro Yamada 1128e2fac05SSimon Glassconfig CMD_CPU 1138e2fac05SSimon Glass bool "cpu" 1148e2fac05SSimon Glass help 1158e2fac05SSimon Glass Print information about available CPUs. This normally shows the 1168e2fac05SSimon Glass number of CPUs, type (e.g. manufacturer, architecture, product or 1178e2fac05SSimon Glass internal name) and clock frequency. Other information may be 1188e2fac05SSimon Glass available depending on the CPU driver. 1198e2fac05SSimon Glass 12060296a83SMasahiro Yamadaconfig CMD_LICENSE 12160296a83SMasahiro Yamada bool "license" 12260296a83SMasahiro Yamada help 12360296a83SMasahiro Yamada Print GPL license text 12460296a83SMasahiro Yamada 12560296a83SMasahiro Yamadaendmenu 12660296a83SMasahiro Yamada 12760296a83SMasahiro Yamadamenu "Boot commands" 12860296a83SMasahiro Yamada 12960296a83SMasahiro Yamadaconfig CMD_BOOTD 13060296a83SMasahiro Yamada bool "bootd" 13160296a83SMasahiro Yamada help 13260296a83SMasahiro Yamada Run the command stored in the environment "bootcmd", i.e. 13360296a83SMasahiro Yamada "bootd" does the same thing as "run bootcmd". 13460296a83SMasahiro Yamada 135dba16970SMasahiro Yamadaconfig CMD_BOOTM 13660296a83SMasahiro Yamada bool "bootm" 137dba16970SMasahiro Yamada default y 138dba16970SMasahiro Yamada help 139dba16970SMasahiro Yamada Boot an application image from the memory. 140dba16970SMasahiro Yamada 14160296a83SMasahiro Yamadaconfig CMD_GO 14260296a83SMasahiro Yamada bool "go" 143ca05ee9dSMasahiro Yamada default y 144ca05ee9dSMasahiro Yamada help 14560296a83SMasahiro Yamada Start an application at a given address. 14660296a83SMasahiro Yamada 14760296a83SMasahiro Yamadaconfig CMD_RUN 14860296a83SMasahiro Yamada bool "run" 14960296a83SMasahiro Yamada help 15060296a83SMasahiro Yamada Run the command in the given environment variable. 15160296a83SMasahiro Yamada 15260296a83SMasahiro Yamadaconfig CMD_IMI 15360296a83SMasahiro Yamada bool "iminfo" 15460296a83SMasahiro Yamada help 15560296a83SMasahiro Yamada Print header information for application image. 15660296a83SMasahiro Yamada 15760296a83SMasahiro Yamadaconfig CMD_IMLS 15860296a83SMasahiro Yamada bool "imls" 15960296a83SMasahiro Yamada help 16060296a83SMasahiro Yamada List all images found in flash 16160296a83SMasahiro Yamada 16260296a83SMasahiro Yamadaconfig CMD_XIMG 16360296a83SMasahiro Yamada bool "imxtract" 16460296a83SMasahiro Yamada help 16560296a83SMasahiro Yamada Extract a part of a multi-image. 16660296a83SMasahiro Yamada 16760296a83SMasahiro Yamadaendmenu 16860296a83SMasahiro Yamada 16960296a83SMasahiro Yamadamenu "Environment commands" 170ca05ee9dSMasahiro Yamada 171cccee189SMasahiro Yamadaconfig CMD_EXPORTENV 17260296a83SMasahiro Yamada bool "env export" 173cccee189SMasahiro Yamada default y 174cccee189SMasahiro Yamada help 175cccee189SMasahiro Yamada Export environments. 176cccee189SMasahiro Yamada 1771d5c2015SMasahiro Yamadaconfig CMD_IMPORTENV 17860296a83SMasahiro Yamada bool "env import" 1791d5c2015SMasahiro Yamada default y 1801d5c2015SMasahiro Yamada help 1811d5c2015SMasahiro Yamada Import environments. 1821d5c2015SMasahiro Yamada 18360296a83SMasahiro Yamadaconfig CMD_EDITENV 18460296a83SMasahiro Yamada bool "editenv" 18560296a83SMasahiro Yamada help 18660296a83SMasahiro Yamada Edit environment variable. 18760296a83SMasahiro Yamada 18860296a83SMasahiro Yamadaconfig CMD_SAVEENV 18960296a83SMasahiro Yamada bool "saveenv" 19060296a83SMasahiro Yamada help 191*f38bec9fSJoe Hershberger Save all environment variables into the compiled-in persistent 192*f38bec9fSJoe Hershberger storage. 19360296a83SMasahiro Yamada 19460296a83SMasahiro Yamadaendmenu 19560296a83SMasahiro Yamada 19660296a83SMasahiro Yamadamenu "Memory commands" 19760296a83SMasahiro Yamada 19860296a83SMasahiro Yamadaconfig CMD_MEMORY 19960296a83SMasahiro Yamada bool "md, mm, nm, mw, cp, cmp, base, loop" 20060296a83SMasahiro Yamada help 20160296a83SMasahiro Yamada Memeory commands. 20260296a83SMasahiro Yamada md - memory display 20360296a83SMasahiro Yamada mm - memory modify (auto-incrementing address) 20460296a83SMasahiro Yamada nm - memory modify (constant address) 20560296a83SMasahiro Yamada mw - memory write (fill) 20660296a83SMasahiro Yamada cp - memory copy 20760296a83SMasahiro Yamada cmp - memory compare 20860296a83SMasahiro Yamada base - print or set address offset 20960296a83SMasahiro Yamada loop - initinite loop on address range 21060296a83SMasahiro Yamada 21160296a83SMasahiro Yamadaconfig CMD_CRC32 21260296a83SMasahiro Yamada bool "crc32" 213726ac8e4SMasahiro Yamada default y 214726ac8e4SMasahiro Yamada help 21560296a83SMasahiro Yamada Compute CRC32. 21660296a83SMasahiro Yamada 21760296a83SMasahiro Yamadaconfig LOOPW 21860296a83SMasahiro Yamada bool "loopw" 21960296a83SMasahiro Yamada help 22060296a83SMasahiro Yamada Infinite write loop on address range 22160296a83SMasahiro Yamada 22260296a83SMasahiro Yamadaconfig CMD_MEMTEST 22341ffb45cSNikolaos Pasaloukos bool "memtest" 22460296a83SMasahiro Yamada help 22560296a83SMasahiro Yamada Simple RAM read/write test. 22660296a83SMasahiro Yamada 22760296a83SMasahiro Yamadaconfig CMD_MX_CYCLIC 22860296a83SMasahiro Yamada bool "mdc, mwc" 22960296a83SMasahiro Yamada help 23060296a83SMasahiro Yamada mdc - memory display cyclic 23160296a83SMasahiro Yamada mwc - memory write cyclic 23260296a83SMasahiro Yamada 23360296a83SMasahiro Yamadaconfig CMD_MEMINFO 23460296a83SMasahiro Yamada bool "meminfo" 23560296a83SMasahiro Yamada help 23660296a83SMasahiro Yamada Display memory information. 23760296a83SMasahiro Yamada 23860296a83SMasahiro Yamadaendmenu 23960296a83SMasahiro Yamada 24060296a83SMasahiro Yamadamenu "Device access commands" 24160296a83SMasahiro Yamada 242f058f154SSimon Glassconfig CMD_DM 243f058f154SSimon Glass bool "dm - Access to driver model information" 244f058f154SSimon Glass depends on DM 245f058f154SSimon Glass default y 246f058f154SSimon Glass help 247f058f154SSimon Glass Provides access to driver model data structures and information, 248f058f154SSimon Glass such as a list of devices, list of uclasses and the state of each 249f058f154SSimon Glass device (e.g. activated). This is not required for operation, but 250f058f154SSimon Glass can be useful to see the state of driver model for debugging or 251f058f154SSimon Glass interest. 252f058f154SSimon Glass 253f058f154SSimon Glassconfig CMD_DEMO 254f058f154SSimon Glass bool "demo - Demonstration commands for driver model" 255f058f154SSimon Glass depends on DM 256f058f154SSimon Glass help 257f058f154SSimon Glass Provides a 'demo' command which can be used to play around with 258f058f154SSimon Glass driver model. To use this properly you will need to enable one or 259f058f154SSimon Glass both of the demo devices (DM_DEMO_SHAPE and DM_DEMO_SIMPLE). 260f058f154SSimon Glass Otherwise you will always get an empty list of devices. The demo 261f058f154SSimon Glass devices are defined in the sandbox device tree, so the easiest 262f058f154SSimon Glass option is to use sandbox and pass the -d point to sandbox's 263f058f154SSimon Glass u-boot.dtb file. 264f058f154SSimon Glass 26560296a83SMasahiro Yamadaconfig CMD_LOADB 26660296a83SMasahiro Yamada bool "loadb" 26760296a83SMasahiro Yamada help 26860296a83SMasahiro Yamada Load a binary file over serial line. 26960296a83SMasahiro Yamada 27060296a83SMasahiro Yamadaconfig CMD_LOADS 27160296a83SMasahiro Yamada bool "loads" 27260296a83SMasahiro Yamada help 27360296a83SMasahiro Yamada Load an S-Record file over serial line 27460296a83SMasahiro Yamada 27560296a83SMasahiro Yamadaconfig CMD_FLASH 27660296a83SMasahiro Yamada bool "flinfo, erase, protect" 27760296a83SMasahiro Yamada help 27860296a83SMasahiro Yamada NOR flash support. 27960296a83SMasahiro Yamada flinfo - print FLASH memory information 28060296a83SMasahiro Yamada erase - FLASH memory 28160296a83SMasahiro Yamada protect - enable or disable FLASH write protection 28260296a83SMasahiro Yamada 2834bb66506SLinus Walleijconfig CMD_ARMFLASH 2844bb66506SLinus Walleij depends on FLASH_CFI_DRIVER 2854bb66506SLinus Walleij bool "armflash" 2864bb66506SLinus Walleij help 2874bb66506SLinus Walleij ARM Ltd reference designs flash partition access 2884bb66506SLinus Walleij 28960296a83SMasahiro Yamadaconfig CMD_NAND 29060296a83SMasahiro Yamada bool "nand" 29160296a83SMasahiro Yamada help 29260296a83SMasahiro Yamada NAND support. 29360296a83SMasahiro Yamada 29460296a83SMasahiro Yamadaconfig CMD_SPI 29560296a83SMasahiro Yamada bool "sspi" 29660296a83SMasahiro Yamada help 29760296a83SMasahiro Yamada SPI utility command. 29860296a83SMasahiro Yamada 29960296a83SMasahiro Yamadaconfig CMD_I2C 30060296a83SMasahiro Yamada bool "i2c" 30160296a83SMasahiro Yamada help 30260296a83SMasahiro Yamada I2C support. 30360296a83SMasahiro Yamada 30460296a83SMasahiro Yamadaconfig CMD_USB 30560296a83SMasahiro Yamada bool "usb" 30660296a83SMasahiro Yamada help 30760296a83SMasahiro Yamada USB support. 30860296a83SMasahiro Yamada 30960296a83SMasahiro Yamadaconfig CMD_FPGA 31060296a83SMasahiro Yamada bool "fpga" 31160296a83SMasahiro Yamada help 31260296a83SMasahiro Yamada FPGA support. 31360296a83SMasahiro Yamada 31460296a83SMasahiro Yamadaendmenu 31560296a83SMasahiro Yamada 31660296a83SMasahiro Yamada 31760296a83SMasahiro Yamadamenu "Shell scripting commands" 31860296a83SMasahiro Yamada 31960296a83SMasahiro Yamadaconfig CMD_ECHO 32060296a83SMasahiro Yamada bool "echo" 32160296a83SMasahiro Yamada help 32260296a83SMasahiro Yamada Echo args to console 32360296a83SMasahiro Yamada 32460296a83SMasahiro Yamadaconfig CMD_ITEST 32560296a83SMasahiro Yamada bool "itest" 32660296a83SMasahiro Yamada help 32760296a83SMasahiro Yamada Return true/false on integer compare. 32860296a83SMasahiro Yamada 32960296a83SMasahiro Yamadaconfig CMD_SOURCE 33060296a83SMasahiro Yamada bool "source" 33160296a83SMasahiro Yamada help 33260296a83SMasahiro Yamada Run script from memory 33360296a83SMasahiro Yamada 3347453cb59SJoe Hershbergerconfig CMD_SETEXPR 3357453cb59SJoe Hershberger bool "setexpr" 3367453cb59SJoe Hershberger help 3377453cb59SJoe Hershberger Evaluate boolean and math expressions and store the result in an env 3387453cb59SJoe Hershberger variable. 3397453cb59SJoe Hershberger Also supports loading the value at a memory location into a variable. 3407453cb59SJoe Hershberger If CONFIG_REGEX is enabled, setexpr also supports a gsub function. 3417453cb59SJoe Hershberger 34260296a83SMasahiro Yamadaendmenu 34360296a83SMasahiro Yamada 34460296a83SMasahiro Yamadamenu "Network commands" 34560296a83SMasahiro Yamada 34660296a83SMasahiro Yamadaconfig CMD_NET 34760296a83SMasahiro Yamada bool "bootp, tftpboot" 3486eed3786SJoe Hershberger select NET 34960296a83SMasahiro Yamada help 35060296a83SMasahiro Yamada Network commands. 35160296a83SMasahiro Yamada bootp - boot image via network using BOOTP/TFTP protocol 35260296a83SMasahiro Yamada tftpboot - boot image via network using TFTP protocol 35360296a83SMasahiro Yamada 35460296a83SMasahiro Yamadaconfig CMD_TFTPPUT 35560296a83SMasahiro Yamada bool "tftp put" 35660296a83SMasahiro Yamada help 35760296a83SMasahiro Yamada TFTP put command, for uploading files to a server 35860296a83SMasahiro Yamada 35960296a83SMasahiro Yamadaconfig CMD_TFTPSRV 36060296a83SMasahiro Yamada bool "tftpsrv" 36160296a83SMasahiro Yamada help 36260296a83SMasahiro Yamada Act as a TFTP server and boot the first received file 36360296a83SMasahiro Yamada 36460296a83SMasahiro Yamadaconfig CMD_RARP 36560296a83SMasahiro Yamada bool "rarpboot" 36660296a83SMasahiro Yamada help 36760296a83SMasahiro Yamada Boot image via network using RARP/TFTP protocol 36860296a83SMasahiro Yamada 36960296a83SMasahiro Yamadaconfig CMD_DHCP 37060296a83SMasahiro Yamada bool "dhcp" 37160296a83SMasahiro Yamada help 37260296a83SMasahiro Yamada Boot image via network using DHCP/TFTP protocol 37360296a83SMasahiro Yamada 37460296a83SMasahiro Yamadaconfig CMD_NFS 37560296a83SMasahiro Yamada bool "nfs" 37660296a83SMasahiro Yamada help 37760296a83SMasahiro Yamada Boot image via network using NFS protocol. 37860296a83SMasahiro Yamada 37960296a83SMasahiro Yamadaconfig CMD_PING 38060296a83SMasahiro Yamada bool "ping" 38160296a83SMasahiro Yamada help 38260296a83SMasahiro Yamada Send ICMP ECHO_REQUEST to network host 38360296a83SMasahiro Yamada 38460296a83SMasahiro Yamadaconfig CMD_CDP 38560296a83SMasahiro Yamada bool "cdp" 38660296a83SMasahiro Yamada help 38760296a83SMasahiro Yamada Perform CDP network configuration 38860296a83SMasahiro Yamada 38960296a83SMasahiro Yamadaconfig CMD_SNTP 39060296a83SMasahiro Yamada bool "sntp" 39160296a83SMasahiro Yamada help 39260296a83SMasahiro Yamada Synchronize RTC via network 39360296a83SMasahiro Yamada 39460296a83SMasahiro Yamadaconfig CMD_DNS 39560296a83SMasahiro Yamada bool "dns" 39660296a83SMasahiro Yamada help 39760296a83SMasahiro Yamada Lookup the IP of a hostname 39860296a83SMasahiro Yamada 39960296a83SMasahiro Yamadaconfig CMD_LINK_LOCAL 40060296a83SMasahiro Yamada bool "linklocal" 40160296a83SMasahiro Yamada help 40260296a83SMasahiro Yamada Acquire a network IP address using the link-local protocol 40360296a83SMasahiro Yamada 40460296a83SMasahiro Yamadaendmenu 40560296a83SMasahiro Yamada 40660296a83SMasahiro Yamadamenu "Misc commands" 40760296a83SMasahiro Yamada 40860296a83SMasahiro Yamadaconfig CMD_TIME 40960296a83SMasahiro Yamada bool "time" 41060296a83SMasahiro Yamada help 41160296a83SMasahiro Yamada Run commands and summarize execution time. 41260296a83SMasahiro Yamada 41360296a83SMasahiro Yamada# TODO: rename to CMD_SLEEP 41460296a83SMasahiro Yamadaconfig CMD_MISC 41560296a83SMasahiro Yamada bool "sleep" 41660296a83SMasahiro Yamada help 41760296a83SMasahiro Yamada Delay execution for some time 41860296a83SMasahiro Yamada 41960296a83SMasahiro Yamadaconfig CMD_TIMER 42060296a83SMasahiro Yamada bool "timer" 42160296a83SMasahiro Yamada help 42260296a83SMasahiro Yamada Access the system timer. 42360296a83SMasahiro Yamada 42460296a83SMasahiro Yamadaconfig CMD_SETGETDCR 42560296a83SMasahiro Yamada bool "getdcr, setdcr, getidcr, setidcr" 42660296a83SMasahiro Yamada depends on 4xx 42760296a83SMasahiro Yamada help 42860296a83SMasahiro Yamada getdcr - Get an AMCC PPC 4xx DCR's value 42960296a83SMasahiro Yamada setdcr - Set an AMCC PPC 4xx DCR's value 43060296a83SMasahiro Yamada getidcr - Get a register value via indirect DCR addressing 43160296a83SMasahiro Yamada setidcr - Set a register value via indirect DCR addressing 43260296a83SMasahiro Yamada 433de79a765SSimon Glassconfig CMD_SOUND 434de79a765SSimon Glass bool "sound" 435de79a765SSimon Glass depends on SOUND 436de79a765SSimon Glass help 437de79a765SSimon Glass This provides basic access to the U-Boot's sound support. The main 438de79a765SSimon Glass feature is to play a beep. 439de79a765SSimon Glass 440de79a765SSimon Glass sound init - set up sound system 441de79a765SSimon Glass sound play - play a sound 442de79a765SSimon Glass 44360296a83SMasahiro Yamadaendmenu 444726ac8e4SMasahiro Yamada 445ee2b2434SSimon Glassmenu "Boot timing" 446ee2b2434SSimon Glass 447ee2b2434SSimon Glassconfig BOOTSTAGE 448ee2b2434SSimon Glass bool "Boot timing and reporting" 449ee2b2434SSimon Glass help 450ee2b2434SSimon Glass Enable recording of boot time while booting. To use it, insert 451ee2b2434SSimon Glass calls to bootstage_mark() with a suitable BOOTSTAGE_ID from 452ee2b2434SSimon Glass bootstage.h. Only a single entry is recorded for each ID. You can 453ee2b2434SSimon Glass give the entry a name with bootstage_mark_name(). You can also 454ee2b2434SSimon Glass record elapsed time in a particular stage using bootstage_start() 455ee2b2434SSimon Glass before starting and bootstage_accum() when finished. Bootstage will 456ee2b2434SSimon Glass add up all the accumated time and report it. 457ee2b2434SSimon Glass 458ee2b2434SSimon Glass Normally, IDs are defined in bootstage.h but a small number of 459ee2b2434SSimon Glass additional 'user' IDs can be used but passing BOOTSTAGE_ID_ALLOC 460ee2b2434SSimon Glass as the ID. 461ee2b2434SSimon Glass 462ee2b2434SSimon Glass Calls to show_boot_progress() wil also result in log entries but 463ee2b2434SSimon Glass these will not have names. 464ee2b2434SSimon Glass 465ee2b2434SSimon Glassconfig BOOTSTAGE_REPORT 466ee2b2434SSimon Glass bool "Display a detailed boot timing report before booting the OS" 467ee2b2434SSimon Glass depends on BOOTSTAGE 468ee2b2434SSimon Glass help 469ee2b2434SSimon Glass Enable output of a boot time report just before the OS is booted. 470ee2b2434SSimon Glass This shows how long it took U-Boot to go through each stage of the 471ee2b2434SSimon Glass boot process. The report looks something like this: 472ee2b2434SSimon Glass 473ee2b2434SSimon Glass Timer summary in microseconds: 474ee2b2434SSimon Glass Mark Elapsed Stage 475ee2b2434SSimon Glass 0 0 reset 476ee2b2434SSimon Glass 3,575,678 3,575,678 board_init_f start 477ee2b2434SSimon Glass 3,575,695 17 arch_cpu_init A9 478ee2b2434SSimon Glass 3,575,777 82 arch_cpu_init done 479ee2b2434SSimon Glass 3,659,598 83,821 board_init_r start 480ee2b2434SSimon Glass 3,910,375 250,777 main_loop 481ee2b2434SSimon Glass 29,916,167 26,005,792 bootm_start 482ee2b2434SSimon Glass 30,361,327 445,160 start_kernel 483ee2b2434SSimon Glass 484ee2b2434SSimon Glassconfig BOOTSTAGE_USER_COUNT 485ee2b2434SSimon Glass hex "Number of boot ID numbers available for user use" 486ee2b2434SSimon Glass default 20 487ee2b2434SSimon Glass help 488ee2b2434SSimon Glass This is the number of available user bootstage records. 489ee2b2434SSimon Glass Each time you call bootstage_mark(BOOTSTAGE_ID_ALLOC, ...) 490ee2b2434SSimon Glass a new ID will be allocated from this stash. If you exceed 491ee2b2434SSimon Glass the limit, recording will stop. 492ee2b2434SSimon Glass 493ee2b2434SSimon Glassconfig CMD_BOOTSTAGE 494ee2b2434SSimon Glass bool "Enable the 'bootstage' command" 495ee2b2434SSimon Glass depends on BOOTSTAGE 496ee2b2434SSimon Glass help 497ee2b2434SSimon Glass Add a 'bootstage' command which supports printing a report 498ee2b2434SSimon Glass and un/stashing of bootstage data. 499ee2b2434SSimon Glass 500ee2b2434SSimon Glassconfig BOOTSTAGE_FDT 501ee2b2434SSimon Glass bool "Store boot timing information in the OS device tree" 502ee2b2434SSimon Glass depends on BOOTSTAGE 503ee2b2434SSimon Glass help 504ee2b2434SSimon Glass Stash the bootstage information in the FDT. A root 'bootstage' 505ee2b2434SSimon Glass node is created with each bootstage id as a child. Each child 506ee2b2434SSimon Glass has a 'name' property and either 'mark' containing the 507ee2b2434SSimon Glass mark time in microsecond, or 'accum' containing the 508ee2b2434SSimon Glass accumulated time for that bootstage id in microseconds. 509ee2b2434SSimon Glass For example: 510ee2b2434SSimon Glass 511ee2b2434SSimon Glass bootstage { 512ee2b2434SSimon Glass 154 { 513ee2b2434SSimon Glass name = "board_init_f"; 514ee2b2434SSimon Glass mark = <3575678>; 515ee2b2434SSimon Glass }; 516ee2b2434SSimon Glass 170 { 517ee2b2434SSimon Glass name = "lcd"; 518ee2b2434SSimon Glass accum = <33482>; 519ee2b2434SSimon Glass }; 520ee2b2434SSimon Glass }; 521ee2b2434SSimon Glass 522ee2b2434SSimon Glass Code in the Linux kernel can find this in /proc/devicetree. 523ee2b2434SSimon Glass 524ee2b2434SSimon Glassconfig BOOTSTAGE_STASH 525ee2b2434SSimon Glass bool "Stash the boot timing information in memory before booting OS" 526ee2b2434SSimon Glass depends on BOOTSTAGE 527ee2b2434SSimon Glass help 528ee2b2434SSimon Glass Some OSes do not support device tree. Bootstage can instead write 529ee2b2434SSimon Glass the boot timing information in a binary format at a given address. 530ee2b2434SSimon Glass This happens through a call to bootstage_stash(), typically in 531ee2b2434SSimon Glass the CPU's cleanup_before_linux() function. You can use the 532ee2b2434SSimon Glass 'bootstage stash' and 'bootstage unstash' commands to do this on 533ee2b2434SSimon Glass the command line. 534ee2b2434SSimon Glass 535ee2b2434SSimon Glassconfig BOOTSTAGE_STASH_ADDR 536ee2b2434SSimon Glass hex "Address to stash boot timing information" 537ee2b2434SSimon Glass default 0 538ee2b2434SSimon Glass help 539ee2b2434SSimon Glass Provide an address which will not be overwritten by the OS when it 540ee2b2434SSimon Glass starts, so that it can read this information when ready. 541ee2b2434SSimon Glass 542ee2b2434SSimon Glassconfig BOOTSTAGE_STASH_SIZE 543ee2b2434SSimon Glass hex "Size of boot timing stash region" 544ee2b2434SSimon Glass default 4096 545ee2b2434SSimon Glass help 546ee2b2434SSimon Glass This should be large enough to hold the bootstage stash. A value of 547ee2b2434SSimon Glass 4096 (4KiB) is normally plenty. 548ee2b2434SSimon Glass 549ee2b2434SSimon Glassendmenu 550ee2b2434SSimon Glass 551d89fdcf9SPrzemyslaw Marczakmenu "Power commands" 552d89fdcf9SPrzemyslaw Marczakconfig CMD_PMIC 553d89fdcf9SPrzemyslaw Marczak bool "Enable Driver Model PMIC command" 554d89fdcf9SPrzemyslaw Marczak depends on DM_PMIC 555d89fdcf9SPrzemyslaw Marczak help 556d89fdcf9SPrzemyslaw Marczak This is the pmic command, based on a driver model pmic's API. 557d89fdcf9SPrzemyslaw Marczak Command features are unchanged: 558d89fdcf9SPrzemyslaw Marczak - list - list pmic devices 559d89fdcf9SPrzemyslaw Marczak - pmic dev <id> - show or [set] operating pmic device (NEW) 560d89fdcf9SPrzemyslaw Marczak - pmic dump - dump registers 561d89fdcf9SPrzemyslaw Marczak - pmic read address - read byte of register at address 562d89fdcf9SPrzemyslaw Marczak - pmic write address - write byte to register at address 563d89fdcf9SPrzemyslaw Marczak The only one change for this command is 'dev' subcommand. 5646262b72bSPrzemyslaw Marczak 5656262b72bSPrzemyslaw Marczakconfig CMD_REGULATOR 5666262b72bSPrzemyslaw Marczak bool "Enable Driver Model REGULATOR command" 5676262b72bSPrzemyslaw Marczak depends on DM_REGULATOR 5686262b72bSPrzemyslaw Marczak help 5696262b72bSPrzemyslaw Marczak This command is based on driver model regulator's API. 5706262b72bSPrzemyslaw Marczak User interface features: 5716262b72bSPrzemyslaw Marczak - list - list regulator devices 5726262b72bSPrzemyslaw Marczak - regulator dev <id> - show or [set] operating regulator device 5736262b72bSPrzemyslaw Marczak - regulator info - print constraints info 5746262b72bSPrzemyslaw Marczak - regulator status - print operating status 5756262b72bSPrzemyslaw Marczak - regulator value <val] <-f> - print/[set] voltage value [uV] 5766262b72bSPrzemyslaw Marczak - regulator current <val> - print/[set] current value [uA] 5776262b72bSPrzemyslaw Marczak - regulator mode <id> - print/[set] operating mode id 5786262b72bSPrzemyslaw Marczak - regulator enable - enable the regulator output 5796262b72bSPrzemyslaw Marczak - regulator disable - disable the regulator output 5806262b72bSPrzemyslaw Marczak 5816262b72bSPrzemyslaw Marczak The '-f' (force) option can be used for set the value which exceeds 5826262b72bSPrzemyslaw Marczak the limits, which are found in device-tree and are kept in regulator's 5836262b72bSPrzemyslaw Marczak uclass platdata structure. 5846262b72bSPrzemyslaw Marczak 585d89fdcf9SPrzemyslaw Marczakendmenu 5866262b72bSPrzemyslaw Marczak 587ed36323fSMasahiro Yamadaendmenu 588