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