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