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#ifndef __CONFIG_H
29#define __CONFIG_H
30
31
32
33
34
35
36#define CONFIG_405GP 1
37#define CONFIG_4xx 1
38#define CONFIG_AR405 1
39
40#define CONFIG_SYS_TEXT_BASE 0xFFFA0000
41
42#define CONFIG_BOARD_EARLY_INIT_F 1
43
44#define CONFIG_SYS_CLK_FREQ 33000000
45
46#define CONFIG_BOARD_TYPES 1
47
48#define CONFIG_BAUDRATE 9600
49#define CONFIG_BOOTDELAY 3
50
51#if 1
52#define CONFIG_BOOTCOMMAND "bootm fff00000"
53#else
54#define CONFIG_BOOTCOMMAND "bootp"
55#endif
56
57#if 0
58#define CONFIG_BOOTARGS "root=/dev/nfs " \
59 "ip=192.168.2.176:192.168.2.190:192.168.2.79:255.255.255.0 " \
60 "nfsroot=192.168.2.190:/home/stefan/cpci405/target_ftest4"
61#else
62#define CONFIG_BOOTARGS "root=/dev/hda1 " \
63 "ip=192.168.2.176:192.168.2.190:192.168.2.79:255.255.255.0"
64
65#endif
66
67#define CONFIG_PREBOOT
68
69#define CONFIG_LOADS_ECHO 1
70#define CONFIG_SYS_LOADS_BAUD_CHANGE 1
71
72#define CONFIG_PPC4xx_EMAC
73#define CONFIG_MII 1
74#define CONFIG_PHY_ADDR 0
75#define CONFIG_LXT971_NO_SLEEP 1
76#define CONFIG_NET_MULTI
77
78
79
80
81
82#define CONFIG_BOOTP_BOOTFILESIZE
83#define CONFIG_BOOTP_BOOTPATH
84#define CONFIG_BOOTP_GATEWAY
85#define CONFIG_BOOTP_HOSTNAME
86
87
88
89
90
91#include <config_cmd_default.h>
92
93#define CONFIG_CMD_DHCP
94#define CONFIG_CMD_PCI
95#define CONFIG_CMD_IRQ
96#define CONFIG_CMD_ELF
97#define CONFIG_CMD_MII
98#undef CONFIG_CMD_NFS
99#define CONFIG_CMD_PING
100#define CONFIG_CMD_BSP
101
102
103#undef CONFIG_WATCHDOG
104
105#define CONFIG_SDRAM_BANK0 1
106
107
108
109
110#define CONFIG_SYS_LONGHELP
111#define CONFIG_SYS_PROMPT "=> "
112#if defined(CONFIG_CMD_KGDB)
113#define CONFIG_SYS_CBSIZE 1024
114#else
115#define CONFIG_SYS_CBSIZE 256
116#endif
117#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
118#define CONFIG_SYS_MAXARGS 16
119#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
120
121#define CONFIG_SYS_DEVICE_NULLDEV 1
122
123#define CONFIG_SYS_CONSOLE_INFO_QUIET 1
124
125#define CONFIG_AUTO_COMPLETE 1
126#define CONFIG_LOOPW 1
127#define CONFIG_MX_CYCLIC 1
128
129#define CONFIG_SYS_MEMTEST_START 0x0400000
130#define CONFIG_SYS_MEMTEST_END 0x0C00000
131
132#define CONFIG_CONS_INDEX 1
133#define CONFIG_SYS_NS16550
134#define CONFIG_SYS_NS16550_SERIAL
135#define CONFIG_SYS_NS16550_REG_SIZE 1
136#define CONFIG_SYS_NS16550_CLK get_serial_clock()
137
138#define CONFIG_SYS_EXT_SERIAL_CLOCK 14745600
139
140
141#define CONFIG_SYS_BAUDRATE_TABLE \
142 { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, \
143 57600, 115200, 230400, 460800, 921600 }
144
145#define CONFIG_SYS_LOAD_ADDR 0x100000
146#define CONFIG_SYS_EXTBDINFO 1
147
148#define CONFIG_SYS_HZ 1000
149
150#define CONFIG_ZERO_BOOTDELAY_CHECK
151
152
153
154
155
156#define PCI_HOST_ADAPTER 0
157#define PCI_HOST_FORCE 1
158#define PCI_HOST_AUTO 2
159
160#define CONFIG_PCI
161#define CONFIG_PCI_HOST PCI_HOST_FORCE
162#define CONFIG_PCI_PNP
163
164
165#define CONFIG_PCI_SCAN_SHOW
166
167#define CONFIG_PCI_CONFIG_HOST_BRIDGE 1
168
169#define CONFIG_PCI_BOOTDELAY 0
170
171#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x12FE
172#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0403
173#define CONFIG_SYS_PCI_PTM1LA 0x00000000
174#define CONFIG_SYS_PCI_PTM1MS 0x80000001
175#define CONFIG_SYS_PCI_PTM1PCI 0x00000000
176#define CONFIG_SYS_PCI_PTM2LA 0xfff00000
177#define CONFIG_SYS_PCI_PTM2MS 0xfff00001
178#define CONFIG_SYS_PCI_PTM2PCI 0x04000000
179
180
181
182
183
184
185#define CONFIG_SYS_SDRAM_BASE 0x00000000
186#define CONFIG_SYS_FLASH_BASE CONFIG_SYS_MONITOR_BASE
187#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
188#define CONFIG_SYS_MONITOR_LEN (~(CONFIG_SYS_TEXT_BASE) + 1)
189#define CONFIG_SYS_MALLOC_LEN (128 * 1024)
190
191
192
193
194
195
196#define CONFIG_SYS_BOOTMAPSZ (8 << 20)
197
198
199
200#define CONFIG_SYS_MAX_FLASH_BANKS 1
201#define CONFIG_SYS_MAX_FLASH_SECT 256
202
203#define CONFIG_SYS_FLASH_ERASE_TOUT 120000
204#define CONFIG_SYS_FLASH_WRITE_TOUT 500
205
206#define CONFIG_SYS_FLASH_WORD_SIZE unsigned short
207#define CONFIG_SYS_FLASH_ADDR0 0x5555
208#define CONFIG_SYS_FLASH_ADDR1 0x2AAA
209
210
211
212
213#define CONFIG_SYS_FLASH_READ0 0x0000
214#define CONFIG_SYS_FLASH_READ1 0x0001
215#define CONFIG_SYS_FLASH_READ2 0x0002
216
217#define CONFIG_SYS_FLASH_EMPTY_INFO
218
219#define CONFIG_ENV_IS_IN_FLASH 1
220#define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SECT_SIZE)
221#define CONFIG_ENV_SECT_SIZE 0x10000
222#define CONFIG_ENV_SIZE 0x04000
223
224#define CONFIG_ENV_ADDR_REDUND (CONFIG_ENV_ADDR - CONFIG_ENV_SECT_SIZE)
225#define CONFIG_ENV_SIZE_REDUND CONFIG_ENV_SIZE
226
227
228
229
230
231
232
233#define FLASH_BASE0_PRELIM 0xFFC00000
234
235
236
237
238
239
240#define CONFIG_SYS_EBC_PB0AP 0x92015480
241#define CONFIG_SYS_EBC_PB0CR 0xFFC5A000
242
243
244#define CONFIG_SYS_EBC_PB1AP 0x01000380
245#define CONFIG_SYS_EBC_PB1CR 0xF0018000
246
247
248#define CONFIG_SYS_EBC_PB2AP 0x01000280
249#define CONFIG_SYS_EBC_PB2CR 0xF0118000
250
251
252#define CONFIG_SYS_EBC_PB3AP 0x01000380
253#define CONFIG_SYS_EBC_PB3CR 0xF0218000
254
255
256#define CONFIG_SYS_EBC_PB4AP 0x01005380
257#define CONFIG_SYS_EBC_PB4CR 0xF031C000
258
259
260#define CONFIG_SYS_EBC_PB5AP 0x92015480
261#define CONFIG_SYS_EBC_PB5CR 0xFF85A000
262
263
264
265
266#define CONFIG_SYS_INIT_DCACHE_CS 7
267
268#define CONFIG_SYS_INIT_RAM_ADDR 0x40000000
269#define CONFIG_SYS_INIT_RAM_SIZE 0x2000
270#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
271#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
272
273#endif
274