wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 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 |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 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 | * |
| 26 | * Configuration settings for the AmigaOneG3SE board. |
| 27 | * |
| 28 | */ |
| 29 | |
| 30 | /* ------------------------------------------------------------------------- */ |
| 31 | |
| 32 | /* |
| 33 | * board/config.h - configuration options, board specific |
| 34 | */ |
| 35 | |
| 36 | #ifndef __CONFIG_H |
| 37 | #define __CONFIG_H |
| 38 | |
| 39 | /* |
| 40 | * High Level Configuration Options |
| 41 | * (easy to change) |
| 42 | */ |
| 43 | |
| 44 | #define CONFIG_AMIGAONEG3SE 1 |
| 45 | |
wdenk | da55c6e | 2004-01-20 23:12:12 +0000 | [diff] [blame] | 46 | #define CONFIG_BOARD_EARLY_INIT_F 1 |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 47 | #define CONFIG_MISC_INIT_R 1 |
| 48 | |
| 49 | #define CONFIG_VERY_BIG_RAM 1 |
| 50 | |
| 51 | #define CONFIG_CONS_INDEX 1 |
| 52 | #define CONFIG_BAUDRATE 9600 |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 53 | #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 } |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 54 | |
| 55 | #undef CONFIG_CLOCKS_IN_MHZ /* clocks passed to Linux in Hz */ |
| 56 | |
Detlev Zundel | faf47bc | 2008-02-22 17:21:32 +0100 | [diff] [blame] | 57 | #define CONFIG_BOOTARGS "root=/dev/ram rw ramdisk_size=4096" |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 58 | |
Jon Loeliger | 1cb2cb6 | 2007-07-09 21:16:53 -0500 | [diff] [blame] | 59 | /* |
| 60 | * BOOTP options |
| 61 | */ |
| 62 | #define CONFIG_BOOTP_SUBNETMASK |
| 63 | #define CONFIG_BOOTP_GATEWAY |
| 64 | #define CONFIG_BOOTP_HOSTNAME |
| 65 | #define CONFIG_BOOTP_BOOTPATH |
| 66 | #define CONFIG_BOOTP_BOOTFILESIZE |
| 67 | |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 68 | |
| 69 | #define CONFIG_MAC_PARTITION |
| 70 | #define CONFIG_DOS_PARTITION |
| 71 | #define CONFIG_AMIGA_PARTITION |
| 72 | |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 73 | |
Jon Loeliger | ea240f4 | 2007-07-05 19:13:52 -0500 | [diff] [blame] | 74 | /* |
| 75 | * Command line configuration. |
| 76 | */ |
| 77 | #include <config_cmd_default.h> |
| 78 | |
| 79 | #define CONFIG_CMD_ASKENV |
| 80 | #define CONFIG_CMD_BSP |
| 81 | #define CONFIG_CMD_DATE |
| 82 | #define CONFIG_CMD_DHCP |
| 83 | #define CONFIG_CMD_ELF |
| 84 | #define CONFIG_CMD_NET |
| 85 | #define CONFIG_CMD_IDE |
| 86 | #define CONFIG_CMD_FDC |
| 87 | #define CONFIG_CMD_CACHE |
Peter Tyser | 3054e4d | 2009-04-20 11:21:40 -0500 | [diff] [blame] | 88 | #define CONFIG_CMD_CONSOLE |
Jon Loeliger | ea240f4 | 2007-07-05 19:13:52 -0500 | [diff] [blame] | 89 | #define CONFIG_CMD_USB |
| 90 | #define CONFIG_CMD_BSP |
| 91 | #define CONFIG_CMD_PCI |
| 92 | |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 93 | |
| 94 | #define CONFIG_PCI 1 |
| 95 | /* #define CONFIG_PCI_SCAN_SHOW 1 */ |
| 96 | #define CONFIG_PCI_PNP 1 /* PCI plug-and-play */ |
| 97 | |
Jason Jin | ed45b44 | 2007-07-13 12:14:59 +0800 | [diff] [blame] | 98 | #define atoi(x) simple_strtoul(x,NULL,10) |
| 99 | |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 100 | /* |
| 101 | * Miscellaneous configurable options |
| 102 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 103 | #define CONFIG_SYS_LONGHELP /* undef to save memory */ |
| 104 | #define CONFIG_SYS_PROMPT "] " /* Monitor Command Prompt */ |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 105 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 106 | #define CONFIG_SYS_HUSH_PARSER 1 /* use "hush" command parser */ |
| 107 | /* #undef CONFIG_SYS_HUSH_PARSER */ |
| 108 | #ifdef CONFIG_SYS_HUSH_PARSER |
| 109 | #define CONFIG_SYS_PROMPT_HUSH_PS2 "> " |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 110 | #endif |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 111 | #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */ |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 112 | |
| 113 | /* Print Buffer Size |
| 114 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 115 | #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16) |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 116 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 117 | #define CONFIG_SYS_MAXARGS 64 /* max number of command args */ |
| 118 | #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */ |
| 119 | #define CONFIG_SYS_LOAD_ADDR 0x00500000 /* Default load address */ |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 120 | |
| 121 | /*----------------------------------------------------------------------- |
| 122 | * Start addresses for the final memory configuration |
| 123 | * (Set up by the startup code) |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 124 | * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0 |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 125 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 126 | #define CONFIG_SYS_SDRAM_BASE 0x00000000 |
| 127 | #define CONFIG_SYS_FLASH_BASE 0xFFF00000 |
| 128 | #define CONFIG_SYS_FLASH_MAX_SIZE 0x00080000 |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 129 | /* Maximum amount of RAM. |
| 130 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 131 | #define CONFIG_SYS_MAX_RAM_SIZE 0x80000000 /* 2G */ |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 132 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 133 | #define CONFIG_SYS_RESET_ADDRESS 0xFFF00100 |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 134 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 135 | #define CONFIG_SYS_MONITOR_BASE TEXT_BASE |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 136 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 137 | #define CONFIG_SYS_MONITOR_LEN (768 << 10) /* Reserve 512 kB for Monitor */ |
| 138 | #define CONFIG_SYS_MALLOC_LEN (2500 << 10) /* Reserve 128 kB for malloc() */ |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 139 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 140 | #if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_SDRAM_BASE && \ |
| 141 | CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_MAX_RAM_SIZE |
| 142 | #define CONFIG_SYS_RAMBOOT |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 143 | #else |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 144 | #undef CONFIG_SYS_RAMBOOT |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 145 | #endif |
| 146 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 147 | #define CONFIG_SYS_MEMTEST_START 0x00004000 /* memtest works on */ |
| 148 | #define CONFIG_SYS_MEMTEST_END 0x02000000 /* 0 ... 32 MB in DRAM */ |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 149 | |
| 150 | /*----------------------------------------------------------------------- |
| 151 | * Definitions for initial stack pointer and data area |
| 152 | */ |
| 153 | |
| 154 | /* Size in bytes reserved for initial data |
| 155 | */ |
wdenk | bb444c9 | 2002-12-07 00:20:59 +0000 | [diff] [blame] | 156 | /* HJF: used to be 0x400000 */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 157 | #define CONFIG_SYS_INIT_RAM_ADDR 0x40000000 |
| 158 | #define CONFIG_SYS_INIT_RAM_END 0x8000 |
| 159 | #define CONFIG_SYS_GBL_DATA_SIZE 128 |
| 160 | #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE) |
| 161 | #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 162 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 163 | #define CONFIG_SYS_INIT_RAM_LOCK |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 164 | |
| 165 | /* |
| 166 | * Temporary buffer for serial data until the real serial driver |
| 167 | * is initialised (memtest will destroy this buffer) |
| 168 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 169 | #define CONFIG_SYS_SCONSOLE_ADDR CONFIG_SYS_INIT_RAM_ADDR |
| 170 | #define CONFIG_SYS_SCONSOLE_SIZE 0x0002000 |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 171 | |
| 172 | /* SDRAM 0 - 256MB |
| 173 | */ |
| 174 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 175 | /*HJF: #define CONFIG_SYS_IBAT0L (CONFIG_SYS_SDRAM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT) |
| 176 | #define CONFIG_SYS_IBAT0U (CONFIG_SYS_SDRAM_BASE | BATU_BL_4M | BATU_VS | BATU_VP) |
| 177 | #define CONFIG_SYS_DBAT0L (CONFIG_SYS_SDRAM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT) |
| 178 | #define CONFIG_SYS_DBAT0U CONFIG_SYS_IBAT0U*/ |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 179 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 180 | #define CONFIG_SYS_DBAT0L (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE) |
| 181 | #define CONFIG_SYS_DBAT0U (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP) |
| 182 | #define CONFIG_SYS_IBAT0L (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE) |
| 183 | #define CONFIG_SYS_IBAT0U (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP) |
wdenk | bb444c9 | 2002-12-07 00:20:59 +0000 | [diff] [blame] | 184 | /* PCI Range |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 185 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 186 | #define CONFIG_SYS_DBAT1L (0x80000000 | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE) |
| 187 | #define CONFIG_SYS_DBAT1U (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP) |
| 188 | #define CONFIG_SYS_IBAT1L (0x80000000 | BATL_PP_RW | BATL_CACHEINHIBIT) |
| 189 | #define CONFIG_SYS_IBAT1U (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP) |
wdenk | bb444c9 | 2002-12-07 00:20:59 +0000 | [diff] [blame] | 190 | /* HJF: |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 191 | #define CONFIG_SYS_IBAT1L ((CONFIG_SYS_SDRAM_BASE+CONFIG_SYS_INIT_RAM_ADDR) | BATL_PP_RW) |
| 192 | #define CONFIG_SYS_IBAT1U ((CONFIG_SYS_SDRAM_BASE+CONFIG_SYS_INIT_RAM_ADDR) | BATU_BL_256M | BATU_VS | BATU_VP) |
| 193 | #define CONFIG_SYS_DBAT1L ((CONFIG_SYS_SDRAM_BASE+CONFIG_SYS_INIT_RAM_ADDR + 0x20000) | BATL_PP_RW ) |
| 194 | #define CONFIG_SYS_DBAT1U ((CONFIG_SYS_SDRAM_BASE+CONFIG_SYS_INIT_RAM_ADDR + 0x20000) | BATU_BL_256M | BATU_VS | BATU_VP) |
wdenk | bb444c9 | 2002-12-07 00:20:59 +0000 | [diff] [blame] | 195 | */ |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 196 | |
| 197 | /* Init RAM in the CPU DCache (no backing memory) |
| 198 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 199 | #define CONFIG_SYS_DBAT2L (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_RW | BATL_MEMCOHERENCE) |
| 200 | #define CONFIG_SYS_DBAT2U (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP) |
wdenk | bb444c9 | 2002-12-07 00:20:59 +0000 | [diff] [blame] | 201 | /* This used to be commented out */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 202 | #define CONFIG_SYS_IBAT2L CONFIG_SYS_DBAT2L |
wdenk | bb444c9 | 2002-12-07 00:20:59 +0000 | [diff] [blame] | 203 | /* This here too */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 204 | #define CONFIG_SYS_IBAT2U CONFIG_SYS_DBAT2U |
wdenk | bb444c9 | 2002-12-07 00:20:59 +0000 | [diff] [blame] | 205 | |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 206 | |
| 207 | /* I/O and PCI memory at 0xf0000000 |
| 208 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 209 | #define CONFIG_SYS_DBAT3L (0xf0000000 | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE) |
| 210 | #define CONFIG_SYS_DBAT3U (0xf0000000 | BATU_BL_256M | BATU_VS | BATU_VP) |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 211 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 212 | #define CONFIG_SYS_IBAT3L (0xf0000000 | BATL_PP_RW | BATL_CACHEINHIBIT) |
| 213 | #define CONFIG_SYS_IBAT3U (0xf0000000 | BATU_BL_256M | BATU_VS | BATU_VP) |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 214 | |
| 215 | /* |
| 216 | * Low Level Configuration Settings |
| 217 | * (address mappings, register initial values, etc.) |
| 218 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 219 | #define CONFIG_SYS_HZ 1000 |
| 220 | #define CONFIG_SYS_BUS_HZ 133000000 /* bus speed - 100 mhz */ |
| 221 | #define CONFIG_SYS_CPU_CLK 133000000 |
| 222 | #define CONFIG_SYS_BUS_CLK 133000000 |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 223 | |
| 224 | /* |
| 225 | * For booting Linux, the board info and command line data |
| 226 | * have to be in the first 8 MB of memory, since this is |
| 227 | * the maximum mapped by the Linux kernel during initialization. |
| 228 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 229 | #define CONFIG_SYS_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux */ |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 230 | |
| 231 | /*----------------------------------------------------------------------- |
| 232 | * FLASH organization |
| 233 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 234 | #define CONFIG_SYS_MAX_FLASH_BANKS 1 /* Max number of flash banks */ |
| 235 | #define CONFIG_SYS_MAX_FLASH_SECT 8 /* Max number of sectors in one bank */ |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 236 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 237 | #define CONFIG_SYS_FLASH_ERASE_TOUT 120000 /* Timeout for Flash Erase (in ms) */ |
| 238 | #define CONFIG_SYS_FLASH_WRITE_TOUT 1000 /* Timeout for Flash Write (in ms) */ |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 239 | |
| 240 | /* |
| 241 | * Environment is stored in NVRAM. |
| 242 | */ |
Jean-Christophe PLAGNIOL-VILLARD | fdb79c3 | 2008-09-10 22:47:59 +0200 | [diff] [blame] | 243 | #define CONFIG_ENV_IS_IN_NVRAM 1 |
Jean-Christophe PLAGNIOL-VILLARD | 7e1cda6 | 2008-09-10 22:48:06 +0200 | [diff] [blame] | 244 | #define CONFIG_ENV_ADDR 0xFD0E0000 /* This should be 0xFD0E0000, but we skip bytes to |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 245 | * protect softex's settings for now. |
| 246 | * Original 768 bytes where not enough. |
| 247 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 7e1cda6 | 2008-09-10 22:48:06 +0200 | [diff] [blame] | 248 | #define CONFIG_ENV_SIZE 0x8000 /* Size of the Environment. See comment above */ |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 249 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 250 | #define CONFIG_SYS_CONSOLE_IS_IN_ENV 1 /* stdin/stdout/stderr are in environment */ |
| 251 | #define CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE 1 |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 252 | #define CONFIG_ENV_OVERWRITE 1 |
| 253 | |
| 254 | /*----------------------------------------------------------------------- |
| 255 | * Cache Configuration |
| 256 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 257 | #define CONFIG_SYS_CACHELINE_SIZE 32 |
Jon Loeliger | ea240f4 | 2007-07-05 19:13:52 -0500 | [diff] [blame] | 258 | #if defined(CONFIG_CMD_KGDB) |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 259 | # define CONFIG_SYS_CACHELINE_SHIFT 5 /* log base 2 of the above value */ |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 260 | #endif |
| 261 | |
| 262 | /* |
| 263 | * L2 cache |
| 264 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 265 | #define CONFIG_SYS_L2 |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 266 | #define L2_INIT (L2CR_L2SIZ_2M | L2CR_L2CLK_3 | L2CR_L2RAM_BURST | \ |
| 267 | L2CR_L2OH_5 | L2CR_L2CTL | L2CR_L2WT) |
| 268 | #define L2_ENABLE (L2_INIT | L2CR_L2E) |
| 269 | |
| 270 | /* |
| 271 | * Internal Definitions |
| 272 | * |
| 273 | * Boot Flags |
| 274 | */ |
| 275 | #define BOOTFLAG_COLD 0x01 /* Normal Power-On: Boot from FLASH */ |
| 276 | #define BOOTFLAG_WARM 0x02 /* Software reboot */ |
| 277 | |
| 278 | |
| 279 | /*----------------------------------------------------------------------- |
| 280 | * IDE ATAPI Configuration |
| 281 | */ |
| 282 | |
| 283 | #define CONFIG_ATAPI 1 |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 284 | #define CONFIG_SYS_IDE_MAXBUS 2 |
| 285 | #define CONFIG_SYS_IDE_MAXDEVICE 4 |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 286 | #define CONFIG_ISO_PARTITION 1 |
| 287 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 288 | #define CONFIG_SYS_ATA_BASE_ADDR 0xFE000000 /* was: via_get_base_addr() */ |
| 289 | #define CONFIG_SYS_ATA_IDE0_OFFSET 0x1F0 |
| 290 | #define CONFIG_SYS_ATA_IDE1_OFFSET 0x170 |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 291 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 292 | #define CONFIG_SYS_ATA_REG_OFFSET 0 |
| 293 | #define CONFIG_SYS_ATA_DATA_OFFSET 0 |
| 294 | #define CONFIG_SYS_ATA_ALT_OFFSET 0x0200 |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 295 | |
| 296 | /*----------------------------------------------------------------------- |
| 297 | * Disk-On-Chip configuration |
| 298 | */ |
| 299 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 300 | #define CONFIG_SYS_MAX_DOC_DEVICE 1 /* Max number of DOC devices */ |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 301 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 302 | #define CONFIG_SYS_DOC_SUPPORT_2000 |
| 303 | #undef CONFIG_SYS_DOC_SUPPORT_MILLENNIUM |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 304 | |
| 305 | /*----------------------------------------------------------------------- |
| 306 | RTC |
| 307 | */ |
| 308 | #define CONFIG_RTC_MC146818 |
| 309 | |
| 310 | /*----------------------------------------------------------------------- |
| 311 | * NS16550 Configuration |
| 312 | */ |
| 313 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 314 | #define CONFIG_SYS_NS16550 |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 315 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 316 | #define CONFIG_SYS_NS16550_COM1 0xFE0003F8 |
| 317 | #define CONFIG_SYS_NS16550_COM2 0xFE0002F8 |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 318 | |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 319 | #define CONFIG_SYS_NS16550_REG_SIZE 1 |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 320 | |
| 321 | /* base address for ISA I/O |
| 322 | */ |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 323 | #define CONFIG_SYS_ISA_IO_BASE_ADDRESS 0xFE000000 |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 324 | |
| 325 | /* ISA Interrupt stuff (taken from JWL) */ |
| 326 | |
| 327 | #define ISA_INT1_OCW1 0x21 |
| 328 | #define ISA_INT2_OCW1 0xA1 |
| 329 | #define ISA_INT1_OCW2 0x20 |
| 330 | #define ISA_INT2_OCW2 0xA0 |
| 331 | #define ISA_INT1_OCW3 0x20 |
| 332 | #define ISA_INT2_OCW3 0xA0 |
| 333 | |
| 334 | #define ISA_INT1_ICW1 0x20 |
| 335 | #define ISA_INT2_ICW1 0xA0 |
| 336 | #define ISA_INT1_ICW2 0x21 |
| 337 | #define ISA_INT2_ICW2 0xA1 |
| 338 | #define ISA_INT1_ICW3 0x21 |
| 339 | #define ISA_INT2_ICW3 0xA1 |
| 340 | #define ISA_INT1_ICW4 0x21 |
| 341 | #define ISA_INT2_ICW4 0xA1 |
| 342 | |
| 343 | |
| 344 | /* |
| 345 | * misc |
| 346 | */ |
| 347 | |
| 348 | #define CONFIG_NET_MULTI |
Jean-Christophe PLAGNIOL-VILLARD | 0383694 | 2008-10-16 15:01:15 +0200 | [diff] [blame] | 349 | #define CONFIG_SYS_BOARD_ASM_INIT |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 350 | #define CONFIG_LAST_STAGE_INIT |
| 351 | |
| 352 | /* #define CONFIG_ETHADDR 00:09:D2:10:00:76 */ |
| 353 | /* #define CONFIG_IPADDR 192.168.0.2 */ |
| 354 | /* #define CONFIG_NETMASK 255.255.255.240 */ |
| 355 | /* #define CONFIG_GATEWAYIP 192.168.0.3 */ |
| 356 | |
| 357 | #define CONFIG_3COM |
| 358 | /* #define CONFIG_BOOTP_RANDOM_DELAY */ |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 359 | |
| 360 | /* |
| 361 | * USB configuration |
| 362 | */ |
| 363 | #define CONFIG_USB_UHCI 1 |
| 364 | #define CONFIG_USB_STORAGE 1 |
| 365 | #define CONFIG_USB_KEYBOARD 1 |
Jean-Christophe PLAGNIOL-VILLARD | 2a7a031 | 2009-05-16 12:14:54 +0200 | [diff] [blame] | 366 | #define CONFIG_SYS_STDIO_DEREGISTER 1 /* needed by CONFIG_USB_KEYBOARD */ |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 367 | |
| 368 | /* |
| 369 | * Autoboot stuff |
| 370 | */ |
| 371 | #define CONFIG_BOOTDELAY 5 /* Boot automatically after five seconds */ |
| 372 | #define CONFIG_PREBOOT "" |
| 373 | #define CONFIG_BOOTCOMMAND "fdcboot; diskboot" |
Stefan Roese | 3762825 | 2008-08-06 14:05:38 +0200 | [diff] [blame] | 374 | #define CONFIG_MENUPROMPT \ |
| 375 | "Press any key to interrupt autoboot: %2d ", bootdelay |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 376 | #define CONFIG_MENUKEY ' ' |
| 377 | #define CONFIG_MENUCOMMAND "menu" |
| 378 | /* #define CONFIG_AUTOBOOT_KEYED */ |
| 379 | |
| 380 | /* |
| 381 | * Extra ENV stuff |
| 382 | */ |
| 383 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
| 384 | "stdout=vga\0" \ |
| 385 | "stdin=ps2kbd\0" \ |
| 386 | "ide_doreset=on\0" \ |
| 387 | "ide_maxbus=2\0" \ |
| 388 | "ide_cd_timeout=30\0" \ |
| 389 | "menucmd=menu\0" \ |
| 390 | "pci_irqa=9\0" \ |
| 391 | "pci_irqa_select=edge\0" \ |
| 392 | "pci_irqb=10\0" \ |
| 393 | "pci_irqb_select=edge\0" \ |
| 394 | "pci_irqc=11\0" \ |
| 395 | "pci_irqc_select=edge\0" \ |
wdenk | bb444c9 | 2002-12-07 00:20:59 +0000 | [diff] [blame] | 396 | "pci_irqd=7\0" \ |
wdenk | 452cfd6 | 2002-11-19 11:04:11 +0000 | [diff] [blame] | 397 | "pci_irqd_select=edge\0" |
| 398 | |
| 399 | |
| 400 | /* #define CONFIG_MII 1 */ |
| 401 | /* #define CONFIG_BITBANGMII 1 */ |
| 402 | |
| 403 | |
| 404 | #endif /* __CONFIG_H */ |