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
28
29
30
31#define CONFIG_405GP 1
32#define CONFIG_4xx 1
33#define CONFIG_PMC405 1
34
35#define CONFIG_BOARD_EARLY_INIT_F 1
36#define CONFIG_MISC_INIT_R 1
37
38#define CONFIG_SYS_CLK_FREQ 33330000
39
40#define CONFIG_BAUDRATE 9600
41#define CONFIG_BOOTDELAY 3
42
43
44#define CONFIG_AUTOBOOT_KEYED 1
45#define CONFIG_AUTOBOOT_PROMPT \
46 "Press SPACE to abort autoboot in %d seconds\n", bootdelay
47#undef CONFIG_AUTOBOOT_DELAY_STR
48#define CONFIG_AUTOBOOT_STOP_STR " "
49
50#undef CONFIG_BOOTARGS
51#undef CONFIG_BOOTCOMMAND
52
53#define CONFIG_PREBOOT
54
55#define CFG_BOOTM_LEN 0x1000000
56
57#define CONFIG_LOADS_ECHO 1
58#define CONFIG_SYS_LOADS_BAUD_CHANGE 1
59
60#define CONFIG_NET_MULTI 1
61#undef CONFIG_HAS_ETH1
62
63#define CONFIG_PPC4xx_EMAC
64#define CONFIG_MII 1
65#define CONFIG_PHY_ADDR 0
66#define CONFIG_LXT971_NO_SLEEP 1
67#define CONFIG_RESET_PHY_R 1
68
69
70
71
72#define CONFIG_BOOTP_BOOTFILESIZE
73#define CONFIG_BOOTP_BOOTPATH
74#define CONFIG_BOOTP_GATEWAY
75#define CONFIG_BOOTP_HOSTNAME
76
77
78
79
80#include <config_cmd_default.h>
81
82#define CONFIG_CMD_BSP
83#define CONFIG_CMD_PCI
84#define CONFIG_CMD_IRQ
85#define CONFIG_CMD_ELF
86#define CONFIG_CMD_DATE
87#define CONFIG_CMD_JFFS2
88#define CONFIG_CMD_MII
89#define CONFIG_CMD_I2C
90#define CONFIG_CMD_PING
91#define CONFIG_CMD_UNIVERSE
92#define CONFIG_CMD_EEPROM
93
94#define CONFIG_MAC_PARTITION
95#define CONFIG_DOS_PARTITION
96
97#undef CONFIG_WATCHDOG
98
99#define CONFIG_RTC_MC146818
100#define CONFIG_SYS_RTC_REG_BASE_ADDR 0xF0000500
101
102#define CONFIG_SDRAM_BANK0 1
103
104
105
106
107#define CONFIG_SYS_LONGHELP
108#define CONFIG_SYS_PROMPT "=> "
109
110#undef CONFIG_SYS_HUSH_PARSER
111#ifdef CONFIG_SYS_HUSH_PARSER
112#define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
113#endif
114
115#if defined(CONFIG_CMD_KGDB)
116#define CONFIG_SYS_CBSIZE 1024
117#else
118#define CONFIG_SYS_CBSIZE 512
119#endif
120#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16)
121#define CONFIG_SYS_MAXARGS 16
122#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
123
124#define CONFIG_SYS_DEVICE_NULLDEV 1
125
126#define CONFIG_SYS_CONSOLE_INFO_QUIET 1
127
128#define CONFIG_AUTO_COMPLETE 1
129
130#define CONFIG_SYS_MEMTEST_START 0x0400000
131#define CONFIG_SYS_MEMTEST_END 0x0C00000
132
133#undef CONFIG_SYS_EXT_SERIAL_CLOCK
134#define CONFIG_SYS_BASE_BAUD 806400
135
136
137#define CONFIG_SYS_BAUDRATE_TABLE \
138 {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200}
139
140#define CONFIG_SYS_LOAD_ADDR 0x100000
141#define CONFIG_SYS_EXTBDINFO 1
142
143#define CONFIG_SYS_HZ 1000
144
145#define CONFIG_CMDLINE_EDITING 1
146#define CONFIG_LOOPW 1
147
148#define CONFIG_ZERO_BOOTDELAY_CHECK
149
150#define CONFIG_VERSION_VARIABLE 1
151
152#define CONFIG_SYS_RX_ETH_BUFFER 16
153
154
155
156
157#define PCI_HOST_ADAPTER 0
158#define PCI_HOST_FORCE 1
159#define PCI_HOST_AUTO 2
160
161#define CONFIG_PCI
162#define CONFIG_PCI_HOST PCI_HOST_AUTO
163#define CONFIG_PCI_PNP
164
165
166#define CONFIG_PCI_SCAN_SHOW
167
168#define CONFIG_PCI_CONFIG_HOST_BRIDGE 1
169
170#define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x12FE
171#define CONFIG_SYS_PCI_SUBSYS_DEVICEID_NONMONARCH 0x0408
172#define CONFIG_SYS_PCI_SUBSYS_DEVICEID_MONARCH 0x0409
173#define CONFIG_SYS_PCI_SUBSYS_DEVICEID pmc405_pci_subsys_deviceid()
174
175#define CONFIG_SYS_PCI_CLASSCODE 0x0b20
176
177#define CONFIG_SYS_PCI_PTM1LA (bd->bi_memstart)
178#define CONFIG_SYS_PCI_PTM1MS (~(bd->bi_memsize - 1) | 1)
179#define CONFIG_SYS_PCI_PTM1PCI 0x00000000
180#define CONFIG_SYS_PCI_PTM2LA 0xef000000
181#define CONFIG_SYS_PCI_PTM2MS 0xff000001
182#define CONFIG_SYS_PCI_PTM2PCI 0x00000000
183
184#define CONFIG_PCI_4xx_PTM_OVERWRITE 1
185
186
187
188
189
190
191#define CONFIG_SYS_SDRAM_BASE 0x00000000
192#define CONFIG_SYS_MONITOR_BASE TEXT_BASE
193#define CONFIG_SYS_MONITOR_LEN (~(TEXT_BASE) + 1)
194#define CONFIG_SYS_MALLOC_LEN (128 * 1024)
195
196#define CONFIG_PRAM 0
197
198
199
200
201
202
203#define CONFIG_SYS_BOOTMAPSZ (8 << 20)
204
205
206
207
208#define CONFIG_SYS_FLASH_BASE 0xFE000000
209#define CONFIG_SYS_FLASH_INCREMENT 0x01000000
210
211#define CONFIG_SYS_FLASH_CFI 1
212#define CONFIG_FLASH_CFI_DRIVER 1
213#define CONFIG_SYS_FLASH_PROTECTION 1
214#define CONFIG_SYS_FLASH_AUTOPROTECT_LIST {{0xfff80000, 0x80000}}
215#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE 1
216#define CONFIG_SYS_MAX_FLASH_BANKS 2
217#define CONFIG_SYS_FLASH_BANKS_LIST {CONFIG_SYS_FLASH_BASE, \
218 CONFIG_SYS_FLASH_BASE + CONFIG_SYS_FLASH_INCREMENT}
219#define CONFIG_SYS_MAX_FLASH_SECT 128
220#define CONFIG_SYS_FLASH_EMPTY_INFO
221
222
223
224
225#define CONFIG_ENV_IS_IN_EEPROM 1
226
227
228#define CONFIG_ENV_OFFSET 0x000
229#define CONFIG_ENV_SIZE 0x800
230
231#define CONFIG_SYS_NVRAM_BASE_ADDR 0xF0000500
232#define CONFIG_SYS_NVRAM_SIZE 242
233
234
235
236
237#define CONFIG_HARD_I2C
238#define CONFIG_PPC4XX_I2C
239#define CONFIG_SYS_I2C_SPEED 100000
240#define CONFIG_SYS_I2C_SLAVE 0x7F
241
242#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50
243#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
244
245#define CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW 0x07
246#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 4
247
248
249
250#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10
251
252
253
254
255#define FLASH0_BA 0xFF000000
256#define FLASH1_BA 0xFE000000
257#define CAN_BA 0xF0000000
258#define RTC_BA 0xF0000500
259#define NVRAM_BA 0xF0200000
260
261
262#define CONFIG_SYS_EBC_PB0AP 0x92015480
263
264#define CONFIG_SYS_EBC_PB0CR (FLASH0_BA | 0x9A000)
265
266
267#define CONFIG_SYS_EBC_PB1AP 0x92015480
268
269#define CONFIG_SYS_EBC_PB1CR (FLASH1_BA | 0x9A000)
270
271
272
273#define CONFIG_SYS_EBC_PB2AP 0x03000440
274
275#define CONFIG_SYS_EBC_PB2CR (CAN_BA | 0x18000)
276
277
278
279
280
281#define CONFIG_SYS_EBC_PB4AP 0x03000440
282
283#define CONFIG_SYS_EBC_PB4CR (NVRAM_BA | 0x18000)
284
285
286
287
288
289#define CONFIG_SYS_FPGA_PRG 0x04000000
290#define CONFIG_SYS_FPGA_CLK 0x02000000
291#define CONFIG_SYS_FPGA_DATA 0x01000000
292#define CONFIG_SYS_FPGA_INIT 0x00010000
293#define CONFIG_SYS_FPGA_DONE 0x00008000
294
295
296#define CONFIG_SYS_VXWORKS_MAC_PTR 0x00000000
297
298
299
300
301#define CONFIG_SYS_VPEN (0x80000000 >> 3)
302#define CONFIG_SYS_NONMONARCH (0x80000000 >> 14)
303#define CONFIG_SYS_XEREADY (0x80000000 >> 15)
304#define CONFIG_SYS_INTA_FAKE (0x80000000 >> 19)
305#define CONFIG_SYS_SELF_RST (0x80000000 >> 21)
306#define CONFIG_SYS_REV1_2 (0x80000000 >> 23)
307
308
309
310
311
312
313#define CONFIG_SYS_TEMP_STACK_OCM 1
314
315
316#define CONFIG_SYS_OCM_DATA_ADDR 0xF8000000
317#define CONFIG_SYS_OCM_DATA_SIZE 0x1000
318
319
320#define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_OCM_DATA_ADDR
321
322
323#define CONFIG_SYS_INIT_RAM_END CONFIG_SYS_OCM_DATA_SIZE
324
325
326#define CONFIG_SYS_GBL_DATA_SIZE 128
327#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_END - \
328 CONFIG_SYS_GBL_DATA_SIZE)
329#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
330
331
332
333
334
335
336#define BOOTFLAG_COLD 0x01
337#define BOOTFLAG_WARM 0x02
338
339#define CONFIG_OF_LIBFDT
340#define CONFIG_OF_BOARD_SETUP
341
342#endif
343