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 | /* |
wdenk | 48abe7b | 2004-06-09 10:15:00 +0000 | [diff] [blame] | 25 | * Definitions for Configuring the monitor commands |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 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 | */ |
wdenk | e86e5a0 | 2004-10-17 21:12:06 +0000 | [diff] [blame] | 33 | #define CFG_CMD_BDI 0x00000001ULL /* bdinfo */ |
| 34 | #define CFG_CMD_LOADS 0x00000002ULL /* loads */ |
| 35 | #define CFG_CMD_LOADB 0x00000004ULL /* loadb */ |
| 36 | #define CFG_CMD_IMI 0x00000008ULL /* iminfo */ |
| 37 | #define CFG_CMD_CACHE 0x00000010ULL /* icache, dcache */ |
| 38 | #define CFG_CMD_FLASH 0x00000020ULL /* flinfo, erase, protect */ |
| 39 | #define CFG_CMD_MEMORY 0x00000040ULL /* md, mm, nm, mw, cp, cmp, */ |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 40 | /* crc, base, loop, mtest */ |
wdenk | e86e5a0 | 2004-10-17 21:12:06 +0000 | [diff] [blame] | 41 | #define CFG_CMD_NET 0x00000080ULL /* bootp, tftpboot, rarpboot */ |
| 42 | #define CFG_CMD_ENV 0x00000100ULL /* saveenv */ |
Wolfgang Denk | 77ddac9 | 2005-10-13 16:45:02 +0200 | [diff] [blame] | 43 | #define CFG_CMD_KGDB 0x0000000000000200ULL /* kgdb */ |
wdenk | e86e5a0 | 2004-10-17 21:12:06 +0000 | [diff] [blame] | 44 | #define CFG_CMD_PCMCIA 0x00000400ULL /* PCMCIA support */ |
| 45 | #define CFG_CMD_IDE 0x00000800ULL /* IDE harddisk support */ |
| 46 | #define CFG_CMD_PCI 0x00001000ULL /* pciinfo */ |
| 47 | #define CFG_CMD_IRQ 0x00002000ULL /* irqinfo */ |
| 48 | #define CFG_CMD_BOOTD 0x00004000ULL /* bootd */ |
| 49 | #define CFG_CMD_CONSOLE 0x00008000ULL /* coninfo */ |
| 50 | #define CFG_CMD_EEPROM 0x00010000ULL /* EEPROM read/write support */ |
| 51 | #define CFG_CMD_ASKENV 0x00020000ULL /* ask for env variable */ |
| 52 | #define CFG_CMD_RUN 0x00040000ULL /* run command in env variable */ |
| 53 | #define CFG_CMD_ECHO 0x00080000ULL /* echo arguments */ |
| 54 | #define CFG_CMD_I2C 0x00100000ULL /* I2C serial bus support */ |
| 55 | #define CFG_CMD_REGINFO 0x00200000ULL /* Register dump */ |
| 56 | #define CFG_CMD_IMMAP 0x00400000ULL /* IMMR dump support */ |
| 57 | #define CFG_CMD_DATE 0x00800000ULL /* support for RTC, date/time...*/ |
| 58 | #define CFG_CMD_DHCP 0x01000000ULL /* DHCP Support */ |
| 59 | #define CFG_CMD_BEDBUG 0x02000000ULL /* Include BedBug Debugger */ |
| 60 | #define CFG_CMD_FDC 0x04000000ULL /* Floppy Disk Support */ |
| 61 | #define CFG_CMD_SCSI 0x08000000ULL /* SCSI Support */ |
| 62 | #define CFG_CMD_AUTOSCRIPT 0x10000000ULL /* Autoscript Support */ |
| 63 | #define CFG_CMD_MII 0x20000000ULL /* MII support */ |
| 64 | #define CFG_CMD_SETGETDCR 0x40000000ULL /* DCR support on 4xx */ |
| 65 | #define CFG_CMD_BSP 0x80000000ULL /* Board Specific functions */ |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 66 | |
wdenk | e86e5a0 | 2004-10-17 21:12:06 +0000 | [diff] [blame] | 67 | #define CFG_CMD_ELF 0x0000000100000000ULL /* ELF (VxWorks) load/boot cmd */ |
| 68 | #define CFG_CMD_MISC 0x0000000200000000ULL /* Misc functions like sleep etc*/ |
| 69 | #define CFG_CMD_USB 0x0000000400000000ULL /* USB Support */ |
| 70 | #define CFG_CMD_DOC 0x0000000800000000ULL /* Disk-On-Chip Support */ |
| 71 | #define CFG_CMD_JFFS2 0x0000001000000000ULL /* JFFS2 Support */ |
| 72 | #define CFG_CMD_DTT 0x0000002000000000ULL /* Digital Therm and Thermostat */ |
| 73 | #define CFG_CMD_SDRAM 0x0000004000000000ULL /* SDRAM DIMM SPD info printout */ |
| 74 | #define CFG_CMD_DIAG 0x0000008000000000ULL /* Diagnostics */ |
| 75 | #define CFG_CMD_FPGA 0x0000010000000000ULL /* FPGA configuration Support */ |
| 76 | #define CFG_CMD_HWFLOW 0x0000020000000000ULL /* RTS/CTS hw flow control */ |
| 77 | #define CFG_CMD_SAVES 0x0000040000000000ULL /* save S record dump */ |
| 78 | #define CFG_CMD_SPI 0x0000100000000000ULL /* SPI utility */ |
| 79 | #define CFG_CMD_FDOS 0x0000200000000000ULL /* Floppy DOS support */ |
| 80 | #define CFG_CMD_VFD 0x0000400000000000ULL /* VFD support (TRAB) */ |
| 81 | #define CFG_CMD_NAND 0x0000800000000000ULL /* NAND support */ |
| 82 | #define CFG_CMD_BMP 0x0001000000000000ULL /* BMP support */ |
| 83 | #define CFG_CMD_PORTIO 0x0002000000000000ULL /* Port I/O */ |
| 84 | #define CFG_CMD_PING 0x0004000000000000ULL /* ping support */ |
| 85 | #define CFG_CMD_MMC 0x0008000000000000ULL /* MMC support */ |
| 86 | #define CFG_CMD_FAT 0x0010000000000000ULL /* FAT support */ |
| 87 | #define CFG_CMD_IMLS 0x0020000000000000ULL /* List all found images */ |
| 88 | #define CFG_CMD_ITEST 0x0040000000000000ULL /* Integer (and string) test */ |
| 89 | #define CFG_CMD_NFS 0x0080000000000000ULL /* NFS support */ |
| 90 | #define CFG_CMD_REISER 0x0100000000000000ULL /* Reiserfs support */ |
| 91 | #define CFG_CMD_CDP 0x0200000000000000ULL /* Cisco Discovery Protocol */ |
| 92 | #define CFG_CMD_XIMG 0x0400000000000000ULL /* Load part of Multi Image */ |
stroese | 3d936fd | 2004-12-16 17:59:53 +0000 | [diff] [blame] | 93 | #define CFG_CMD_UNIVERSE 0x0800000000000000ULL /* Tundra Universe Support */ |
Wolfgang Denk | 9f96ae4 | 2005-08-30 13:04:12 +0200 | [diff] [blame] | 94 | #define CFG_CMD_EXT2 0x1000000000000000ULL /* EXT2 Support */ |
wdenk | ea287de | 2005-04-01 00:25:43 +0000 | [diff] [blame] | 95 | #define CFG_CMD_SNTP 0x2000000000000000ULL /* SNTP support */ |
Wolfgang Denk | 9f96ae4 | 2005-08-30 13:04:12 +0200 | [diff] [blame] | 96 | #define CFG_CMD_DISPLAY 0x4000000000000000ULL /* Display support */ |
Michal Simek | ffc50f9 | 2007-05-05 18:54:42 +0200 | [diff] [blame] | 97 | #define CFG_CMD_MFSL 0x8000000000000000ULL /* FSL support for Microblaze */ |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 98 | |
wdenk | e86e5a0 | 2004-10-17 21:12:06 +0000 | [diff] [blame] | 99 | #define CFG_CMD_ALL 0xFFFFFFFFFFFFFFFFULL /* ALL commands */ |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 100 | |
| 101 | /* Commands that are considered "non-standard" for some reason |
| 102 | * (memory hogs, requires special hardware, not fully tested, etc.) |
| 103 | */ |
| 104 | #define CFG_CMD_NONSTD (CFG_CMD_ASKENV | \ |
| 105 | CFG_CMD_BEDBUG | \ |
wdenk | d791b1d | 2003-04-20 14:04:18 +0000 | [diff] [blame] | 106 | CFG_CMD_BMP | \ |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 107 | CFG_CMD_BSP | \ |
| 108 | CFG_CMD_CACHE | \ |
wdenk | e86e5a0 | 2004-10-17 21:12:06 +0000 | [diff] [blame] | 109 | CFG_CMD_CDP | \ |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 110 | CFG_CMD_DATE | \ |
| 111 | CFG_CMD_DHCP | \ |
| 112 | CFG_CMD_DIAG | \ |
Wolfgang Denk | 80e238c | 2005-09-03 02:22:41 +0200 | [diff] [blame] | 113 | CFG_CMD_DISPLAY | \ |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 114 | CFG_CMD_DOC | \ |
| 115 | CFG_CMD_DTT | \ |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 116 | CFG_CMD_EEPROM | \ |
| 117 | CFG_CMD_ELF | \ |
stroese | 3d936fd | 2004-12-16 17:59:53 +0000 | [diff] [blame] | 118 | CFG_CMD_EXT2 | \ |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 119 | CFG_CMD_FDC | \ |
wdenk | 71f9511 | 2003-06-15 22:40:42 +0000 | [diff] [blame] | 120 | CFG_CMD_FAT | \ |
wdenk | c7de829 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 121 | CFG_CMD_FDOS | \ |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 122 | CFG_CMD_HWFLOW | \ |
| 123 | CFG_CMD_I2C | \ |
| 124 | CFG_CMD_IDE | \ |
| 125 | CFG_CMD_IMMAP | \ |
| 126 | CFG_CMD_IRQ | \ |
| 127 | CFG_CMD_JFFS2 | \ |
| 128 | CFG_CMD_KGDB | \ |
Michal Simek | ffc50f9 | 2007-05-05 18:54:42 +0200 | [diff] [blame] | 129 | CFG_CMD_MFSL | \ |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 130 | CFG_CMD_MII | \ |
wdenk | 71f9511 | 2003-06-15 22:40:42 +0000 | [diff] [blame] | 131 | CFG_CMD_MMC | \ |
wdenk | dc7c9a1 | 2003-03-26 06:55:25 +0000 | [diff] [blame] | 132 | CFG_CMD_NAND | \ |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 133 | CFG_CMD_PCI | \ |
| 134 | CFG_CMD_PCMCIA | \ |
wdenk | 73a8b27 | 2003-06-05 19:27:42 +0000 | [diff] [blame] | 135 | CFG_CMD_PING | \ |
wdenk | 54387ac | 2003-10-08 22:45:44 +0000 | [diff] [blame] | 136 | CFG_CMD_PORTIO | \ |
wdenk | c7de829 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 137 | CFG_CMD_REGINFO | \ |
wdenk | 518e2e1 | 2004-03-25 14:59:05 +0000 | [diff] [blame] | 138 | CFG_CMD_REISER | \ |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 139 | CFG_CMD_SAVES | \ |
| 140 | CFG_CMD_SCSI | \ |
| 141 | CFG_CMD_SDRAM | \ |
wdenk | ea287de | 2005-04-01 00:25:43 +0000 | [diff] [blame] | 142 | CFG_CMD_SNTP | \ |
wdenk | 2262cfe | 2002-11-18 00:14:45 +0000 | [diff] [blame] | 143 | CFG_CMD_SPI | \ |
stroese | 3d936fd | 2004-12-16 17:59:53 +0000 | [diff] [blame] | 144 | CFG_CMD_UNIVERSE | \ |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 145 | CFG_CMD_USB | \ |
wdenk | e86e5a0 | 2004-10-17 21:12:06 +0000 | [diff] [blame] | 146 | CFG_CMD_VFD ) |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 147 | |
| 148 | /* Default configuration |
| 149 | */ |
wdenk | c7de829 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 150 | #define CONFIG_CMD_DFL (CFG_CMD_ALL & ~CFG_CMD_NONSTD) |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 151 | |
| 152 | #ifndef CONFIG_COMMANDS |
wdenk | c7de829 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 153 | #define CONFIG_COMMANDS CONFIG_CMD_DFL |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 154 | #endif |
| 155 | |
| 156 | |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 157 | /* |
Jon Loeliger | ec63b10 | 2007-06-11 19:01:34 -0500 | [diff] [blame] | 158 | * Temporary placeholder until all users directly |
| 159 | * include the proper include file, "config_bootp.h". |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 160 | */ |
Jon Loeliger | ec63b10 | 2007-06-11 19:01:34 -0500 | [diff] [blame] | 161 | #include "config_bootp.h" |
wdenk | dc19ba8 | 2002-10-31 22:18:24 +0000 | [diff] [blame] | 162 | |
| 163 | #endif /* _CMD_CONFIG_H */ |