]> git.karo-electronics.de Git - karo-tx-uboot.git/blob - common/Kconfig
autoboot.c: Remove CONFIG_AUTOBOOT_STOP_STR2 and CONFIG_AUTOBOOT_DELAY_STR2
[karo-tx-uboot.git] / common / Kconfig
1 menu "Command line interface"
2
3 config HUSH_PARSER
4         bool "Use hush shell"
5         select SYS_HUSH_PARSER
6         help
7           This option enables the "hush" shell (from Busybox) as command line
8           interpreter, thus enabling powerful command line syntax like
9           if...then...else...fi conditionals or `&&' and '||'
10           constructs ("shell scripts").
11
12           If disabled, you get the old, much simpler behaviour with a somewhat
13           smaller memory footprint.
14
15 config SYS_HUSH_PARSER
16         bool
17         help
18           Backward compatibility.
19
20 comment "Commands"
21
22 menu "Info commands"
23
24 config CMD_BDI
25         bool "bdinfo"
26         default y
27         help
28           Print board info
29
30 config CMD_CONSOLE
31         bool "coninfo"
32         default y
33         help
34           Print console devices and information.
35
36 config CMD_CPU
37         bool "cpu"
38         help
39           Print information about available CPUs. This normally shows the
40           number of CPUs, type (e.g. manufacturer, architecture, product or
41           internal name) and clock frequency. Other information may be
42           available depending on the CPU driver.
43
44 config CMD_LICENSE
45         bool "license"
46         help
47           Print GPL license text
48
49 endmenu
50
51 menu "Boot commands"
52
53 config CMD_BOOTD
54         bool "bootd"
55         default y
56         help
57           Run the command stored in the environment "bootcmd", i.e.
58           "bootd" does the same thing as "run bootcmd".
59
60 config CMD_BOOTM
61         bool "bootm"
62         default y
63         help
64           Boot an application image from the memory.
65
66 config CMD_BOOTZ
67         bool "bootz"
68         default y
69         help
70           Boot a Linux kernel zImage.
71
72 config CMD_BOOTCE
73         bool "bootce"
74         help
75           Boot a WindowsCE image.
76
77 config CMD_GO
78         bool "go"
79         default y
80         help
81           Start an application at a given address.
82
83 config CMD_RUN
84         bool "run"
85         default y
86         help
87           Run the command in the given environment variable.
88
89 config CMD_IMI
90         bool "iminfo"
91         default y
92         help
93           Print header information for application image.
94
95 config CMD_IMLS
96         bool "imls"
97         default !SYS_NO_FLASH
98         help
99           List all images found in flash
100
101 config CMD_XIMG
102         bool "imxtract"
103         default y
104         help
105           Extract a part of a multi-image.
106
107 endmenu
108
109 menu "DTB support"
110
111 config OF_LIBFDT
112         bool "Enable FDT commands"
113
114 config OF_BOARD_SETUP
115         bool "Support DT modifications by board code"
116         depends on OF_LIBFDT
117
118 endmenu
119
120 menu "Environment commands"
121
122 config CMD_EXPORTENV
123         bool "env export"
124         default y
125         help
126           Export environments.
127
128 config CMD_IMPORTENV
129         bool "env import"
130         default y
131         help
132           Import environments.
133
134 config CMD_EDITENV
135         bool "editenv"
136         default y
137         help
138           Edit environment variable.
139
140 config CMD_SAVEENV
141         bool "saveenv"
142         default y
143         help
144           Run the command in the given environment variable.
145
146 endmenu
147
148 menu "Memory commands"
149
150 config CMD_MEMORY
151         bool "md, mm, nm, mw, cp, cmp, base, loop"
152         default y
153         help
154           Memeory commands.
155             md - memory display
156             mm - memory modify (auto-incrementing address)
157             nm - memory modify (constant address)
158             mw - memory write (fill)
159             cp - memory copy
160             cmp - memory compare
161             base - print or set address offset
162             loop - initinite loop on address range
163
164 config CMD_CRC32
165         bool "crc32"
166         default y
167         help
168           Compute CRC32.
169
170 config LOOPW
171         bool "loopw"
172         help
173           Infinite write loop on address range
174
175 config CMD_MEMTEST
176         bool "memtest"
177         help
178           Simple RAM read/write test.
179
180 config CMD_MX_CYCLIC
181         bool "mdc, mwc"
182         help
183           mdc - memory display cyclic
184           mwc - memory write cyclic
185
186 config CMD_MEMINFO
187         bool "meminfo"
188         help
189           Display memory information.
190
191 endmenu
192
193 menu "Device access commands"
194
195 config CMD_DM
196         bool "dm - Access to driver model information"
197         depends on DM
198         default y
199         help
200           Provides access to driver model data structures and information,
201           such as a list of devices, list of uclasses and the state of each
202           device (e.g. activated). This is not required for operation, but
203           can be useful to see the state of driver model for debugging or
204           interest.
205
206 config CMD_DEMO
207         bool "demo - Demonstration commands for driver model"
208         depends on DM
209         help
210           Provides a 'demo' command which can be used to play around with
211           driver model. To use this properly you will need to enable one or
212           both of the demo devices (DM_DEMO_SHAPE and DM_DEMO_SIMPLE).
213           Otherwise you will always get an empty list of devices. The demo
214           devices are defined in the sandbox device tree, so the easiest
215           option is to use sandbox and pass the -d point to sandbox's
216           u-boot.dtb file.
217
218 config CMD_LOADB
219         bool "loadb"
220         default y
221         help
222           Load a binary file over serial line.
223
224 config CMD_LOADS
225         bool "loads"
226         default y
227         help
228           Load an S-Record file over serial line
229
230 config CMD_FLASH
231         bool "flinfo, erase, protect"
232         default y if !SYS_NO_FLASH
233         help
234           NOR flash support.
235             flinfo - print FLASH memory information
236             erase - FLASH memory
237             protect - enable or disable FLASH write protection
238
239 config CMD_ARMFLASH
240         depends on FLASH_CFI_DRIVER
241         bool "armflash"
242         help
243           ARM Ltd reference designs flash partition access
244
245 config MTD_DEVICE
246         bool "MTD device support"
247
248 config CMD_MTDPARTS
249         bool "MTD partitioning support"
250         default y
251         depends on MTD_DEVICE && (CMD_FLASH || CMD_NAND)
252
253 config CMD_NAND
254         bool "nand"
255         help
256           NAND support.
257
258 config CMD_NAND_TRIMFFS
259         bool "Enable nand write.trimffs command"
260         help
261           Enable command to leave page sized runs of 0xff patterns in
262           erased state rather than overwriting them. This is required
263           for using NAND flash filesystems on NAND controllers with
264           a non-0xff ECC code for all 0xff data.
265
266 config CMD_ROMUPDATE
267         bool
268         depends on NAND
269
270 config CMD_MMC
271         bool "mmc/sd"
272         select PARTITIONS
273         help
274           MMC/SD support.
275
276 config CMD_SPI
277         bool "sspi"
278         help
279           SPI utility command.
280
281 config CMD_I2C
282         bool "i2c"
283         help
284           I2C support.
285
286 config CMD_USB
287         bool "usb"
288         help
289           USB support.
290
291 config CMD_FPGA
292         bool "fpga"
293         default y
294         help
295           FPGA support.
296
297 endmenu
298
299
300 menu "Shell scripting commands"
301
302 config CMD_ECHO
303         bool "echo"
304         default y
305         help
306           Echo args to console
307
308 config CMD_ITEST
309         bool "itest"
310         default y
311         help
312           Return true/false on integer compare.
313
314 config CMD_SOURCE
315         bool "source"
316         default y
317         help
318           Run script from memory
319
320 config CMD_SETEXPR
321         bool "setexpr"
322         help
323           Evaluate boolean and math expressions and store the result in an env
324             variable.
325           Also supports loading the value at a memory location into a variable.
326           If CONFIG_REGEX is enabled, setexpr also supports a gsub function.
327
328 endmenu
329
330 menu "Network commands"
331
332 config CMD_NET
333         bool "bootp, tftpboot"
334         default y
335         select NET
336         help
337           Network commands.
338           bootp - boot image via network using BOOTP/TFTP protocol
339           tftpboot - boot image via network using TFTP protocol
340
341 config CMD_TFTPPUT
342         bool "tftp put"
343         help
344           TFTP put command, for uploading files to a server
345
346 config CMD_TFTPSRV
347         bool "tftpsrv"
348         help
349           Act as a TFTP server and boot the first received file
350
351 config CMD_RARP
352         bool "rarpboot"
353         help
354           Boot image via network using RARP/TFTP protocol
355
356 config CMD_DHCP
357         bool "dhcp"
358         help
359           Boot image via network using DHCP/TFTP protocol
360
361 if CMD_DHCP
362
363 menu "DHCP options"
364
365 config BOOTP_BOOTFILESIZE
366         bool "obtain bootfile size from DHCP"
367
368 config BOOTP_BOOTPATH
369         bool "obtain bootfile path from DHCP"
370
371 config BOOTP_DNS
372         bool "obtain DNS server IP address from DHCP"
373
374 config BOOTP_DNS2
375         bool "store secondary DNS IP address in dnsip2"
376
377 config BOOTP_GATEWAY
378         bool "obtain gateway IP address from DHCP"
379
380 config BOOTP_ID_CACHE_SIZE
381         int "DHCP transaction ID cache size"
382         default 4
383         help
384           BOOTP packets are uniquely identified using a 32-bit ID. The
385           server will copy the ID from client requests to responses and
386           U-Boot will use this to determine if it is the destination of
387           an incoming response. Some servers will check that addresses
388           aren't in use before handing them out (usually using an ARP
389           ping) and therefore take up to a few hundred milliseconds to
390           respond. Network congestion may also influence the time it
391           takes for a response to make it back to the client. If that
392           time is too long, U-Boot will retransmit requests. In order
393           to allow earlier responses to still be accepted after these
394           retransmissions, U-Boot's BOOTP client keeps a small cache of
395           IDs. The CONFIG_BOOTP_ID_CACHE_SIZE controls the size of this
396           cache. The default is to keep IDs for up to four outstanding
397           requests. Increasing this will allow U-Boot to accept offers
398           from a BOOTP client in networks with unusually high latency.
399
400 config BOOTP_MAY_FAIL
401         bool "Do not start over, if DHCP server is not available"
402         help
403           If the DHCP server is not found after the configured retry
404           count, the call will fail instead of starting over.  This
405           can be used to fail over to Link-local IP address
406           configuration if the DHCP server is not available.
407
408 config BOOTP_NISDOMAIN
409         bool "obtain NIS domain from DHCP"
410
411 config BOOTP_NTPSERVER
412         bool "obtain NTP server IP address from DHCP"
413
414 config BOOTP_RANDOM_DELAY
415         bool "Use a (pseudo) random delay between DHCP retries"
416         select LIB_RAND
417
418 config BOOTP_RANDOM_ID
419         bool "Generate a (pseudo) random transaction ID"
420         select LIB_RAND
421
422 config BOOTP_SEND_HOSTNAME
423         bool "send hostname in DHCP request"
424
425 config BOOTP_SUBNETMASK
426         bool "obtain subnet mask from DHCP"
427
428 config BOOTP_TIMEOFFSET
429         bool "obtain  from DHCP"
430
431 config BOOTP_VENDOREX
432         bool "obtain  from DHCP"
433
434 endmenu
435
436 endif
437
438 config CMD_NFS
439         bool "nfs"
440         default y
441         help
442           Boot image via network using NFS protocol.
443
444 config CMD_PING
445         bool "ping"
446         help
447           Send ICMP ECHO_REQUEST to network host
448
449 config CMD_CDP
450         bool "cdp"
451         help
452           Perform CDP network configuration
453
454 config CMD_SNTP
455         bool "sntp"
456         help
457           Synchronize RTC via network
458
459 config CMD_DNS
460         bool "dns"
461         help
462           Lookup the IP of a hostname
463
464 config CMD_LINK_LOCAL
465         bool "linklocal"
466         help
467           Acquire a network IP address using the link-local protocol
468
469 config CMD_MII
470         bool "MII register access"
471         help
472           Support reading/writing ETH PHY registers via MII bus
473
474 endmenu
475
476 menu "Misc commands"
477
478 config CMD_CACHE
479         bool "cache control"
480         help
481           Enable commands to switch data cache on/off.
482
483 config CMD_TIME
484         bool "time"
485         help
486           Run commands and summarize execution time.
487
488 config CMD_FUSE
489         bool "fuse read/write"
490         help
491           eFuse reading and programming support
492
493 # TODO: rename to CMD_SLEEP
494 config CMD_MISC
495         bool "sleep"
496         default y
497         help
498           Delay execution for some time
499
500 config CMD_TIMER
501         bool "timer"
502         help
503           Access the system timer.
504
505 config CMD_SETGETDCR
506         bool "getdcr, setdcr, getidcr, setidcr"
507         depends on 4xx
508         default y
509         help
510           getdcr - Get an AMCC PPC 4xx DCR's value
511           setdcr - Set an AMCC PPC 4xx DCR's value
512           getidcr - Get a register value via indirect DCR addressing
513           setidcr - Set a register value via indirect DCR addressing
514
515 config CMD_SOUND
516         bool "sound"
517         depends on SOUND
518         help
519           This provides basic access to the U-Boot's sound support. The main
520           feature is to play a beep.
521
522              sound init   - set up sound system
523              sound play   - play a sound
524
525 endmenu
526
527 menu "Boot timing"
528
529 config BOOTSTAGE
530         bool "Boot timing and reporting"
531         help
532           Enable recording of boot time while booting. To use it, insert
533           calls to bootstage_mark() with a suitable BOOTSTAGE_ID from
534           bootstage.h. Only a single entry is recorded for each ID. You can
535           give the entry a name with bootstage_mark_name(). You can also
536           record elapsed time in a particular stage using bootstage_start()
537           before starting and bootstage_accum() when finished. Bootstage will
538           add up all the accumated time and report it.
539
540           Normally, IDs are defined in bootstage.h but a small number of
541           additional 'user' IDs can be used but passing BOOTSTAGE_ID_ALLOC
542           as the ID.
543
544           Calls to show_boot_progress() wil also result in log entries but
545           these will not have names.
546
547 config BOOTSTAGE_REPORT
548         bool "Display a detailed boot timing report before booting the OS"
549         depends on BOOTSTAGE
550         help
551           Enable output of a boot time report just before the OS is booted.
552           This shows how long it took U-Boot to go through each stage of the
553           boot process. The report looks something like this:
554
555                 Timer summary in microseconds:
556                        Mark    Elapsed  Stage
557                           0          0  reset
558                   3,575,678  3,575,678  board_init_f start
559                   3,575,695         17  arch_cpu_init A9
560                   3,575,777         82  arch_cpu_init done
561                   3,659,598     83,821  board_init_r start
562                   3,910,375    250,777  main_loop
563                  29,916,167 26,005,792  bootm_start
564                  30,361,327    445,160  start_kernel
565
566 config BOOTSTAGE_USER_COUNT
567         hex "Number of boot ID numbers available for user use"
568         default 20
569         help
570           This is the number of available user bootstage records.
571           Each time you call bootstage_mark(BOOTSTAGE_ID_ALLOC, ...)
572           a new ID will be allocated from this stash. If you exceed
573           the limit, recording will stop.
574
575 config CMD_BOOTSTAGE
576         bool "Enable the 'bootstage' command"
577         depends on BOOTSTAGE
578         help
579           Add a 'bootstage' command which supports printing a report
580           and un/stashing of bootstage data.
581
582 config BOOTSTAGE_FDT
583         bool "Store boot timing information in the OS device tree"
584         depends on BOOTSTAGE
585         help
586           Stash the bootstage information in the FDT. A root 'bootstage'
587           node is created with each bootstage id as a child. Each child
588           has a 'name' property and either 'mark' containing the
589           mark time in microsecond, or 'accum' containing the
590           accumulated time for that bootstage id in microseconds.
591           For example:
592
593                 bootstage {
594                         154 {
595                                 name = "board_init_f";
596                                 mark = <3575678>;
597                         };
598                         170 {
599                                 name = "lcd";
600                                 accum = <33482>;
601                         };
602                 };
603
604           Code in the Linux kernel can find this in /proc/devicetree.
605
606 config BOOTSTAGE_STASH
607         bool "Stash the boot timing information in memory before booting OS"
608         depends on BOOTSTAGE
609         help
610           Some OSes do not support device tree. Bootstage can instead write
611           the boot timing information in a binary format at a given address.
612           This happens through a call to bootstage_stash(), typically in
613           the CPU's cleanup_before_linux() function. You can use the
614           'bootstage stash' and 'bootstage unstash' commands to do this on
615           the command line.
616
617 config BOOTSTAGE_STASH_ADDR
618         hex "Address to stash boot timing information"
619         default 0
620         help
621           Provide an address which will not be overwritten by the OS when it
622           starts, so that it can read this information when ready.
623
624 config BOOTSTAGE_STASH_SIZE
625         hex "Size of boot timing stash region"
626         default 4096
627         help
628           This should be large enough to hold the bootstage stash. A value of
629           4096 (4KiB) is normally plenty.
630
631 endmenu
632
633 menu "Power commands"
634 config CMD_PMIC
635         bool "Enable Driver Model PMIC command"
636         depends on DM_PMIC
637         help
638           This is the pmic command, based on a driver model pmic's API.
639           Command features are unchanged:
640           - list               - list pmic devices
641           - pmic dev <id>      - show or [set] operating pmic device (NEW)
642           - pmic dump          - dump registers
643           - pmic read address  - read byte of register at address
644           - pmic write address - write byte to register at address
645           The only one change for this command is 'dev' subcommand.
646
647 config CMD_REGULATOR
648         bool "Enable Driver Model REGULATOR command"
649         depends on DM_REGULATOR
650         help
651           This command is based on driver model regulator's API.
652           User interface features:
653           - list               - list regulator devices
654           - regulator dev <id> - show or [set] operating regulator device
655           - regulator info     - print constraints info
656           - regulator status   - print operating status
657           - regulator value <val] <-f> - print/[set] voltage value [uV]
658           - regulator current <val>    - print/[set] current value [uA]
659           - regulator mode <id>        - print/[set] operating mode id
660           - regulator enable           - enable the regulator output
661           - regulator disable          - disable the regulator output
662
663           The '-f' (force) option can be used for set the value which exceeds
664           the limits, which are found in device-tree and are kept in regulator's
665           uclass platdata structure.
666
667 endmenu
668
669 endmenu
670
671 menu "Environment configuration settings"
672
673 choice
674         prompt "Select environment non-volatile storage"
675
676 config ENV_IS_NOWHERE
677         bool "do not store environment"
678
679 config ENV_IS_IN_NAND
680         bool "store environment in NAND"
681         depends on NAND
682
683 config ENV_IS_IN_MMC
684         bool "store environment in MMC"
685         depends on MMC
686
687 config ENV_IS_IN_SPI_FLASH
688         bool "store environment in SPI flash"
689
690 endchoice
691
692 endmenu
693
694 menu "Display configuration"
695
696 config LCD
697         bool "LCD support"
698
699 config DISPLAY_BOARDINFO
700         bool "Display board info"
701
702 endmenu