1
2
3
4
5
6
7
8
9
10
11
12#ifndef __CONFIG_H
13#define __CONFIG_H
14
15
16
17
18#ifdef CONFIG_PCI
19#define CONFIG_PCI_INDIRECT_BRIDGE
20#define CONFIG_PCI1
21#endif
22
23#ifdef CONFIG_66
24#define CONFIG_SYS_CLK_DIV 1
25#endif
26
27#ifdef CONFIG_33
28#define CONFIG_SYS_CLK_DIV 2
29#endif
30
31#ifdef CONFIG_PCIE
32#define CONFIG_PCIE1
33#endif
34
35
36
37
38
39
40
41
42
43#undef CONFIG_SYS_ALT_BOOT
44
45#undef CONFIG_RIO
46
47#ifdef CONFIG_PCI
48#define CONFIG_FSL_PCI_INIT
49#define CONFIG_SYS_PCI_64BIT 1
50#endif
51
52#define CONFIG_ENV_OVERWRITE
53
54#define CONFIG_INTERRUPTS
55
56
57
58
59#ifndef CONFIG_SYS_CLK_DIV
60#define CONFIG_SYS_CLK_DIV 1
61#endif
62#define CONFIG_SYS_CLK_FREQ (66000000 / CONFIG_SYS_CLK_DIV)
63
64
65
66
67#define CONFIG_L2_CACHE
68#define CONFIG_BTB
69
70
71
72
73#define CONFIG_ENABLE_36BIT_PHYS 1
74
75#undef CONFIG_SYS_DRAM_TEST
76#define CONFIG_SYS_MEMTEST_START 0x00200000
77#define CONFIG_SYS_MEMTEST_END 0x00400000
78
79#define CONFIG_SYS_CCSRBAR 0xe0000000
80#define CONFIG_SYS_CCSRBAR_PHYS_LOW CONFIG_SYS_CCSRBAR
81
82
83#undef CONFIG_DDR_ECC
84
85
86
87
88
89
90
91
92#undef CONFIG_SPD_EEPROM
93#undef CONFIG_DDR_SPD
94
95#define CONFIG_ECC_INIT_VIA_DDRCONTROLLER
96#define CONFIG_MEM_INIT_VALUE 0xDeadBeef
97
98#define CONFIG_SYS_DDR_SDRAM_BASE 0x00000000
99#define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_DDR_SDRAM_BASE
100#define CONFIG_VERY_BIG_RAM
101
102#define CONFIG_DIMM_SLOTS_PER_CTLR 1
103#define CONFIG_CHIP_SELECTS_PER_CTRL 2
104
105
106
107
108
109
110#define SPD_EEPROM_ADDRESS 0x51
111#define ALT_SPD_EEPROM_ADDRESS 0x53
112
113
114
115
116#ifndef CONFIG_SPD_EEPROM
117 #define CONFIG_SYS_SDRAM_SIZE 256
118 #define CONFIG_SYS_DDR_CONTROL 0xc300c000
119#endif
120
121#undef CONFIG_CLOCKS_IN_MHZ
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151#define CONFIG_SYS_BR0_8M 0xff800801
152#define CONFIG_SYS_BR0_64M 0xfc001801
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169#define CONFIG_SYS_BR6_8M 0xef800801
170#define CONFIG_SYS_BR6_64M 0xec001801
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190#define CONFIG_SYS_OR0_8M 0xff806e65
191#define CONFIG_SYS_OR0_64M 0xfc006e65
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210#define CONFIG_SYS_OR6_8M 0xff806e65
211#define CONFIG_SYS_OR6_64M 0xfc006e65
212
213#ifndef CONFIG_SYS_ALT_BOOT
214#define CONFIG_SYS_BOOT_BLOCK 0xff800000
215#define CONFIG_SYS_ALT_FLASH 0xec000000
216
217#define CONFIG_SYS_BR0_PRELIM CONFIG_SYS_BR0_8M
218#define CONFIG_SYS_OR0_PRELIM CONFIG_SYS_OR0_8M
219
220#define CONFIG_SYS_BR6_PRELIM CONFIG_SYS_BR6_64M
221#define CONFIG_SYS_OR6_PRELIM CONFIG_SYS_OR6_64M
222#else
223#define CONFIG_SYS_BOOT_BLOCK 0xfc000000
224#define CONFIG_SYS_ALT_FLASH 0xef800000
225
226#define CONFIG_SYS_BR0_PRELIM CONFIG_SYS_BR0_64M
227#define CONFIG_SYS_OR0_PRELIM CONFIG_SYS_OR0_64M
228
229#define CONFIG_SYS_BR6_PRELIM CONFIG_SYS_BR6_8M
230#define CONFIG_SYS_OR6_PRELIM CONFIG_SYS_OR6_8M
231#endif
232
233#define CONFIG_SYS_FLASH_BASE CONFIG_SYS_BOOT_BLOCK
234#define CONFIG_SYS_FLASH_BANKS_LIST {CONFIG_SYS_FLASH_BASE, \
235 CONFIG_SYS_ALT_FLASH}
236#define CONFIG_SYS_MAX_FLASH_BANKS 2
237#define CONFIG_SYS_MAX_FLASH_SECT 256
238#undef CONFIG_SYS_FLASH_CHECKSUM
239#define CONFIG_SYS_FLASH_ERASE_TOUT 60000
240#define CONFIG_SYS_FLASH_WRITE_TOUT 500
241
242#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
243
244#define CONFIG_SYS_FLASH_EMPTY_INFO
245
246
247
248#define CONFIG_SYS_BR5_PRELIM 0xf8000801
249#define CONFIG_SYS_OR5_PRELIM 0xff006e65
250#define CONFIG_SYS_EPLD_BASE 0xf8000000
251#define CONFIG_SYS_LED_DISP_BASE 0xf8000000
252#define CONFIG_SYS_USER_SWITCHES_BASE 0xf8100000
253#define CONFIG_SYS_BD_REV 0xf8300000
254#define CONFIG_SYS_EEPROM_BASE 0xf8b00000
255
256
257
258
259
260
261
262
263#define CONFIG_SYS_LBC_SDRAM_BASE 0xf0000000
264#define CONFIG_SYS_LBC_SDRAM_SIZE 128
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282#define CONFIG_SYS_BR3_PRELIM 0xf0001861
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298#define CONFIG_SYS_OR3_PRELIM 0xfc006cc0
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316#define CONFIG_SYS_BR4_PRELIM 0xf4001861
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332#define CONFIG_SYS_OR4_PRELIM 0xfc006cc0
333
334#define CONFIG_SYS_LBC_LCRR 0x00000002
335#define CONFIG_SYS_LBC_LBCR 0x00000000
336#define CONFIG_SYS_LBC_LSRT 0x20000000
337#define CONFIG_SYS_LBC_MRTPR 0x00000000
338
339
340
341
342#define CONFIG_SYS_LBC_LSDMR_COMMON ( LSDMR_RFCR16 \
343 | LSDMR_BSMA1516 \
344 | LSDMR_PRETOACT3 \
345 | LSDMR_ACTTORW3 \
346 | LSDMR_BUFCMD \
347 | LSDMR_BL8 \
348 | LSDMR_WRC2 \
349 | LSDMR_CL3 \
350 )
351
352#define CONFIG_SYS_LBC_LSDMR_PCHALL \
353 (CONFIG_SYS_LBC_LSDMR_COMMON | LSDMR_OP_PCHALL)
354#define CONFIG_SYS_LBC_LSDMR_ARFRSH \
355 (CONFIG_SYS_LBC_LSDMR_COMMON | LSDMR_OP_ARFRSH)
356#define CONFIG_SYS_LBC_LSDMR_MRW \
357 (CONFIG_SYS_LBC_LSDMR_COMMON | LSDMR_OP_MRW)
358#define CONFIG_SYS_LBC_LSDMR_RFEN \
359 (CONFIG_SYS_LBC_LSDMR_COMMON | LSDMR_RFEN)
360
361#define CONFIG_SYS_INIT_RAM_LOCK 1
362#define CONFIG_SYS_INIT_RAM_ADDR 0xe4010000
363#define CONFIG_SYS_INIT_RAM_SIZE 0x4000
364
365#define CONFIG_SYS_INIT_L2_ADDR 0xf8f80000
366
367#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
368#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
369
370
371
372
373
374
375
376
377#define CONFIG_SYS_MONITOR_LEN (~CONFIG_SYS_TEXT_BASE + 1)
378#define CONFIG_SYS_MALLOC_LEN (1024 * 1024)
379
380
381#define CONFIG_SYS_NS16550_SERIAL
382#define CONFIG_SYS_NS16550_REG_SIZE 1
383#define CONFIG_SYS_NS16550_CLK (400000000 / CONFIG_SYS_CLK_DIV)
384
385#define CONFIG_SYS_BAUDRATE_TABLE \
386 {300, 600, 1200, 2400, 4800, 9600, 19200, 38400,115200}
387
388#define CONFIG_SYS_NS16550_COM1 (CONFIG_SYS_CCSRBAR+0x4500)
389#define CONFIG_SYS_NS16550_COM2 (CONFIG_SYS_CCSRBAR+0x4600)
390
391
392
393
394#define CONFIG_SYS_I2C
395#define CONFIG_SYS_I2C_FSL
396#define CONFIG_SYS_FSL_I2C_SPEED 400000
397#define CONFIG_SYS_FSL_I2C_SLAVE 0x7F
398#define CONFIG_SYS_FSL_I2C_OFFSET 0x3000
399#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50
400
401
402
403
404
405#define CONFIG_SYS_PCI_VIRT 0x80000000
406#define CONFIG_SYS_PCI_PHYS 0x80000000
407
408#define CONFIG_SYS_PCI1_MEM_VIRT 0x80000000
409#define CONFIG_SYS_PCI1_MEM_BUS 0x80000000
410#define CONFIG_SYS_PCI1_MEM_PHYS 0x80000000
411#define CONFIG_SYS_PCI1_MEM_SIZE 0x20000000
412#define CONFIG_SYS_PCI1_IO_VIRT 0xe2000000
413#define CONFIG_SYS_PCI1_IO_BUS 0x00000000
414#define CONFIG_SYS_PCI1_IO_PHYS 0xe2000000
415#define CONFIG_SYS_PCI1_IO_SIZE 0x00800000
416
417#ifdef CONFIG_PCIE1
418#define CONFIG_SYS_PCIE1_MEM_VIRT 0xa0000000
419#define CONFIG_SYS_PCIE1_MEM_BUS 0xa0000000
420#define CONFIG_SYS_PCIE1_MEM_PHYS 0xa0000000
421#define CONFIG_SYS_PCIE1_MEM_SIZE 0x20000000
422#define CONFIG_SYS_PCIE1_IO_VIRT 0xe2800000
423#define CONFIG_SYS_PCIE1_IO_BUS 0x00000000
424#define CONFIG_SYS_PCIE1_IO_PHYS 0xe2800000
425#define CONFIG_SYS_PCIE1_IO_SIZE 0x00800000
426#endif
427
428#ifdef CONFIG_RIO
429
430
431
432#define CONFIG_SYS_RIO_MEM_BASE 0xC0000000
433#define CONFIG_SYS_RIO_MEM_SIZE 0x20000000
434#endif
435
436#if defined(CONFIG_PCI)
437#undef CONFIG_EEPRO100
438#undef CONFIG_TULIP
439
440#define CONFIG_PCI_SCAN_SHOW
441
442#endif
443
444#if defined(CONFIG_TSEC_ENET)
445
446#define CONFIG_TSEC1 1
447#define CONFIG_TSEC1_NAME "eTSEC0"
448#define CONFIG_TSEC2 1
449#define CONFIG_TSEC2_NAME "eTSEC1"
450#undef CONFIG_MPC85XX_FEC
451
452#define TSEC1_PHY_ADDR 0x19
453#define TSEC2_PHY_ADDR 0x1a
454
455#define TSEC1_PHYIDX 0
456#define TSEC2_PHYIDX 0
457
458#define TSEC1_FLAGS TSEC_GIGABIT
459#define TSEC2_FLAGS TSEC_GIGABIT
460
461
462#define CONFIG_ETHPRIME "eTSEC0"
463#endif
464
465#define CONFIG_LOADS_ECHO 1
466#define CONFIG_SYS_LOADS_BAUD_CHANGE 1
467
468
469
470
471#define CONFIG_BOOTP_BOOTFILESIZE
472
473#undef CONFIG_WATCHDOG
474
475
476
477
478#define CONFIG_SYS_LOAD_ADDR 0x2000000
479
480
481
482
483
484
485#define CONFIG_SYS_BOOTMAPSZ (8 << 20)
486
487#if defined(CONFIG_CMD_KGDB)
488#define CONFIG_KGDB_BAUDRATE 230400
489#endif
490
491
492
493
494#if defined(CONFIG_TSEC_ENET)
495#define CONFIG_HAS_ETH0
496#define CONFIG_HAS_ETH1
497#endif
498
499#define CONFIG_IPADDR 192.168.0.55
500
501#define CONFIG_HOSTNAME "sbc8548"
502#define CONFIG_ROOTPATH "/opt/eldk/ppc_85xx"
503#define CONFIG_BOOTFILE "/uImage"
504#define CONFIG_UBOOTPATH /u-boot.bin
505
506#define CONFIG_SERVERIP 192.168.0.2
507#define CONFIG_GATEWAYIP 192.168.0.1
508#define CONFIG_NETMASK 255.255.255.0
509
510#define CONFIG_LOADADDR 1000000
511
512#define CONFIG_EXTRA_ENV_SETTINGS \
513"netdev=eth0\0" \
514"uboot=" __stringify(CONFIG_UBOOTPATH) "\0" \
515"tftpflash=tftpboot $loadaddr $uboot; " \
516 "protect off " __stringify(CONFIG_SYS_TEXT_BASE) " +$filesize; " \
517 "erase " __stringify(CONFIG_SYS_TEXT_BASE) " +$filesize; " \
518 "cp.b $loadaddr " __stringify(CONFIG_SYS_TEXT_BASE) " $filesize; " \
519 "protect on " __stringify(CONFIG_SYS_TEXT_BASE) " +$filesize; " \
520 "cmp.b $loadaddr " __stringify(CONFIG_SYS_TEXT_BASE) " $filesize\0" \
521"consoledev=ttyS0\0" \
522"ramdiskaddr=2000000\0" \
523"ramdiskfile=uRamdisk\0" \
524"fdtaddr=1e00000\0" \
525"fdtfile=sbc8548.dtb\0"
526
527#define CONFIG_NFSBOOTCOMMAND \
528 "setenv bootargs root=/dev/nfs rw " \
529 "nfsroot=$serverip:$rootpath " \
530 "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off " \
531 "console=$consoledev,$baudrate $othbootargs;" \
532 "tftp $loadaddr $bootfile;" \
533 "tftp $fdtaddr $fdtfile;" \
534 "bootm $loadaddr - $fdtaddr"
535
536#define CONFIG_RAMBOOTCOMMAND \
537 "setenv bootargs root=/dev/ram rw " \
538 "console=$consoledev,$baudrate $othbootargs;" \
539 "tftp $ramdiskaddr $ramdiskfile;" \
540 "tftp $loadaddr $bootfile;" \
541 "tftp $fdtaddr $fdtfile;" \
542 "bootm $loadaddr $ramdiskaddr $fdtaddr"
543
544#define CONFIG_BOOTCOMMAND CONFIG_RAMBOOTCOMMAND
545
546#endif
547