1ee2b2434SSimon Glassmenu "Boot timing" 2ee2b2434SSimon Glass 3ee2b2434SSimon Glassconfig BOOTSTAGE 4ee2b2434SSimon Glass bool "Boot timing and reporting" 5ee2b2434SSimon Glass help 6ee2b2434SSimon Glass Enable recording of boot time while booting. To use it, insert 7ee2b2434SSimon Glass calls to bootstage_mark() with a suitable BOOTSTAGE_ID from 8ee2b2434SSimon Glass bootstage.h. Only a single entry is recorded for each ID. You can 9ee2b2434SSimon Glass give the entry a name with bootstage_mark_name(). You can also 10ee2b2434SSimon Glass record elapsed time in a particular stage using bootstage_start() 11ee2b2434SSimon Glass before starting and bootstage_accum() when finished. Bootstage will 1257247d9cSRobert P. J. Day add up all the accumulated time and report it. 13ee2b2434SSimon Glass 14ee2b2434SSimon Glass Normally, IDs are defined in bootstage.h but a small number of 1557247d9cSRobert P. J. Day additional 'user' IDs can be used by passing BOOTSTAGE_ID_ALLOC 16ee2b2434SSimon Glass as the ID. 17ee2b2434SSimon Glass 1857247d9cSRobert P. J. Day Calls to show_boot_progress() will also result in log entries but 19ee2b2434SSimon Glass these will not have names. 20ee2b2434SSimon Glass 21824bb1b4SSimon Glassconfig SPL_BOOTSTAGE 22824bb1b4SSimon Glass bool "Boot timing and reported in SPL" 23824bb1b4SSimon Glass depends on BOOTSTAGE 24824bb1b4SSimon Glass help 25824bb1b4SSimon Glass Enable recording of boot time in SPL. To make this visible to U-Boot 26824bb1b4SSimon Glass proper, enable BOOTSTAGE_STASH as well. This will stash the timing 27824bb1b4SSimon Glass information when SPL finishes and load it when U-Boot proper starts 28824bb1b4SSimon Glass up. 29824bb1b4SSimon Glass 30ee2b2434SSimon Glassconfig BOOTSTAGE_REPORT 31ee2b2434SSimon Glass bool "Display a detailed boot timing report before booting the OS" 32ee2b2434SSimon Glass depends on BOOTSTAGE 33ee2b2434SSimon Glass help 34ee2b2434SSimon Glass Enable output of a boot time report just before the OS is booted. 35ee2b2434SSimon Glass This shows how long it took U-Boot to go through each stage of the 36ee2b2434SSimon Glass boot process. The report looks something like this: 37ee2b2434SSimon Glass 38ee2b2434SSimon Glass Timer summary in microseconds: 39ee2b2434SSimon Glass Mark Elapsed Stage 40ee2b2434SSimon Glass 0 0 reset 41ee2b2434SSimon Glass 3,575,678 3,575,678 board_init_f start 42ee2b2434SSimon Glass 3,575,695 17 arch_cpu_init A9 43ee2b2434SSimon Glass 3,575,777 82 arch_cpu_init done 44ee2b2434SSimon Glass 3,659,598 83,821 board_init_r start 45ee2b2434SSimon Glass 3,910,375 250,777 main_loop 46ee2b2434SSimon Glass 29,916,167 26,005,792 bootm_start 47ee2b2434SSimon Glass 30,361,327 445,160 start_kernel 48ee2b2434SSimon Glass 4903ecac31SSimon Glassconfig BOOTSTAGE_RECORD_COUNT 5003ecac31SSimon Glass int "Number of boot stage records to store" 5103ecac31SSimon Glass default 30 5203ecac31SSimon Glass help 5303ecac31SSimon Glass This is the size of the bootstage record list and is the maximum 5403ecac31SSimon Glass number of bootstage records that can be recorded. 5503ecac31SSimon Glass 56d69bb0ecSSimon Glassconfig SPL_BOOTSTAGE_RECORD_COUNT 57d69bb0ecSSimon Glass int "Number of boot stage records to store for SPL" 58d69bb0ecSSimon Glass default 5 59d69bb0ecSSimon Glass help 60d69bb0ecSSimon Glass This is the size of the bootstage record list and is the maximum 61d69bb0ecSSimon Glass number of bootstage records that can be recorded. 62d69bb0ecSSimon Glass 63ee2b2434SSimon Glassconfig BOOTSTAGE_FDT 64ee2b2434SSimon Glass bool "Store boot timing information in the OS device tree" 65ee2b2434SSimon Glass depends on BOOTSTAGE 66ee2b2434SSimon Glass help 67ee2b2434SSimon Glass Stash the bootstage information in the FDT. A root 'bootstage' 68ee2b2434SSimon Glass node is created with each bootstage id as a child. Each child 69ee2b2434SSimon Glass has a 'name' property and either 'mark' containing the 7057247d9cSRobert P. J. Day mark time in microseconds, or 'accum' containing the 71ee2b2434SSimon Glass accumulated time for that bootstage id in microseconds. 72ee2b2434SSimon Glass For example: 73ee2b2434SSimon Glass 74ee2b2434SSimon Glass bootstage { 75ee2b2434SSimon Glass 154 { 76ee2b2434SSimon Glass name = "board_init_f"; 77ee2b2434SSimon Glass mark = <3575678>; 78ee2b2434SSimon Glass }; 79ee2b2434SSimon Glass 170 { 80ee2b2434SSimon Glass name = "lcd"; 81ee2b2434SSimon Glass accum = <33482>; 82ee2b2434SSimon Glass }; 83ee2b2434SSimon Glass }; 84ee2b2434SSimon Glass 85ee2b2434SSimon Glass Code in the Linux kernel can find this in /proc/devicetree. 86ee2b2434SSimon Glass 87ee2b2434SSimon Glassconfig BOOTSTAGE_STASH 88ee2b2434SSimon Glass bool "Stash the boot timing information in memory before booting OS" 89ee2b2434SSimon Glass depends on BOOTSTAGE 90ee2b2434SSimon Glass help 91ee2b2434SSimon Glass Some OSes do not support device tree. Bootstage can instead write 92ee2b2434SSimon Glass the boot timing information in a binary format at a given address. 93ee2b2434SSimon Glass This happens through a call to bootstage_stash(), typically in 94ee2b2434SSimon Glass the CPU's cleanup_before_linux() function. You can use the 95ee2b2434SSimon Glass 'bootstage stash' and 'bootstage unstash' commands to do this on 96ee2b2434SSimon Glass the command line. 97ee2b2434SSimon Glass 98ee2b2434SSimon Glassconfig BOOTSTAGE_STASH_ADDR 99ee2b2434SSimon Glass hex "Address to stash boot timing information" 100ee2b2434SSimon Glass default 0 101ee2b2434SSimon Glass help 102ee2b2434SSimon Glass Provide an address which will not be overwritten by the OS when it 103ee2b2434SSimon Glass starts, so that it can read this information when ready. 104ee2b2434SSimon Glass 105ee2b2434SSimon Glassconfig BOOTSTAGE_STASH_SIZE 106ee2b2434SSimon Glass hex "Size of boot timing stash region" 107fad6a2b7SNobuhiro Iwamatsu default 0x1000 108ee2b2434SSimon Glass help 109ee2b2434SSimon Glass This should be large enough to hold the bootstage stash. A value of 110ee2b2434SSimon Glass 4096 (4KiB) is normally plenty. 111ee2b2434SSimon Glass 112ee2b2434SSimon Glassendmenu 113ee2b2434SSimon Glass 114d14739ffSPeng Fanmenu "Boot media" 115d14739ffSPeng Fan 116d14739ffSPeng Fanconfig NOR_BOOT 117d14739ffSPeng Fan bool "Support for booting from NOR flash" 118d14739ffSPeng Fan depends on NOR 119d14739ffSPeng Fan help 120d14739ffSPeng Fan Enabling this will make a U-Boot binary that is capable of being 121d14739ffSPeng Fan booted via NOR. In this case we will enable certain pinmux early 122d14739ffSPeng Fan as the ROM only partially sets up pinmux. We also default to using 123d14739ffSPeng Fan NOR for environment. 124d14739ffSPeng Fan 125faaef73fSPeng Fanconfig NAND_BOOT 126faaef73fSPeng Fan bool "Support for booting from NAND flash" 127faaef73fSPeng Fan default n 128faaef73fSPeng Fan help 129faaef73fSPeng Fan Enabling this will make a U-Boot binary that is capable of being 130faaef73fSPeng Fan booted via NAND flash. This is not a must, some SoCs need this, 13157247d9cSRobert P. J. Day some not. 132faaef73fSPeng Fan 133faaef73fSPeng Fanconfig ONENAND_BOOT 134faaef73fSPeng Fan bool "Support for booting from ONENAND" 135faaef73fSPeng Fan default n 136faaef73fSPeng Fan help 137faaef73fSPeng Fan Enabling this will make a U-Boot binary that is capable of being 138faaef73fSPeng Fan booted via ONENAND. This is not a must, some SoCs need this, 13957247d9cSRobert P. J. Day some not. 140faaef73fSPeng Fan 141faaef73fSPeng Fanconfig QSPI_BOOT 142faaef73fSPeng Fan bool "Support for booting from QSPI flash" 143faaef73fSPeng Fan default n 144faaef73fSPeng Fan help 145faaef73fSPeng Fan Enabling this will make a U-Boot binary that is capable of being 146faaef73fSPeng Fan booted via QSPI flash. This is not a must, some SoCs need this, 14757247d9cSRobert P. J. Day some not. 148faaef73fSPeng Fan 149faaef73fSPeng Fanconfig SATA_BOOT 150faaef73fSPeng Fan bool "Support for booting from SATA" 151faaef73fSPeng Fan default n 152faaef73fSPeng Fan help 153faaef73fSPeng Fan Enabling this will make a U-Boot binary that is capable of being 154faaef73fSPeng Fan booted via SATA. This is not a must, some SoCs need this, 15557247d9cSRobert P. J. Day some not. 156faaef73fSPeng Fan 157faaef73fSPeng Fanconfig SD_BOOT 158faaef73fSPeng Fan bool "Support for booting from SD/EMMC" 159faaef73fSPeng Fan default n 160faaef73fSPeng Fan help 161faaef73fSPeng Fan Enabling this will make a U-Boot binary that is capable of being 162faaef73fSPeng Fan booted via SD/EMMC. This is not a must, some SoCs need this, 16357247d9cSRobert P. J. Day some not. 164faaef73fSPeng Fan 165faaef73fSPeng Fanconfig SPI_BOOT 166faaef73fSPeng Fan bool "Support for booting from SPI flash" 167faaef73fSPeng Fan default n 168faaef73fSPeng Fan help 169faaef73fSPeng Fan Enabling this will make a U-Boot binary that is capable of being 170faaef73fSPeng Fan booted via SPI flash. This is not a must, some SoCs need this, 17157247d9cSRobert P. J. Day some not. 172faaef73fSPeng Fan 173d14739ffSPeng Fanendmenu 174d14739ffSPeng Fan 175bb597c0eSHeiko Schocherconfig BOOTDELAY 176bb597c0eSHeiko Schocher int "delay in seconds before automatically booting" 1775e4e8741STom Rini default 2 17841598c82SMasahiro Yamada depends on AUTOBOOT 179bb597c0eSHeiko Schocher help 180bb597c0eSHeiko Schocher Delay before automatically running bootcmd; 1812fbb8462SMasahiro Yamada set to 0 to autoboot with no delay, but you can stop it by key input. 182bb597c0eSHeiko Schocher set to -1 to disable autoboot. 183bb597c0eSHeiko Schocher set to -2 to autoboot with no delay and not check for abort 184bb597c0eSHeiko Schocher 1859060970fSMasahiro Yamada See doc/README.autoboot for details. 1869060970fSMasahiro Yamada 1875abc1a45SSam Protsenkoconfig USE_BOOTARGS 1885abc1a45SSam Protsenko bool "Enable boot arguments" 1895abc1a45SSam Protsenko help 1905abc1a45SSam Protsenko Provide boot arguments to bootm command. Boot arguments are specified 1915abc1a45SSam Protsenko in CONFIG_BOOTARGS option. Enable this option to be able to specify 1925abc1a45SSam Protsenko CONFIG_BOOTARGS string. If this option is disabled, CONFIG_BOOTARGS 1935abc1a45SSam Protsenko will be undefined and won't take any space in U-Boot image. 1945abc1a45SSam Protsenko 1955abc1a45SSam Protsenkoconfig BOOTARGS 1965abc1a45SSam Protsenko string "Boot arguments" 1975abc1a45SSam Protsenko depends on USE_BOOTARGS 1985abc1a45SSam Protsenko help 1995abc1a45SSam Protsenko This can be used to pass arguments to the bootm command. The value of 2005abc1a45SSam Protsenko CONFIG_BOOTARGS goes into the environment value "bootargs". Note that 2015abc1a45SSam Protsenko this value will also override the "chosen" node in FDT blob. 2025abc1a45SSam Protsenko 20398af8799SSimon Glassmenu "Console" 20498af8799SSimon Glass 2054880b026STom Riniconfig MENU 2064880b026STom Rini bool 2074880b026STom Rini help 2084880b026STom Rini This is the library functionality to provide a text-based menu of 2094880b026STom Rini choices for the user to make choices with. 2104880b026STom Rini 2119854a874SSimon Glassconfig CONSOLE_RECORD 2129854a874SSimon Glass bool "Console recording" 2139854a874SSimon Glass help 2149854a874SSimon Glass This provides a way to record console output (and provide console 21557247d9cSRobert P. J. Day input) through circular buffers. This is mostly useful for testing. 2169854a874SSimon Glass Console output is recorded even when the console is silent. 2179854a874SSimon Glass To enable console recording, call console_record_reset_enable() 2189854a874SSimon Glass from your code. 2199854a874SSimon Glass 2209854a874SSimon Glassconfig CONSOLE_RECORD_OUT_SIZE 2219854a874SSimon Glass hex "Output buffer size" 2229854a874SSimon Glass depends on CONSOLE_RECORD 2239854a874SSimon Glass default 0x400 if CONSOLE_RECORD 2249854a874SSimon Glass help 2259854a874SSimon Glass Set the size of the console output buffer. When this fills up, no 2269854a874SSimon Glass more data will be recorded until some is removed. The buffer is 2279854a874SSimon Glass allocated immediately after the malloc() region is ready. 2289854a874SSimon Glass 2299854a874SSimon Glassconfig CONSOLE_RECORD_IN_SIZE 2309854a874SSimon Glass hex "Input buffer size" 2319854a874SSimon Glass depends on CONSOLE_RECORD 2329854a874SSimon Glass default 0x100 if CONSOLE_RECORD 2339854a874SSimon Glass help 2349854a874SSimon Glass Set the size of the console input buffer. When this contains data, 2359854a874SSimon Glass tstc() and getc() will use this in preference to real device input. 2369854a874SSimon Glass The buffer is allocated immediately after the malloc() region is 2379854a874SSimon Glass ready. 2384d25507fSSiva Durga Prasad Paladugu 239a4d88920SSiva Durga Prasad Paladuguconfig IDENT_STRING 240a4d88920SSiva Durga Prasad Paladugu string "Board specific string to be added to uboot version string" 241a4d88920SSiva Durga Prasad Paladugu help 242a4d88920SSiva Durga Prasad Paladugu This options adds the board specific name to u-boot version. 243a4d88920SSiva Durga Prasad Paladugu 244b44b3026SMasahiro Yamadaconfig LOGLEVEL 245b44b3026SMasahiro Yamada int "loglevel" 246*6a3e65deSTom Rini default 4 247b44b3026SMasahiro Yamada range 0 8 248b44b3026SMasahiro Yamada help 249b44b3026SMasahiro Yamada All Messages with a loglevel smaller than the console loglevel will 250b44b3026SMasahiro Yamada be compiled in. The loglevels are defined as follows: 251b44b3026SMasahiro Yamada 252b44b3026SMasahiro Yamada 0 (KERN_EMERG) system is unusable 253b44b3026SMasahiro Yamada 1 (KERN_ALERT) action must be taken immediately 254b44b3026SMasahiro Yamada 2 (KERN_CRIT) critical conditions 255b44b3026SMasahiro Yamada 3 (KERN_ERR) error conditions 256b44b3026SMasahiro Yamada 4 (KERN_WARNING) warning conditions 257b44b3026SMasahiro Yamada 5 (KERN_NOTICE) normal but significant condition 258b44b3026SMasahiro Yamada 6 (KERN_INFO) informational 259b44b3026SMasahiro Yamada 7 (KERN_DEBUG) debug-level messages 260b44b3026SMasahiro Yamada 261b44b3026SMasahiro Yamadaconfig SPL_LOGLEVEL 262b44b3026SMasahiro Yamada int 263b44b3026SMasahiro Yamada default LOGLEVEL 264b44b3026SMasahiro Yamada 26598af8799SSimon Glassconfig SILENT_CONSOLE 26698af8799SSimon Glass bool "Support a silent console" 26798af8799SSimon Glass help 26898af8799SSimon Glass This option allows the console to be silenced, meaning that no 26998af8799SSimon Glass output will appear on the console devices. This is controlled by 27098af8799SSimon Glass setting the environment vaariable 'silent' to a non-empty value. 27198af8799SSimon Glass Note this also silences the console when booting Linux. 27298af8799SSimon Glass 27398af8799SSimon Glass When the console is set up, the variable is checked, and the 27498af8799SSimon Glass GD_FLG_SILENT flag is set. Changing the environment variable later 27598af8799SSimon Glass will update the flag. 27698af8799SSimon Glass 27798af8799SSimon Glassconfig SILENT_U_BOOT_ONLY 27898af8799SSimon Glass bool "Only silence the U-Boot console" 27998af8799SSimon Glass depends on SILENT_CONSOLE 28098af8799SSimon Glass help 28198af8799SSimon Glass Normally when the U-Boot console is silenced, Linux's console is 28298af8799SSimon Glass also silenced (assuming the board boots into Linux). This option 28398af8799SSimon Glass allows the linux console to operate normally, even if U-Boot's 28498af8799SSimon Glass is silenced. 28598af8799SSimon Glass 28698af8799SSimon Glassconfig SILENT_CONSOLE_UPDATE_ON_SET 28798af8799SSimon Glass bool "Changes to the 'silent' environment variable update immediately" 28898af8799SSimon Glass depends on SILENT_CONSOLE 28998af8799SSimon Glass default y if SILENT_CONSOLE 29098af8799SSimon Glass help 29198af8799SSimon Glass When the 'silent' environment variable is changed, update the 29298af8799SSimon Glass console silence flag immediately. This allows 'setenv' to be used 29398af8799SSimon Glass to silence or un-silence the console. 29498af8799SSimon Glass 29598af8799SSimon Glass The effect is that any change to the variable will affect the 29698af8799SSimon Glass GD_FLG_SILENT flag. 29798af8799SSimon Glass 29898af8799SSimon Glassconfig SILENT_CONSOLE_UPDATE_ON_RELOC 29998af8799SSimon Glass bool "Allow flags to take effect on relocation" 30098af8799SSimon Glass depends on SILENT_CONSOLE 30198af8799SSimon Glass help 30298af8799SSimon Glass In some cases the environment is not available until relocation 30398af8799SSimon Glass (e.g. NAND). This option makes the value of the 'silent' 30498af8799SSimon Glass environment variable take effect at relocation. 30598af8799SSimon Glass 3068f925584SSimon Glassconfig PRE_CONSOLE_BUFFER 3078f925584SSimon Glass bool "Buffer characters before the console is available" 3088f925584SSimon Glass help 3098f925584SSimon Glass Prior to the console being initialised (i.e. serial UART 3108f925584SSimon Glass initialised etc) all console output is silently discarded. 3118f925584SSimon Glass Defining CONFIG_PRE_CONSOLE_BUFFER will cause U-Boot to 3128f925584SSimon Glass buffer any console messages prior to the console being 3138f925584SSimon Glass initialised to a buffer. The buffer is a circular buffer, so 3148f925584SSimon Glass if it overflows, earlier output is discarded. 3158f925584SSimon Glass 3168f925584SSimon Glass Note that this is not currently supported in SPL. It would be 3178f925584SSimon Glass useful to be able to share the pre-console buffer with SPL. 3188f925584SSimon Glass 3198f925584SSimon Glassconfig PRE_CON_BUF_SZ 3208f925584SSimon Glass int "Sets the size of the pre-console buffer" 3218f925584SSimon Glass depends on PRE_CONSOLE_BUFFER 3228f925584SSimon Glass default 4096 3238f925584SSimon Glass help 3248f925584SSimon Glass The size of the pre-console buffer affects how much console output 3258f925584SSimon Glass can be held before it overflows and starts discarding earlier 3268f925584SSimon Glass output. Normally there is very little output at this early stage, 3278f925584SSimon Glass unless debugging is enabled, so allow enough for ~10 lines of 3288f925584SSimon Glass text. 3298f925584SSimon Glass 3308f925584SSimon Glass This is a useful feature if you are using a video console and 3318f925584SSimon Glass want to see the full boot output on the console. Without this 3328f925584SSimon Glass option only the post-relocation output will be displayed. 3338f925584SSimon Glass 3348f925584SSimon Glassconfig PRE_CON_BUF_ADDR 3358f925584SSimon Glass hex "Address of the pre-console buffer" 3368f925584SSimon Glass depends on PRE_CONSOLE_BUFFER 3378f925584SSimon Glass default 0x2f000000 if ARCH_SUNXI && MACH_SUN9I 3388f925584SSimon Glass default 0x4f000000 if ARCH_SUNXI && !MACH_SUN9I 3398f925584SSimon Glass help 3408f925584SSimon Glass This sets the start address of the pre-console buffer. This must 3418f925584SSimon Glass be in available memory and is accessed before relocation and 3428f925584SSimon Glass possibly before DRAM is set up. Therefore choose an address 3438f925584SSimon Glass carefully. 3448f925584SSimon Glass 3458f925584SSimon Glass We should consider removing this option and allocating the memory 3468f925584SSimon Glass in board_init_f_init_reserve() instead. 3478f925584SSimon Glass 348ef26d603SSimon Glassconfig CONSOLE_MUX 349ef26d603SSimon Glass bool "Enable console multiplexing" 350ef26d603SSimon Glass default y if DM_VIDEO || VIDEO || LCD 351ef26d603SSimon Glass help 352ef26d603SSimon Glass This allows multiple devices to be used for each console 'file'. 353ef26d603SSimon Glass For example, stdout can be set to go to serial and video. 354ef26d603SSimon Glass Similarly, stdin can be set to come from serial and keyboard. 355ef26d603SSimon Glass Input can be provided from either source. Console multiplexing 356ef26d603SSimon Glass adds a small amount of size to U-Boot. Changes to the environment 357ef26d603SSimon Glass variables stdout, stdin and stderr will take effect immediately. 358ef26d603SSimon Glass 359ef26d603SSimon Glassconfig SYS_CONSOLE_IS_IN_ENV 360ef26d603SSimon Glass bool "Select console devices from the environment" 361ef26d603SSimon Glass default y if CONSOLE_MUX 362ef26d603SSimon Glass help 363ef26d603SSimon Glass This allows multiple input/output devices to be set at boot time. 364ef26d603SSimon Glass For example, if stdout is set to "serial,video" then output will 365ef26d603SSimon Glass be sent to both the serial and video devices on boot. The 366ef26d603SSimon Glass environment variables can be updated after boot to change the 367ef26d603SSimon Glass input/output devices. 368ef26d603SSimon Glass 36984f2a5d0SSimon Glassconfig SYS_CONSOLE_OVERWRITE_ROUTINE 37084f2a5d0SSimon Glass bool "Allow board control over console overwriting" 37184f2a5d0SSimon Glass help 37284f2a5d0SSimon Glass If this is enabled, and the board-specific function 37384f2a5d0SSimon Glass overwrite_console() returns 1, the stdin, stderr and stdout are 37484f2a5d0SSimon Glass switched to the serial port, else the settings in the environment 37584f2a5d0SSimon Glass are used. If this is not enabled, the console will not be switched 37684f2a5d0SSimon Glass to serial. 37784f2a5d0SSimon Glass 3783505bc55SSimon Glassconfig SYS_CONSOLE_ENV_OVERWRITE 3793505bc55SSimon Glass bool "Update environment variables during console init" 3803505bc55SSimon Glass help 3813505bc55SSimon Glass The console environment variables (stdout, stdin, stderr) can be 3823505bc55SSimon Glass used to determine the correct console devices on start-up. This 3833505bc55SSimon Glass option writes the console devices to these variables on console 3843505bc55SSimon Glass start-up (after relocation). This causes the environment to be 3853505bc55SSimon Glass updated to match the console devices actually chosen. 3863505bc55SSimon Glass 387f3f3efffSSimon Glassconfig SYS_CONSOLE_INFO_QUIET 388f3f3efffSSimon Glass bool "Don't display the console devices on boot" 389f3f3efffSSimon Glass help 390f3f3efffSSimon Glass Normally U-Boot displays the current settings for stdout, stdin 391f3f3efffSSimon Glass and stderr on boot when the post-relocation console is set up. 392f3f3efffSSimon Glass Enable this option to supress this output. It can be obtained by 393f3f3efffSSimon Glass calling stdio_print_current_devices() from board code. 394f3f3efffSSimon Glass 395869588deSSimon Glassconfig SYS_STDIO_DEREGISTER 396869588deSSimon Glass bool "Allow deregistering stdio devices" 397869588deSSimon Glass default y if USB_KEYBOARD 398869588deSSimon Glass help 399869588deSSimon Glass Generally there is no need to deregister stdio devices since they 400869588deSSimon Glass are never deactivated. But if a stdio device is used which can be 401869588deSSimon Glass removed (for example a USB keyboard) then this option can be 402869588deSSimon Glass enabled to ensure this is handled correctly. 403869588deSSimon Glass 40498af8799SSimon Glassendmenu 40598af8799SSimon Glass 406af9e6ad4SCooper Jr., Franklinconfig DTB_RESELECT 407af9e6ad4SCooper Jr., Franklin bool "Support swapping dtbs at a later point in boot" 408af9e6ad4SCooper Jr., Franklin depends on FIT_EMBED 409af9e6ad4SCooper Jr., Franklin help 410af9e6ad4SCooper Jr., Franklin It is possible during initial boot you may need to use a generic 411af9e6ad4SCooper Jr., Franklin dtb until you can fully determine the board your running on. This 412af9e6ad4SCooper Jr., Franklin config allows boards to implement a function at a later point 413af9e6ad4SCooper Jr., Franklin during boot to switch to the "correct" dtb. 414af9e6ad4SCooper Jr., Franklin 41592926bc8SCooper Jr., Franklinconfig FIT_EMBED 41692926bc8SCooper Jr., Franklin bool "Support a FIT image embedded in the U-boot image" 41792926bc8SCooper Jr., Franklin help 41892926bc8SCooper Jr., Franklin This option provides hooks to allow U-boot to parse an 41992926bc8SCooper Jr., Franklin appended FIT image and enable board specific code to then select 42092926bc8SCooper Jr., Franklin the correct DTB to be used. 42192926bc8SCooper Jr., Franklin 422d259c008SJagan Tekiconfig DEFAULT_FDT_FILE 423d259c008SJagan Teki string "Default fdt file" 424d259c008SJagan Teki help 425d259c008SJagan Teki This option is used to set the default fdt file to boot OS. 426d259c008SJagan Teki 4279dd1d0aaSHeiko Schocherconfig VERSION_VARIABLE 4289dd1d0aaSHeiko Schocher bool "add U-Boot environment variable vers" 4299dd1d0aaSHeiko Schocher default n 4309dd1d0aaSHeiko Schocher help 4319dd1d0aaSHeiko Schocher If this variable is defined, an environment variable 4329dd1d0aaSHeiko Schocher named "ver" is created by U-Boot showing the U-Boot 4339dd1d0aaSHeiko Schocher version as printed by the "version" command. 4349dd1d0aaSHeiko Schocher Any change to this variable will be reverted at the 4359dd1d0aaSHeiko Schocher next reset. 436c2ae7d82SSimon Glass 437de70fefbSJagan Tekiconfig BOARD_LATE_INIT 438e5ec4815STom Rini bool 439de70fefbSJagan Teki help 440de70fefbSJagan Teki Sometimes board require some initialization code that might 441de70fefbSJagan Teki require once the actual init done, example saving board specific env, 442de70fefbSJagan Teki boot-modes etc. which eventually done at late. 443de70fefbSJagan Teki 444de70fefbSJagan Teki So this config enable the late init code with the help of board_late_init 445de70fefbSJagan Teki function which should defined on respective boards. 446de70fefbSJagan Teki 44719a97475SLokesh Vutlaconfig DISPLAY_CPUINFO 44819a97475SLokesh Vutla bool "Display information about the CPU during start up" 449064b55cfSHeiko Schocher default y if ARM || NIOS2 || X86 || XTENSA 45019a97475SLokesh Vutla help 45119a97475SLokesh Vutla Display information about the CPU that U-Boot is running on 45219a97475SLokesh Vutla when U-Boot starts up. The function print_cpuinfo() is called 45319a97475SLokesh Vutla to do this. 45419a97475SLokesh Vutla 45584351792SLokesh Vutlaconfig DISPLAY_BOARDINFO 45684351792SLokesh Vutla bool "Display information about the board during start up" 457d63b5b4fSSimon Glass default y if ARM || M68K || MIPS || PPC || SANDBOX || XTENSA 45884351792SLokesh Vutla help 45984351792SLokesh Vutla Display information about the board that U-Boot is running on 46084351792SLokesh Vutla when U-Boot starts up. The board function checkboard() is called 46184351792SLokesh Vutla to do this. 46284351792SLokesh Vutla 463a421192fSSimon Glassmenu "Start-up hooks" 464a421192fSSimon Glass 465a421192fSSimon Glassconfig ARCH_EARLY_INIT_R 466a421192fSSimon Glass bool "Call arch-specific init soon after relocation" 467a421192fSSimon Glass help 468a421192fSSimon Glass With this option U-Boot will call arch_early_init_r() soon after 469a421192fSSimon Glass relocation. Driver model is running by this point, and the cache 470a421192fSSimon Glass is on. Note that board_early_init_r() is called first, if 471a421192fSSimon Glass enabled. This can be used to set up architecture-specific devices. 472a421192fSSimon Glass 4734585601aSSimon Glassconfig ARCH_MISC_INIT 4744585601aSSimon Glass bool "Call arch-specific init after relocation, when console is ready" 4754585601aSSimon Glass help 4764585601aSSimon Glass With this option U-Boot will call arch_misc_init() after 4774585601aSSimon Glass relocation to allow miscellaneous arch-dependent initialisation 4784585601aSSimon Glass to be performed. This function should be defined by the board 4794585601aSSimon Glass and will be called after the console is set up, after relocaiton. 4804585601aSSimon Glass 481a5d67547SSimon Glassconfig BOARD_EARLY_INIT_F 482a5d67547SSimon Glass bool "Call board-specific init before relocation" 483a5d67547SSimon Glass help 484a5d67547SSimon Glass Some boards need to perform initialisation as soon as possible 485a5d67547SSimon Glass after boot. With this option, U-Boot calls board_early_init_f() 486a5d67547SSimon Glass after driver model is ready in the pre-relocation init sequence. 487a5d67547SSimon Glass Note that the normal serial console is not yet set up, but the 488a5d67547SSimon Glass debug UART will be available if enabled. 489a5d67547SSimon Glass 490a421192fSSimon Glassendmenu 491a421192fSSimon Glass 492d70f919eSSimon Glassmenu "Security support" 493d70f919eSSimon Glass 494d70f919eSSimon Glassconfig HASH 495d70f919eSSimon Glass bool # "Support hashing API (SHA1, SHA256, etc.)" 496d70f919eSSimon Glass help 497d70f919eSSimon Glass This provides a way to hash data in memory using various supported 498d70f919eSSimon Glass algorithms (such as SHA1, MD5, CRC32). The API is defined in hash.h 499d70f919eSSimon Glass and the algorithms it supports are defined in common/hash.c. See 500d70f919eSSimon Glass also CMD_HASH for command-line access. 501d70f919eSSimon Glass 502d70f919eSSimon Glassendmenu 503d70f919eSSimon Glass 504c2ae7d82SSimon Glasssource "common/spl/Kconfig" 505