1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41#ifndef __CONFIG_H
42#define __CONFIG_H
43
44
45
46
47
48
49#define CONFIG_MPC824X 1
50#define CONFIG_MPC8245 1
51#define CONFIG_UTX8245 1
52
53#define CONFIG_SYS_TEXT_BASE 0xFFF00000
54
55#define DEBUG 1
56
57#define CONFIG_IDENT_STRING " [UTX5] "
58
59#define CONFIG_CONS_INDEX 1
60#define CONFIG_BAUDRATE 57600
61#define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
62
63#define CONFIG_BOOTDELAY 2
64#define CONFIG_AUTOBOOT_PROMPT "autoboot in %d seconds\n", bootdelay
65#define CONFIG_BOOTCOMMAND "run nfsboot"
66#define CONFIG_BOOTARGS "root=/dev/ram console=ttyS0,57600"
67#define CONFIG_ETHADDR 00:AA:00:14:00:05
68#define CONFIG_SERVERIP 10.8.17.105
69#define CONFIG_SYS_TFTP_LOADADDR 10000
70
71#define CONFIG_EXTRA_ENV_SETTINGS \
72 "kernel_addr=FFA00000\0" \
73 "ramdisk_addr=FF800000\0" \
74 "u-boot_startaddr=FFB00000\0" \
75 "u-boot_endaddr=FFB2FFFF\0" \
76 "nfsargs=setenv bootargs console=ttyS0,${baudrate} root=/dev/nfs rw \
77nfsroot=${nfsrootip}:${rootpath} ip=dhcp\0" \
78 "ramargs=setenv bootargs console=ttyS0,${baudrate} root=/dev/ram0\0" \
79 "smargs=setenv bootargs console=ttyS0,${baudrate} root=/dev/mtdblock1 ro\0" \
80 "fwargs=setenv bootargs console=ttyS0,${baudrate} root=/dev/sda2 ro\0" \
81 "nfsboot=run nfsargs;bootm ${kernel_addr}\0" \
82 "ramboot=run ramargs;bootm ${kernel_addr} ${ramdisk_addr}\0" \
83 "smboot=run smargs;bootm ${kernel_addr} ${ramdisk_addr}\0" \
84 "fwboot=run fwargs;bootm ${kernel_addr} ${ramdisk_addr}\0" \
85 "update_u-boot=tftp ${loadaddr} /bdi2000/u-boot.bin;protect off \
86${u-boot_startaddr} ${u-boot_endaddr};era ${u-boot_startaddr} \
87${u-boot_endaddr};cp.b ${loadaddr} ${u-boot_startaddr} ${filesize};\
88protect on ${u-boot_startaddr} ${u-boot_endaddr}"
89
90#define CONFIG_ENV_OVERWRITE
91
92
93
94
95
96#define CONFIG_BOOTP_BOOTFILESIZE
97#define CONFIG_BOOTP_BOOTPATH
98#define CONFIG_BOOTP_GATEWAY
99#define CONFIG_BOOTP_HOSTNAME
100
101
102
103
104
105#include <config_cmd_default.h>
106
107#define CONFIG_CMD_BDI
108#define CONFIG_CMD_PCI
109#define CONFIG_CMD_FLASH
110#define CONFIG_CMD_MEMORY
111#define CONFIG_CMD_SAVEENV
112#define CONFIG_CMD_CONSOLE
113#define CONFIG_CMD_LOADS
114#define CONFIG_CMD_LOADB
115#define CONFIG_CMD_IMI
116#define CONFIG_CMD_CACHE
117#define CONFIG_CMD_REGINFO
118#define CONFIG_CMD_NET
119#define CONFIG_CMD_DHCP
120#define CONFIG_CMD_I2C
121#define CONFIG_CMD_DATE
122
123
124
125
126
127#define CONFIG_SYS_LONGHELP
128#define CONFIG_SYS_PROMPT "=> "
129#define CONFIG_SYS_CBSIZE 256
130
131
132#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
133
134#define CONFIG_SYS_MAXARGS 16
135#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
136#define CONFIG_SYS_LOAD_ADDR 0x00100000
137
138
139
140
141
142
143#define CONFIG_PCI
144#undef CONFIG_PCI_PNP
145#define CONFIG_PCI_SCAN_SHOW
146#define CONFIG_NET_MULTI
147#define CONFIG_EEPRO100
148#define CONFIG_SYS_RX_ETH_BUFFER 8
149#define CONFIG_EEPRO100_SROM_WRITE
150
151#define PCI_ENET0_IOADDR 0xF0000000
152#define PCI_ENET0_MEMADDR 0xF0000000
153
154#define PCI_FIREWIRE_IOADDR 0xF1000000
155#define PCI_FIREWIRE_MEMADDR 0xF1000000
156
157
158
159
160
161
162
163
164
165
166
167
168
169#define CONFIG_SYS_SDRAM_BASE 0x00000000
170#define CONFIG_SYS_MAX_RAM_SIZE 0x10000000
171
172
173
174
175
176
177
178#define CONFIG_SYS_RESET_ADDRESS 0xFFF00100
179
180#define CONFIG_SYS_EUMB_ADDR 0xFC000000
181
182#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
183
184#define CONFIG_SYS_MONITOR_LEN (256 << 10)
185#define CONFIG_SYS_MALLOC_LEN (128 << 10)
186
187
188#define CONFIG_SYS_MEMTEST_START 0x00003000
189#define CONFIG_SYS_MEMTEST_END 0x0ff8ffa7
190
191
192
193
194
195
196#define CONFIG_SYS_INIT_DATA_SIZE 128
197
198#define CONFIG_SYS_INIT_RAM_ADDR 0x40000000
199#define CONFIG_SYS_INIT_RAM_SIZE 0x1000
200#define CONFIG_SYS_INIT_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - CONFIG_SYS_INIT_DATA_SIZE)
201#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
202
203
204
205
206#define CONFIG_SYS_NS16550
207#define CONFIG_SYS_NS16550_SERIAL
208
209#define CONFIG_SYS_NS16550_REG_SIZE 1
210
211#if (CONFIG_CONS_INDEX == 1 || CONFIG_CONS_INDEX == 2)
212# define CONFIG_SYS_NS16550_CLK get_bus_freq(0)
213#else
214# define CONFIG_SYS_NS16550_CLK 33000000
215#endif
216
217#define CONFIG_SYS_NS16550_COM1 (CONFIG_SYS_EUMB_ADDR + 0x4500)
218#define CONFIG_SYS_NS16550_COM2 (CONFIG_SYS_EUMB_ADDR + 0x4600)
219#define CONFIG_SYS_NS16550_COM3 0xFF000000
220#define CONFIG_SYS_NS16550_COM4 0xFF000008
221
222
223
224
225
226
227
228
229#define CONFIG_SYS_CLK_FREQ 33000000
230#define CONFIG_SYS_HZ 1000
231
232
233
234
235
236
237
238#if 1
239#define CONFIG_HARD_I2C 1
240#undef CONFIG_SOFT_I2C
241#define CONFIG_SYS_I2C_SPEED 400000
242#define CONFIG_SYS_I2C_SLAVE 0x7F
243#endif
244
245#define CONFIG_RTC_PCF8563 1
246
247#define CONFIG_SYS_I2C_RTC_ADDR 0x51
248
249
250
251
252
253
254
255#define CONFIG_SYS_ROMNAL 0
256#define CONFIG_SYS_ROMFAL 10
257
258
259#define CONFIG_SYS_BANK7_ROW 0
260#define CONFIG_SYS_BANK6_ROW 0
261#define CONFIG_SYS_BANK5_ROW 0
262#define CONFIG_SYS_BANK4_ROW 0
263#define CONFIG_SYS_BANK3_ROW 0
264#define CONFIG_SYS_BANK2_ROW 0
265#define CONFIG_SYS_BANK1_ROW 2
266#define CONFIG_SYS_BANK0_ROW 2
267
268
269#define CONFIG_SYS_REFINT 480
270
271
272#define CONFIG_SYS_BSTOPRE 1023
273
274
275
276#define CONFIG_SYS_REFREC 7
277
278
279#define CONFIG_SYS_PRETOACT 2
280#define CONFIG_SYS_ACTTOPRE 7
281#define CONFIG_SYS_SDMODE_CAS_LAT 3
282#define CONFIG_SYS_SDMODE_WRAP 0
283#define CONFIG_SYS_ACTORW 2
284#define CONFIG_SYS_DBUS_SIZE2 1
285#define CONFIG_SYS_REGISTERD_TYPE_BUFFER 1
286#define CONFIG_SYS_EXTROM 0
287#define CONFIG_SYS_REGDIMM 0
288
289
290#define CONFIG_SYS_PGMAX 50
291
292
293
294#define CONFIG_SYS_SDRAM_DSCD 0x20
295
296
297#if 0
298#define CONFIG_SYS_DLL_MAX_DELAY 0x04
299#else
300#define CONFIG_SYS_DLL_MAX_DELAY 0
301#endif
302#if 0
303#define CONFIG_SYS_DLL_EXTEND 0x80
304#else
305#define CONFIG_SYS_DLL_EXTEND 0
306#endif
307#define CONFIG_SYS_PCI_HOLD_DEL 0x20
308
309
310
311
312
313
314
315
316
317#define CONFIG_SYS_BANK0_START 0x00000000
318#define CONFIG_SYS_BANK0_END (CONFIG_SYS_MAX_RAM_SIZE/2 - 1)
319#define CONFIG_SYS_BANK0_ENABLE 1
320#define CONFIG_SYS_BANK1_START CONFIG_SYS_MAX_RAM_SIZE/2
321#define CONFIG_SYS_BANK1_END (CONFIG_SYS_MAX_RAM_SIZE - 1)
322#define CONFIG_SYS_BANK1_ENABLE 1
323#define CONFIG_SYS_BANK2_START 0x3ff00000
324#define CONFIG_SYS_BANK2_END 0x3fffffff
325#define CONFIG_SYS_BANK2_ENABLE 0
326#define CONFIG_SYS_BANK3_START 0x3ff00000
327#define CONFIG_SYS_BANK3_END 0x3fffffff
328#define CONFIG_SYS_BANK3_ENABLE 0
329#define CONFIG_SYS_BANK4_START 0x3ff00000
330#define CONFIG_SYS_BANK4_END 0x3fffffff
331#define CONFIG_SYS_BANK4_ENABLE 0
332#define CONFIG_SYS_BANK5_START 0x3ff00000
333#define CONFIG_SYS_BANK5_END 0x3fffffff
334#define CONFIG_SYS_BANK5_ENABLE 0
335#define CONFIG_SYS_BANK6_START 0x3ff00000
336#define CONFIG_SYS_BANK6_END 0x3fffffff
337#define CONFIG_SYS_BANK6_ENABLE 0
338#define CONFIG_SYS_BANK7_START 0x3ff00000
339#define CONFIG_SYS_BANK7_END 0x3fffffff
340#define CONFIG_SYS_BANK7_ENABLE 0
341
342
343
344
345#define CONFIG_SYS_ODCR 0xe5
346
347
348
349
350#define CONFIG_SYS_ERRENR1 0x11
351
352
353#define CONFIG_SYS_IBAT0L (CONFIG_SYS_SDRAM_BASE | BATL_PP_10 | BATL_MEMCOHERENCE)
354
355#define CONFIG_SYS_IBAT0U (CONFIG_SYS_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
356
357
358#define CONFIG_SYS_IBAT1L (CONFIG_SYS_INIT_RAM_ADDR | BATL_PP_10 | BATL_MEMCOHERENCE)
359#define CONFIG_SYS_IBAT1U (CONFIG_SYS_INIT_RAM_ADDR | BATU_BL_128K | BATU_VS | BATU_VP)
360
361
362#define CONFIG_SYS_IBAT2L (CONFIG_SYS_SDRAM_BASE + 0x10000000 | BATL_PP_10 | BATL_MEMCOHERENCE)
363#define CONFIG_SYS_IBAT2U (CONFIG_SYS_SDRAM_BASE + 0x10000000| BATU_BL_256M | BATU_VS | BATU_VP)
364
365
366
367
368
369
370#define CONFIG_SYS_IBAT3L (0xF0000000 | BATL_PP_10 | BATL_CACHEINHIBIT)
371#define CONFIG_SYS_IBAT3U (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
372
373#define CONFIG_SYS_DBAT0L CONFIG_SYS_IBAT0L
374#define CONFIG_SYS_DBAT0U CONFIG_SYS_IBAT0U
375#define CONFIG_SYS_DBAT1L CONFIG_SYS_IBAT1L
376#define CONFIG_SYS_DBAT1U CONFIG_SYS_IBAT1U
377#define CONFIG_SYS_DBAT2L CONFIG_SYS_IBAT2L
378#define CONFIG_SYS_DBAT2U CONFIG_SYS_IBAT2U
379#define CONFIG_SYS_DBAT3L CONFIG_SYS_IBAT3L
380#define CONFIG_SYS_DBAT3U CONFIG_SYS_IBAT3U
381
382
383
384
385
386
387#define CONFIG_SYS_BOOTMAPSZ (8 << 20)
388
389
390
391
392#define CONFIG_SYS_FLASH_BASE 0xFF800000
393#define CONFIG_SYS_MAX_FLASH_BANKS 1
394
395
396
397#define CONFIG_ENV_IS_IN_FLASH 1
398
399#if 1
400#define CONFIG_SYS_MAX_FLASH_SECT 64
401#define CONFIG_ENV_ADDR 0xFFBF0000
402#define CONFIG_ENV_SECT_SIZE (64*1024)
403#else
404#define CONFIG_SYS_MAX_FLASH_SECT 35
405#define CONFIG_ENV_ADDR 0xFF9FA000
406#define CONFIG_ENV_SECT_SIZE (8*1024)
407#endif
408
409#define CONFIG_ENV_SIZE CONFIG_ENV_SECT_SIZE
410#define CONFIG_ENV_OFFSET 0
411
412#define CONFIG_SYS_FLASH_ERASE_TOUT 120000
413#define CONFIG_SYS_FLASH_WRITE_TOUT 500
414
415#if CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE
416#undef CONFIG_SYS_RAMBOOT
417#else
418#define CONFIG_SYS_RAMBOOT
419#endif
420
421
422
423
424
425#define CONFIG_SYS_CACHELINE_SIZE 32
426#if defined(CONFIG_CMD_KGDB)
427# define CONFIG_SYS_CACHELINE_SHIFT 5
428#endif
429
430#endif
431