]>
Commit | Line | Data |
---|---|---|
15647dc7 WD |
1 | /* |
2 | * (C) Copyright 2001, 2002 | |
3 | * Sangmoon Kim, Etin Systems, dogoil@etinsys.com. | |
4 | * | |
1a459660 | 5 | * SPDX-License-Identifier: GPL-2.0+ |
15647dc7 WD |
6 | */ |
7 | ||
8 | /* ------------------------------------------------------------------------- */ | |
9 | ||
10 | /* | |
11 | * board/config.h - configuration options, board specific | |
12 | */ | |
13 | ||
14 | #ifndef __CONFIG_H | |
15 | #define __CONFIG_H | |
16 | ||
2ae18241 WD |
17 | #define CONFIG_SYS_TEXT_BASE 0xFFF00000 |
18 | ||
15647dc7 WD |
19 | /* Environments */ |
20 | ||
21 | /* bootargs */ | |
22 | #define CONFIG_BOOTARGS \ | |
23 | "console=ttyS0,9600 init=/linuxrc " \ | |
24 | "root=/dev/nfs rw nfsroot=192.168.0.1:" \ | |
25 | "/tftpboot/target " \ | |
26 | "ip=192.168.0.2:192.168.0.1:192.168.0.1:" \ | |
27 | "255.255.255.0:debris:eth0:none " \ | |
28 | "mtdparts=phys:12m(root),-(kernel)" | |
29 | ||
30 | /* bootcmd */ | |
31 | #define CONFIG_BOOTCOMMAND \ | |
32 | "tftp 800000 pImage; " \ | |
33 | "setenv bootargs console=ttyS0,9600 init=/linuxrc " \ | |
fe126d8b WD |
34 | "root=/dev/nfs rw nfsroot=${serverip}:${rootpath} " \ |
35 | "ip=${ipaddr}:${serverip}:${gatewayip}:" \ | |
36 | "${netmask}:${hostname}:eth0:none " \ | |
15647dc7 WD |
37 | "mtdparts=phys:12m(root),-(kernel); " \ |
38 | "bootm 800000" | |
39 | ||
40 | /* bootdelay */ | |
41 | #define CONFIG_BOOTDELAY 5 /* autoboot 5s */ | |
42 | ||
43 | /* baudrate */ | |
44 | #define CONFIG_BAUDRATE 9600 /* console baudrate = 9600bps */ | |
45 | ||
46 | /* loads_echo */ | |
47 | #define CONFIG_LOADS_ECHO 0 /* echo off for serial download */ | |
48 | ||
49 | /* ethaddr */ | |
50 | #undef CONFIG_ETHADDR | |
51 | ||
52 | /* eth2addr */ | |
53 | #undef CONFIG_ETH2ADDR | |
54 | ||
55 | /* eth3addr */ | |
56 | #undef CONFIG_ETH3ADDR | |
57 | ||
58 | /* ipaddr */ | |
59 | #define CONFIG_IPADDR 192.168.0.2 | |
60 | ||
61 | /* serverip */ | |
62 | #define CONFIG_SERVERIP 192.168.0.1 | |
63 | ||
64 | /* autoload */ | |
6d0f6bcf | 65 | #undef CONFIG_SYS_AUTOLOAD |
15647dc7 WD |
66 | |
67 | /* rootpath */ | |
8b3637c6 | 68 | #define CONFIG_ROOTPATH "/tftpboot/target" |
15647dc7 WD |
69 | |
70 | /* gatewayip */ | |
71 | #define CONFIG_GATEWAYIP 192.168.0.1 | |
72 | ||
73 | /* netmask */ | |
74 | #define CONFIG_NETMASK 255.255.255.0 | |
75 | ||
76 | /* hostname */ | |
77 | #define CONFIG_HOSTNAME debris | |
78 | ||
79 | /* bootfile */ | |
b3f44c21 | 80 | #define CONFIG_BOOTFILE "pImage" |
15647dc7 WD |
81 | |
82 | /* loadaddr */ | |
83 | #define CONFIG_LOADADDR 800000 | |
84 | ||
85 | /* preboot */ | |
86 | #undef CONFIG_PREBOOT | |
87 | ||
88 | /* clocks_in_mhz */ | |
89 | #undef CONFIG_CLOCKS_IN_MHZ | |
90 | ||
91 | ||
92 | /* | |
93 | * High Level Configuration Options | |
94 | * (easy to change) | |
95 | */ | |
96 | ||
15647dc7 WD |
97 | #define CONFIG_MPC8245 1 |
98 | #define CONFIG_DEBRIS 1 | |
99 | ||
100 | #if 0 | |
101 | #define USE_DINK32 1 | |
102 | #else | |
103 | #undef USE_DINK32 | |
104 | #endif | |
105 | ||
106 | #define CONFIG_CONS_INDEX 1 | |
107 | #define CONFIG_BAUDRATE 9600 | |
108 | #define CONFIG_DRAM_SPEED 100 /* MHz */ | |
109 | ||
ab999ba1 | 110 | |
80ff4f99 JL |
111 | /* |
112 | * BOOTP options | |
113 | */ | |
114 | #define CONFIG_BOOTP_BOOTFILESIZE | |
115 | #define CONFIG_BOOTP_BOOTPATH | |
116 | #define CONFIG_BOOTP_GATEWAY | |
117 | #define CONFIG_BOOTP_HOSTNAME | |
118 | ||
119 | ||
ab999ba1 JL |
120 | /* |
121 | * Command line configuration. | |
122 | */ | |
123 | #include <config_cmd_default.h> | |
124 | ||
125 | #define CONFIG_CMD_ASKENV | |
126 | #define CONFIG_CMD_CACHE | |
127 | #define CONFIG_CMD_DATE | |
128 | #define CONFIG_CMD_DHCP | |
129 | #define CONFIG_CMD_DIAG | |
130 | #define CONFIG_CMD_EEPROM | |
131 | #define CONFIG_CMD_ELF | |
132 | #define CONFIG_CMD_I2C | |
133 | #define CONFIG_CMD_JFFS2 | |
d060b00e | 134 | #define CONFIG_CMD_KGDB |
ab999ba1 JL |
135 | #define CONFIG_CMD_PCI |
136 | #define CONFIG_CMD_PING | |
137 | #define CONFIG_CMD_SAVES | |
138 | #define CONFIG_CMD_SDRAM | |
15647dc7 WD |
139 | |
140 | ||
141 | /* | |
142 | * Miscellaneous configurable options | |
143 | */ | |
6d0f6bcf | 144 | #define CONFIG_SYS_LONGHELP 1 /* undef to save memory */ |
6d0f6bcf JCPV |
145 | #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */ |
146 | #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */ | |
147 | #define CONFIG_SYS_MAXARGS 16 /* max number of command args */ | |
148 | #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */ | |
149 | #define CONFIG_SYS_LOAD_ADDR 0x00100000 /* default load address */ | |
15647dc7 WD |
150 | |
151 | /*----------------------------------------------------------------------- | |
152 | * PCI stuff | |
153 | *----------------------------------------------------------------------- | |
154 | */ | |
155 | #define CONFIG_PCI /* include pci support */ | |
842033e6 | 156 | #define CONFIG_PCI_INDIRECT_BRIDGE /* indirect PCI bridge support */ |
15647dc7 WD |
157 | #define CONFIG_PCI_PNP |
158 | ||
15647dc7 | 159 | #define CONFIG_EEPRO100 |
6d0f6bcf | 160 | #define CONFIG_SYS_RX_ETH_BUFFER 8 /* use 8 rx buffer on eepro100 */ |
15647dc7 WD |
161 | #define CONFIG_EEPRO100_SROM_WRITE |
162 | ||
163 | #define PCI_ENET0_IOADDR 0x80000000 | |
164 | #define PCI_ENET0_MEMADDR 0x80000000 | |
165 | #define PCI_ENET1_IOADDR 0x81000000 | |
166 | #define PCI_ENET1_MEMADDR 0x81000000 | |
167 | /*----------------------------------------------------------------------- | |
168 | * Start addresses for the final memory configuration | |
169 | * (Set up by the startup code) | |
6d0f6bcf | 170 | * Please note that CONFIG_SYS_SDRAM_BASE _must_ start at 0 |
15647dc7 | 171 | */ |
6d0f6bcf JCPV |
172 | #define CONFIG_SYS_SDRAM_BASE 0x00000000 |
173 | #define CONFIG_SYS_MAX_RAM_SIZE 0x20000000 | |
7abf0c58 | 174 | #define CONFIG_VERY_BIG_RAM |
15647dc7 | 175 | |
6d0f6bcf | 176 | #define CONFIG_SYS_RESET_ADDRESS 0xFFF00100 |
15647dc7 WD |
177 | |
178 | #if defined (USE_DINK32) | |
6d0f6bcf JCPV |
179 | #define CONFIG_SYS_MONITOR_LEN 0x00040000 |
180 | #define CONFIG_SYS_MONITOR_BASE 0x00090000 | |
181 | #define CONFIG_SYS_RAMBOOT 1 | |
182 | #define CONFIG_SYS_INIT_RAM_ADDR (CONFIG_SYS_MONITOR_BASE + CONFIG_SYS_MONITOR_LEN) | |
553f0982 | 183 | #define CONFIG_SYS_INIT_RAM_SIZE 0x10000 |
25ddd1fb | 184 | #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) |
6d0f6bcf | 185 | #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET |
15647dc7 | 186 | #else |
6d0f6bcf JCPV |
187 | #undef CONFIG_SYS_RAMBOOT |
188 | #define CONFIG_SYS_MONITOR_LEN 0x00040000 | |
14d0a02a | 189 | #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE |
15647dc7 | 190 | |
15647dc7 | 191 | |
6d0f6bcf | 192 | #define CONFIG_SYS_INIT_RAM_ADDR 0x40000000 |
553f0982 | 193 | #define CONFIG_SYS_INIT_RAM_SIZE 0x1000 |
25ddd1fb | 194 | #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE) |
15647dc7 WD |
195 | |
196 | #endif | |
197 | ||
6d0f6bcf JCPV |
198 | #define CONFIG_SYS_FLASH_BASE 0x7C000000 |
199 | #define CONFIG_SYS_FLASH_SIZE (16*1024*1024) /* debris has tiny eeprom */ | |
15647dc7 | 200 | |
6d0f6bcf | 201 | #define CONFIG_SYS_MALLOC_LEN (512 << 10) /* Reserve 512 kB for malloc() */ |
15647dc7 | 202 | |
6d0f6bcf JCPV |
203 | #define CONFIG_SYS_MEMTEST_START 0x00000000 /* memtest works on */ |
204 | #define CONFIG_SYS_MEMTEST_END 0x04000000 /* 0 ... 32 MB in DRAM */ | |
15647dc7 | 205 | |
6d0f6bcf | 206 | #define CONFIG_SYS_EUMB_ADDR 0xFC000000 |
15647dc7 | 207 | |
6d0f6bcf JCPV |
208 | #define CONFIG_SYS_FLASH_RANGE_BASE 0xFF000000 /* flash memory address range */ |
209 | #define CONFIG_SYS_FLASH_RANGE_SIZE 0x01000000 | |
15647dc7 WD |
210 | #define FLASH_BASE0_PRELIM 0x7C000000 /* debris flash */ |
211 | ||
700a0c64 WD |
212 | /* |
213 | * JFFS2 partitions | |
214 | * | |
215 | */ | |
216 | /* No command line, one static partition, whole device */ | |
68d7d651 | 217 | #undef CONFIG_CMD_MTDPARTS |
700a0c64 WD |
218 | #define CONFIG_JFFS2_DEV "nor0" |
219 | #define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF | |
220 | #define CONFIG_JFFS2_PART_OFFSET 0x00000000 | |
221 | ||
222 | /* mtdparts command line support */ | |
223 | ||
224 | /* Use first bank for JFFS2, second bank contains U-Boot. | |
225 | * | |
226 | * Note: fake mtd_id's used, no linux mtd map file. | |
227 | */ | |
228 | /* | |
68d7d651 | 229 | #define CONFIG_CMD_MTDPARTS |
700a0c64 WD |
230 | #define MTDIDS_DEFAULT "nor0=debris-0" |
231 | #define MTDPARTS_DEFAULT "mtdparts=debris-0:-(jffs2)" | |
232 | */ | |
15647dc7 | 233 | |
9314cee6 | 234 | #define CONFIG_ENV_IS_IN_NVRAM 1 |
15647dc7 | 235 | #define CONFIG_ENV_OVERWRITE 1 |
6d0f6bcf | 236 | #define CONFIG_SYS_NVRAM_ACCESS_ROUTINE 1 |
0e8d1586 JCPV |
237 | #define CONFIG_ENV_ADDR 0xFF000000 /* right at the start of NVRAM */ |
238 | #define CONFIG_ENV_SIZE 0x400 /* Size of the Environment - 8K */ | |
239 | #define CONFIG_ENV_OFFSET 0 /* starting right at the beginning */ | |
15647dc7 | 240 | |
6d0f6bcf | 241 | #define CONFIG_SYS_NVRAM_BASE_ADDR 0xff000000 |
15647dc7 WD |
242 | |
243 | /* | |
6d0f6bcf | 244 | * CONFIG_SYS_NVRAM_BASE_ADDR + CONFIG_SYS_NVRAM_VXWORKS_OFFS = |
15647dc7 WD |
245 | * NV_RAM_ADDRS + NV_BOOT_OFFSET + NV_ENET_OFFSET |
246 | */ | |
6d0f6bcf | 247 | #define CONFIG_SYS_NVRAM_VXWORKS_OFFS 0x6900 |
15647dc7 WD |
248 | |
249 | /* | |
250 | * select i2c support configuration | |
251 | * | |
252 | * Supported configurations are {none, software, hardware} drivers. | |
253 | * If the software driver is chosen, there are some additional | |
254 | * configuration items that the driver uses to drive the port pins. | |
255 | */ | |
256 | #define CONFIG_HARD_I2C 1 /* To enable I2C support */ | |
ea818dbb | 257 | #undef CONFIG_SYS_I2C_SOFT /* I2C bit-banged */ |
6d0f6bcf JCPV |
258 | #define CONFIG_SYS_I2C_SPEED 400000 /* I2C speed and slave address */ |
259 | #define CONFIG_SYS_I2C_SLAVE 0x7F | |
15647dc7 | 260 | |
ea818dbb | 261 | #ifdef CONFIG_SYS_I2C_SOFT |
15647dc7 | 262 | #error "Soft I2C is not configured properly. Please review!" |
ea818dbb HS |
263 | #define CONFIG_SYS_I2C |
264 | #define CONFIG_SYS_I2C_SOFT_SPEED 50000 | |
265 | #define CONFIG_SYS_I2C_SOFT_SLAVE 0x7F | |
15647dc7 WD |
266 | #define I2C_PORT 3 /* Port A=0, B=1, C=2, D=3 */ |
267 | #define I2C_ACTIVE (iop->pdir |= 0x00010000) | |
268 | #define I2C_TRISTATE (iop->pdir &= ~0x00010000) | |
269 | #define I2C_READ ((iop->pdat & 0x00010000) != 0) | |
270 | #define I2C_SDA(bit) if(bit) iop->pdat |= 0x00010000; \ | |
271 | else iop->pdat &= ~0x00010000 | |
272 | #define I2C_SCL(bit) if(bit) iop->pdat |= 0x00020000; \ | |
273 | else iop->pdat &= ~0x00020000 | |
274 | #define I2C_DELAY udelay(5) /* 1/4 I2C clock duration */ | |
ea818dbb | 275 | #endif /* CONFIG_SYS_I2C_SOFT */ |
15647dc7 | 276 | |
6d0f6bcf JCPV |
277 | #define CONFIG_SYS_I2C_EEPROM_ADDR 0x57 /* EEPROM IS24C02 */ |
278 | #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1 /* Bytes of address */ | |
279 | #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 3 | |
280 | #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10 /* and takes up to 10 msec */ | |
15647dc7 | 281 | |
6d0f6bcf | 282 | #define CONFIG_SYS_FLASH_BANKS { FLASH_BASE0_PRELIM } |
15647dc7 WD |
283 | |
284 | /*----------------------------------------------------------------------- | |
285 | * Definitions for initial stack pointer and data area (in DPRAM) | |
286 | */ | |
287 | ||
288 | /* | |
289 | * NS16550 Configuration | |
290 | */ | |
6d0f6bcf JCPV |
291 | #define CONFIG_SYS_NS16550 |
292 | #define CONFIG_SYS_NS16550_SERIAL | |
15647dc7 | 293 | |
6d0f6bcf | 294 | #define CONFIG_SYS_NS16550_REG_SIZE 1 |
15647dc7 | 295 | |
6d0f6bcf | 296 | #define CONFIG_SYS_NS16550_CLK 7372800 |
15647dc7 | 297 | |
6d0f6bcf JCPV |
298 | #define CONFIG_SYS_NS16550_COM1 0xFF080000 |
299 | #define CONFIG_SYS_NS16550_COM2 (CONFIG_SYS_NS16550_COM1 + 8) | |
300 | #define CONFIG_SYS_NS16550_COM3 (CONFIG_SYS_NS16550_COM1 + 16) | |
301 | #define CONFIG_SYS_NS16550_COM4 (CONFIG_SYS_NS16550_COM1 + 24) | |
15647dc7 WD |
302 | |
303 | /* | |
304 | * Low Level Configuration Settings | |
305 | * (address mappings, register initial values, etc.) | |
306 | * You should know what you are doing if you make changes here. | |
307 | */ | |
308 | ||
309 | #define CONFIG_SYS_CLK_FREQ 33333333 /* external frequency to pll */ | |
310 | #define CONFIG_PLL_PCI_TO_MEM_MULTIPLIER 3 | |
311 | ||
6d0f6bcf JCPV |
312 | #define CONFIG_SYS_DLL_EXTEND 0x00 |
313 | #define CONFIG_SYS_PCI_HOLD_DEL 0x20 | |
15647dc7 | 314 | |
6d0f6bcf JCPV |
315 | #define CONFIG_SYS_ROMNAL 15 /* rom/flash next access time */ |
316 | #define CONFIG_SYS_ROMFAL 31 /* rom/flash access time */ | |
15647dc7 | 317 | |
6d0f6bcf | 318 | #define CONFIG_SYS_REFINT 430 /* # of clocks between CBR refresh cycles */ |
15647dc7 | 319 | |
6d0f6bcf | 320 | #define CONFIG_SYS_DBUS_SIZE2 1 /* set for 8-bit RCS1, clear for 32,64 */ |
15647dc7 WD |
321 | |
322 | /* the following are for SDRAM only*/ | |
6d0f6bcf JCPV |
323 | #define CONFIG_SYS_BSTOPRE 121 /* Burst To Precharge, sets open page interval */ |
324 | #define CONFIG_SYS_REFREC 8 /* Refresh to activate interval */ | |
325 | #define CONFIG_SYS_RDLAT 4 /* data latency from read command */ | |
326 | #define CONFIG_SYS_PRETOACT 3 /* Precharge to activate interval */ | |
327 | #define CONFIG_SYS_ACTTOPRE 5 /* Activate to Precharge interval */ | |
328 | #define CONFIG_SYS_ACTORW 3 /* Activate to R/W */ | |
329 | #define CONFIG_SYS_SDMODE_CAS_LAT 3 /* SDMODE CAS latency */ | |
330 | #define CONFIG_SYS_SDMODE_WRAP 0 /* SDMODE wrap type */ | |
15647dc7 | 331 | #if 0 |
6d0f6bcf | 332 | #define CONFIG_SYS_SDMODE_BURSTLEN 2 /* OBSOLETE! SDMODE Burst length 2=4, 3=8 */ |
15647dc7 WD |
333 | #endif |
334 | ||
6d0f6bcf JCPV |
335 | #define CONFIG_SYS_REGISTERD_TYPE_BUFFER 1 |
336 | #define CONFIG_SYS_EXTROM 1 | |
337 | #define CONFIG_SYS_REGDIMM 0 | |
15647dc7 WD |
338 | |
339 | ||
340 | /* memory bank settings*/ | |
341 | /* | |
342 | * only bits 20-29 are actually used from these vales to set the | |
343 | * start/end address the upper two bits will be 0, and the lower 20 | |
344 | * bits will be set to 0x00000 for a start address, or 0xfffff for an | |
345 | * end address | |
346 | */ | |
6d0f6bcf JCPV |
347 | #define CONFIG_SYS_BANK0_START 0x00000000 |
348 | #define CONFIG_SYS_BANK0_END (0x4000000 - 1) | |
349 | #define CONFIG_SYS_BANK0_ENABLE 1 | |
350 | #define CONFIG_SYS_BANK1_START 0x04000000 | |
351 | #define CONFIG_SYS_BANK1_END (0x8000000 - 1) | |
352 | #define CONFIG_SYS_BANK1_ENABLE 1 | |
353 | #define CONFIG_SYS_BANK2_START 0x3ff00000 | |
354 | #define CONFIG_SYS_BANK2_END 0x3fffffff | |
355 | #define CONFIG_SYS_BANK2_ENABLE 0 | |
356 | #define CONFIG_SYS_BANK3_START 0x3ff00000 | |
357 | #define CONFIG_SYS_BANK3_END 0x3fffffff | |
358 | #define CONFIG_SYS_BANK3_ENABLE 0 | |
359 | #define CONFIG_SYS_BANK4_START 0x00000000 | |
360 | #define CONFIG_SYS_BANK4_END 0x00000000 | |
361 | #define CONFIG_SYS_BANK4_ENABLE 0 | |
362 | #define CONFIG_SYS_BANK5_START 0x00000000 | |
363 | #define CONFIG_SYS_BANK5_END 0x00000000 | |
364 | #define CONFIG_SYS_BANK5_ENABLE 0 | |
365 | #define CONFIG_SYS_BANK6_START 0x00000000 | |
366 | #define CONFIG_SYS_BANK6_END 0x00000000 | |
367 | #define CONFIG_SYS_BANK6_ENABLE 0 | |
368 | #define CONFIG_SYS_BANK7_START 0x00000000 | |
369 | #define CONFIG_SYS_BANK7_END 0x00000000 | |
370 | #define CONFIG_SYS_BANK7_ENABLE 0 | |
15647dc7 WD |
371 | /* |
372 | * Memory bank enable bitmask, specifying which of the banks defined above | |
373 | are actually present. MSB is for bank #7, LSB is for bank #0. | |
374 | */ | |
6d0f6bcf | 375 | #define CONFIG_SYS_BANK_ENABLE 0x01 |
15647dc7 | 376 | |
6d0f6bcf | 377 | #define CONFIG_SYS_ODCR 0x75 /* configures line driver impedances, */ |
15647dc7 | 378 | /* see 8240 book for bit definitions */ |
6d0f6bcf | 379 | #define CONFIG_SYS_PGMAX 0x32 /* how long the 8240 retains the */ |
15647dc7 WD |
380 | /* currently accessed page in memory */ |
381 | /* see 8240 book for details */ | |
382 | ||
383 | /* SDRAM 0 - 256MB */ | |
6d0f6bcf JCPV |
384 | #define CONFIG_SYS_IBAT0L (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE) |
385 | #define CONFIG_SYS_IBAT0U (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP) | |
15647dc7 WD |
386 | |
387 | /* stack in DCACHE @ 1GB (no backing mem) */ | |
388 | #if defined(USE_DINK32) | |
6d0f6bcf JCPV |
389 | #define CONFIG_SYS_IBAT1L (0x40000000 | BATL_PP_00 ) |
390 | #define CONFIG_SYS_IBAT1U (0x40000000 | BATU_BL_128K ) | |
15647dc7 | 391 | #else |
6d0f6bcf JCPV |
392 | #define CONFIG_SYS_IBAT1L (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE) |
393 | #define CONFIG_SYS_IBAT1U (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP) | |
15647dc7 WD |
394 | #endif |
395 | ||
396 | /* PCI memory */ | |
6d0f6bcf JCPV |
397 | #define CONFIG_SYS_IBAT2L (0x80000000 | BATL_PP_10 | BATL_CACHEINHIBIT) |
398 | #define CONFIG_SYS_IBAT2U (0x80000000 | BATU_BL_256M | BATU_VS | BATU_VP) | |
15647dc7 WD |
399 | |
400 | /* Flash, config addrs, etc */ | |
6d0f6bcf JCPV |
401 | #define CONFIG_SYS_IBAT3L (0xF0000000 | BATL_PP_10 | BATL_CACHEINHIBIT) |
402 | #define CONFIG_SYS_IBAT3U (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP) | |
403 | ||
404 | #define CONFIG_SYS_DBAT0L CONFIG_SYS_IBAT0L | |
405 | #define CONFIG_SYS_DBAT0U CONFIG_SYS_IBAT0U | |
406 | #define CONFIG_SYS_DBAT1L CONFIG_SYS_IBAT1L | |
407 | #define CONFIG_SYS_DBAT1U CONFIG_SYS_IBAT1U | |
408 | #define CONFIG_SYS_DBAT2L CONFIG_SYS_IBAT2L | |
409 | #define CONFIG_SYS_DBAT2U CONFIG_SYS_IBAT2U | |
410 | #define CONFIG_SYS_DBAT3L CONFIG_SYS_IBAT3L | |
411 | #define CONFIG_SYS_DBAT3U CONFIG_SYS_IBAT3U | |
15647dc7 WD |
412 | |
413 | /* | |
414 | * For booting Linux, the board info and command line data | |
415 | * have to be in the first 8 MB of memory, since this is | |
416 | * the maximum mapped by the Linux kernel during initialization. | |
417 | */ | |
6d0f6bcf | 418 | #define CONFIG_SYS_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux */ |
15647dc7 WD |
419 | /*----------------------------------------------------------------------- |
420 | * FLASH organization | |
421 | */ | |
6d0f6bcf JCPV |
422 | #define CONFIG_SYS_MAX_FLASH_BANKS 1 /* max number of memory banks */ |
423 | #define CONFIG_SYS_MAX_FLASH_SECT 256 /* max number of sectors on one chip */ | |
15647dc7 | 424 | |
6d0f6bcf JCPV |
425 | #define CONFIG_SYS_FLASH_ERASE_TOUT 120000 /* Timeout for Flash Erase (in ms) */ |
426 | #define CONFIG_SYS_FLASH_WRITE_TOUT 500 /* Timeout for Flash Write (in ms) */ | |
15647dc7 WD |
427 | |
428 | /*----------------------------------------------------------------------- | |
429 | * Cache Configuration | |
430 | */ | |
6d0f6bcf | 431 | #define CONFIG_SYS_CACHELINE_SIZE 32 /* For MPC8240 CPU */ |
ab999ba1 | 432 | #if defined(CONFIG_CMD_KGDB) |
6d0f6bcf | 433 | # define CONFIG_SYS_CACHELINE_SHIFT 5 /* log base 2 of the above value */ |
15647dc7 WD |
434 | #endif |
435 | ||
15647dc7 WD |
436 | /* values according to the manual */ |
437 | ||
438 | #define CONFIG_DRAM_50MHZ 1 | |
439 | #define CONFIG_SDRAM_50MHZ | |
440 | ||
441 | #define CONFIG_DISK_SPINUP_TIME 1000000 | |
442 | ||
443 | #endif /* __CONFIG_H */ |