xref: /openbmc/u-boot/common/Kconfig (revision fb1c43cc37ae45c6c0576d976a53b9222819691c)
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
21ee2b2434SSimon Glassconfig BOOTSTAGE_REPORT
22ee2b2434SSimon Glass	bool "Display a detailed boot timing report before booting the OS"
23ee2b2434SSimon Glass	depends on BOOTSTAGE
24ee2b2434SSimon Glass	help
25ee2b2434SSimon Glass	  Enable output of a boot time report just before the OS is booted.
26ee2b2434SSimon Glass	  This shows how long it took U-Boot to go through each stage of the
27ee2b2434SSimon Glass	  boot process. The report looks something like this:
28ee2b2434SSimon Glass
29ee2b2434SSimon Glass		Timer summary in microseconds:
30ee2b2434SSimon Glass		       Mark    Elapsed  Stage
31ee2b2434SSimon Glass			  0          0  reset
32ee2b2434SSimon Glass		  3,575,678  3,575,678  board_init_f start
33ee2b2434SSimon Glass		  3,575,695         17  arch_cpu_init A9
34ee2b2434SSimon Glass		  3,575,777         82  arch_cpu_init done
35ee2b2434SSimon Glass		  3,659,598     83,821  board_init_r start
36ee2b2434SSimon Glass		  3,910,375    250,777  main_loop
37ee2b2434SSimon Glass		 29,916,167 26,005,792  bootm_start
38ee2b2434SSimon Glass		 30,361,327    445,160  start_kernel
39ee2b2434SSimon Glass
40ee2b2434SSimon Glassconfig BOOTSTAGE_USER_COUNT
41ee2b2434SSimon Glass	hex "Number of boot ID numbers available for user use"
42ee2b2434SSimon Glass	default 20
43ee2b2434SSimon Glass	help
44ee2b2434SSimon Glass	  This is the number of available user bootstage records.
45ee2b2434SSimon Glass	  Each time you call bootstage_mark(BOOTSTAGE_ID_ALLOC, ...)
46ee2b2434SSimon Glass	  a new ID will be allocated from this stash. If you exceed
47ee2b2434SSimon Glass	  the limit, recording will stop.
48ee2b2434SSimon Glass
49ee2b2434SSimon Glassconfig BOOTSTAGE_FDT
50ee2b2434SSimon Glass	bool "Store boot timing information in the OS device tree"
51ee2b2434SSimon Glass	depends on BOOTSTAGE
52ee2b2434SSimon Glass	help
53ee2b2434SSimon Glass	  Stash the bootstage information in the FDT. A root 'bootstage'
54ee2b2434SSimon Glass	  node is created with each bootstage id as a child. Each child
55ee2b2434SSimon Glass	  has a 'name' property and either 'mark' containing the
5657247d9cSRobert P. J. Day	  mark time in microseconds, or 'accum' containing the
57ee2b2434SSimon Glass	  accumulated time for that bootstage id in microseconds.
58ee2b2434SSimon Glass	  For example:
59ee2b2434SSimon Glass
60ee2b2434SSimon Glass		bootstage {
61ee2b2434SSimon Glass			154 {
62ee2b2434SSimon Glass				name = "board_init_f";
63ee2b2434SSimon Glass				mark = <3575678>;
64ee2b2434SSimon Glass			};
65ee2b2434SSimon Glass			170 {
66ee2b2434SSimon Glass				name = "lcd";
67ee2b2434SSimon Glass				accum = <33482>;
68ee2b2434SSimon Glass			};
69ee2b2434SSimon Glass		};
70ee2b2434SSimon Glass
71ee2b2434SSimon Glass	  Code in the Linux kernel can find this in /proc/devicetree.
72ee2b2434SSimon Glass
73ee2b2434SSimon Glassconfig BOOTSTAGE_STASH
74ee2b2434SSimon Glass	bool "Stash the boot timing information in memory before booting OS"
75ee2b2434SSimon Glass	depends on BOOTSTAGE
76ee2b2434SSimon Glass	help
77ee2b2434SSimon Glass	  Some OSes do not support device tree. Bootstage can instead write
78ee2b2434SSimon Glass	  the boot timing information in a binary format at a given address.
79ee2b2434SSimon Glass	  This happens through a call to bootstage_stash(), typically in
80ee2b2434SSimon Glass	  the CPU's cleanup_before_linux() function. You can use the
81ee2b2434SSimon Glass	  'bootstage stash' and 'bootstage unstash' commands to do this on
82ee2b2434SSimon Glass	  the command line.
83ee2b2434SSimon Glass
84ee2b2434SSimon Glassconfig BOOTSTAGE_STASH_ADDR
85ee2b2434SSimon Glass	hex "Address to stash boot timing information"
86ee2b2434SSimon Glass	default 0
87ee2b2434SSimon Glass	help
88ee2b2434SSimon Glass	  Provide an address which will not be overwritten by the OS when it
89ee2b2434SSimon Glass	  starts, so that it can read this information when ready.
90ee2b2434SSimon Glass
91ee2b2434SSimon Glassconfig BOOTSTAGE_STASH_SIZE
92ee2b2434SSimon Glass	hex "Size of boot timing stash region"
93ee2b2434SSimon Glass	default 4096
94ee2b2434SSimon Glass	help
95ee2b2434SSimon Glass	  This should be large enough to hold the bootstage stash. A value of
96ee2b2434SSimon Glass	  4096 (4KiB) is normally plenty.
97ee2b2434SSimon Glass
98ee2b2434SSimon Glassendmenu
99ee2b2434SSimon Glass
100d14739ffSPeng Fanmenu "Boot media"
101d14739ffSPeng Fan
102d14739ffSPeng Fanconfig NOR_BOOT
103d14739ffSPeng Fan	bool "Support for booting from NOR flash"
104d14739ffSPeng Fan	depends on NOR
105d14739ffSPeng Fan	help
106d14739ffSPeng Fan	  Enabling this will make a U-Boot binary that is capable of being
107d14739ffSPeng Fan	  booted via NOR.  In this case we will enable certain pinmux early
108d14739ffSPeng Fan	  as the ROM only partially sets up pinmux.  We also default to using
109d14739ffSPeng Fan	  NOR for environment.
110d14739ffSPeng Fan
111faaef73fSPeng Fanconfig NAND_BOOT
112faaef73fSPeng Fan	bool "Support for booting from NAND flash"
113faaef73fSPeng Fan	default n
114faaef73fSPeng Fan	help
115faaef73fSPeng Fan	  Enabling this will make a U-Boot binary that is capable of being
116faaef73fSPeng Fan	  booted via NAND flash. This is not a must, some SoCs need this,
11757247d9cSRobert P. J. Day	  some not.
118faaef73fSPeng Fan
119faaef73fSPeng Fanconfig ONENAND_BOOT
120faaef73fSPeng Fan	bool "Support for booting from ONENAND"
121faaef73fSPeng Fan	default n
122faaef73fSPeng Fan	help
123faaef73fSPeng Fan	  Enabling this will make a U-Boot binary that is capable of being
124faaef73fSPeng Fan	  booted via ONENAND. This is not a must, some SoCs need this,
12557247d9cSRobert P. J. Day	  some not.
126faaef73fSPeng Fan
127faaef73fSPeng Fanconfig QSPI_BOOT
128faaef73fSPeng Fan	bool "Support for booting from QSPI flash"
129faaef73fSPeng Fan	default n
130faaef73fSPeng Fan	help
131faaef73fSPeng Fan	  Enabling this will make a U-Boot binary that is capable of being
132faaef73fSPeng Fan	  booted via QSPI flash. This is not a must, some SoCs need this,
13357247d9cSRobert P. J. Day	  some not.
134faaef73fSPeng Fan
135faaef73fSPeng Fanconfig SATA_BOOT
136faaef73fSPeng Fan	bool "Support for booting from SATA"
137faaef73fSPeng Fan	default n
138faaef73fSPeng Fan	help
139faaef73fSPeng Fan	  Enabling this will make a U-Boot binary that is capable of being
140faaef73fSPeng Fan	  booted via SATA. This is not a must, some SoCs need this,
14157247d9cSRobert P. J. Day	  some not.
142faaef73fSPeng Fan
143faaef73fSPeng Fanconfig SD_BOOT
144faaef73fSPeng Fan	bool "Support for booting from SD/EMMC"
145faaef73fSPeng Fan	default n
146faaef73fSPeng Fan	help
147faaef73fSPeng Fan	  Enabling this will make a U-Boot binary that is capable of being
148faaef73fSPeng Fan	  booted via SD/EMMC. This is not a must, some SoCs need this,
14957247d9cSRobert P. J. Day	  some not.
150faaef73fSPeng Fan
151faaef73fSPeng Fanconfig SPI_BOOT
152faaef73fSPeng Fan	bool "Support for booting from SPI flash"
153faaef73fSPeng Fan	default n
154faaef73fSPeng Fan	help
155faaef73fSPeng Fan	  Enabling this will make a U-Boot binary that is capable of being
156faaef73fSPeng Fan	  booted via SPI flash. This is not a must, some SoCs need this,
15757247d9cSRobert P. J. Day	  some not.
158faaef73fSPeng Fan
159d14739ffSPeng Fanendmenu
160d14739ffSPeng Fan
161*fb1c43ccSMaxime Ripardmenu "Environment"
162*fb1c43ccSMaxime Ripard
163*fb1c43ccSMaxime Ripardif ARCH_SUNXI
164*fb1c43ccSMaxime Ripard
165*fb1c43ccSMaxime Ripardchoice
166*fb1c43ccSMaxime Ripard	prompt "Environment Device"
167*fb1c43ccSMaxime Ripard	default ENV_IS_IN_MMC if ARCH_SUNXI
168*fb1c43ccSMaxime Ripard
169*fb1c43ccSMaxime Ripardconfig ENV_IS_IN_MMC
170*fb1c43ccSMaxime Ripard	bool "Environment in an MMC device"
171*fb1c43ccSMaxime Ripard	depends on CMD_MMC
172*fb1c43ccSMaxime Ripard	help
173*fb1c43ccSMaxime Ripard	  Define this if you have an MMC device which you want to use for the
174*fb1c43ccSMaxime Ripard	  environment.
175*fb1c43ccSMaxime Ripard
176*fb1c43ccSMaxime Ripardconfig ENV_IS_IN_NAND
177*fb1c43ccSMaxime Ripard	bool "Environment in a NAND device"
178*fb1c43ccSMaxime Ripard	depends on CMD_NAND
179*fb1c43ccSMaxime Ripard	help
180*fb1c43ccSMaxime Ripard	  Define this if you have a NAND device which you want to use for the
181*fb1c43ccSMaxime Ripard	  environment.
182*fb1c43ccSMaxime Ripard
183*fb1c43ccSMaxime Ripardconfig ENV_IS_IN_UBI
184*fb1c43ccSMaxime Ripard	bool "Environment in a UBI volume"
185*fb1c43ccSMaxime Ripard	depends on CMD_UBI
186*fb1c43ccSMaxime Ripard	depends on CMD_MTDPARTS
187*fb1c43ccSMaxime Ripard	help
188*fb1c43ccSMaxime Ripard	  Define this if you have a UBI volume which you want to use for the
189*fb1c43ccSMaxime Ripard	  environment.
190*fb1c43ccSMaxime Ripard
191*fb1c43ccSMaxime Ripardconfig ENV_IS_NOWHERE
192*fb1c43ccSMaxime Ripard	bool "Environment is not stored"
193*fb1c43ccSMaxime Ripard	help
194*fb1c43ccSMaxime Ripard	  Define this if you don't want to or can't have an environment stored
195*fb1c43ccSMaxime Ripard	  on a storage medium
196*fb1c43ccSMaxime Ripard
197*fb1c43ccSMaxime Ripardendchoice
198*fb1c43ccSMaxime Ripard
199*fb1c43ccSMaxime Ripardconfig ENV_OFFSET
200*fb1c43ccSMaxime Ripard	hex "Environment Offset"
201*fb1c43ccSMaxime Ripard	depends on !ENV_IS_IN_UBI
202*fb1c43ccSMaxime Ripard	depends on !ENV_IS_NOWHERE
203*fb1c43ccSMaxime Ripard	default 0x88000 if ARCH_SUNXI
204*fb1c43ccSMaxime Ripard	help
205*fb1c43ccSMaxime Ripard	  Offset from the start of the device (or partition)
206*fb1c43ccSMaxime Ripard
207*fb1c43ccSMaxime Ripardconfig ENV_SIZE
208*fb1c43ccSMaxime Ripard	hex "Environment Size"
209*fb1c43ccSMaxime Ripard	depends on !ENV_IS_NOWHERE
210*fb1c43ccSMaxime Ripard	default 0x20000 if ARCH_SUNXI
211*fb1c43ccSMaxime Ripard	help
212*fb1c43ccSMaxime Ripard	  Size of the environment storage area
213*fb1c43ccSMaxime Ripard
214*fb1c43ccSMaxime Ripardconfig ENV_UBI_PART
215*fb1c43ccSMaxime Ripard	string "UBI partition name"
216*fb1c43ccSMaxime Ripard	depends on ENV_IS_IN_UBI
217*fb1c43ccSMaxime Ripard	help
218*fb1c43ccSMaxime Ripard	  MTD partition containing the UBI device
219*fb1c43ccSMaxime Ripard
220*fb1c43ccSMaxime Ripardconfig ENV_UBI_VOLUME
221*fb1c43ccSMaxime Ripard	string "UBI volume name"
222*fb1c43ccSMaxime Ripard	depends on ENV_IS_IN_UBI
223*fb1c43ccSMaxime Ripard	help
224*fb1c43ccSMaxime Ripard	  Name of the volume that you want to store the environment in.
225*fb1c43ccSMaxime Ripard
226*fb1c43ccSMaxime Ripardendif
227*fb1c43ccSMaxime Ripard
228*fb1c43ccSMaxime Ripardendmenu
229*fb1c43ccSMaxime Ripard
230bb597c0eSHeiko Schocherconfig BOOTDELAY
231bb597c0eSHeiko Schocher	int "delay in seconds before automatically booting"
2325e4e8741STom Rini	default 2
23341598c82SMasahiro Yamada	depends on AUTOBOOT
234bb597c0eSHeiko Schocher	help
235bb597c0eSHeiko Schocher	  Delay before automatically running bootcmd;
2362fbb8462SMasahiro Yamada	  set to 0 to autoboot with no delay, but you can stop it by key input.
237bb597c0eSHeiko Schocher	  set to -1 to disable autoboot.
238bb597c0eSHeiko Schocher	  set to -2 to autoboot with no delay and not check for abort
239bb597c0eSHeiko Schocher
2409060970fSMasahiro Yamada	  See doc/README.autoboot for details.
2419060970fSMasahiro Yamada
24298af8799SSimon Glassmenu "Console"
24398af8799SSimon Glass
2444880b026STom Riniconfig MENU
2454880b026STom Rini	bool
2464880b026STom Rini	help
2474880b026STom Rini	  This is the library functionality to provide a text-based menu of
2484880b026STom Rini	  choices for the user to make choices with.
2494880b026STom Rini
2509854a874SSimon Glassconfig CONSOLE_RECORD
2519854a874SSimon Glass	bool "Console recording"
2529854a874SSimon Glass	help
2539854a874SSimon Glass	  This provides a way to record console output (and provide console
25457247d9cSRobert P. J. Day	  input) through circular buffers. This is mostly useful for testing.
2559854a874SSimon Glass	  Console output is recorded even when the console is silent.
2569854a874SSimon Glass	  To enable console recording, call console_record_reset_enable()
2579854a874SSimon Glass	  from your code.
2589854a874SSimon Glass
2599854a874SSimon Glassconfig CONSOLE_RECORD_OUT_SIZE
2609854a874SSimon Glass	hex "Output buffer size"
2619854a874SSimon Glass	depends on CONSOLE_RECORD
2629854a874SSimon Glass	default 0x400 if CONSOLE_RECORD
2639854a874SSimon Glass	help
2649854a874SSimon Glass	  Set the size of the console output buffer. When this fills up, no
2659854a874SSimon Glass	  more data will be recorded until some is removed. The buffer is
2669854a874SSimon Glass	  allocated immediately after the malloc() region is ready.
2679854a874SSimon Glass
2689854a874SSimon Glassconfig CONSOLE_RECORD_IN_SIZE
2699854a874SSimon Glass	hex "Input buffer size"
2709854a874SSimon Glass	depends on CONSOLE_RECORD
2719854a874SSimon Glass	default 0x100 if CONSOLE_RECORD
2729854a874SSimon Glass	help
2739854a874SSimon Glass	  Set the size of the console input buffer. When this contains data,
2749854a874SSimon Glass	  tstc() and getc() will use this in preference to real device input.
2759854a874SSimon Glass	  The buffer is allocated immediately after the malloc() region is
2769854a874SSimon Glass	  ready.
2774d25507fSSiva Durga Prasad Paladugu
278a4d88920SSiva Durga Prasad Paladuguconfig IDENT_STRING
279a4d88920SSiva Durga Prasad Paladugu	string "Board specific string to be added to uboot version string"
280a4d88920SSiva Durga Prasad Paladugu	help
281a4d88920SSiva Durga Prasad Paladugu	  This options adds the board specific name to u-boot version.
282a4d88920SSiva Durga Prasad Paladugu
28398af8799SSimon Glassconfig SILENT_CONSOLE
28498af8799SSimon Glass	bool "Support a silent console"
28598af8799SSimon Glass	help
28698af8799SSimon Glass	  This option allows the console to be silenced, meaning that no
28798af8799SSimon Glass	  output will appear on the console devices. This is controlled by
28898af8799SSimon Glass	  setting the environment vaariable 'silent' to a non-empty value.
28998af8799SSimon Glass	  Note this also silences the console when booting Linux.
29098af8799SSimon Glass
29198af8799SSimon Glass	  When the console is set up, the variable is checked, and the
29298af8799SSimon Glass	  GD_FLG_SILENT flag is set. Changing the environment variable later
29398af8799SSimon Glass	  will update the flag.
29498af8799SSimon Glass
29598af8799SSimon Glassconfig SILENT_U_BOOT_ONLY
29698af8799SSimon Glass	bool "Only silence the U-Boot console"
29798af8799SSimon Glass	depends on SILENT_CONSOLE
29898af8799SSimon Glass	help
29998af8799SSimon Glass	  Normally when the U-Boot console is silenced, Linux's console is
30098af8799SSimon Glass	  also silenced (assuming the board boots into Linux). This option
30198af8799SSimon Glass	  allows the linux console to operate normally, even if U-Boot's
30298af8799SSimon Glass	  is silenced.
30398af8799SSimon Glass
30498af8799SSimon Glassconfig SILENT_CONSOLE_UPDATE_ON_SET
30598af8799SSimon Glass	bool "Changes to the 'silent' environment variable update immediately"
30698af8799SSimon Glass	depends on SILENT_CONSOLE
30798af8799SSimon Glass	default y if SILENT_CONSOLE
30898af8799SSimon Glass	help
30998af8799SSimon Glass	  When the 'silent' environment variable is changed, update the
31098af8799SSimon Glass	  console silence flag immediately. This allows 'setenv' to be used
31198af8799SSimon Glass	  to silence or un-silence the console.
31298af8799SSimon Glass
31398af8799SSimon Glass	  The effect is that any change to the variable will affect the
31498af8799SSimon Glass	  GD_FLG_SILENT flag.
31598af8799SSimon Glass
31698af8799SSimon Glassconfig SILENT_CONSOLE_UPDATE_ON_RELOC
31798af8799SSimon Glass	bool "Allow flags to take effect on relocation"
31898af8799SSimon Glass	depends on SILENT_CONSOLE
31998af8799SSimon Glass	help
32098af8799SSimon Glass	  In some cases the environment is not available until relocation
32198af8799SSimon Glass	  (e.g. NAND). This option makes the value of the 'silent'
32298af8799SSimon Glass	  environment variable take effect at relocation.
32398af8799SSimon Glass
3248f925584SSimon Glassconfig PRE_CONSOLE_BUFFER
3258f925584SSimon Glass	bool "Buffer characters before the console is available"
3268f925584SSimon Glass	help
3278f925584SSimon Glass	  Prior to the console being initialised (i.e. serial UART
3288f925584SSimon Glass	  initialised etc) all console output is silently discarded.
3298f925584SSimon Glass	  Defining CONFIG_PRE_CONSOLE_BUFFER will cause U-Boot to
3308f925584SSimon Glass	  buffer any console messages prior to the console being
3318f925584SSimon Glass	  initialised to a buffer. The buffer is a circular buffer, so
3328f925584SSimon Glass	  if it overflows, earlier output is discarded.
3338f925584SSimon Glass
3348f925584SSimon Glass	  Note that this is not currently supported in SPL. It would be
3358f925584SSimon Glass	  useful to be able to share the pre-console buffer with SPL.
3368f925584SSimon Glass
3378f925584SSimon Glassconfig PRE_CON_BUF_SZ
3388f925584SSimon Glass	int "Sets the size of the pre-console buffer"
3398f925584SSimon Glass	depends on PRE_CONSOLE_BUFFER
3408f925584SSimon Glass	default 4096
3418f925584SSimon Glass	help
3428f925584SSimon Glass	  The size of the pre-console buffer affects how much console output
3438f925584SSimon Glass	  can be held before it overflows and starts discarding earlier
3448f925584SSimon Glass	  output. Normally there is very little output at this early stage,
3458f925584SSimon Glass	  unless debugging is enabled, so allow enough for ~10 lines of
3468f925584SSimon Glass	  text.
3478f925584SSimon Glass
3488f925584SSimon Glass	  This is a useful feature if you are using a video console and
3498f925584SSimon Glass	  want to see the full boot output on the console. Without this
3508f925584SSimon Glass	  option only the post-relocation output will be displayed.
3518f925584SSimon Glass
3528f925584SSimon Glassconfig PRE_CON_BUF_ADDR
3538f925584SSimon Glass	hex "Address of the pre-console buffer"
3548f925584SSimon Glass	depends on PRE_CONSOLE_BUFFER
3558f925584SSimon Glass	default 0x2f000000 if ARCH_SUNXI && MACH_SUN9I
3568f925584SSimon Glass	default 0x4f000000 if ARCH_SUNXI && !MACH_SUN9I
3578f925584SSimon Glass	help
3588f925584SSimon Glass	  This sets the start address of the pre-console buffer. This must
3598f925584SSimon Glass	  be in available memory and is accessed before relocation and
3608f925584SSimon Glass	  possibly before DRAM is set up. Therefore choose an address
3618f925584SSimon Glass	  carefully.
3628f925584SSimon Glass
3638f925584SSimon Glass	  We should consider removing this option and allocating the memory
3648f925584SSimon Glass	  in board_init_f_init_reserve() instead.
3658f925584SSimon Glass
366ef26d603SSimon Glassconfig CONSOLE_MUX
367ef26d603SSimon Glass	bool "Enable console multiplexing"
368ef26d603SSimon Glass	default y if DM_VIDEO || VIDEO || LCD
369ef26d603SSimon Glass	help
370ef26d603SSimon Glass	  This allows multiple devices to be used for each console 'file'.
371ef26d603SSimon Glass	  For example, stdout can be set to go to serial and video.
372ef26d603SSimon Glass	  Similarly, stdin can be set to come from serial and keyboard.
373ef26d603SSimon Glass	  Input can be provided from either source. Console multiplexing
374ef26d603SSimon Glass	  adds a small amount of size to U-Boot.  Changes to the environment
375ef26d603SSimon Glass	  variables stdout, stdin and stderr will take effect immediately.
376ef26d603SSimon Glass
377ef26d603SSimon Glassconfig SYS_CONSOLE_IS_IN_ENV
378ef26d603SSimon Glass	bool "Select console devices from the environment"
379ef26d603SSimon Glass	default y if CONSOLE_MUX
380ef26d603SSimon Glass	help
381ef26d603SSimon Glass	  This allows multiple input/output devices to be set at boot time.
382ef26d603SSimon Glass	  For example, if stdout is set to "serial,video" then output will
383ef26d603SSimon Glass	  be sent to both the serial and video devices on boot. The
384ef26d603SSimon Glass	  environment variables can be updated after boot to change the
385ef26d603SSimon Glass	  input/output devices.
386ef26d603SSimon Glass
38784f2a5d0SSimon Glassconfig SYS_CONSOLE_OVERWRITE_ROUTINE
38884f2a5d0SSimon Glass	bool "Allow board control over console overwriting"
38984f2a5d0SSimon Glass	help
39084f2a5d0SSimon Glass	  If this is enabled, and the board-specific function
39184f2a5d0SSimon Glass	  overwrite_console() returns 1, the stdin, stderr and stdout are
39284f2a5d0SSimon Glass	  switched to the serial port, else the settings in the environment
39384f2a5d0SSimon Glass	  are used. If this is not enabled, the console will not be switched
39484f2a5d0SSimon Glass	  to serial.
39584f2a5d0SSimon Glass
3963505bc55SSimon Glassconfig SYS_CONSOLE_ENV_OVERWRITE
3973505bc55SSimon Glass	bool "Update environment variables during console init"
3983505bc55SSimon Glass	help
3993505bc55SSimon Glass	  The console environment variables (stdout, stdin, stderr) can be
4003505bc55SSimon Glass	  used to determine the correct console devices on start-up. This
4013505bc55SSimon Glass	  option writes the console devices to these variables on console
4023505bc55SSimon Glass	  start-up (after relocation). This causes the environment to be
4033505bc55SSimon Glass	  updated to match the console devices actually chosen.
4043505bc55SSimon Glass
405f3f3efffSSimon Glassconfig SYS_CONSOLE_INFO_QUIET
406f3f3efffSSimon Glass	bool "Don't display the console devices on boot"
407f3f3efffSSimon Glass	help
408f3f3efffSSimon Glass	  Normally U-Boot displays the current settings for stdout, stdin
409f3f3efffSSimon Glass	  and stderr on boot when the post-relocation console is set up.
410f3f3efffSSimon Glass	  Enable this option to supress this output. It can be obtained by
411f3f3efffSSimon Glass	  calling stdio_print_current_devices() from board code.
412f3f3efffSSimon Glass
413869588deSSimon Glassconfig SYS_STDIO_DEREGISTER
414869588deSSimon Glass	bool "Allow deregistering stdio devices"
415869588deSSimon Glass	default y if USB_KEYBOARD
416869588deSSimon Glass	help
417869588deSSimon Glass	  Generally there is no need to deregister stdio devices since they
418869588deSSimon Glass	  are never deactivated. But if a stdio device is used which can be
419869588deSSimon Glass	  removed (for example a USB keyboard) then this option can be
420869588deSSimon Glass	  enabled to ensure this is handled correctly.
421869588deSSimon Glass
42298af8799SSimon Glassendmenu
42398af8799SSimon Glass
424d259c008SJagan Tekiconfig DEFAULT_FDT_FILE
425d259c008SJagan Teki	string "Default fdt file"
426d259c008SJagan Teki	help
427d259c008SJagan Teki	  This option is used to set the default fdt file to boot OS.
428d259c008SJagan Teki
4299dd1d0aaSHeiko Schocherconfig VERSION_VARIABLE
4309dd1d0aaSHeiko Schocher	bool "add U-Boot environment variable vers"
4319dd1d0aaSHeiko Schocher	default n
4329dd1d0aaSHeiko Schocher	help
4339dd1d0aaSHeiko Schocher	  If this variable is defined, an environment variable
4349dd1d0aaSHeiko Schocher	  named "ver" is created by U-Boot showing the U-Boot
4359dd1d0aaSHeiko Schocher	  version as printed by the "version" command.
4369dd1d0aaSHeiko Schocher	  Any change to this variable will be reverted at the
4379dd1d0aaSHeiko Schocher	  next reset.
438c2ae7d82SSimon Glass
439de70fefbSJagan Tekiconfig BOARD_LATE_INIT
440e5ec4815STom Rini	bool
441de70fefbSJagan Teki	help
442de70fefbSJagan Teki	  Sometimes board require some initialization code that might
443de70fefbSJagan Teki	  require once the actual init done, example saving board specific env,
444de70fefbSJagan Teki	  boot-modes etc. which eventually done at late.
445de70fefbSJagan Teki
446de70fefbSJagan Teki	  So this config enable the late init code with the help of board_late_init
447de70fefbSJagan Teki	  function which should defined on respective boards.
448de70fefbSJagan Teki
44919a97475SLokesh Vutlaconfig DISPLAY_CPUINFO
45019a97475SLokesh Vutla	bool "Display information about the CPU during start up"
451ea3310e8STom Rini	default y if ARM || NIOS2 || X86 || XTENSA || MPC5xxx
45219a97475SLokesh Vutla	help
45319a97475SLokesh Vutla	  Display information about the CPU that U-Boot is running on
45419a97475SLokesh Vutla	  when U-Boot starts up. The function print_cpuinfo() is called
45519a97475SLokesh Vutla	  to do this.
45619a97475SLokesh Vutla
45784351792SLokesh Vutlaconfig DISPLAY_BOARDINFO
45884351792SLokesh Vutla	bool "Display information about the board during start up"
459936478e7STom Rini	default y if ARM || M68K || MIPS || PPC || XTENSA
46084351792SLokesh Vutla	help
46184351792SLokesh Vutla	  Display information about the board that U-Boot is running on
46284351792SLokesh Vutla	  when U-Boot starts up. The board function checkboard() is called
46384351792SLokesh Vutla	  to do this.
46484351792SLokesh Vutla
465a421192fSSimon Glassmenu "Start-up hooks"
466a421192fSSimon Glass
467a421192fSSimon Glassconfig ARCH_EARLY_INIT_R
468a421192fSSimon Glass	bool "Call arch-specific init soon after relocation"
469a421192fSSimon Glass	default y if X86
470a421192fSSimon Glass	help
471a421192fSSimon Glass	  With this option U-Boot will call arch_early_init_r() soon after
472a421192fSSimon Glass	  relocation. Driver model is running by this point, and the cache
473a421192fSSimon Glass	  is on. Note that board_early_init_r() is called first, if
474a421192fSSimon Glass	  enabled. This can be used to set up architecture-specific devices.
475a421192fSSimon Glass
4764585601aSSimon Glassconfig ARCH_MISC_INIT
4774585601aSSimon Glass	bool "Call arch-specific init after relocation, when console is ready"
4784585601aSSimon Glass	help
4794585601aSSimon Glass	  With this option U-Boot will call arch_misc_init() after
4804585601aSSimon Glass	  relocation to allow miscellaneous arch-dependent initialisation
4814585601aSSimon Glass	  to be performed. This function should be defined by the board
4824585601aSSimon Glass	  and will be called after the console is set up, after relocaiton.
4834585601aSSimon Glass
484a5d67547SSimon Glassconfig BOARD_EARLY_INIT_F
485a5d67547SSimon Glass	bool "Call board-specific init before relocation"
486a5d67547SSimon Glass	default y if X86
487a5d67547SSimon Glass	help
488a5d67547SSimon Glass	  Some boards need to perform initialisation as soon as possible
489a5d67547SSimon Glass	  after boot. With this option, U-Boot calls board_early_init_f()
490a5d67547SSimon Glass	  after driver model is ready in the pre-relocation init sequence.
491a5d67547SSimon Glass	  Note that the normal serial console is not yet set up, but the
492a5d67547SSimon Glass	  debug UART will be available if enabled.
493a5d67547SSimon Glass
494a421192fSSimon Glassendmenu
495a421192fSSimon Glass
496c2ae7d82SSimon Glasssource "common/spl/Kconfig"
497