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