1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24#ifndef __CONFIG_H
25#define __CONFIG_H
26
27#define CONFIG_405EP 1
28#define CONFIG_4xx 1
29#define CONFIG_PMC405DE 1
30
31#define CONFIG_SYS_TEXT_BASE 0xFFFC0000
32
33#define CONFIG_BOARD_EARLY_INIT_F 1
34#define CONFIG_MISC_INIT_R 1
35#define CONFIG_BOARD_TYPES 1
36
37#define CONFIG_SYS_CLK_FREQ 33330000
38
39#define CONFIG_BAUDRATE 115200
40#define CONFIG_BOOTDELAY 3
41
42#undef CONFIG_BOOTARGS
43#undef CONFIG_BOOTCOMMAND
44
45#define CONFIG_PREBOOT
46
47#define CONFIG_SYS_LOADS_BAUD_CHANGE 1
48
49#define CONFIG_NET_MULTI 1
50#define CONFIG_HAS_ETH1
51
52#define CONFIG_PPC4xx_EMAC
53#define CONFIG_MII 1
54#define CONFIG_PHY_ADDR 1
55#define CONFIG_PHY1_ADDR 2
56
57#define CONFIG_SYS_RX_ETH_BUFFER 16
58
59
60
61
62#define CONFIG_BOOTP_SUBNETMASK
63#define CONFIG_BOOTP_GATEWAY
64#define CONFIG_BOOTP_HOSTNAME
65#define CONFIG_BOOTP_BOOTPATH
66#define CONFIG_BOOTP_DNS
67#define CONFIG_BOOTP_DNS2
68#define CONFIG_BOOTP_SEND_HOSTNAME
69
70
71
72
73#include <config_cmd_default.h>
74
75#define CONFIG_CMD_BSP
76#define CONFIG_CMD_CHIP_CONFIG
77#define CONFIG_CMD_DATE
78#define CONFIG_CMD_DHCP
79#define CONFIG_CMD_EEPROM
80#define CONFIG_CMD_ELF
81#define CONFIG_CMD_I2C
82#define CONFIG_CMD_IRQ
83#define CONFIG_CMD_MII
84#define CONFIG_CMD_NFS
85#define CONFIG_CMD_PCI
86#define CONFIG_CMD_PING
87
88#define CONFIG_OF_LIBFDT
89#define CONFIG_OF_BOARD_SETUP
90
91#undef CONFIG_WATCHDOG
92#define CONFIG_SDRAM_BANK0 1
93#define CONFIG_PRAM 0
94
95
96
97
98#define CONFIG_SYS_LONGHELP
99#define CONFIG_SYS_PROMPT "=> "
100
101#define CONFIG_SYS_CBSIZE 256
102#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
103#define CONFIG_SYS_MAXARGS 16
104#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
105
106#define CONFIG_SYS_DEVICE_NULLDEV 1
107#define CONFIG_SYS_CONSOLE_INFO_QUIET 1
108
109#define CONFIG_SYS_MEMTEST_START 0x0100000
110#define CONFIG_SYS_MEMTEST_END 0x3000000
111
112#define CONFIG_CONS_INDEX 2
113#define CONFIG_SYS_NS16550
114#define CONFIG_SYS_NS16550_SERIAL
115#define CONFIG_SYS_NS16550_REG_SIZE 1
116#define CONFIG_SYS_NS16550_CLK get_serial_clock()
117
118#undef CONFIG_SYS_EXT_SERIAL_CLOCK
119#define CONFIG_SYS_BASE_BAUD 691200
120
121
122#define CONFIG_SYS_BAUDRATE_TABLE \
123 { 9600, 19200, 38400, 57600, 115200 }
124
125#define CONFIG_SYS_LOAD_ADDR 0x100000
126#define CONFIG_SYS_EXTBDINFO 1
127
128#define CONFIG_SYS_HZ 1000
129
130#define CONFIG_CMDLINE_EDITING 1
131#define CONFIG_LOOPW 1
132#define CONFIG_MX_CYCLIC 1
133#define CONFIG_ZERO_BOOTDELAY_CHECK
134#define CONFIG_VERSION_VARIABLE 1
135
136#define CONFIG_AUTOBOOT_KEYED 1
137#define CONFIG_AUTOBOOT_PROMPT \
138 "Press SPACE to abort autoboot in %d seconds\n", bootdelay
139#undef CONFIG_AUTOBOOT_DELAY_STR
140#define CONFIG_AUTOBOOT_STOP_STR " "
141
142
143
144
145#define PCI_HOST_ADAPTER 0
146#define PCI_HOST_FORCE 1
147#define PCI_HOST_AUTO 2
148
149#define CONFIG_PCI
150#define CONFIG_PCI_HOST PCI_HOST_AUTO
151#define CONFIG_PCI_PNP
152
153#define CONFIG_PCI_SCAN_SHOW
154
155
156
157
158#define CONFIG_SYS_PCI_SUBSYS_VENDORID PCI_VENDOR_ID_ESDGMBH
159#define CONFIG_SYS_PCI_SUBSYS_ID_NONMONARCH 0x040e
160#define CONFIG_SYS_PCI_SUBSYS_ID_MONARCH 0x040f
161#define CONFIG_SYS_PCI_CLASSCODE_NONMONARCH PCI_CLASS_PROCESSOR_POWERPC
162#define CONFIG_SYS_PCI_CLASSCODE_MONARCH PCI_CLASS_BRIDGE_HOST
163
164#define CONFIG_SYS_PCI_CLASSCODE CONFIG_SYS_PCI_CLASSCODE_MONARCH
165#define CONFIG_SYS_PCI_SUBSYS_DEVICEID CONFIG_SYS_PCI_SUBSYS_ID_MONARCH
166
167#define CONFIG_SYS_PCI_PTM1LA 0x00000000
168#define CONFIG_SYS_PCI_PTM1MS 0xfc000001
169#define CONFIG_SYS_PCI_PTM1PCI 0x00000000
170#define CONFIG_SYS_PCI_PTM2LA 0xef000000
171#define CONFIG_SYS_PCI_PTM2MS 0xff000001
172#define CONFIG_SYS_PCI_PTM2PCI 0x04000000
173
174#define CONFIG_PCI_4xx_PTM_OVERWRITE 1
175
176
177
178
179
180
181#define CONFIG_SYS_BOOTMAPSZ (8 << 20)
182
183
184
185#define CONFIG_SYS_FLASH_CFI 1
186#define CONFIG_FLASH_CFI_DRIVER 1
187
188#define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH_BASE }
189
190#define CONFIG_SYS_MAX_FLASH_BANKS 1
191#define CONFIG_SYS_MAX_FLASH_SECT 512
192
193#define CONFIG_SYS_FLASH_ERASE_TOUT 120000
194#define CONFIG_SYS_FLASH_WRITE_TOUT 500
195
196#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1
197#define CONFIG_SYS_FLASH_PROTECTION 1
198
199#define CONFIG_SYS_FLASH_EMPTY_INFO 1
200#define CONFIG_SYS_FLASH_QUIET_TEST 1
201
202
203
204
205
206
207
208#define CONFIG_SYS_SDRAM_BASE 0x00000000
209#define CONFIG_SYS_FLASH_BASE 0xfe000000
210#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
211#define CONFIG_SYS_MONITOR_LEN (~(CONFIG_SYS_TEXT_BASE) + 1)
212#define CONFIG_SYS_MALLOC_LEN (256 * 1024)
213
214
215
216
217#define CONFIG_ENV_IS_IN_EEPROM 1
218#define CONFIG_ENV_OFFSET 0x100
219#define CONFIG_ENV_SIZE 0x700
220
221
222
223
224#define CONFIG_HARD_I2C
225#define CONFIG_PPC4XX_I2C
226#define CONFIG_SYS_I2C_SPEED 400000
227#define CONFIG_SYS_I2C_SLAVE 0x7F
228
229#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50
230#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
231
232#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW 0x07
233#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4
234
235
236#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10
237#define CONFIG_SYS_EEPROM_WREN 1
238
239#define CONFIG_4xx_CONFIG_I2C_EEPROM_ADDR 0x50
240#define CONFIG_4xx_CONFIG_I2C_EEPROM_OFFSET 0x40
241#define CONFIG_4xx_CONFIG_BLOCKSIZE 0x20
242
243
244
245
246#define CONFIG_RTC_RX8025
247
248
249
250
251
252
253#define CONFIG_SYS_EBC_PB0AP 0x03017200
254#define CONFIG_SYS_EBC_PB0CR (CONFIG_SYS_FLASH_BASE | 0xba000)
255
256
257#define CONFIG_SYS_CPLD_BASE 0xef000000
258#define CONFIG_SYS_EBC_PB1AP 0x00800000
259#define CONFIG_SYS_EBC_PB1CR (CONFIG_SYS_CPLD_BASE | 0x18000)
260
261
262
263
264
265#define CONFIG_SYS_TEMP_STACK_OCM 1
266
267
268#define CONFIG_SYS_OCM_DATA_ADDR 0xF8000000
269#define CONFIG_SYS_OCM_DATA_SIZE 0x1000
270
271#define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_OCM_DATA_ADDR
272
273#define CONFIG_SYS_INIT_RAM_SIZE CONFIG_SYS_OCM_DATA_SIZE
274
275#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - \
276 GENERATED_GBL_DATA_SIZE)
277#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
278
279
280
281
282#define CONFIG_SYS_4xx_GPIO_TABLE { \
283{ \
284 \
285{ GPIO_BASE, GPIO_IN, GPIO_SEL, GPIO_OUT_NO_CHG }, \
286{ GPIO_BASE, GPIO_IN, GPIO_SEL, GPIO_OUT_NO_CHG }, \
287{ GPIO_BASE, GPIO_IN, GPIO_SEL, GPIO_OUT_NO_CHG }, \
288{ GPIO_BASE, GPIO_IN, GPIO_SEL, GPIO_OUT_NO_CHG }, \
289{ GPIO_BASE, GPIO_IN, GPIO_SEL, GPIO_OUT_NO_CHG }, \
290{ GPIO_BASE, GPIO_OUT, GPIO_SEL, GPIO_OUT_1 }, \
291{ GPIO_BASE, GPIO_OUT, GPIO_SEL, GPIO_OUT_1 }, \
292{ GPIO_BASE, GPIO_OUT, GPIO_SEL, GPIO_OUT_1 }, \
293{ GPIO_BASE, GPIO_IN, GPIO_SEL, GPIO_OUT_NO_CHG }, \
294{ GPIO_BASE, GPIO_OUT, GPIO_SEL, GPIO_OUT_1 }, \
295{ GPIO_BASE, GPIO_OUT, GPIO_ALT1, GPIO_OUT_NO_CHG }, \
296{ GPIO_BASE, GPIO_IN, GPIO_SEL, GPIO_OUT_NO_CHG }, \
297{ GPIO_BASE, GPIO_IN, GPIO_SEL, GPIO_OUT_NO_CHG }, \
298{ GPIO_BASE, GPIO_IN, GPIO_SEL, GPIO_OUT_NO_CHG }, \
299{ GPIO_BASE, GPIO_OUT, GPIO_SEL, GPIO_OUT_NO_CHG }, \
300{ GPIO_BASE, GPIO_OUT, GPIO_SEL, GPIO_OUT_NO_CHG }, \
301{ GPIO_BASE, GPIO_OUT, GPIO_ALT1, GPIO_OUT_NO_CHG }, \
302{ GPIO_BASE, GPIO_IN, GPIO_ALT1, GPIO_OUT_NO_CHG }, \
303{ GPIO_BASE, GPIO_IN, GPIO_ALT1, GPIO_OUT_NO_CHG }, \
304{ GPIO_BASE, GPIO_IN, GPIO_ALT1, GPIO_OUT_NO_CHG }, \
305{ GPIO_BASE, GPIO_IN, GPIO_ALT1, GPIO_OUT_NO_CHG }, \
306{ GPIO_BASE, GPIO_IN, GPIO_ALT1, GPIO_OUT_NO_CHG }, \
307{ GPIO_BASE, GPIO_IN, GPIO_ALT1, GPIO_OUT_NO_CHG }, \
308{ GPIO_BASE, GPIO_IN, GPIO_ALT1, GPIO_OUT_NO_CHG }, \
309{ GPIO_BASE, GPIO_IN, GPIO_ALT1, GPIO_OUT_NO_CHG }, \
310{ GPIO_BASE, GPIO_OUT, GPIO_SEL, GPIO_OUT_NO_CHG }, \
311{ GPIO_BASE, GPIO_OUT, GPIO_SEL, GPIO_OUT_NO_CHG }, \
312{ GPIO_BASE, GPIO_OUT, GPIO_SEL, GPIO_OUT_NO_CHG }, \
313{ GPIO_BASE, GPIO_IN, GPIO_ALT1, GPIO_OUT_NO_CHG }, \
314{ GPIO_BASE, GPIO_OUT, GPIO_ALT1, GPIO_OUT_NO_CHG }, \
315{ GPIO_BASE, GPIO_OUT, GPIO_SEL, GPIO_OUT_NO_CHG }, \
316{ GPIO_BASE, GPIO_OUT, GPIO_SEL, GPIO_OUT_NO_CHG }, \
317} \
318}
319
320#define CONFIG_SYS_GPIO_HWREV_MASK (0xf0000000 >> 1)
321#define CONFIG_SYS_GPIO_HWREV_SHIFT 27
322#define CONFIG_SYS_GPIO_LEDRUN_N (0x80000000 >> 5)
323#define CONFIG_SYS_GPIO_LEDA_N (0x80000000 >> 6)
324#define CONFIG_SYS_GPIO_LEDB_N (0x80000000 >> 7)
325#define CONFIG_SYS_GPIO_SELFRST_N (0x80000000 >> 8)
326#define CONFIG_SYS_GPIO_EEPROM_WP (0x80000000 >> 9)
327#define CONFIG_SYS_GPIO_MONARCH_N (0x80000000 >> 11)
328#define CONFIG_SYS_GPIO_EREADY (0x80000000 >> 12)
329#define CONFIG_SYS_GPIO_M66EN (0x80000000 >> 13)
330
331
332
333
334
335#undef CONFIG_SYS_FCPU333MHZ
336#define CONFIG_SYS_FCPU266MHZ
337#undef CONFIG_SYS_FCPU133MHZ
338
339#if defined(CONFIG_SYS_FCPU333MHZ)
340
341
342
343
344
345
346
347#define PLLMR0_DEFAULT (PLL_CPUDIV_1 | PLL_PLBDIV_3 | \
348 PLL_OPBDIV_2 | PLL_EXTBUSDIV_2 | \
349 PLL_MALDIV_1 | PLL_PCIDIV_2)
350#define PLLMR1_DEFAULT (PLL_FBKDIV_10 | \
351 PLL_FWDDIVA_3 | PLL_FWDDIVB_3 | \
352 PLL_TUNE_15_M_40 | PLL_TUNE_VCO_HI)
353#endif
354
355#if defined(CONFIG_SYS_FCPU266MHZ)
356
357
358
359
360
361
362
363#define PLLMR0_DEFAULT (PLL_CPUDIV_1 | PLL_PLBDIV_2 | \
364 PLL_OPBDIV_2 | PLL_EXTBUSDIV_3 | \
365 PLL_MALDIV_1 | PLL_PCIDIV_3)
366#define PLLMR1_DEFAULT (PLL_FBKDIV_8 | \
367 PLL_FWDDIVA_3 | PLL_FWDDIVB_3 | \
368 PLL_TUNE_15_M_40 | PLL_TUNE_VCO_LOW)
369#endif
370
371#if defined(CONFIG_SYS_FCPU133MHZ)
372
373
374
375
376
377
378
379#define PLLMR0_DEFAULT (PLL_CPUDIV_1 | PLL_PLBDIV_1 | \
380 PLL_OPBDIV_2 | PLL_EXTBUSDIV_3 | \
381 PLL_MALDIV_1 | PLL_PCIDIV_3)
382#define PLLMR1_DEFAULT (PLL_FBKDIV_4 | \
383 PLL_FWDDIVA_6 | PLL_FWDDIVB_6 | \
384 PLL_TUNE_15_M_40 | PLL_TUNE_VCO_LOW)
385#endif
386
387#endif
388