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_CSB472 1
39#define CONFIG_BOARD_EARLY_INIT_F 1
40#define CONFIG_LAST_STAGE_INIT 1
41#define CONFIG_SYS_CLK_FREQ 25000000
42
43
44
45
46
47
48#if 0
49#define CONFIG_BOOTDELAY -1
50#else
51#define CONFIG_BOOTDELAY 3
52#endif
53
54#define CONFIG_ZERO_BOOTDELAY_CHECK
55
56#if 1
57#undef CONFIG_BOOTARGS
58#define CONFIG_BOOTCOMMAND \
59 "setenv bootargs console=ttyS0,38400 debug " \
60 "root=/dev/ram rw ramdisk_size=4096 " \
61 "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; " \
62 "bootm ff800000 ff900000"
63#endif
64
65#if 0
66#undef CONFIG_BOOTARGS
67#define CONFIG_BOOTCOMMAND \
68 "bootp; " \
69 "setenv bootargs console=ttyS0,38400 debug " \
70 "root=/dev/nfs rw nfsroot=${serverip}:${rootpath} " \
71 "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; " \
72 "bootm"
73#endif
74
75
76
77
78#define CONFIG_BOOTP_SUBNETMASK
79#define CONFIG_BOOTP_GATEWAY
80#define CONFIG_BOOTP_HOSTNAME
81#define CONFIG_BOOTP_BOOTPATH
82#define CONFIG_BOOTP_BOOTFILESIZE
83#define CONFIG_BOOTP_DNS2
84
85
86
87
88
89#include <config_cmd_default.h>
90
91#define CONFIG_CMD_ASKENV
92#define CONFIG_CMD_BEDBUG
93#define CONFIG_CMD_ELF
94#define CONFIG_CMD_IRQ
95#define CONFIG_CMD_I2C
96#define CONFIG_CMD_PCI
97#define CONFIG_CMD_DATE
98#define CONFIG_CMD_MII
99#define CONFIG_CMD_PING
100#define CONFIG_CMD_DHCP
101
102
103
104
105
106#define CONFIG_LOADS_ECHO 1
107#define CONFIG_SYS_LOADS_BAUD_CHANGE 1
108
109
110
111
112
113#if defined(CONFIG_CMD_KGDB)
114#define CONFIG_KGDB_BAUDRATE 230400
115#define CONFIG_KGDB_SER_INDEX 2
116#endif
117
118
119
120
121
122#undef CONFIG_SYS_HUSH_PARSER
123#ifdef CONFIG_SYS_HUSH_PARSER
124#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
125#endif
126
127#define CONFIG_SYS_LONGHELP
128#define CONFIG_SYS_PROMPT "=> "
129#if defined(CONFIG_CMD_KGDB)
130#define CONFIG_SYS_CBSIZE 1024
131#else
132#define CONFIG_SYS_CBSIZE 256
133#endif
134#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
135#define CONFIG_SYS_MAXARGS 16
136#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
137
138#define CONFIG_SYS_MEMTEST_START 0x0400000
139#define CONFIG_SYS_MEMTEST_END 0x0C00000
140
141#define CONFIG_SYS_HZ 1000
142#define CONFIG_SYS_EXTBDINFO 1
143#define CONFIG_SYS_LOAD_ADDR 0x100000
144
145
146
147
148
149
150#define CONFIG_SYS_BOOTMAPSZ (8 << 20)
151
152
153
154
155
156#undef CONFIG_WATCHDOG
157
158
159
160
161
162#undef CONFIG_SYS_EXT_SERIAL_CLOCK
163#define CONFIG_SYS_BASE_BAUD 691200
164#define CONFIG_BAUDRATE 38400
165#define CONFIG_SYS_BAUDRATE_TABLE \
166 { 300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200, 230400 }
167
168
169
170
171
172#define CONFIG_HARD_I2C 1
173#define CONFIG_SYS_I2C_SPEED 100000
174#define CONFIG_SYS_I2C_SLAVE 0x7F
175
176
177
178
179
180#define CONFIG_PPC4xx_EMAC
181#define CONFIG_MII 1
182#define CONFIG_PHY_ADDR 0
183#define CONFIG_PHY_CMD_DELAY 40
184
185#define CONFIG_PHY_RESET_DELAY 300
186#define CONFIG_NET_MULTI
187
188
189
190
191
192
193
194#define CONFIG_RTC_DS1307
195
196
197
198
199
200#define CONFIG_PCI
201#define PCI_HOST_ADAPTER 0
202#define PCI_HOST_FORCE 1
203#define PCI_HOST_AUTO 2
204
205#define CONFIG_PCI_HOST PCI_HOST_FORCE
206#define CONFIG_PCI_PNP
207
208#undef CONFIG_PCI_SCAN_SHOW
209#define CONFIG_PCI_BOOTDELAY 0
210
211#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x0000
212#define CONFIG_SYS_PCI_SUBSYS_DEVICEID 0x0000
213#define CONFIG_SYS_PCI_PTM1LA 0x00000000
214#define CONFIG_SYS_PCI_PTM1MS 0x80000001
215#define CONFIG_SYS_PCI_PTM1PCI 0x00000000
216#define CONFIG_SYS_PCI_PTM2LA 0x00000000
217#define CONFIG_SYS_PCI_PTM2MS 0x00000000
218#define CONFIG_SYS_PCI_PTM2PCI 0x04000000
219
220
221
222
223
224#undef CONFIG_IDE_PCMCIA
225#undef CONFIG_IDE_LED
226#undef CONFIG_IDE_RESET
227
228
229
230
231
232#define CONFIG_ENV_IS_IN_FLASH 1
233#undef CONFIG_ENV_IS_IN_NVRAM
234#undef CONFIG_ENV_IS_IN_EEPROM
235
236
237
238
239
240
241
242
243#define CONFIG_SYS_SDRAM_BASE 0x00000000
244#define CONFIG_SYS_FLASH_BASE 0xFF800000
245#define CONFIG_SYS_FLASH_SIZE 0x00800000
246#define CONFIG_SYS_MONITOR_BASE TEXT_BASE
247#define CONFIG_SYS_MONITOR_LEN (256 * 1024)
248#define CONFIG_SYS_MALLOC_LEN (128 * 1024)
249
250#if CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE
251#define CONFIG_SYS_RAMSTART
252#endif
253
254#if defined(CONFIG_ENV_IS_IN_FLASH)
255#define CONFIG_ENV_IN_OWN_SECTOR 1
256#define CONFIG_ENV_ADDR 0xFFF00000
257#define CONFIG_ENV_SIZE 0x00001000
258#define CONFIG_ENV_SECT_SIZE 0x00040000
259#endif
260
261
262
263
264
265#define CONFIG_SYS_FLASH_CFI 1
266#define CONFIG_FLASH_CFI_DRIVER 1
267#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1
268#define CONFIG_SYS_MAX_FLASH_BANKS 1
269#define CONFIG_SYS_FLASH_INCREMENT 0
270#define CONFIG_SYS_MAX_FLASH_SECT 64
271#define CONFIG_SYS_FLASH_PROTECTION 1
272#define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH_BASE }
273
274
275
276
277
278#define CONFIG_SYS_OCM_DATA_ADDR 0xF8000000
279#define CONFIG_SYS_OCM_DATA_SIZE 0x1000
280
281
282
283
284
285#define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_OCM_DATA_ADDR
286#define CONFIG_SYS_INIT_RAM_END CONFIG_SYS_OCM_DATA_SIZE
287#define CONFIG_SYS_GBL_DATA_SIZE 128
288#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
289#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
290
291
292
293
294
295#define CONFIG_I2CFAST 1
296
297
298
299
300
301
302
303#define BOOTFLAG_COLD 0x01
304#define BOOTFLAG_WARM 0x02
305
306#endif
307