]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - common/Kconfig
dm: usb: Split hub detection into its own function
[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_LICENSE
37         bool "license"
38         help
39           Print GPL license text
40
41 endmenu
42
43 menu "Boot commands"
44
45 config CMD_BOOTD
46         bool "bootd"
47         default y
48         help
49           Run the command stored in the environment "bootcmd", i.e.
50           "bootd" does the same thing as "run bootcmd".
51
52 config CMD_BOOTM
53         bool "bootm"
54         default y
55         help
56           Boot an application image from the memory.
57
58 config CMD_BOOTZ
59         bool "bootz"
60         default y
61         help
62           Boot a Linux kernel zImage.
63
64 config CMD_BOOTCE
65         bool "bootce"
66         help
67           Boot a WindowsCE image.
68
69 config CMD_GO
70         bool "go"
71         default y
72         help
73           Start an application at a given address.
74
75 config CMD_RUN
76         bool "run"
77         default y
78         help
79           Run the command in the given environment variable.
80
81 config CMD_IMI
82         bool "iminfo"
83         default y
84         help
85           Print header information for application image.
86
87 config CMD_IMLS
88         bool "imls"
89         default !SYS_NO_FLASH
90         help
91           List all images found in flash
92
93 config CMD_XIMG
94         bool "imxtract"
95         default y
96         help
97           Extract a part of a multi-image.
98
99 endmenu
100
101 menu "DTB support"
102
103 config OF_LIBFDT
104         bool "Enable FDT commands"
105
106 config OF_BOARD_SETUP
107         bool "Support DT modifications by board code"
108         depends on OF_LIBFDT
109
110 endmenu
111
112 menu "Environment commands"
113
114 config CMD_EXPORTENV
115         bool "env export"
116         default y
117         help
118           Export environments.
119
120 config CMD_IMPORTENV
121         bool "env import"
122         default y
123         help
124           Import environments.
125
126 config CMD_EDITENV
127         bool "editenv"
128         default y
129         help
130           Edit environment variable.
131
132 config CMD_SAVEENV
133         bool "saveenv"
134         default y
135         help
136           Run the command in the given environment variable.
137
138 endmenu
139
140 menu "Memory commands"
141
142 config CMD_MEMORY
143         bool "md, mm, nm, mw, cp, cmp, base, loop"
144         default y
145         help
146           Memeory commands.
147             md - memory display
148             mm - memory modify (auto-incrementing address)
149             nm - memory modify (constant address)
150             mw - memory write (fill)
151             cp - memory copy
152             cmp - memory compare
153             base - print or set address offset
154             loop - initinite loop on address range
155
156 config CMD_CRC32
157         bool "crc32"
158         default y
159         help
160           Compute CRC32.
161
162 config LOOPW
163         bool "loopw"
164         help
165           Infinite write loop on address range
166
167 config CMD_MEMTEST
168         bool "memtest"
169         help
170           Simple RAM read/write test.
171
172 config CMD_MX_CYCLIC
173         bool "mdc, mwc"
174         help
175           mdc - memory display cyclic
176           mwc - memory write cyclic
177
178 config CMD_MEMINFO
179         bool "meminfo"
180         help
181           Display memory information.
182
183 endmenu
184
185 menu "Device access commands"
186
187 config CMD_DM
188         bool "dm - Access to driver model information"
189         depends on DM
190         default y
191         help
192           Provides access to driver model data structures and information,
193           such as a list of devices, list of uclasses and the state of each
194           device (e.g. activated). This is not required for operation, but
195           can be useful to see the state of driver model for debugging or
196           interest.
197
198 config CMD_DEMO
199         bool "demo - Demonstration commands for driver model"
200         depends on DM
201         help
202           Provides a 'demo' command which can be used to play around with
203           driver model. To use this properly you will need to enable one or
204           both of the demo devices (DM_DEMO_SHAPE and DM_DEMO_SIMPLE).
205           Otherwise you will always get an empty list of devices. The demo
206           devices are defined in the sandbox device tree, so the easiest
207           option is to use sandbox and pass the -d point to sandbox's
208           u-boot.dtb file.
209
210 config CMD_LOADB
211         bool "loadb"
212         default y
213         help
214           Load a binary file over serial line.
215
216 config CMD_LOADS
217         bool "loads"
218         default y
219         help
220           Load an S-Record file over serial line
221
222 config CMD_FLASH
223         bool "flinfo, erase, protect"
224         default y if !SYS_NO_FLASH
225         help
226           NOR flash support.
227             flinfo - print FLASH memory information
228             erase - FLASH memory
229             protect - enable or disable FLASH write protection
230
231 config CMD_ARMFLASH
232         depends on FLASH_CFI_DRIVER
233         bool "armflash"
234         help
235           ARM Ltd reference designs flash partition access
236
237 config MTD_DEVICE
238         bool "MTD device support"
239
240 config CMD_MTDPARTS
241         bool "MTD partitioning support"
242         default y
243         depends on MTD_DEVICE && (CMD_FLASH || CMD_NAND)
244
245 config CMD_NAND
246         bool "nand"
247         help
248           NAND support.
249
250 config CMD_NAND_TRIMFFS
251         bool "Enable nand write.trimffs command"
252         help
253           Enable command to leave page sized runs of 0xff patterns in
254           erased state rather than overwriting them. This is required
255           for using NAND flash filesystems on NAND controllers with
256           a non-0xff ECC code for all 0xff data.
257
258 config CMD_ROMUPDATE
259         bool
260         depends on NAND
261
262 config CMD_MMC
263         bool "mmc/sd"
264         select PARTITIONS
265         help
266           MMC/SD support.
267
268 config CMD_SPI
269         bool "sspi"
270         help
271           SPI utility command.
272
273 config CMD_I2C
274         bool "i2c"
275         help
276           I2C support.
277
278 config CMD_USB
279         bool "usb"
280         help
281           USB support.
282
283 config CMD_FPGA
284         bool "fpga"
285         default y
286         help
287           FPGA support.
288
289 endmenu
290
291
292 menu "Shell scripting commands"
293
294 config CMD_ECHO
295         bool "echo"
296         default y
297         help
298           Echo args to console
299
300 config CMD_ITEST
301         bool "itest"
302         default y
303         help
304           Return true/false on integer compare.
305
306 config CMD_SOURCE
307         bool "source"
308         default y
309         help
310           Run script from memory
311
312 endmenu
313
314 menu "Network commands"
315
316 config CMD_NET
317         bool "bootp, tftpboot"
318         default y
319         help
320           Network commands.
321           bootp - boot image via network using BOOTP/TFTP protocol
322           tftpboot - boot image via network using TFTP protocol
323
324 config CMD_TFTPPUT
325         bool "tftp put"
326         help
327           TFTP put command, for uploading files to a server
328
329 config CMD_TFTPSRV
330         bool "tftpsrv"
331         help
332           Act as a TFTP server and boot the first received file
333
334 config CMD_RARP
335         bool "rarpboot"
336         help
337           Boot image via network using RARP/TFTP protocol
338
339 config CMD_DHCP
340         bool "dhcp"
341         help
342           Boot image via network using DHCP/TFTP protocol
343
344 if CMD_DHCP
345
346 menu "DHCP options"
347
348 config BOOTP_BOOTFILESIZE
349         bool "obtain bootfile size from DHCP"
350
351 config BOOTP_BOOTPATH
352         bool "obtain bootfile path from DHCP"
353
354 config BOOTP_DNS
355         bool "obtain DNS server IP address from DHCP"
356
357 config BOOTP_DNS2
358         bool "store secondary DNS IP address in dnsip2"
359
360 config BOOTP_GATEWAY
361         bool "obtain gateway IP address from DHCP"
362
363 config BOOTP_ID_CACHE_SIZE
364         int "DHCP transaction ID cache size"
365         default 4
366         help
367           BOOTP packets are uniquely identified using a 32-bit ID. The
368           server will copy the ID from client requests to responses and
369           U-Boot will use this to determine if it is the destination of
370           an incoming response. Some servers will check that addresses
371           aren't in use before handing them out (usually using an ARP
372           ping) and therefore take up to a few hundred milliseconds to
373           respond. Network congestion may also influence the time it
374           takes for a response to make it back to the client. If that
375           time is too long, U-Boot will retransmit requests. In order
376           to allow earlier responses to still be accepted after these
377           retransmissions, U-Boot's BOOTP client keeps a small cache of
378           IDs. The CONFIG_BOOTP_ID_CACHE_SIZE controls the size of this
379           cache. The default is to keep IDs for up to four outstanding
380           requests. Increasing this will allow U-Boot to accept offers
381           from a BOOTP client in networks with unusually high latency.
382
383 config BOOTP_MAY_FAIL
384         bool "Do not start over, if DHCP server is not available"
385         help
386           If the DHCP server is not found after the configured retry
387           count, the call will fail instead of starting over.  This
388           can be used to fail over to Link-local IP address
389           configuration if the DHCP server is not available.
390
391 config BOOTP_NISDOMAIN
392         bool "obtain NIS domain from DHCP"
393
394 config BOOTP_NTPSERVER
395         bool "obtain NTP server IP address from DHCP"
396
397 config BOOTP_RANDOM_DELAY
398         bool "Use a (pseudo) random delay between DHCP retries"
399         select LIB_RAND
400
401 config BOOTP_RANDOM_ID
402         bool "Generate a (pseudo) random transaction ID"
403         select LIB_RAND
404
405 config BOOTP_SEND_HOSTNAME
406         bool "send hostname in DHCP request"
407
408 config BOOTP_SUBNETMASK
409         bool "obtain subnet mask from DHCP"
410
411 config BOOTP_TIMEOFFSET
412         bool "obtain  from DHCP"
413
414 config BOOTP_VENDOREX
415         bool "obtain  from DHCP"
416
417 endmenu
418
419 endif
420
421 config CMD_NFS
422         bool "nfs"
423         default y
424         help
425           Boot image via network using NFS protocol.
426
427 config CMD_PING
428         bool "ping"
429         help
430           Send ICMP ECHO_REQUEST to network host
431
432 config CMD_CDP
433         bool "cdp"
434         help
435           Perform CDP network configuration
436
437 config CMD_SNTP
438         bool "sntp"
439         help
440           Synchronize RTC via network
441
442 config CMD_DNS
443         bool "dns"
444         help
445           Lookup the IP of a hostname
446
447 config CMD_LINK_LOCAL
448         bool "linklocal"
449         help
450           Acquire a network IP address using the link-local protocol
451
452 config CMD_MII
453         bool "MII register access"
454         help
455           Support reading/writing ETH PHY registers via MII bus
456
457 endmenu
458
459 menu "Misc commands"
460
461 config CMD_CACHE
462         bool "cache control"
463         help
464           Enable commands to switch data cache on/off.
465
466 config CMD_TIME
467         bool "time"
468         help
469           Run commands and summarize execution time.
470
471 config CMD_FUSE
472         bool "fuse read/write"
473         help
474           eFuse reading and programming support
475
476 # TODO: rename to CMD_SLEEP
477 config CMD_MISC
478         bool "sleep"
479         default y
480         help
481           Delay execution for some time
482
483 config CMD_TIMER
484         bool "timer"
485         help
486           Access the system timer.
487
488 config CMD_SETGETDCR
489         bool "getdcr, setdcr, getidcr, setidcr"
490         depends on 4xx
491         default y
492         help
493           getdcr - Get an AMCC PPC 4xx DCR's value
494           setdcr - Set an AMCC PPC 4xx DCR's value
495           getidcr - Get a register value via indirect DCR addressing
496           setidcr - Set a register value via indirect DCR addressing
497
498 endmenu
499
500 endmenu
501
502 menu "Environment configuration settings"
503
504 choice
505         prompt "Select environment non-volatile storage"
506
507 config ENV_IS_NOWHERE
508         bool "do not store environment"
509
510 config ENV_IS_IN_NAND
511         bool "store environment in NAND"
512         depends on NAND
513
514 config ENV_IS_IN_MMC
515         bool "store environment in MMC"
516         depends on MMC
517
518 config ENV_IS_IN_SPI_FLASH
519         bool "store environment in SPI flash"
520
521 endchoice
522
523 endmenu
524
525 menu "Display configuration"
526
527 config LCD
528         bool "LCD support"
529
530 config DISPLAY_BOARDINFO
531         bool "Display board info"
532
533 endmenu