]>
Commit | Line | Data |
---|---|---|
13b4f639 | 1 | /* |
8aa34499 | 2 | * Copyright 2012-2013 Stefan Roese <[email protected]> |
13b4f639 | 3 | * |
1a459660 | 4 | * SPDX-License-Identifier: GPL-2.0+ |
13b4f639 SR |
5 | */ |
6 | ||
7 | #ifndef __CONFIG_H | |
8 | #define __CONFIG_H | |
9 | ||
10 | /* | |
11 | * High Level Configuration Options | |
12 | * (easy to change) | |
13 | */ | |
14 | ||
15 | #define CONFIG_MPC5200 | |
b2a6dfe4 | 16 | #define CONFIG_A3M071 /* A3M071 board */ |
c07e8da1 | 17 | #define CONFIG_DISPLAY_BOARDINFO |
13b4f639 SR |
18 | |
19 | #define CONFIG_SYS_TEXT_BASE 0x01000000 /* boot low for 32 MiB boards */ | |
20 | ||
d4451d35 SR |
21 | #define CONFIG_SPL_TARGET "u-boot-img.bin" |
22 | ||
13b4f639 SR |
23 | #define CONFIG_SYS_MPC5XXX_CLKIN 33000000 /* ... running at 33MHz */ |
24 | ||
25 | #define CONFIG_MISC_INIT_R | |
26 | #define CONFIG_SYS_LOWBOOT /* Enable lowboot */ | |
27 | ||
d4451d35 SR |
28 | #ifdef CONFIG_A4M2K |
29 | #define CONFIG_HOSTNAME a4m2k | |
30 | #else | |
31 | #define CONFIG_HOSTNAME a3m071 | |
32 | #endif | |
33 | ||
d62a89bd SR |
34 | #define CONFIG_BOOTCOUNT_LIMIT |
35 | ||
13b4f639 SR |
36 | /* |
37 | * Serial console configuration | |
38 | */ | |
39 | #define CONFIG_PSC_CONSOLE 1 /* console is on PSC1 */ | |
40 | #define CONFIG_BAUDRATE 115200 /* ... at 115200 bps */ | |
41 | #define CONFIG_SYS_BAUDRATE_TABLE \ | |
42 | { 9600, 19200, 38400, 57600, 115200, 230400 } | |
43 | ||
44 | /* | |
45 | * Command line configuration. | |
46 | */ | |
13b4f639 SR |
47 | #define CONFIG_CMD_BSP |
48 | #define CONFIG_CMD_CACHE | |
13b4f639 SR |
49 | #define CONFIG_CMD_MII |
50 | #define CONFIG_CMD_REGINFO | |
8aa34499 SR |
51 | #define CONFIG_CMD_DHCP |
52 | #define CONFIG_BOOTP_SEND_HOSTNAME | |
53 | #define CONFIG_BOOTP_SERVERIP | |
54 | #define CONFIG_BOOTP_MAY_FAIL | |
55 | #define CONFIG_BOOTP_BOOTPATH | |
56 | #define CONFIG_BOOTP_GATEWAY | |
57 | #define CONFIG_BOOTP_SERVERIP | |
58 | #define CONFIG_NET_RETRY_COUNT 3 | |
59 | #define CONFIG_CMD_LINK_LOCAL | |
60 | #define CONFIG_NETCONSOLE | |
61 | #define CONFIG_SYS_CONSOLE_IS_IN_ENV | |
62 | #define CONFIG_CMD_PING | |
63 | #define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ | |
64 | #define CONFIG_MTD_PARTITIONS /* needed for UBI */ | |
65 | #define CONFIG_FLASH_CFI_MTD | |
66 | #define MTDIDS_DEFAULT "nor0=fc000000.flash" | |
67 | #define MTDPARTS_DEFAULT "mtdparts=fc000000.flash:512k(u-boot)," \ | |
d62a89bd SR |
68 | "128k(env1)," \ |
69 | "128k(env2)," \ | |
8aa34499 SR |
70 | "128k(hwinfo)," \ |
71 | "1M(nvramsim)," \ | |
72 | "128k(dtb)," \ | |
73 | "5M(kernel)," \ | |
74 | "128k(sysinfo)," \ | |
75 | "7552k(root)," \ | |
76 | "4M(app)," \ | |
d62a89bd SR |
77 | "5376k(data)," \ |
78 | "8M(install)" | |
79 | ||
8aa34499 SR |
80 | #define CONFIG_LZO /* needed for UBI */ |
81 | #define CONFIG_RBTREE /* needed for UBI */ | |
82 | #define CONFIG_CMD_MTDPARTS | |
83 | #define CONFIG_CMD_UBI | |
84 | #define CONFIG_CMD_UBIFS | |
85 | #define CONFIG_FIT | |
13b4f639 SR |
86 | |
87 | /* | |
88 | * IPB Bus clocking configuration. | |
89 | */ | |
90 | #define CONFIG_SYS_IPBCLK_EQUALS_XLBCLK /* define for 133MHz speed */ | |
91 | /* define for 66MHz speed - undef for 33MHz PCI clock speed */ | |
d4451d35 SR |
92 | #ifdef CONFIG_A4M2K |
93 | #define CONFIG_SYS_PCICLK_EQUALS_IPBCLK_DIV2 | |
94 | #else | |
13b4f639 | 95 | #undef CONFIG_SYS_PCICLK_EQUALS_IPBCLK_DIV2 |
d4451d35 | 96 | #endif |
13b4f639 SR |
97 | |
98 | /* pass open firmware flat tree */ | |
13b4f639 SR |
99 | #define CONFIG_OF_BOARD_SETUP |
100 | ||
101 | /* maximum size of the flat tree (8K) */ | |
102 | #define OF_FLAT_TREE_MAX_SIZE 8192 | |
103 | ||
104 | #define OF_CPU "PowerPC,5200@0" | |
105 | #define OF_SOC "soc5200@f0000000" | |
106 | #define OF_TBCLK (bd->bi_busfreq / 4) | |
107 | #define OF_STDOUT_PATH "/soc5200@f0000000/serial@2000" | |
108 | ||
13b4f639 SR |
109 | /* |
110 | * NOR flash configuration | |
111 | */ | |
112 | #define CONFIG_SYS_FLASH_BASE 0xfc000000 | |
d4451d35 | 113 | #define CONFIG_SYS_FLASH_SIZE 0x02000000 |
8aa34499 | 114 | #define CONFIG_ENV_ADDR (CONFIG_SYS_FLASH_BASE + 0x80000) |
13b4f639 SR |
115 | |
116 | #define CONFIG_SYS_MAX_FLASH_BANKS 1 | |
117 | #define CONFIG_SYS_MAX_FLASH_SECT 256 | |
118 | #define CONFIG_SYS_FLASH_ERASE_TOUT 240000 | |
119 | #define CONFIG_SYS_FLASH_WRITE_TOUT 500 | |
120 | #define CONFIG_SYS_FLASH_LOCK_TOUT 5 | |
121 | #define CONFIG_SYS_FLASH_UNLOCK_TOUT 10000 | |
122 | #define CONFIG_SYS_FLASH_PROTECTION | |
123 | #define CONFIG_FLASH_CFI_DRIVER | |
124 | #define CONFIG_SYS_FLASH_CFI | |
125 | #define CONFIG_SYS_FLASH_EMPTY_INFO | |
126 | #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE | |
f8945518 | 127 | #define CONFIG_FLASH_VERIFY |
13b4f639 SR |
128 | |
129 | /* | |
130 | * Environment settings | |
131 | */ | |
132 | #define CONFIG_ENV_IS_IN_FLASH | |
133 | #define CONFIG_ENV_SIZE 0x10000 | |
134 | #define CONFIG_ENV_SECT_SIZE 0x20000 | |
135 | #define CONFIG_ENV_OVERWRITE | |
8aa34499 SR |
136 | #define CONFIG_ENV_ADDR_REDUND (CONFIG_ENV_ADDR + CONFIG_ENV_SECT_SIZE) |
137 | #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE) | |
13b4f639 SR |
138 | |
139 | /* | |
140 | * Memory map | |
141 | */ | |
142 | #define CONFIG_SYS_MBAR 0xf0000000 | |
143 | #define CONFIG_SYS_SDRAM_BASE 0x00000000 | |
144 | #define CONFIG_SYS_DEFAULT_MBAR 0x80000000 | |
145 | ||
146 | /* Use SRAM until RAM will be available */ | |
147 | #define CONFIG_SYS_INIT_RAM_ADDR MPC5XXX_SRAM | |
148 | #define CONFIG_SYS_INIT_RAM_END MPC5XXX_SRAM_SIZE | |
149 | ||
13b4f639 | 150 | #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_END - \ |
704afcc4 | 151 | GENERATED_GBL_DATA_SIZE) |
13b4f639 SR |
152 | #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET |
153 | ||
154 | #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE | |
155 | ||
8aa34499 SR |
156 | #define CONFIG_SYS_MONITOR_LEN (512 << 10) |
157 | #define CONFIG_SYS_MALLOC_LEN (4 << 20) | |
13b4f639 SR |
158 | #define CONFIG_SYS_BOOTMAPSZ (8 << 20) |
159 | ||
160 | /* | |
161 | * Ethernet configuration | |
162 | */ | |
163 | #define CONFIG_MPC5xxx_FEC | |
164 | #define CONFIG_MPC5xxx_FEC_MII100 | |
d4451d35 SR |
165 | #ifdef CONFIG_A4M2K |
166 | #define CONFIG_PHY_ADDR 0x01 | |
167 | #else | |
13b4f639 | 168 | #define CONFIG_PHY_ADDR 0x00 |
d4451d35 | 169 | #endif |
13b4f639 SR |
170 | |
171 | /* | |
172 | * GPIO configuration | |
173 | */ | |
174 | ||
175 | /* | |
176 | * GPIO-config depends on failsave-level | |
177 | * failsave 0 means just MPX-config, no digiboard, no fpga | |
178 | * 1 means digiboard ok | |
179 | * 2 means fpga ok | |
180 | */ | |
181 | ||
d4451d35 | 182 | #ifdef CONFIG_A4M2K |
8aa34499 | 183 | #define CONFIG_SYS_GPS_PORT_CONFIG 0x1005C805 |
d4451d35 | 184 | #else |
13b4f639 SR |
185 | /* for failsave-level 0 - full failsave */ |
186 | #define CONFIG_SYS_GPS_PORT_CONFIG 0x1005C005 | |
187 | /* for failsave-level 1 - only digiboard ok */ | |
8aa34499 | 188 | #define CONFIG_SYS_GPS_PORT_CONFIG_1 0x1005C065 |
13b4f639 | 189 | /* for failsave-level 2 - all ok */ |
8aa34499 | 190 | #define CONFIG_SYS_GPS_PORT_CONFIG_2 0x1005C065 |
d4451d35 | 191 | #endif |
13b4f639 | 192 | |
aed75484 SR |
193 | #define CONFIG_WDOG_GPIO_PIN GPIO_WKUP_7 |
194 | #if defined(CONFIG_A4M2K) && !defined(CONFIG_SPL_BUILD) | |
195 | #define CONFIG_HW_WATCHDOG /* Use external HW-Watchdog */ | |
196 | #endif | |
197 | ||
13b4f639 SR |
198 | /* |
199 | * Configuration matrix | |
8aa34499 | 200 | * MSB LSB |
d4451d35 | 201 | * failsave 0 0x1005C005 00010000000001011100000000000101 ( full failsave ) |
8aa34499 SR |
202 | * failsave 1 0x1005C065 00010000000001011100000001100101 ( digib.-ver ok ) |
203 | * failsave 2 0x1005C065 00010000000001011100000001100101 ( all ok ) | |
13b4f639 SR |
204 | * || ||| || | ||| | | | | |
205 | * || ||| || | ||| | | | | bit rev name | |
206 | * ++-+++-++--+---+++-+---+---+---+- 0 31 CS1 | |
207 | * +-+++-++--+---+++-+---+---+---+- 1 30 LPTZ | |
208 | * ||| || | ||| | | | | 2 29 ALTs | |
209 | * +++-++--+---+++-+---+---+---+- 3 28 ALTs | |
210 | * ++-++--+---+++-+---+---+---+- 4 27 CS7 | |
211 | * +-++--+---+++-+---+---+---+- 5 26 CS6 | |
212 | * || | ||| | | | | 6 25 ATA | |
213 | * ++--+---+++-+---+---+---+- 7 24 ATA | |
214 | * +--+---+++-+---+---+---+- 8 23 IR_USB_CLK | |
215 | * | ||| | | | | 9 22 IRDA | |
216 | * | ||| | | | | 10 21 IRDA | |
217 | * +---+++-+---+---+---+- 11 20 IRDA | |
218 | * ||| | | | | 12 19 Ether | |
219 | * ||| | | | | 13 18 Ether | |
220 | * ||| | | | | 14 17 Ether | |
221 | * +++-+---+---+---+- 15 16 Ether | |
222 | * ++-+---+---+---+- 16 15 PCI_DIS | |
223 | * +-+---+---+---+- 17 14 USB_SE | |
224 | * | | | | 18 13 USB | |
225 | * +---+---+---+- 19 12 USB | |
226 | * | | | 20 11 PSC3 | |
227 | * | | | 21 10 PSC3 | |
228 | * | | | 22 9 PSC3 | |
229 | * +---+---+- 23 8 PSC3 | |
230 | * | | 24 7 - | |
231 | * | | 25 6 PSC2 | |
232 | * | | 26 5 PSC2 | |
233 | * +---+- 27 4 PSC2 | |
234 | * | 28 3 - | |
235 | * | 29 2 PSC1 | |
236 | * | 30 1 PSC1 | |
237 | * +- 31 0 PSC1 | |
238 | */ | |
239 | ||
240 | ||
241 | /* | |
242 | * Miscellaneous configurable options | |
243 | */ | |
244 | #define CONFIG_SYS_LONGHELP | |
13b4f639 SR |
245 | |
246 | #define CONFIG_CMDLINE_EDITING | |
247 | #define CONFIG_SYS_HUSH_PARSER | |
248 | #define CONFIG_SYS_PROMPT_HUSH_PS2 "> " | |
249 | ||
250 | #if defined(CONFIG_CMD_KGDB) | |
251 | #define CONFIG_SYS_CBSIZE 1024 | |
252 | #else | |
253 | #define CONFIG_SYS_CBSIZE 256 | |
254 | #endif | |
255 | #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) | |
256 | #define CONFIG_SYS_MAXARGS 16 | |
257 | #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE | |
258 | ||
259 | #define CONFIG_SYS_MEMTEST_START 0x00100000 | |
260 | #define CONFIG_SYS_MEMTEST_END 0x00f00000 | |
261 | ||
262 | #define CONFIG_SYS_LOAD_ADDR 0x00100000 | |
263 | ||
13b4f639 SR |
264 | #define CONFIG_LOOPW |
265 | #define CONFIG_SYS_CONSOLE_INFO_QUIET /* don't print console @ startup*/ | |
266 | ||
267 | /* | |
268 | * Various low-level settings | |
269 | */ | |
270 | #define CONFIG_SYS_HID0_INIT (HID0_ICE | HID0_ICFI) | |
271 | #define CONFIG_SYS_HID0_FINAL HID0_ICE | |
272 | ||
273 | #define CONFIG_SYS_BOOTCS_START CONFIG_SYS_FLASH_BASE | |
274 | #define CONFIG_SYS_BOOTCS_SIZE CONFIG_SYS_FLASH_SIZE | |
275 | #define CONFIG_SYS_CS0_START CONFIG_SYS_FLASH_BASE | |
276 | #define CONFIG_SYS_CS0_SIZE CONFIG_SYS_FLASH_SIZE | |
d4451d35 SR |
277 | |
278 | #ifdef CONFIG_A4M2K | |
279 | /* external MRAM */ | |
280 | #define CONFIG_SYS_CS1_START 0xf1000000 | |
281 | #define CONFIG_SYS_CS1_SIZE (512 << 10) /* 512KiB MRAM */ | |
282 | #endif | |
283 | ||
13b4f639 SR |
284 | #define CONFIG_SYS_CS2_START 0xe0000000 |
285 | #define CONFIG_SYS_CS2_SIZE 0x00100000 | |
286 | ||
d4451d35 | 287 | /* FPGA slave io (512kiB / 1MiB) - see ticket #66 */ |
13b4f639 | 288 | #define CONFIG_SYS_CS3_START 0xE9000000 |
d4451d35 SR |
289 | #ifdef CONFIG_A4M2K |
290 | #define CONFIG_SYS_CS3_SIZE 0x00100000 | |
291 | #else | |
13b4f639 | 292 | #define CONFIG_SYS_CS3_SIZE 0x00080000 |
d4451d35 | 293 | #endif |
13b4f639 SR |
294 | /* 00000000 00110010 1 0 1 1 10 01 00 00 0 0 0 0 = 0x0032B900 */ |
295 | #define CONFIG_SYS_CS3_CFG 0x0032B900 | |
296 | ||
d4451d35 | 297 | #ifndef CONFIG_A4M2K |
13b4f639 SR |
298 | /* Diagnosis Interface - see ticket #63 */ |
299 | #define CONFIG_SYS_CS4_START 0xEA000000 | |
300 | #define CONFIG_SYS_CS4_SIZE 0x00000001 | |
301 | /* 00000000 00000010 1 0 1 1 10 01 00 00 0 0 0 0 = 0x0002B900 */ | |
302 | #define CONFIG_SYS_CS4_CFG 0x0002B900 | |
d4451d35 | 303 | #endif |
13b4f639 | 304 | |
d4451d35 | 305 | /* FPGA master io (64kiB / 1MiB) - see ticket #66 */ |
13b4f639 | 306 | #define CONFIG_SYS_CS5_START 0xE8000000 |
d4451d35 SR |
307 | #ifdef CONFIG_A4M2K |
308 | #define CONFIG_SYS_CS5_SIZE 0x00100000 | |
309 | #else | |
13b4f639 | 310 | #define CONFIG_SYS_CS5_SIZE 0x00010000 |
d4451d35 | 311 | #endif |
13b4f639 SR |
312 | /* 00000000 00110010 1 0 1 1 10 01 00 00 0 0 0 0 = 0x0032B900 */ |
313 | #define CONFIG_SYS_CS5_CFG 0x0032B900 | |
314 | ||
315 | #ifdef CONFIG_SYS_PCICLK_EQUALS_IPBCLK_DIV2 /* for pci_clk = 66 MHz */ | |
316 | #define CONFIG_SYS_BOOTCS_CFG 0x0006F900 | |
d4451d35 | 317 | #define CONFIG_SYS_CS1_CFG 0x0008FD00 |
13b4f639 SR |
318 | #define CONFIG_SYS_CS2_CFG 0x0006F90C |
319 | #else /* for pci_clk = 33 MHz */ | |
320 | #define CONFIG_SYS_BOOTCS_CFG 0x0002F900 | |
321 | #define CONFIG_SYS_CS1_CFG 0x0001FB00 | |
322 | #define CONFIG_SYS_CS2_CFG 0x0002F90C | |
323 | #endif | |
324 | ||
325 | #define CONFIG_SYS_CS_BURST 0x00000000 | |
326 | /* set DC for FPGA CS5 and CS3 to 0 - see ticket #66 */ | |
327 | /* R 7 R 6 R 5 R 4 R 3 R 2 R 1 R 0 */ | |
328 | /* 00 11 00 11 00 00 00 11 00 00 00 00 00 00 00 00 */ | |
329 | #define CONFIG_SYS_CS_DEADCYCLE 0x33030000 | |
330 | ||
331 | #define CONFIG_SYS_RESET_ADDRESS 0xff000000 | |
332 | ||
333 | /* | |
334 | * Environment Configuration | |
335 | */ | |
336 | ||
8aa34499 | 337 | #define CONFIG_BOOTDELAY 3 /* -1 disables auto-boot */ |
13b4f639 SR |
338 | #undef CONFIG_BOOTARGS |
339 | #define CONFIG_ZERO_BOOTDELAY_CHECK | |
340 | ||
8aa34499 SR |
341 | #define CONFIG_SYS_AUTOLOAD "n" |
342 | ||
13b4f639 SR |
343 | #define CONFIG_PREBOOT "echo;" \ |
344 | "echo Type \"run flash_mtd\" to boot from flash with mtd filesystem;" \ | |
345 | "echo Type \"run net_nfs\" to boot from tftp with nfs filesystem;" \ | |
346 | "echo" | |
347 | ||
348 | #undef CONFIG_BOOTARGS | |
349 | ||
8aa34499 SR |
350 | #define CONFIG_SYS_OS_BASE 0xfc200000 |
351 | #define CONFIG_SYS_FDT_BASE 0xfc1e0000 | |
13b4f639 | 352 | |
13b4f639 SR |
353 | #define CONFIG_EXTRA_ENV_SETTINGS \ |
354 | "netdev=eth0\0" \ | |
355 | "verify=no\0" \ | |
d4451d35 SR |
356 | "loadaddr=200000\0" \ |
357 | "kernel_addr=" __stringify(CONFIG_SYS_OS_BASE) "\0" \ | |
358 | "kernel_addr_r=1000000\0" \ | |
359 | "fdt_addr=" __stringify(CONFIG_SYS_FDT_BASE) "\0" \ | |
360 | "fdt_addr_r=1800000\0" \ | |
361 | "bootfile=" __stringify(CONFIG_HOSTNAME) "/uImage\0" \ | |
362 | "fdtfile=" __stringify(CONFIG_HOSTNAME) "/" \ | |
363 | __stringify(CONFIG_HOSTNAME) ".dtb\0" \ | |
364 | "rootpath=/opt/eldk-5.2.1/powerpc/" \ | |
365 | "core-image-minimal-mtdutils-dropbear-generic\0" \ | |
13b4f639 SR |
366 | "consoledev=ttyPSC0\0" \ |
367 | "nfsargs=setenv bootargs root=/dev/nfs rw " \ | |
368 | "nfsroot=${serverip}:${rootpath}\0" \ | |
369 | "ramargs=setenv bootargs root=/dev/ram rw\0" \ | |
d62a89bd | 370 | "mtdargs=setenv bootargs root=/dev/mtdblock8 " \ |
8aa34499 SR |
371 | "rootfstype=squashfs,jffs2\0" \ |
372 | "addhost=setenv bootargs ${bootargs} " \ | |
373 | "hostname=${hostname}\0" \ | |
13b4f639 SR |
374 | "addip=setenv bootargs ${bootargs} " \ |
375 | "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}" \ | |
376 | ":${hostname}:${netdev}:off panic=1\0" \ | |
377 | "addtty=setenv bootargs ${bootargs} " \ | |
378 | "console=${consoledev},${baudrate}\0" \ | |
d62a89bd | 379 | "flash_nfs=run nfsargs addip addtty addmtd addhost;" \ |
8aa34499 | 380 | "bootm ${kernel_addr} - ${fdt_addr}\0" \ |
d62a89bd | 381 | "flash_mtd=run mtdargs addip addtty addmtd addhost;" \ |
8aa34499 | 382 | "bootm ${kernel_addr} - ${fdt_addr}\0" \ |
d62a89bd | 383 | "flash_self=run ramargs addip addtty addmtd addhost;" \ |
d4451d35 SR |
384 | "bootm ${kernel_addr} ${ramdisk_addr} ${fdt_addr}\0" \ |
385 | "net_nfs=tftp ${kernel_addr_r} ${bootfile};" \ | |
386 | "tftp ${fdt_addr_r} ${fdtfile};" \ | |
d62a89bd | 387 | "run nfsargs addip addtty addmtd addhost;" \ |
d4451d35 SR |
388 | "bootm ${kernel_addr_r} - ${fdt_addr_r}\0" \ |
389 | "load=tftp ${loadaddr} " __stringify(CONFIG_HOSTNAME) \ | |
390 | "/u-boot-img.bin\0" \ | |
d62a89bd | 391 | "update=protect off fc000000 fc07ffff;" \ |
8aa34499 SR |
392 | "era fc000000 fc07ffff;" \ |
393 | "cp.b ${loadaddr} fc000000 ${filesize}\0" \ | |
13b4f639 | 394 | "upd=run load;run update\0" \ |
d62a89bd SR |
395 | "upd_fdt=tftp 1800000 a3m071/a3m071.dtb;" \ |
396 | "run mtdargs addip addtty addmtd addhost;" \ | |
397 | "fdt addr 1800000;fdt boardsetup;fdt chosen;" \ | |
398 | "erase fc1e0000 fc1fffff;cp.b 1800000 fc1e0000 20000" \ | |
399 | "upd_kernel=tftp 1000000 a3m071/uImage-uncompressed;" \ | |
400 | "erase fc200000 fc6fffff;" \ | |
401 | "cp.b 1000000 fc200000 ${filesize}" \ | |
402 | "addmtd=setenv bootargs ${bootargs} ${mtdparts}\0" \ | |
403 | "mtdids=" MTDIDS_DEFAULT "\0" \ | |
404 | "mtdparts=" MTDPARTS_DEFAULT "\0" \ | |
13b4f639 SR |
405 | "" |
406 | ||
407 | #define CONFIG_BOOTCOMMAND "run flash_mtd" | |
408 | ||
409 | /* | |
410 | * SPL related defines | |
411 | */ | |
13b4f639 | 412 | #define CONFIG_SPL_FRAMEWORK |
d4451d35 | 413 | #define CONFIG_SPL_BOARD_INIT |
13b4f639 SR |
414 | #define CONFIG_SPL_NOR_SUPPORT |
415 | #define CONFIG_SPL_TEXT_BASE 0xfc000000 | |
13b4f639 SR |
416 | #define CONFIG_SPL_LIBCOMMON_SUPPORT /* image.c */ |
417 | #define CONFIG_SPL_LIBGENERIC_SUPPORT /* string.c */ | |
418 | #define CONFIG_SPL_SERIAL_SUPPORT | |
419 | ||
420 | /* Place BSS for SPL near end of SDRAM */ | |
421 | #define CONFIG_SPL_BSS_START_ADDR ((128 - 1) << 20) | |
422 | #define CONFIG_SPL_BSS_MAX_SIZE (64 << 10) | |
423 | ||
424 | #define CONFIG_SPL_OS_BOOT | |
ba1bee43 | 425 | #define CONFIG_SPL_ENV_SUPPORT |
13b4f639 SR |
426 | /* Place patched DT blob (fdt) at this address */ |
427 | #define CONFIG_SYS_SPL_ARGS_ADDR 0x01800000 | |
428 | ||
429 | /* Settings for real U-Boot to be loaded from NOR flash */ | |
430 | #ifndef __ASSEMBLY__ | |
431 | extern char __spl_flash_end[]; | |
432 | #endif | |
433 | #define CONFIG_SYS_UBOOT_BASE __spl_flash_end | |
434 | #define CONFIG_SYS_SPL_MAX_LEN (32 << 10) | |
435 | #define CONFIG_SYS_UBOOT_START 0x1000100 | |
436 | ||
437 | #endif /* __CONFIG_H */ |