blob: ebea56b844451f133bef3cbf6ee273db5d1b77b0 [file] [log] [blame]
wdenkdc19ba82002-10-31 22:18:24 +00001/*
2 * (C) Copyright 2000-2002
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
5 * See file CREDITS for list of people who contributed to this
6 * project.
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of
11 * the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
wdenk452cfd62002-11-19 11:04:11 +000015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
wdenkdc19ba82002-10-31 22:18:24 +000016 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
21 * MA 02111-1307 USA
22 */
23
24/*
25 * Definitions for Configuring the monitor commands
26 */
wdenk452cfd62002-11-19 11:04:11 +000027#ifndef _CMD_CONFIG_H
28#define _CMD_CONFIG_H
wdenkdc19ba82002-10-31 22:18:24 +000029
30/*
31 * Configurable monitor commands
32 */
wdenkdbae5042003-06-21 00:17:24 +000033#define CFG_CMD_BDI 0x00000001U /* bdinfo */
34#define CFG_CMD_LOADS 0x00000002U /* loads */
35#define CFG_CMD_LOADB 0x00000004U /* loadb */
36#define CFG_CMD_IMI 0x00000008U /* iminfo */
37#define CFG_CMD_CACHE 0x00000010U /* icache, dcache */
38#define CFG_CMD_FLASH 0x00000020U /* flinfo, erase, protect */
39#define CFG_CMD_MEMORY 0x00000040U /* md, mm, nm, mw, cp, cmp, */
wdenkdc19ba82002-10-31 22:18:24 +000040 /* crc, base, loop, mtest */
wdenkdbae5042003-06-21 00:17:24 +000041#define CFG_CMD_NET 0x00000080U /* bootp, tftpboot, rarpboot */
42#define CFG_CMD_ENV 0x00000100U /* saveenv */
43#define CFG_CMD_KGDB 0x00000200U /* kgdb */
44#define CFG_CMD_PCMCIA 0x00000400U /* PCMCIA support */
45#define CFG_CMD_IDE 0x00000800U /* IDE harddisk support */
46#define CFG_CMD_PCI 0x00001000U /* pciinfo */
47#define CFG_CMD_IRQ 0x00002000U /* irqinfo */
48#define CFG_CMD_BOOTD 0x00004000U /* bootd */
49#define CFG_CMD_CONSOLE 0x00008000U /* coninfo */
50#define CFG_CMD_EEPROM 0x00010000U /* EEPROM read/write support */
51#define CFG_CMD_ASKENV 0x00020000U /* ask for env variable */
52#define CFG_CMD_RUN 0x00040000U /* run command in env variable */
53#define CFG_CMD_ECHO 0x00080000U /* echo arguments */
54#define CFG_CMD_I2C 0x00100000U /* I2C serial bus support */
55#define CFG_CMD_REGINFO 0x00200000U /* Register dump */
56#define CFG_CMD_IMMAP 0x00400000U /* IMMR dump support */
57#define CFG_CMD_DATE 0x00800000U /* support for RTC, date/time...*/
58#define CFG_CMD_DHCP 0x01000000U /* DHCP Support */
59#define CFG_CMD_BEDBUG 0x02000000U /* Include BedBug Debugger */
60#define CFG_CMD_FDC 0x04000000U /* Floppy Disk Support */
61#define CFG_CMD_SCSI 0x08000000U /* SCSI Support */
62#define CFG_CMD_AUTOSCRIPT 0x10000000U /* Autoscript Support */
63#define CFG_CMD_MII 0x20000000U /* MII support */
64#define CFG_CMD_SETGETDCR 0x40000000U /* DCR support on 4xx */
65#define CFG_CMD_BSP 0x80000000U /* Board Specific functions */
wdenkdc19ba82002-10-31 22:18:24 +000066
wdenkdbae5042003-06-21 00:17:24 +000067#define CFG_CMD_ELF 0x0000000100000000U /* ELF (VxWorks) load/boot cmd */
68#define CFG_CMD_MISC 0x0000000200000000U /* Misc functions like sleep etc*/
69#define CFG_CMD_USB 0x0000000400000000U /* USB Support */
70#define CFG_CMD_DOC 0x0000000800000000U /* Disk-On-Chip Support */
71#define CFG_CMD_JFFS2 0x0000001000000000U /* JFFS2 Support */
72#define CFG_CMD_DTT 0x0000002000000000U /* Digital Therm and Thermostat */
73#define CFG_CMD_SDRAM 0x0000004000000000U /* SDRAM DIMM SPD info printout */
74#define CFG_CMD_DIAG 0x0000008000000000U /* Diagnostics */
75#define CFG_CMD_FPGA 0x0000010000000000U /* FPGA configuration Support */
76#define CFG_CMD_HWFLOW 0x0000020000000000U /* RTS/CTS hw flow control */
77#define CFG_CMD_SAVES 0x0000040000000000U /* save S record dump */
78#define CFG_CMD_SPI 0x0000100000000000U /* SPI utility */
79#define CFG_CMD_FDOS 0x0000200000000000U /* Floppy DOS support */
80#define CFG_CMD_VFD 0x0000400000000000U /* VFD support (TRAB) */
81#define CFG_CMD_NAND 0x0000800000000000U /* NAND support */
82#define CFG_CMD_BMP 0x0001000000000000U /* BMP support */
83#define CFG_CMD_PORTIO 0x0002000000000000U /* Port I/O */
84#define CFG_CMD_PING 0x0004000000000000U /* ping support */
85#define CFG_CMD_MMC 0x0008000000000000U /* MMC support */
86#define CFG_CMD_FAT 0x0010000000000000U /* FAT support */
wdenk874ac262003-07-24 23:38:38 +000087#define CFG_CMD_IMLS 0x0020000000000000U /* List all found images */
wdenkdc19ba82002-10-31 22:18:24 +000088
wdenkdbae5042003-06-21 00:17:24 +000089#define CFG_CMD_ALL 0xFFFFFFFFFFFFFFFFU /* ALL commands */
wdenkdc19ba82002-10-31 22:18:24 +000090
91/* Commands that are considered "non-standard" for some reason
92 * (memory hogs, requires special hardware, not fully tested, etc.)
93 */
94#define CFG_CMD_NONSTD (CFG_CMD_ASKENV | \
95 CFG_CMD_BEDBUG | \
wdenk92bbe3f2003-04-20 14:04:18 +000096 CFG_CMD_BMP | \
wdenkdc19ba82002-10-31 22:18:24 +000097 CFG_CMD_BSP | \
98 CFG_CMD_CACHE | \
99 CFG_CMD_DATE | \
100 CFG_CMD_DHCP | \
101 CFG_CMD_DIAG | \
102 CFG_CMD_DOC | \
103 CFG_CMD_DTT | \
104 CFG_CMD_ECHO | \
105 CFG_CMD_EEPROM | \
106 CFG_CMD_ELF | \
107 CFG_CMD_FDC | \
wdenk7a428cc2003-06-15 22:40:42 +0000108 CFG_CMD_FAT | \
wdenk452cfd62002-11-19 11:04:11 +0000109 CFG_CMD_FDOS | \
wdenkdc19ba82002-10-31 22:18:24 +0000110 CFG_CMD_HWFLOW | \
111 CFG_CMD_I2C | \
112 CFG_CMD_IDE | \
113 CFG_CMD_IMMAP | \
114 CFG_CMD_IRQ | \
115 CFG_CMD_JFFS2 | \
116 CFG_CMD_KGDB | \
117 CFG_CMD_MII | \
wdenk7a428cc2003-06-15 22:40:42 +0000118 CFG_CMD_MMC | \
wdenkc8434db2003-03-26 06:55:25 +0000119 CFG_CMD_NAND | \
wdenkdc19ba82002-10-31 22:18:24 +0000120 CFG_CMD_PCI | \
121 CFG_CMD_PCMCIA | \
wdenke6466f62003-06-05 19:27:42 +0000122 CFG_CMD_PING | \
wdenk2f0812d2003-10-08 22:45:44 +0000123 CFG_CMD_PORTIO | \
wdenk452cfd62002-11-19 11:04:11 +0000124 CFG_CMD_REGINFO | \
wdenkdc19ba82002-10-31 22:18:24 +0000125 CFG_CMD_SAVES | \
126 CFG_CMD_SCSI | \
127 CFG_CMD_SDRAM | \
wdenk591dda52002-11-18 00:14:45 +0000128 CFG_CMD_SPI | \
wdenkdc19ba82002-10-31 22:18:24 +0000129 CFG_CMD_USB | \
wdenk591dda52002-11-18 00:14:45 +0000130 CFG_CMD_VFD )
wdenkdc19ba82002-10-31 22:18:24 +0000131
132/* Default configuration
133 */
wdenk452cfd62002-11-19 11:04:11 +0000134#define CONFIG_CMD_DFL (CFG_CMD_ALL & ~CFG_CMD_NONSTD)
wdenkdc19ba82002-10-31 22:18:24 +0000135
136#ifndef CONFIG_COMMANDS
wdenk452cfd62002-11-19 11:04:11 +0000137#define CONFIG_COMMANDS CONFIG_CMD_DFL
wdenkdc19ba82002-10-31 22:18:24 +0000138#endif
139
140
wdenkdc19ba82002-10-31 22:18:24 +0000141/*
142 * optional BOOTP fields
143 */
144
145#define CONFIG_BOOTP_SUBNETMASK 0x00000001
146#define CONFIG_BOOTP_GATEWAY 0x00000002
147#define CONFIG_BOOTP_HOSTNAME 0x00000004
148#define CONFIG_BOOTP_NISDOMAIN 0x00000008
149#define CONFIG_BOOTP_BOOTPATH 0x00000010
150#define CONFIG_BOOTP_BOOTFILESIZE 0x00000020
151#define CONFIG_BOOTP_DNS 0x00000040
stroesee0aadfb2003-08-28 14:17:32 +0000152#define CONFIG_BOOTP_DNS2 0x00000080
153#define CONFIG_BOOTP_SEND_HOSTNAME 0x00000100
wdenkdc19ba82002-10-31 22:18:24 +0000154
155#define CONFIG_BOOTP_VENDOREX 0x80000000
156
157#define CONFIG_BOOTP_ALL (~CONFIG_BOOTP_VENDOREX)
158
159
160#define CONFIG_BOOTP_DEFAULT (CONFIG_BOOTP_SUBNETMASK | \
161 CONFIG_BOOTP_GATEWAY | \
162 CONFIG_BOOTP_HOSTNAME | \
163 CONFIG_BOOTP_BOOTPATH)
164
165#ifndef CONFIG_BOOTP_MASK
166#define CONFIG_BOOTP_MASK CONFIG_BOOTP_DEFAULT
167#endif
168
169#endif /* _CMD_CONFIG_H */