blob: cca7c33d0d47543c8885d4e606991bbd1afe4f10 [file] [log] [blame]
Stefan Roesee53b5072009-06-09 11:50:40 +02001/*
2 * (C) Copyright 2009 Wolfgang Denk <wd@denx.de>
3 * (C) Copyright 2009, DAVE Srl <www.dave.eu>
4 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Stefan Roesee53b5072009-06-09 11:50:40 +02006 * modifications for the MECP5123 by reinhard.arlt@esd-electronics.com
7 *
8 */
9
10/*
11 * MECP5123 board configuration file
12 */
13
14#ifndef __CONFIG_H
15#define __CONFIG_H
16
17#define CONFIG_MECP5123 1
Anatolij Gustschin5b8cdd82014-10-21 13:47:03 +020018#define CONFIG_DISPLAY_BOARDINFO
Anatolij Gustschin5b8cdd82014-10-21 13:47:03 +020019
Stefan Roesee53b5072009-06-09 11:50:40 +020020/*
21 * Memory map for the MECP5123 board:
22 *
23 * 0x0000_0000 - 0x1FFF_FFFF DDR RAM (512 MB)
24 * 0x3000_0000 - 0x3001_FFFF SRAM (128 KB)
25 * 0x8000_0000 - 0x803F_FFFF IMMR (4 MB)
26 * 0x8200_0000 - 0x8200_FFFF VPC-3 (64 KB)
27 * 0xFFC0_0000 - 0xFFFF_FFFF NOR Boot FLASH (64 MB)
28 */
29
30/*
31 * High Level Configuration Options
32 */
33#define CONFIG_E300 1 /* E300 Family */
Stefan Roesee53b5072009-06-09 11:50:40 +020034
Wolfgang Denk2ae18242010-10-06 09:05:45 +020035#define CONFIG_SYS_TEXT_BASE 0xFFF00000
36
Stefan Roesee53b5072009-06-09 11:50:40 +020037#define CONFIG_SYS_MPC512X_CLKIN 33333333 /* in Hz */
38
39#define CONFIG_BOARD_EARLY_INIT_F /* call board_early_init_f() */
40#define CONFIG_MISC_INIT_R
41
42#define CONFIG_SYS_IMMR 0x80000000
43#define CONFIG_SYS_DIU_ADDR (CONFIG_SYS_IMMR+0x2100)
44
45#define CONFIG_SYS_MEMTEST_START 0x00200000 /* memtest region */
46#define CONFIG_SYS_MEMTEST_END 0x00400000
47
48/*
49 * DDR Setup - manually set all parameters as there's no SPD etc.
50 */
51#define CONFIG_SYS_DDR_SIZE 512 /* MB */
52
53#define CONFIG_SYS_DDR_BASE 0x00000000 /* DDR is sys memory*/
54#define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_DDR_BASE
Anatolij Gustschinb9947bb2010-04-24 19:27:08 +020055#define CONFIG_SYS_MAX_RAM_SIZE 0x20000000
Stefan Roesee53b5072009-06-09 11:50:40 +020056
Anatolij Gustschin5d937e82010-04-24 19:27:07 +020057#define CONFIG_SYS_IOCTRL_MUX_DDR 0x00000036
58
Stefan Roesee53b5072009-06-09 11:50:40 +020059/* DDR Controller Configuration
60 *
61 * SYS_CFG:
62 * [31:31] MDDRC Soft Reset: Diabled
63 * [30:30] DRAM CKE pin: Enabled
64 * [29:29] DRAM CLK: Enabled
65 * [28:28] Command Mode: Enabled (For initialization only)
66 * [27:25] DRAM Row Select: dram_row[15:0] = magenta_address[25:10]
67 * [24:21] DRAM Bank Select: dram_bank[1:0] = magenta_address[11:10]
68 * [20:19] Read Test: DON'T USE
69 * [18:18] Self Refresh: Enabled
70 * [17:17] 16bit Mode: Disabled
71 * [16:13] Ready Delay: 2
72 * [12:12] Half DQS Delay: Disabled
73 * [11:11] Quarter DQS Delay: Disabled
74 * [10:08] Write Delay: 2
75 * [07:07] Early ODT: Disabled
76 * [06:06] On DIE Termination: Disabled
77 * [05:05] FIFO Overflow Clear: DON'T USE here
78 * [04:04] FIFO Underflow Clear: DON'T USE here
79 * [03:03] FIFO Overflow Pending: DON'T USE here
80 * [02:02] FIFO Underlfow Pending: DON'T USE here
81 * [01:01] FIFO Overlfow Enabled: Enabled
82 * [00:00] FIFO Underflow Enabled: Enabled
83 * TIME_CFG0
84 * [31:16] DRAM Refresh Time: 0 CSB clocks
85 * [15:8] DRAM Command Time: 0 CSB clocks
86 * [07:00] DRAM Precharge Time: 0 CSB clocks
87 * TIME_CFG1
88 * [31:26] DRAM tRFC:
89 * [25:21] DRAM tWR1:
90 * [20:17] DRAM tWRT1:
91 * [16:11] DRAM tDRR:
92 * [10:05] DRAM tRC:
93 * [04:00] DRAM tRAS:
94 * TIME_CFG2
95 * [31:28] DRAM tRCD:
96 * [27:23] DRAM tFAW:
97 * [22:19] DRAM tRTW1:
98 * [18:15] DRAM tCCD:
99 * [14:10] DRAM tRTP:
100 * [09:05] DRAM tRP:
101 * [04:00] DRAM tRPA
102 */
Martha M Stan054197b2009-09-21 14:07:14 -0400103#define CONFIG_SYS_MDDRC_SYS_CFG 0xEA804A00
104#define CONFIG_SYS_MDDRC_TIME_CFG0 0x06183D2E
Stefan Roesee53b5072009-06-09 11:50:40 +0200105#define CONFIG_SYS_MDDRC_TIME_CFG1 0x68EC1168
106#define CONFIG_SYS_MDDRC_TIME_CFG2 0x34310864
Stefan Roesee53b5072009-06-09 11:50:40 +0200107
Martha M Stan054197b2009-09-21 14:07:14 -0400108#define CONFIG_SYS_DDRCMD_NOP 0x01380000
109#define CONFIG_SYS_DDRCMD_PCHG_ALL 0x01100400
110#define CONFIG_SYS_DDRCMD_EM2 0x01020000
111#define CONFIG_SYS_DDRCMD_EM3 0x01030000
112#define CONFIG_SYS_DDRCMD_EN_DLL 0x01010000
113#define CONFIG_SYS_DDRCMD_RFSH 0x01080000
Stefan Roesee53b5072009-06-09 11:50:40 +0200114#define CONFIG_SYS_MICRON_INIT_DEV_OP 0x01000432
Martha M Stan054197b2009-09-21 14:07:14 -0400115#define CONFIG_SYS_DDRCMD_OCD_DEFAULT 0x01010780
Stefan Roesee53b5072009-06-09 11:50:40 +0200116
117/* DDR Priority Manager Configuration */
118#define CONFIG_SYS_MDDRCGRP_PM_CFG1 0x00077777
119#define CONFIG_SYS_MDDRCGRP_PM_CFG2 0x00000000
120#define CONFIG_SYS_MDDRCGRP_HIPRIO_CFG 0x00000001
121#define CONFIG_SYS_MDDRCGRP_LUT0_MU 0xFFEEDDCC
122#define CONFIG_SYS_MDDRCGRP_LUT0_ML 0xBBAAAAAA
123#define CONFIG_SYS_MDDRCGRP_LUT1_MU 0x66666666
124#define CONFIG_SYS_MDDRCGRP_LUT1_ML 0x55555555
125#define CONFIG_SYS_MDDRCGRP_LUT2_MU 0x44444444
126#define CONFIG_SYS_MDDRCGRP_LUT2_ML 0x44444444
127#define CONFIG_SYS_MDDRCGRP_LUT3_MU 0x55555555
128#define CONFIG_SYS_MDDRCGRP_LUT3_ML 0x55555558
129#define CONFIG_SYS_MDDRCGRP_LUT4_MU 0x11111111
130#define CONFIG_SYS_MDDRCGRP_LUT4_ML 0x11111122
131#define CONFIG_SYS_MDDRCGRP_LUT0_AU 0xaaaaaaaa
132#define CONFIG_SYS_MDDRCGRP_LUT0_AL 0xaaaaaaaa
133#define CONFIG_SYS_MDDRCGRP_LUT1_AU 0x66666666
134#define CONFIG_SYS_MDDRCGRP_LUT1_AL 0x66666666
135#define CONFIG_SYS_MDDRCGRP_LUT2_AU 0x11111111
136#define CONFIG_SYS_MDDRCGRP_LUT2_AL 0x11111111
137#define CONFIG_SYS_MDDRCGRP_LUT3_AU 0x11111111
138#define CONFIG_SYS_MDDRCGRP_LUT3_AL 0x11111111
139#define CONFIG_SYS_MDDRCGRP_LUT4_AU 0x11111111
140#define CONFIG_SYS_MDDRCGRP_LUT4_AL 0x11111111
141
142/*
143 * NOR FLASH on the Local Bus
144 */
145#define CONFIG_SYS_FLASH_CFI /* use the Common Flash Interface */
146#define CONFIG_FLASH_CFI_DRIVER /* use the CFI driver */
147
148#define CONFIG_SYS_FLASH_BASE 0xFFC00000 /* start of FLASH */
149#define CONFIG_SYS_FLASH_SIZE 0x00400000 /* max flash size */
150
151#define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
152#define CONFIG_SYS_MAX_FLASH_BANKS 1 /* number of banks */
153#define CONFIG_SYS_FLASH_BANKS_LIST {CONFIG_SYS_FLASH_BASE}
154#define CONFIG_SYS_MAX_FLASH_SECT 256 /* max sectors per device */
155
156#undef CONFIG_SYS_FLASH_CHECKSUM
157
158/*
159 * NAND FLASH
Wolfgang Denk13946922009-06-14 20:58:50 +0200160 * drivers/mtd/nand/mpc5121_nfc.c (rev 2 silicon only)
Stefan Roesee53b5072009-06-09 11:50:40 +0200161 */
162#define CONFIG_CMD_NAND
163#define CONFIG_NAND_MPC5121_NFC
164#define CONFIG_SYS_NAND_BASE 0x40000000
Stefan Roesee53b5072009-06-09 11:50:40 +0200165#define CONFIG_SYS_MAX_NAND_DEVICE 1
Stefan Roesee53b5072009-06-09 11:50:40 +0200166
Stefan Roesee53b5072009-06-09 11:50:40 +0200167/*
168 * Configuration parameters for MPC5121 NAND driver
169 */
170#define CONFIG_FSL_NFC_WIDTH 1
171#define CONFIG_FSL_NFC_WRITE_SIZE 2048
172#define CONFIG_FSL_NFC_SPARE_SIZE 64
173#define CONFIG_FSL_NFC_CHIPS 1
174
175#define CONFIG_SYS_SRAM_BASE 0x30000000
176#define CONFIG_SYS_SRAM_SIZE 0x00020000 /* 128 KB */
177
Anatolij Gustschin676c6692013-02-08 00:03:44 +0000178/* Initialize Local Window for NOR FLASH access */
179#define CONFIG_SYS_CS0_START CONFIG_SYS_FLASH_BASE
180#define CONFIG_SYS_CS0_SIZE CONFIG_SYS_FLASH_SIZE
181
Stefan Roesee53b5072009-06-09 11:50:40 +0200182/* ALE active low, data size 4bytes */
183#define CONFIG_SYS_CS0_CFG 0x05051150
184
185/* Use not alternative CS timing */
186#define CONFIG_SYS_CS_ALETIMING 0x00000000
187
188/* ALE active low, data size 4bytes */
189#define CONFIG_SYS_CS1_CFG 0x1f1f3090
190#define CONFIG_SYS_VPC3_BASE 0x82000000 /* start of VPC3 space */
191#define CONFIG_SYS_VPC3_SIZE 0x00010000 /* max VPC3 size */
Anatolij Gustschin676c6692013-02-08 00:03:44 +0000192/* Initialize Local Window for VPC3 access */
193#define CONFIG_SYS_CS1_START CONFIG_SYS_VPC3_BASE
194#define CONFIG_SYS_CS1_SIZE CONFIG_SYS_VPC3_SIZE
Stefan Roesee53b5072009-06-09 11:50:40 +0200195
196/* Use SRAM for initial stack */
197#define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_SRAM_BASE /* Init RAM addr */
Wolfgang Denk553f0982010-10-26 13:32:32 +0200198#define CONFIG_SYS_INIT_RAM_SIZE CONFIG_SYS_SRAM_SIZE
Stefan Roesee53b5072009-06-09 11:50:40 +0200199
Wolfgang Denk25ddd1f2010-10-26 14:34:52 +0200200#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
Stefan Roesee53b5072009-06-09 11:50:40 +0200201#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
202
Wolfgang Denk14d0a022010-10-07 21:51:12 +0200203#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE /* Start of monitor */
Stefan Roesee53b5072009-06-09 11:50:40 +0200204#define CONFIG_SYS_MONITOR_LEN (256 * 1024) /* Monitor length */
205#define CONFIG_SYS_MALLOC_LEN (6 * 1024 * 1024) /* Malloc size */
206
207/*
208 * Serial Port
209 */
210#define CONFIG_CONS_INDEX 1
Stefan Roesee53b5072009-06-09 11:50:40 +0200211
212/*
213 * Serial console configuration
214 */
215#define CONFIG_PSC_CONSOLE 3 /* console is on PSC3 */
Marek Vasutbfb31272012-09-16 16:07:24 +0200216#define CONFIG_SYS_PSC3
Stefan Roesee53b5072009-06-09 11:50:40 +0200217#if CONFIG_PSC_CONSOLE != 3
218#error CONFIG_PSC_CONSOLE must be 3
219#endif
220#define CONFIG_BAUDRATE 9600 /* ... at 9600 bps */
221#define CONFIG_SYS_BAUDRATE_TABLE \
222 {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 115200}
223
224#define CONSOLE_FIFO_TX_SIZE FIFOC_PSC3_TX_SIZE
225#define CONSOLE_FIFO_TX_ADDR FIFOC_PSC3_TX_ADDR
226#define CONSOLE_FIFO_RX_SIZE FIFOC_PSC3_RX_SIZE
227#define CONSOLE_FIFO_RX_ADDR FIFOC_PSC3_RX_ADDR
228
Anatolij Gustschine5f53862013-02-08 00:03:45 +0000229/*
230 * Clocks in use
231 */
232#define SCCR1_CLOCKS_EN (CLOCK_SCCR1_CFG_EN | \
233 CLOCK_SCCR1_LPC_EN | \
234 CLOCK_SCCR1_PSC_EN(CONFIG_PSC_CONSOLE) | \
235 CLOCK_SCCR1_PSCFIFO_EN | \
236 CLOCK_SCCR1_DDR_EN | \
237 CLOCK_SCCR1_FEC_EN | \
238 CLOCK_SCCR1_NFC_EN | \
239 CLOCK_SCCR1_PCI_EN | \
240 CLOCK_SCCR1_TPR_EN)
241
242#define SCCR2_CLOCKS_EN (CLOCK_SCCR2_MEM_EN | \
243 CLOCK_SCCR2_I2C_EN)
244
Stefan Roesee53b5072009-06-09 11:50:40 +0200245#define CONFIG_CMDLINE_EDITING 1 /* add command line history */
Stefan Roesee53b5072009-06-09 11:50:40 +0200246
247/* I2C */
248#define CONFIG_HARD_I2C /* I2C with hardware support */
Stefan Roesee53b5072009-06-09 11:50:40 +0200249#define CONFIG_I2C_MULTI_BUS
Stefan Roesee53b5072009-06-09 11:50:40 +0200250#define CONFIG_SYS_I2C_SPEED 400000 /* I2C speed */
251#define CONFIG_SYS_I2C_SLAVE 0x7F /* slave address */
252
253/*
254 * IIM - IC Identification Module
255 */
Benoît Thébaudeau83306922013-04-23 10:17:42 +0000256#undef CONFIG_FSL_IIM
Stefan Roesee53b5072009-06-09 11:50:40 +0200257
258/*
259 * EEPROM configuration
260 */
261#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2 /* 16-bit EEPROM address */
262#define CONFIG_SYS_I2C_EEPROM_ADDR 0x50 /* Atmel: AT24C32A-10TQ-2.7 */
263#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10 /* 10ms of delay */
264#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 5 /* 32-Byte Page Write Mode */
265#define CONFIG_SYS_EEPROM_WREN /* Use EEPROM write protect */
266
267/*
268 * Ethernet configuration
269 */
270#define CONFIG_MPC512x_FEC 1
Stefan Roesee53b5072009-06-09 11:50:40 +0200271#define CONFIG_PHY_ADDR 0x1
272#define CONFIG_MII 1 /* MII PHY management */
273#define CONFIG_FEC_AN_TIMEOUT 1
274#define CONFIG_HAS_ETH0
275
276/*
277 * Configure on-board RTC
278 */
279#define CONFIG_SYS_RTC_BUS_NUM 0x01
280#define CONFIG_SYS_I2C_RTC_ADDR 0x32
281#define CONFIG_RTC_RX8025
282
283/*
284 * Environment
285 */
286#define CONFIG_ENV_IS_IN_EEPROM /* Store env in I2C EEPROM */
287#define CONFIG_ENV_SIZE 0x1000
288#define CONFIG_ENV_OFFSET 0x0000 /* environment starts here */
289
290#define CONFIG_LOADS_ECHO /* echo on for serial download */
291#define CONFIG_SYS_LOADS_BAUD_CHANGE /* allow baudrate change */
292
Stefan Roesee53b5072009-06-09 11:50:40 +0200293#define CONFIG_CMD_ASKENV
Stefan Roesee53b5072009-06-09 11:50:40 +0200294#define CONFIG_CMD_MII
Stefan Roesee53b5072009-06-09 11:50:40 +0200295#define CONFIG_CMD_REGINFO
296#define CONFIG_CMD_EEPROM
297#define CONFIG_CMD_DATE
298#undef CONFIG_CMD_FUSE
299#undef CONFIG_CMD_IDE
300#undef CONFIG_CMD_EXT2
301#define CONFIG_CMD_FAT
302#define CONFIG_CMD_JFFS2
Stefan Roesee53b5072009-06-09 11:50:40 +0200303#define CONFIG_DOS_PARTITION
304
305/*
306 * Watchdog timeout = CONFIG_SYS_WATCHDOG_VALUE * 65536 / IPS clock.
307 * For example, when IPS is set to 66MHz and CONFIG_SYS_WATCHDOG_VALUE is set
308 * to 0xFFFF, watchdog timeouts after about 64s. For details refer
309 * to chapter 36 of the MPC5121e Reference Manual.
310 */
311/* #define CONFIG_WATCHDOG */ /* enable watchdog */
312#define CONFIG_SYS_WATCHDOG_VALUE 0xFFFF
313
314 /*
315 * Miscellaneous configurable options
316 */
317#define CONFIG_SYS_LONGHELP /* undef to save memory */
318#define CONFIG_SYS_LOAD_ADDR 0x2000000 /* default load address */
Stefan Roesee53b5072009-06-09 11:50:40 +0200319
320#ifdef CONFIG_CMD_KGDB
321# define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */
322#else
323# define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
324#endif
325
326/* Print Buffer Size */
327#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
328 sizeof(CONFIG_SYS_PROMPT) + 16)
329/* max number of command args */
330#define CONFIG_SYS_MAXARGS 32
331/* Boot Argument Buffer Size */
332#define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
333
Stefan Roesee53b5072009-06-09 11:50:40 +0200334/*
335 * For booting Linux, the board info and command line data
Ira W. Snyder9f530d52010-09-10 15:42:32 -0700336 * have to be in the first 256 MB of memory, since this is
Stefan Roesee53b5072009-06-09 11:50:40 +0200337 * the maximum mapped by the Linux kernel during initialization.
338 */
Ira W. Snyder9f530d52010-09-10 15:42:32 -0700339#define CONFIG_SYS_BOOTMAPSZ (256 << 20) /* Linux initial memory map */
Stefan Roesee53b5072009-06-09 11:50:40 +0200340
341/* Cache Configuration */
342#define CONFIG_SYS_DCACHE_SIZE 32768
343#define CONFIG_SYS_CACHELINE_SIZE 32
344#ifdef CONFIG_CMD_KGDB
345#define CONFIG_SYS_CACHELINE_SHIFT 5
346#endif
347
348#define CONFIG_SYS_HID0_INIT 0x000000000
349#define CONFIG_SYS_HID0_FINAL HID0_ENABLE_MACHINE_CHECK
350#define CONFIG_SYS_HID2 HID2_HBE
351
352#define CONFIG_HIGH_BATS 1 /* High BATs supported */
353
Stefan Roesee53b5072009-06-09 11:50:40 +0200354#ifdef CONFIG_CMD_KGDB
355#define CONFIG_KGDB_BAUDRATE 230400 /* speed of kgdb serial port */
Stefan Roesee53b5072009-06-09 11:50:40 +0200356#endif
357
358/*
359 * Environment Configuration
360 */
361#define CONFIG_TIMESTAMP
362
363#define CONFIG_HOSTNAME mecp512x
Joe Hershbergerb3f44c22011-10-13 13:03:48 +0000364#define CONFIG_BOOTFILE "/tftpboot/mecp512x/uImage"
Joe Hershberger8b3637c2011-10-13 13:03:47 +0000365#define CONFIG_ROOTPATH "/tftpboot/mecp512x/target_root"
Stefan Roesee53b5072009-06-09 11:50:40 +0200366
367#define CONFIG_LOADADDR 400000 /* def. location for tftp and bootm */
368
369#define CONFIG_BOOTDELAY 5 /* -1 disables auto-boot */
370#undef CONFIG_BOOTARGS /* the boot command will set bootargs*/
371
372#define CONFIG_PREBOOT "echo;" \
373 "echo Welcome to MECP5123" \
374 "echo"
375
376#define CONFIG_EXTRA_ENV_SETTINGS \
377 "u-boot_addr_r=200000\0" \
378 "kernel_addr_r=600000\0" \
379 "fdt_addr_r=880000\0" \
380 "ramdisk_addr_r=900000\0" \
381 "u-boot_addr=FFF00000\0" \
382 "kernel_addr=FFC40000\0" \
383 "fdt_addr=FFEC0000\0" \
384 "ramdisk_addr=FC040000\0" \
385 "ramdiskfile=/tftpboot/mecp512x/uRamdisk\0" \
386 "u-boot=/tftpboot/mecp512x/u-boot.bin\0" \
387 "bootfile=/tftpboot/mecp512x/uImage\0" \
388 "fdtfile=/tftpboot/mecp512x/mecp512x.dtb\0" \
389 "rootpath=/tftpboot/mecp512x/target_root\n" \
390 "netdev=eth0\0" \
391 "consdev=ttyPSC0\0" \
392 "nfsargs=setenv bootargs root=/dev/nfs rw " \
393 "nfsroot=${serverip}:${rootpath}\0" \
394 "ramargs=setenv bootargs root=/dev/ram rw\0" \
395 "addip=setenv bootargs ${bootargs} " \
396 "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}" \
397 ":${hostname}:${netdev}:off panic=1\0" \
398 "addtty=setenv bootargs ${bootargs} " \
399 "console=${consdev},${baudrate}\0" \
400 "flash_nfs=run nfsargs addip addtty;" \
401 "bootm ${kernel_addr} - ${fdt_addr}\0" \
402 "flash_self=run ramargs addip addtty;" \
403 "bootm ${kernel_addr} ${ramdisk_addr} ${fdt_addr}\0" \
404 "net_nfs=tftp ${kernel_addr_r} ${bootfile};" \
405 "tftp ${fdt_addr_r} ${fdtfile};" \
406 "run nfsargs addip addtty;" \
407 "bootm ${kernel_addr_r} - ${fdt_addr_r}\0" \
408 "net_self=tftp ${kernel_addr_r} ${bootfile};" \
409 "tftp ${ramdisk_addr_r} ${ramdiskfile};" \
410 "tftp ${fdt_addr_r} ${fdtfile};" \
411 "run ramargs addip addtty;" \
412 "bootm ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}\0"\
413 "load=tftp ${u-boot_addr_r} ${u-boot}\0" \
414 "update=protect off ${u-boot_addr} +${filesize};" \
415 "era ${u-boot_addr} +${filesize};" \
416 "cp.b ${u-boot_addr_r} ${u-boot_addr} ${filesize}\0" \
417 "upd=run load update\0" \
418 ""
419
420#define CONFIG_BOOTCOMMAND "run flash_self"
421
Stefan Roesee53b5072009-06-09 11:50:40 +0200422#define OF_CPU "PowerPC,5121@0"
423#define OF_SOC_COMPAT "fsl,mpc5121-immr"
424#define OF_TBCLK (bd->bi_busfreq / 4)
425#define OF_STDOUT_PATH "/soc@80000000/serial@11300"
426
427#endif /* __CONFIG_H */