blob: 14452921366006d0ebf57c71188cc20ddebf287f [file] [log] [blame]
wdenk64519362004-07-11 17:40:54 +00001/*
2 * (C) Copyright 2003-2004
3 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
4 *
5 * (C) Copyright 2004
6 * Martin Krause, TQ-Systems GmbH, martin.krause@tqs.de
7 *
8 * See file CREDITS for list of people who contributed to this
9 * project.
10 *
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License as
13 * published by the Free Software Foundation; either version 2 of
14 * the License, or (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
24 * MA 02111-1307 USA
25 */
26
27#ifndef __CONFIG_H
28#define __CONFIG_H
29
wdenk64519362004-07-11 17:40:54 +000030/*
31 * High Level Configuration Options
32 * (easy to change)
33 */
34
35#define CONFIG_MPC5xxx 1 /* This is an MPC5xxx CPU */
36#define CONFIG_MPC5200 1 /* (more precisely an MPC5200 CPU) */
37#define CONFIG_TQM5200 1 /* ... on TQM5200 module */
wdenkdc130442004-12-12 22:06:17 +000038#define CONFIG_STK52XX 1 /* ... on a STK52XX base board */
wdenk64519362004-07-11 17:40:54 +000039
40#define CFG_MPC5XXX_CLKIN 33000000 /* ... running at 33.000000MHz */
41
42#define BOOTFLAG_COLD 0x01 /* Normal Power-On: Boot from FLASH */
43#define BOOTFLAG_WARM 0x02 /* Software reboot */
44
45#define CFG_CACHELINE_SIZE 32 /* For MPC5xxx CPUs */
46#if (CONFIG_COMMANDS & CFG_CMD_KGDB)
47# define CFG_CACHELINE_SHIFT 5 /* log base 2 of the above value */
48#endif
49
50/*
51 * Serial console configuration
52 */
53#define CONFIG_PSC_CONSOLE 1 /* console is on PSC1 */
54#define CONFIG_BAUDRATE 115200 /* ... at 115200 bps */
55#define CFG_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200, 230400 }
56
wdenkdc130442004-12-12 22:06:17 +000057#ifdef CONFIG_STK52XX
58#define CONFIG_PS2KBD /* AT-PS/2 Keyboard */
59#define CONFIG_PS2MULT /* .. on PS/2 Multiplexer */
60#define CONFIG_PS2SERIAL 6 /* .. on PSC6 */
61#define CONFIG_PS2MULT_DELAY (CFG_HZ/2) /* Initial delay */
62#define CONFIG_BOARD_EARLY_INIT_R
63#endif /* CONFIG_STK52XX */
wdenk64519362004-07-11 17:40:54 +000064
65#ifdef CONFIG_MPC5200 /* MPC5100 PCI is not supported yet. */
66/*
67 * PCI Mapping:
68 * 0x40000000 - 0x4fffffff - PCI Memory
69 * 0x50000000 - 0x50ffffff - PCI IO Space
70 */
wdenkdc130442004-12-12 22:06:17 +000071#ifdef CONFIG_STK52XX
72#define CONFIG_PCI 1
73#elif
wdenk64519362004-07-11 17:40:54 +000074#define CONFIG_PCI 0
wdenkdc130442004-12-12 22:06:17 +000075#endif
wdenk64519362004-07-11 17:40:54 +000076#define CONFIG_PCI_PNP 1
wdenk79cf7572004-08-28 21:09:14 +000077/* #define CONFIG_PCI_SCAN_SHOW 1 */
wdenk64519362004-07-11 17:40:54 +000078
79#define CONFIG_PCI_MEM_BUS 0x40000000
80#define CONFIG_PCI_MEM_PHYS CONFIG_PCI_MEM_BUS
81#define CONFIG_PCI_MEM_SIZE 0x10000000
82
83#define CONFIG_PCI_IO_BUS 0x50000000
84#define CONFIG_PCI_IO_PHYS CONFIG_PCI_IO_BUS
85#define CONFIG_PCI_IO_SIZE 0x01000000
86
87#define CONFIG_NET_MULTI 1
88#define CONFIG_EEPRO100 1
89#define CFG_RX_ETH_BUFFER 8 /* use 8 rx buffer on eepro100 */
90#define CONFIG_NS8382X 1
91
wdenkdc130442004-12-12 22:06:17 +000092#ifdef CONFIG_STK52XX
93#define ADD_PCI_CMD CFG_CMD_PCI
94#elif
95#define ADD_PCI_CMD 0
96#endif
wdenk64519362004-07-11 17:40:54 +000097
98#else /* MPC5100 */
99
100#define ADD_PCI_CMD 0 /* no CFG_CMD_PCI */
101
102#endif
103
104/* Partitions */
wdenk8d3d9ed2005-03-16 16:32:26 +0000105#define CONFIG_MAC_PARTITION
wdenk64519362004-07-11 17:40:54 +0000106#define CONFIG_DOS_PARTITION
wdenk64519362004-07-11 17:40:54 +0000107
108/* USB */
wdenkdc130442004-12-12 22:06:17 +0000109#ifdef CONFIG_STK52XX
wdenk64519362004-07-11 17:40:54 +0000110#define CONFIG_USB_OHCI
wdenk7dd13292004-07-11 20:04:51 +0000111#define ADD_USB_CMD CFG_CMD_USB | CFG_CMD_FAT
wdenk64519362004-07-11 17:40:54 +0000112#define CONFIG_USB_STORAGE
113#else
wdenk7dd13292004-07-11 20:04:51 +0000114#define ADD_USB_CMD 0
wdenk64519362004-07-11 17:40:54 +0000115#endif
116
117/* POST support */
118#define CONFIG_POST (CFG_POST_MEMORY | \
119 CFG_POST_CPU | \
120 CFG_POST_I2C)
121
122#ifdef CONFIG_POST
123#define CFG_CMD_POST_DIAG CFG_CMD_DIAG
124/* preserve space for the post_word at end of on-chip SRAM */
125#define MPC5XXX_SRAM_POST_SIZE MPC5XXX_SRAM_SIZE-4
126#else
127#define CFG_CMD_POST_DIAG 0
128#endif
129
130/* IDE */
wdenkdc130442004-12-12 22:06:17 +0000131#if defined (CONFIG_MINIFAP) || defined (CONFIG_STK52XX)
wdenk99408ba2005-02-24 22:44:16 +0000132#define ADD_IDE_CMD (CFG_CMD_IDE | CFG_CMD_FAT | CFG_CMD_EXT2)
wdenk64519362004-07-11 17:40:54 +0000133#else
134#define ADD_IDE_CMD 0
135#endif
136
137/*
138 * Supported commands
139 */
140#define CONFIG_COMMANDS (CONFIG_CMD_DFL | \
wdenk99408ba2005-02-24 22:44:16 +0000141 ADD_IDE_CMD | \
wdenk64519362004-07-11 17:40:54 +0000142 ADD_PCI_CMD | \
143 ADD_USB_CMD | \
wdenk99408ba2005-02-24 22:44:16 +0000144 CFG_CMD_ASKENV | \
wdenk64519362004-07-11 17:40:54 +0000145 CFG_CMD_DATE | \
wdenk99408ba2005-02-24 22:44:16 +0000146 CFG_CMD_DHCP | \
147 CFG_CMD_ECHO | \
148 CFG_CMD_EEPROM | \
149 CFG_CMD_I2C | \
wdenk64519362004-07-11 17:40:54 +0000150 CFG_CMD_MII | \
151 CFG_CMD_PING | \
wdenk99408ba2005-02-24 22:44:16 +0000152 CFG_CMD_POST_DIAG | \
153 CFG_CMD_REGINFO )
wdenk64519362004-07-11 17:40:54 +0000154
155/* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
156#include <cmd_confdefs.h>
157
wdenk99408ba2005-02-24 22:44:16 +0000158#define CONFIG_TIMESTAMP /* display image timestamps */
159
wdenk64519362004-07-11 17:40:54 +0000160#if (TEXT_BASE == 0xFC000000) /* Boot low */
wdenk7dd13292004-07-11 20:04:51 +0000161# define CFG_LOWBOOT 1
wdenk64519362004-07-11 17:40:54 +0000162#endif
163
164/*
165 * Autobooting
166 */
167#define CONFIG_BOOTDELAY 5 /* autoboot after 5 seconds */
168
wdenk7dd13292004-07-11 20:04:51 +0000169#define CONFIG_PREBOOT "echo;" \
wdenk64519362004-07-11 17:40:54 +0000170 "echo Type \"run flash_nfs\" to mount root filesystem over NFS;" \
171 "echo"
172
173#undef CONFIG_BOOTARGS
174
175#if defined (CONFIG_TQM5200_AA)
wdenk8d3d9ed2005-03-16 16:32:26 +0000176# define CONFIG_U_BOOT_SUFFIX "-AA"
177#elif defined (CONFIG_TQM5200_AB)
178# define CONFIG_U_BOOT_SUFFIX "-AB"
179#elif defined (CONFIG_TQM5200_AC)
180# define CONFIG_U_BOOT_SUFFIX "-AC"
wdenk64519362004-07-11 17:40:54 +0000181#else
wdenk8d3d9ed2005-03-16 16:32:26 +0000182# define CONFIG_U_BOOT_SUFFIX /* nothing */
183#endif
184
wdenk7dd13292004-07-11 20:04:51 +0000185#define CONFIG_EXTRA_ENV_SETTINGS \
wdenk64519362004-07-11 17:40:54 +0000186 "netdev=eth0\0" \
wdenk8d3d9ed2005-03-16 16:32:26 +0000187 "rootpath=/opt/eldk/ppc_6xx\0" \
wdenk64519362004-07-11 17:40:54 +0000188 "ramargs=setenv bootargs root=/dev/ram rw\0" \
wdenk64519362004-07-11 17:40:54 +0000189 "nfsargs=setenv bootargs root=/dev/nfs rw " \
190 "nfsroot=$(serverip):$(rootpath)\0" \
wdenk64519362004-07-11 17:40:54 +0000191 "addip=setenv bootargs $(bootargs) " \
192 "ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask)" \
193 ":$(hostname):$(netdev):off panic=1\0" \
wdenk64519362004-07-11 17:40:54 +0000194 "flash_self=run ramargs addip;" \
195 "bootm $(kernel_addr) $(ramdisk_addr)\0" \
wdenkdc130442004-12-12 22:06:17 +0000196 "flash_nfs=run nfsargs addip;" \
197 "bootm $(kernel_addr)\0" \
wdenkdc130442004-12-12 22:06:17 +0000198 "net_nfs=tftp 200000 $(bootfile);run nfsargs addip;bootm\0" \
wdenk8d3d9ed2005-03-16 16:32:26 +0000199 "bootfile=/tftpboot/tqm5200/uImage\0" \
200 "load=tftp 200000 $(u-boot)\0" \
201 "u-boot=/tftpboot/tqm5200/u-boot.bin" CONFIG_U_BOOT_SUFFIX \
202 "update=protect off FC000000 FC05FFFF;" \
203 "erase FC000000 FC05FFFF;" \
204 "cp.b 200000 FC000000 $(filesize);" \
205 "protect on FC000000 FC05FFFF\0"a \
wdenkdc130442004-12-12 22:06:17 +0000206 ""
wdenk64519362004-07-11 17:40:54 +0000207
208#define CONFIG_BOOTCOMMAND "run net_nfs"
209
210/*
211 * IPB Bus clocking configuration.
212 */
wdenk7dd13292004-07-11 20:04:51 +0000213#define CFG_IPBSPEED_133 /* define for 133MHz speed */
wdenk64519362004-07-11 17:40:54 +0000214
215#if defined(CFG_IPBSPEED_133)
216/*
217 * PCI Bus clocking configuration
218 *
219 * Actually a PCI Clock of 66 MHz is only set (in cpu_init.c) if
220 * CFG_IPBSPEED_133 is defined. This is because a PCI Clock of 66 MHz yet hasn't
221 * been tested with a IPB Bus Clock of 66 MHz.
222 */
223#define CFG_PCISPEED_66 /* define for 66MHz speed */
224#endif
225
226/*
227 * I2C configuration
228 */
229#define CONFIG_HARD_I2C 1 /* I2C with hardware support */
230#if defined (CONFIG_MINIFAP)
231#define CFG_I2C_MODULE 2 /* Select I2C module #1 or #2 */
232#else
233#define CFG_I2C_MODULE 1 /* Select I2C module #1 or #2 */
234#endif
235
236/*
237 * I2C clock frequency
238 *
239 * Please notice, that the resulting clock frequency could differ from the
240 * configured value. This is because the I2C clock is derived from system
241 * clock over a frequency divider with only a few divider values. U-boot
242 * calculates the best approximation for CFG_I2C_SPEED. However the calculated
243 * approximation allways lies below the configured value, never above.
244 */
245#define CFG_I2C_SPEED 100000 /* 100 kHz */
246#define CFG_I2C_SLAVE 0x7F
247
248/*
249 * EEPROM configuration for onboard EEPROM M24C32 (M24C64 should work
250 * also). For other EEPROMs configuration should be verified. On Mini-FAP the
251 * EEPROM (24C64) is on the same I2C address (but on other I2C bus), so the
252 * same configuration could be used.
253 */
254#define CFG_I2C_EEPROM_ADDR 0x50 /* 1010000x */
255#define CFG_I2C_EEPROM_ADDR_LEN 2
256#define CFG_EEPROM_PAGE_WRITE_BITS 5 /* =32 Bytes per write */
257#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 20
258
259/*
260 * HW-Monitor configuration on Mini-FAP
261 */
262#if defined (CONFIG_MINIFAP)
263#define CFG_I2C_HWMON_ADDR 0x2C
264#endif
265
266/* List of I2C addresses to be verified by POST */
267#if defined (CONFIG_TQM5200_AA) || defined (CONFIG_TQM5200_AB)
268#define I2C_ADDR_LIST { CFG_I2C_EEPROM_ADDR, \
269 CFG_I2C_SLAVE }
270#elif defined (CONFIG_TQM5200_AC)
271#define I2C_ADDR_LIST { CFG_I2C_SLAVE }
272#endif
273
274#if defined (CONFIG_MINIFAP)
275#undef I2C_ADDR_LIST
276#define I2C_ADDR_LIST { CFG_I2C_EEPROM_ADDR, \
277 CFG_I2C_HWMON_ADDR, \
278 CFG_I2C_SLAVE }
279#endif
280
281/*
282 * Flash configuration
283 */
284#define CFG_FLASH_BASE TEXT_BASE /* 0xFC000000 */
285
wdenkdc130442004-12-12 22:06:17 +0000286/* use CFI flash driver if no module variant is spezified */
287#define CFG_FLASH_CFI 1 /* Flash is CFI conformant */
288#define CFG_FLASH_CFI_DRIVER 1 /* Use the common driver */
289#define CFG_FLASH_BANKS_LIST { CFG_BOOTCS_START }
290#define CFG_FLASH_EMPTY_INFO
wdenk64519362004-07-11 17:40:54 +0000291#define CFG_FLASH_SIZE 0x02000000 /* 32 MByte */
292#define CFG_MAX_FLASH_SECT 256 /* max num of sects on one chip */
wdenk64519362004-07-11 17:40:54 +0000293
294#if !defined(CFG_LOWBOOT)
wdenk8d3d9ed2005-03-16 16:32:26 +0000295#define CFG_ENV_ADDR (CFG_FLASH_BASE + 0x00760000 + 0x00800000)
wdenk64519362004-07-11 17:40:54 +0000296#else /* CFG_LOWBOOT */
wdenk8d3d9ed2005-03-16 16:32:26 +0000297#define CFG_ENV_ADDR (CFG_FLASH_BASE + 0x00060000)
wdenk64519362004-07-11 17:40:54 +0000298#endif /* CFG_LOWBOOT */
299#define CFG_MAX_FLASH_BANKS 1 /* max num of flash banks
300 (= chip selects) */
wdenk7dd13292004-07-11 20:04:51 +0000301#define CFG_FLASH_ERASE_TOUT 240000 /* Flash Erase Timeout (in ms) */
302#define CFG_FLASH_WRITE_TOUT 500 /* Flash Write Timeout (in ms) */
wdenk64519362004-07-11 17:40:54 +0000303
304
305/*
306 * Environment settings
307 */
308#define CFG_ENV_IS_IN_FLASH 1
309#define CFG_ENV_SIZE 0x10000
310#define CFG_ENV_SECT_SIZE 0x20000
wdenk8d3d9ed2005-03-16 16:32:26 +0000311#define CFG_ENV_ADDR_REDUND (CFG_ENV_ADDR + CFG_ENV_SECT_SIZE)
312#define CFG_ENV_SIZE_REDUND (CFG_ENV_SIZE)
wdenk64519362004-07-11 17:40:54 +0000313
314/*
315 * Memory map
316 */
317#define CFG_MBAR 0xF0000000
318#define CFG_SDRAM_BASE 0x00000000
319#define CFG_DEFAULT_MBAR 0x80000000
320
321/* Use ON-Chip SRAM until RAM will be available */
322#define CFG_INIT_RAM_ADDR MPC5XXX_SRAM
323#ifdef CONFIG_POST
324/* preserve space for the post_word at end of on-chip SRAM */
325#define CFG_INIT_RAM_END MPC5XXX_SRAM_POST_SIZE
326#else
327#define CFG_INIT_RAM_END MPC5XXX_SRAM_SIZE
328#endif
329
330
331#define CFG_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */
332#define CFG_GBL_DATA_OFFSET (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
333#define CFG_INIT_SP_OFFSET CFG_GBL_DATA_OFFSET
334
wdenk8d3d9ed2005-03-16 16:32:26 +0000335#define CFG_MONITOR_BASE TEXT_BASE
wdenk64519362004-07-11 17:40:54 +0000336#if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
337# define CFG_RAMBOOT 1
338#endif
339
wdenk8d3d9ed2005-03-16 16:32:26 +0000340#define CFG_MONITOR_LEN (384 << 10) /* Reserve 384 kB for Monitor */
wdenk64519362004-07-11 17:40:54 +0000341#define CFG_MALLOC_LEN (128 << 10) /* Reserve 128 kB for malloc() */
342#define CFG_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux */
343
344/*
345 * Ethernet configuration
346 */
347#define CONFIG_MPC5xxx_FEC 1
348/*
349 * Define CONFIG_FEC_10MBIT to force FEC at 10Mb
350 */
351/* #define CONFIG_FEC_10MBIT 1 */
352#define CONFIG_PHY_ADDR 0x00
353
354/*
355 * GPIO configuration
356 *
357 * use pin gpio_wkup_6 as second SDRAM chip select (mem_cs1):
358 * Bit 0 (mask: 0x80000000): 1
359 * use ALT CAN position: Bits 2-3 (mask: 0x30000000):
360 * 00 -> No Alternatives, I2C1 is used for onboard EEPROM
wdenk7dd13292004-07-11 20:04:51 +0000361 * 01 -> CAN1 on I2C1, CAN2 on Tmr0/1 do not use on TQM5200 with onboard
362 * EEPROM
wdenk64519362004-07-11 17:40:54 +0000363 * use PSC1 as UART: Bits 28-31 (mask: 0x00000007): 0100
wdenkdc130442004-12-12 22:06:17 +0000364 * use PSC6:
365 * on STK52xx:
366 * use as UART. Pins PSC6_0 to PSC6_3 are used.
wdenk07d7e6b2004-12-16 21:44:03 +0000367 Bits 9:11 (mask: 0x00700000):
wdenkdc130442004-12-12 22:06:17 +0000368 * 101 -> PSC6 : Extended POST test is not available
369 * on MINI-FAP and TQM5200_IB:
370 * use PSC6_1 and PSC6_3 as GPIO: Bits 9:11 (mask: 0x00700000):
371 * 011 -> PSC6 could not be used as UART or CODEC. IrDA still possible.
wdenk64519362004-07-11 17:40:54 +0000372 * GPIO on PSC6_3 is used in post_hotkeys_pressed() to enable extended POST
373 * tests.
374 */
375#if defined (CONFIG_MINIFAP)
wdenkdc130442004-12-12 22:06:17 +0000376#define CFG_GPS_PORT_CONFIG 0x91300004
377#elif defined (CONFIG_STK52XX)
378#define CFG_GPS_PORT_CONFIG 0x81500004
wdenk64519362004-07-11 17:40:54 +0000379#else
wdenkdc130442004-12-12 22:06:17 +0000380#define CFG_GPS_PORT_CONFIG 0x81300004
wdenk64519362004-07-11 17:40:54 +0000381#endif
382
383/*
384 * RTC configuration
385 */
386#define CONFIG_RTC_MPC5200 1 /* use internal MPC5200 RTC */
387
388/*
389 * Miscellaneous configurable options
390 */
391#define CFG_LONGHELP /* undef to save memory */
392#define CFG_PROMPT "=> " /* Monitor Command Prompt */
393#if (CONFIG_COMMANDS & CFG_CMD_KGDB)
394#define CFG_CBSIZE 1024 /* Console I/O Buffer Size */
395#else
396#define CFG_CBSIZE 256 /* Console I/O Buffer Size */
397#endif
398#define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
399#define CFG_MAXARGS 16 /* max number of command args */
400#define CFG_BARGSIZE CFG_CBSIZE /* Boot Argument Buffer Size */
401
402/* Enable an alternate, more extensive memory test */
403#define CFG_ALT_MEMTEST
404
405#define CFG_MEMTEST_START 0x00100000 /* memtest works on */
406#define CFG_MEMTEST_END 0x00f00000 /* 1 ... 15 MB in DRAM */
407
408#define CFG_LOAD_ADDR 0x100000 /* default load address */
409
410#define CFG_HZ 1000 /* decrementer freq: 1 ms ticks */
411
412/*
413 * Enable loopw commando. This has only affect, if CFG_CMD_MEM is defined,
414 * which is normally part of the default commands (CFV_CMD_DFL)
415 */
416#define CONFIG_LOOPW
417
418/*
419 * Various low-level settings
420 */
421#if defined(CONFIG_MPC5200)
422#define CFG_HID0_INIT HID0_ICE | HID0_ICFI
423#define CFG_HID0_FINAL HID0_ICE
424#else
425#define CFG_HID0_INIT 0
426#define CFG_HID0_FINAL 0
427#endif
428
429#define CFG_BOOTCS_START CFG_FLASH_BASE
430#define CFG_BOOTCS_SIZE CFG_FLASH_SIZE
431#ifdef CFG_PCISPEED_66
432#define CFG_BOOTCS_CFG 0x0008DF30 /* for pci_clk = 66 MHz */
433#else
434#define CFG_BOOTCS_CFG 0x0004DF30 /* for pci_clk = 33 MHz */
435#endif
436#define CFG_CS0_START CFG_FLASH_BASE
437#define CFG_CS0_SIZE CFG_FLASH_SIZE
438
wdenkdc130442004-12-12 22:06:17 +0000439/* automatic configuration of chip selects */
440#ifdef CONFIG_CS_AUTOCONF
441#define CONFIG_LAST_STAGE_INIT
442#endif
443
wdenk64519362004-07-11 17:40:54 +0000444/*
445 * SRAM - Do not map below 2 GB in address space, because this area is used
446 * for SDRAM autosizing.
447 */
wdenkdc130442004-12-12 22:06:17 +0000448#if defined CONFIG_TQM5200_AB || defined (CONFIG_CS_AUTOCONF)
wdenk64519362004-07-11 17:40:54 +0000449#define CFG_CS2_START 0xE5000000
wdenkdc130442004-12-12 22:06:17 +0000450#ifdef CONFIG_TQM5200_AB
wdenk64519362004-07-11 17:40:54 +0000451#define CFG_CS2_SIZE 0x80000 /* 512 kByte */
wdenkdc130442004-12-12 22:06:17 +0000452#else /* CONFIG_CS_AUTOCONF */
453#define CFG_CS2_SIZE 0x100000 /* 1 MByte */
454#endif
wdenk64519362004-07-11 17:40:54 +0000455#define CFG_CS2_CFG 0x0004D930
456#endif
457
458/*
459 * Grafic controller - Do not map below 2 GB in address space, because this
460 * area is used for SDRAM autosizing.
461 */
wdenkdc130442004-12-12 22:06:17 +0000462#if defined (CONFIG_TQM5200_AB) || defined (CONFIG_TQM5200_AC) || \
463 defined (CONFIG_CS_AUTOCONF)
wdenk64519362004-07-11 17:40:54 +0000464#define CFG_CS1_START 0xE0000000
465#define CFG_CS1_SIZE 0x4000000 /* 64 MByte */
wdenkda54bc92004-08-04 21:56:49 +0000466#define CFG_CS1_CFG 0x8F48FF70
wdenk64519362004-07-11 17:40:54 +0000467#define SM501_MMIO_BASE CFG_CS1_START + 0x03E00000
468#endif
469
470#define CFG_CS_BURST 0x00000000
471#define CFG_CS_DEADCYCLE 0x33333333
472
473#define CFG_RESET_ADDRESS 0xff000000
474
475/*-----------------------------------------------------------------------
476 * USB stuff
477 *-----------------------------------------------------------------------
478 */
479#define CONFIG_USB_CLOCK 0x0001BBBB
480#define CONFIG_USB_CONFIG 0x00001000
481
482/*-----------------------------------------------------------------------
483 * IDE/ATA stuff Supports IDE harddisk
484 *-----------------------------------------------------------------------
485 */
486
wdenk7dd13292004-07-11 20:04:51 +0000487#undef CONFIG_IDE_8xx_PCCARD /* Use IDE with PC Card Adapter */
wdenk64519362004-07-11 17:40:54 +0000488
wdenk7dd13292004-07-11 20:04:51 +0000489#undef CONFIG_IDE_8xx_DIRECT /* Direct IDE not supported */
490#undef CONFIG_IDE_LED /* LED for ide not supported */
wdenk64519362004-07-11 17:40:54 +0000491
wdenk7dd13292004-07-11 20:04:51 +0000492#define CONFIG_IDE_RESET /* reset for ide supported */
wdenk64519362004-07-11 17:40:54 +0000493#define CONFIG_IDE_PREINIT
494
495#define CFG_IDE_MAXBUS 1 /* max. 1 IDE bus */
496#define CFG_IDE_MAXDEVICE 1 /* max. 1 drive per IDE bus */
497
498#define CFG_ATA_IDE0_OFFSET 0x0000
499
500#define CFG_ATA_BASE_ADDR MPC5XXX_ATA
501
502/* Offset for data I/O */
503#define CFG_ATA_DATA_OFFSET (0x0060)
504
505/* Offset for normal register accesses */
506#define CFG_ATA_REG_OFFSET (CFG_ATA_DATA_OFFSET)
507
508/* Offset for alternate registers */
509#define CFG_ATA_ALT_OFFSET (0x005C)
510
wdenk7dd13292004-07-11 20:04:51 +0000511/* Interval between registers */
512#define CFG_ATA_STRIDE 4
wdenk64519362004-07-11 17:40:54 +0000513
514#endif /* __CONFIG_H */