wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 1 | /* |
| 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 |
wdenk | c7de829 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 16 | * 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 | */ |
wdenk | c7de829 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 27 | #ifndef _CMD_CONFIG_H |
| 28 | #define _CMD_CONFIG_H |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 29 | |
| 30 | /* |
| 31 | * Configurable monitor commands |
| 32 | */ |
| 33 | #define CFG_CMD_BDI 0x00000001 /* bdinfo */ |
| 34 | #define CFG_CMD_LOADS 0x00000002 /* loads */ |
| 35 | #define CFG_CMD_LOADB 0x00000004 /* loadb */ |
| 36 | #define CFG_CMD_IMI 0x00000008 /* iminfo */ |
| 37 | #define CFG_CMD_CACHE 0x00000010 /* icache, dcache */ |
| 38 | #define CFG_CMD_FLASH 0x00000020 /* flinfo, erase, protect */ |
| 39 | #define CFG_CMD_MEMORY 0x00000040 /* md, mm, nm, mw, cp, cmp, */ |
| 40 | /* crc, base, loop, mtest */ |
| 41 | #define CFG_CMD_NET 0x00000080 /* bootp, tftpboot, rarpboot */ |
| 42 | #define CFG_CMD_ENV 0x00000100 /* saveenv */ |
| 43 | #define CFG_CMD_KGDB 0x00000200 /* kgdb */ |
| 44 | #define CFG_CMD_PCMCIA 0x00000400 /* PCMCIA support */ |
wdenk | c7de829 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 45 | #define CFG_CMD_IDE 0x00000800 /* IDE harddisk support */ |
| 46 | #define CFG_CMD_PCI 0x00001000 /* pciinfo */ |
| 47 | #define CFG_CMD_IRQ 0x00002000 /* irqinfo */ |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 48 | #define CFG_CMD_BOOTD 0x00004000 /* bootd */ |
| 49 | #define CFG_CMD_CONSOLE 0x00008000 /* coninfo */ |
| 50 | #define CFG_CMD_EEPROM 0x00010000 /* EEPROM read/write support */ |
wdenk | c7de829 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 51 | #define CFG_CMD_ASKENV 0x00020000 /* ask for env variable */ |
| 52 | #define CFG_CMD_RUN 0x00040000 /* run command in env variable */ |
| 53 | #define CFG_CMD_ECHO 0x00080000 /* echo arguments */ |
| 54 | #define CFG_CMD_I2C 0x00100000 /* I2C serial bus support */ |
| 55 | #define CFG_CMD_REGINFO 0x00200000 /* Register dump */ |
| 56 | #define CFG_CMD_IMMAP 0x00400000 /* IMMR dump support */ |
| 57 | #define CFG_CMD_DATE 0x00800000 /* support for RTC, date/time...*/ |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 58 | #define CFG_CMD_DHCP 0x01000000 /* DHCP Support */ |
| 59 | #define CFG_CMD_BEDBUG 0x02000000 /* Include BedBug Debugger */ |
wdenk | c7de829 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 60 | #define CFG_CMD_FDC 0x04000000 /* Floppy Disk Support */ |
| 61 | #define CFG_CMD_SCSI 0x08000000 /* SCSI Support */ |
| 62 | #define CFG_CMD_AUTOSCRIPT 0x10000000 /* Autoscript Support */ |
| 63 | #define CFG_CMD_MII 0x20000000 /* MII support */ |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 64 | #define CFG_CMD_SETGETDCR 0x40000000 /* DCR support on 4xx */ |
wdenk | c7de829 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 65 | #define CFG_CMD_BSP 0x80000000 /* Board Specific functions */ |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 66 | |
| 67 | #define CFG_CMD_ELF 0x0000000100000000 /* ELF (VxWorks) load/boot cmd */ |
| 68 | #define CFG_CMD_MISC 0x0000000200000000 /* Misc functions like sleep etc*/ |
| 69 | #define CFG_CMD_USB 0x0000000400000000 /* USB Support */ |
| 70 | #define CFG_CMD_DOC 0x0000000800000000 /* Disk-On-Chip Support */ |
| 71 | #define CFG_CMD_JFFS2 0x0000001000000000 /* JFFS2 Support */ |
| 72 | #define CFG_CMD_DTT 0x0000002000000000 /* Digital Therm and Thermostat */ |
wdenk | c7de829 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 73 | #define CFG_CMD_SDRAM 0x0000004000000000 /* SDRAM DIMM SPD info printout */ |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 74 | #define CFG_CMD_DIAG 0x0000008000000000 /* Diagnostics */ |
wdenk | c7de829 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 75 | #define CFG_CMD_FPGA 0x0000010000000000 /* FPGA configuration Support */ |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 76 | #define CFG_CMD_HWFLOW 0x0000020000000000 /* RTS/CTS hw flow control */ |
| 77 | #define CFG_CMD_SAVES 0x0000040000000000 /* save S record dump */ |
wdenk | 1d0350e | 2002-11-11 21:14:20 +0000 | [diff] [blame] | 78 | #define CFG_CMD_SPI 0x0000100000000000 /* SPI utility */ |
wdenk | c7de829 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 79 | #define CFG_CMD_FDOS 0x0000200000000000 /* Floppy DOS support */ |
| 80 | #define CFG_CMD_VFD 0x0000400000000000 /* VFD support (TRAB) */ |
wdenk | dc7c9a1 | 2003-03-26 06:55:25 +0000 | [diff] [blame] | 81 | #define CFG_CMD_NAND 0x0000800000000000 /* NAND support */ |
wdenk | d791b1d | 2003-04-20 14:04:18 +0000 | [diff] [blame] | 82 | #define CFG_CMD_BMP 0x0001000000000000 /* BMP support */ |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 83 | |
| 84 | #define CFG_CMD_ALL 0xFFFFFFFFFFFFFFFF /* ALL commands */ |
| 85 | |
| 86 | /* Commands that are considered "non-standard" for some reason |
| 87 | * (memory hogs, requires special hardware, not fully tested, etc.) |
| 88 | */ |
| 89 | #define CFG_CMD_NONSTD (CFG_CMD_ASKENV | \ |
| 90 | CFG_CMD_BEDBUG | \ |
wdenk | d791b1d | 2003-04-20 14:04:18 +0000 | [diff] [blame] | 91 | CFG_CMD_BMP | \ |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 92 | CFG_CMD_BSP | \ |
| 93 | CFG_CMD_CACHE | \ |
| 94 | CFG_CMD_DATE | \ |
| 95 | CFG_CMD_DHCP | \ |
| 96 | CFG_CMD_DIAG | \ |
| 97 | CFG_CMD_DOC | \ |
| 98 | CFG_CMD_DTT | \ |
| 99 | CFG_CMD_ECHO | \ |
| 100 | CFG_CMD_EEPROM | \ |
| 101 | CFG_CMD_ELF | \ |
| 102 | CFG_CMD_FDC | \ |
wdenk | c7de829 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 103 | CFG_CMD_FDOS | \ |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 104 | CFG_CMD_HWFLOW | \ |
| 105 | CFG_CMD_I2C | \ |
| 106 | CFG_CMD_IDE | \ |
| 107 | CFG_CMD_IMMAP | \ |
| 108 | CFG_CMD_IRQ | \ |
| 109 | CFG_CMD_JFFS2 | \ |
| 110 | CFG_CMD_KGDB | \ |
| 111 | CFG_CMD_MII | \ |
wdenk | dc7c9a1 | 2003-03-26 06:55:25 +0000 | [diff] [blame] | 112 | CFG_CMD_NAND | \ |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 113 | CFG_CMD_PCI | \ |
| 114 | CFG_CMD_PCMCIA | \ |
wdenk | c7de829 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 115 | CFG_CMD_REGINFO | \ |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 116 | CFG_CMD_SAVES | \ |
| 117 | CFG_CMD_SCSI | \ |
| 118 | CFG_CMD_SDRAM | \ |
wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 119 | CFG_CMD_SPI | \ |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 120 | CFG_CMD_USB | \ |
wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 121 | CFG_CMD_VFD ) |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 122 | |
| 123 | /* Default configuration |
| 124 | */ |
wdenk | c7de829 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 125 | #define CONFIG_CMD_DFL (CFG_CMD_ALL & ~CFG_CMD_NONSTD) |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 126 | |
| 127 | #ifndef CONFIG_COMMANDS |
wdenk | c7de829 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 128 | #define CONFIG_COMMANDS CONFIG_CMD_DFL |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 129 | #endif |
| 130 | |
| 131 | |
| 132 | |
| 133 | /* |
| 134 | * optional BOOTP fields |
| 135 | */ |
| 136 | |
| 137 | #define CONFIG_BOOTP_SUBNETMASK 0x00000001 |
| 138 | #define CONFIG_BOOTP_GATEWAY 0x00000002 |
| 139 | #define CONFIG_BOOTP_HOSTNAME 0x00000004 |
| 140 | #define CONFIG_BOOTP_NISDOMAIN 0x00000008 |
| 141 | #define CONFIG_BOOTP_BOOTPATH 0x00000010 |
| 142 | #define CONFIG_BOOTP_BOOTFILESIZE 0x00000020 |
| 143 | #define CONFIG_BOOTP_DNS 0x00000040 |
| 144 | |
| 145 | #define CONFIG_BOOTP_VENDOREX 0x80000000 |
| 146 | |
| 147 | #define CONFIG_BOOTP_ALL (~CONFIG_BOOTP_VENDOREX) |
| 148 | |
| 149 | |
| 150 | #define CONFIG_BOOTP_DEFAULT (CONFIG_BOOTP_SUBNETMASK | \ |
| 151 | CONFIG_BOOTP_GATEWAY | \ |
| 152 | CONFIG_BOOTP_HOSTNAME | \ |
| 153 | CONFIG_BOOTP_BOOTPATH) |
| 154 | |
| 155 | #ifndef CONFIG_BOOTP_MASK |
| 156 | #define CONFIG_BOOTP_MASK CONFIG_BOOTP_DEFAULT |
| 157 | #endif |
| 158 | |
| 159 | #endif /* _CMD_CONFIG_H */ |