mecp5123.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458
  1. /*
  2. * (C) Copyright 2009 Wolfgang Denk <wd@denx.de>
  3. * (C) Copyright 2009, DAVE Srl <www.dave.eu>
  4. *
  5. * See file CREDITS for list of people who contributed to this
  6. * project.
  7. *
  8. * This program is free software; you can redistribute it and/or
  9. * modify it under the terms of the GNU General Public License as
  10. * published by the Free Software Foundation; either version 2 of
  11. * the License, or (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  21. * MA 02111-1307 USA
  22. *
  23. * modifications for the MECP5123 by reinhard.arlt@esd-electronics.com
  24. *
  25. */
  26. /*
  27. * MECP5123 board configuration file
  28. */
  29. #ifndef __CONFIG_H
  30. #define __CONFIG_H
  31. #define CONFIG_MECP5123 1
  32. /*
  33. * Memory map for the MECP5123 board:
  34. *
  35. * 0x0000_0000 - 0x1FFF_FFFF DDR RAM (512 MB)
  36. * 0x3000_0000 - 0x3001_FFFF SRAM (128 KB)
  37. * 0x8000_0000 - 0x803F_FFFF IMMR (4 MB)
  38. * 0x8200_0000 - 0x8200_FFFF VPC-3 (64 KB)
  39. * 0xFFC0_0000 - 0xFFFF_FFFF NOR Boot FLASH (64 MB)
  40. */
  41. /*
  42. * High Level Configuration Options
  43. */
  44. #define CONFIG_E300 1 /* E300 Family */
  45. #define CONFIG_MPC512X 1 /* MPC512X family */
  46. #define CONFIG_SYS_MPC512X_CLKIN 33333333 /* in Hz */
  47. #define CONFIG_BOARD_EARLY_INIT_F /* call board_early_init_f() */
  48. #define CONFIG_MISC_INIT_R
  49. #define CONFIG_SYS_IMMR 0x80000000
  50. #define CONFIG_SYS_DIU_ADDR (CONFIG_SYS_IMMR+0x2100)
  51. #define CONFIG_SYS_MEMTEST_START 0x00200000 /* memtest region */
  52. #define CONFIG_SYS_MEMTEST_END 0x00400000
  53. /*
  54. * DDR Setup - manually set all parameters as there's no SPD etc.
  55. */
  56. #define CONFIG_SYS_DDR_SIZE 512 /* MB */
  57. #define CONFIG_SYS_DDR_BASE 0x00000000 /* DDR is sys memory*/
  58. #define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_DDR_BASE
  59. /* 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. */
  103. #ifdef CONFIG_ADS5121_REV2
  104. #define CONFIG_SYS_MDDRC_SYS_CFG 0xF8604A00
  105. #define CONFIG_SYS_MDDRC_SYS_CFG_RUN 0xE8604A00
  106. #define CONFIG_SYS_MDDRC_TIME_CFG1 0x54EC1168
  107. #define CONFIG_SYS_MDDRC_TIME_CFG2 0x35210864
  108. #else
  109. #define CONFIG_SYS_MDDRC_SYS_CFG 0xFA804A00
  110. #define CONFIG_SYS_MDDRC_SYS_CFG_RUN 0xEA804A00
  111. #define CONFIG_SYS_MDDRC_TIME_CFG1 0x68EC1168
  112. #define CONFIG_SYS_MDDRC_TIME_CFG2 0x34310864
  113. #endif
  114. #define CONFIG_SYS_MDDRC_SYS_CFG_EN 0xF0000000
  115. #define CONFIG_SYS_MDDRC_TIME_CFG0 0x00003D2E
  116. #define CONFIG_SYS_MDDRC_TIME_CFG0_RUN 0x06183D2E
  117. #define CONFIG_SYS_MICRON_NOP 0x01380000
  118. #define CONFIG_SYS_MICRON_PCHG_ALL 0x01100400
  119. #define CONFIG_SYS_MICRON_EM2 0x01020000
  120. #define CONFIG_SYS_MICRON_EM3 0x01030000
  121. #define CONFIG_SYS_MICRON_EN_DLL 0x01010000
  122. #define CONFIG_SYS_MICRON_RFSH 0x01080000
  123. #define CONFIG_SYS_MICRON_INIT_DEV_OP 0x01000432
  124. #define CONFIG_SYS_MICRON_OCD_DEFAULT 0x01010780
  125. /* DDR Priority Manager Configuration */
  126. #define CONFIG_SYS_MDDRCGRP_PM_CFG1 0x00077777
  127. #define CONFIG_SYS_MDDRCGRP_PM_CFG2 0x00000000
  128. #define CONFIG_SYS_MDDRCGRP_HIPRIO_CFG 0x00000001
  129. #define CONFIG_SYS_MDDRCGRP_LUT0_MU 0xFFEEDDCC
  130. #define CONFIG_SYS_MDDRCGRP_LUT0_ML 0xBBAAAAAA
  131. #define CONFIG_SYS_MDDRCGRP_LUT1_MU 0x66666666
  132. #define CONFIG_SYS_MDDRCGRP_LUT1_ML 0x55555555
  133. #define CONFIG_SYS_MDDRCGRP_LUT2_MU 0x44444444
  134. #define CONFIG_SYS_MDDRCGRP_LUT2_ML 0x44444444
  135. #define CONFIG_SYS_MDDRCGRP_LUT3_MU 0x55555555
  136. #define CONFIG_SYS_MDDRCGRP_LUT3_ML 0x55555558
  137. #define CONFIG_SYS_MDDRCGRP_LUT4_MU 0x11111111
  138. #define CONFIG_SYS_MDDRCGRP_LUT4_ML 0x11111122
  139. #define CONFIG_SYS_MDDRCGRP_LUT0_AU 0xaaaaaaaa
  140. #define CONFIG_SYS_MDDRCGRP_LUT0_AL 0xaaaaaaaa
  141. #define CONFIG_SYS_MDDRCGRP_LUT1_AU 0x66666666
  142. #define CONFIG_SYS_MDDRCGRP_LUT1_AL 0x66666666
  143. #define CONFIG_SYS_MDDRCGRP_LUT2_AU 0x11111111
  144. #define CONFIG_SYS_MDDRCGRP_LUT2_AL 0x11111111
  145. #define CONFIG_SYS_MDDRCGRP_LUT3_AU 0x11111111
  146. #define CONFIG_SYS_MDDRCGRP_LUT3_AL 0x11111111
  147. #define CONFIG_SYS_MDDRCGRP_LUT4_AU 0x11111111
  148. #define CONFIG_SYS_MDDRCGRP_LUT4_AL 0x11111111
  149. /*
  150. * NOR FLASH on the Local Bus
  151. */
  152. #define CONFIG_SYS_FLASH_CFI /* use the Common Flash Interface */
  153. #define CONFIG_FLASH_CFI_DRIVER /* use the CFI driver */
  154. #define CONFIG_SYS_FLASH_BASE 0xFFC00000 /* start of FLASH */
  155. #define CONFIG_SYS_FLASH_SIZE 0x00400000 /* max flash size */
  156. #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
  157. #define CONFIG_SYS_MAX_FLASH_BANKS 1 /* number of banks */
  158. #define CONFIG_SYS_FLASH_BANKS_LIST {CONFIG_SYS_FLASH_BASE}
  159. #define CONFIG_SYS_MAX_FLASH_SECT 256 /* max sectors per device */
  160. #undef CONFIG_SYS_FLASH_CHECKSUM
  161. /*
  162. * NAND FLASH
  163. * drivers/mtd/nand/mpc5121_mpc.c (rev 2 silicon only)
  164. */
  165. #define CONFIG_CMD_NAND
  166. #define CONFIG_NAND_MPC5121_NFC
  167. #define CONFIG_SYS_NAND_BASE 0x40000000
  168. #define CONFIG_SYS_MAX_NAND_DEVICE 1
  169. #define NAND_MAX_CHIPS CONFIG_SYS_MAX_NAND_DEVICE
  170. /*
  171. * Configuration parameters for MPC5121 NAND driver
  172. */
  173. #define CONFIG_FSL_NFC_WIDTH 1
  174. #define CONFIG_FSL_NFC_WRITE_SIZE 2048
  175. #define CONFIG_FSL_NFC_SPARE_SIZE 64
  176. #define CONFIG_FSL_NFC_CHIPS 1
  177. #define CONFIG_SYS_SRAM_BASE 0x30000000
  178. #define CONFIG_SYS_SRAM_SIZE 0x00020000 /* 128 KB */
  179. /* ALE active low, data size 4bytes */
  180. #define CONFIG_SYS_CS0_CFG 0x05051150
  181. /* Use not alternative CS timing */
  182. #define CONFIG_SYS_CS_ALETIMING 0x00000000
  183. /* ALE active low, data size 4bytes */
  184. #define CONFIG_SYS_CS1_CFG 0x1f1f3090
  185. #define CONFIG_SYS_VPC3_BASE 0x82000000 /* start of VPC3 space */
  186. #define CONFIG_SYS_VPC3_SIZE 0x00010000 /* max VPC3 size */
  187. /* Use SRAM for initial stack */
  188. #define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_SRAM_BASE /* Init RAM addr */
  189. #define CONFIG_SYS_INIT_RAM_END CONFIG_SYS_SRAM_SIZE
  190. #define CONFIG_SYS_GBL_DATA_SIZE 0x100 /* num bytes initial data */
  191. #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
  192. #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
  193. #define CONFIG_SYS_MONITOR_BASE TEXT_BASE /* Start of monitor */
  194. #define CONFIG_SYS_MONITOR_LEN (256 * 1024) /* Monitor length */
  195. #define CONFIG_SYS_MALLOC_LEN (6 * 1024 * 1024) /* Malloc size */
  196. /*
  197. * Serial Port
  198. */
  199. #define CONFIG_CONS_INDEX 1
  200. #undef CONFIG_SERIAL_SOFTWARE_FIFO
  201. /*
  202. * Serial console configuration
  203. */
  204. #define CONFIG_PSC_CONSOLE 3 /* console is on PSC3 */
  205. #if CONFIG_PSC_CONSOLE != 3
  206. #error CONFIG_PSC_CONSOLE must be 3
  207. #endif
  208. #define CONFIG_BAUDRATE 9600 /* ... at 9600 bps */
  209. #define CONFIG_SYS_BAUDRATE_TABLE \
  210. {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 115200}
  211. #define CONSOLE_FIFO_TX_SIZE FIFOC_PSC3_TX_SIZE
  212. #define CONSOLE_FIFO_TX_ADDR FIFOC_PSC3_TX_ADDR
  213. #define CONSOLE_FIFO_RX_SIZE FIFOC_PSC3_RX_SIZE
  214. #define CONSOLE_FIFO_RX_ADDR FIFOC_PSC3_RX_ADDR
  215. #define CONFIG_CMDLINE_EDITING 1 /* add command line history */
  216. /* Use the HUSH parser */
  217. #define CONFIG_SYS_HUSH_PARSER
  218. #ifdef CONFIG_SYS_HUSH_PARSER
  219. #define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
  220. #endif
  221. /* I2C */
  222. #define CONFIG_HARD_I2C /* I2C with hardware support */
  223. #undef CONFIG_SOFT_I2C /* so disable bit-banged I2C */
  224. #define CONFIG_I2C_MULTI_BUS
  225. #define CONFIG_I2C_CMD_TREE
  226. #define CONFIG_SYS_I2C_SPEED 400000 /* I2C speed */
  227. #define CONFIG_SYS_I2C_SLAVE 0x7F /* slave address */
  228. /*
  229. * IIM - IC Identification Module
  230. */
  231. #undef CONFIG_IIM
  232. /*
  233. * EEPROM configuration
  234. */
  235. #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 2 /* 16-bit EEPROM address */
  236. #define CONFIG_SYS_I2C_EEPROM_ADDR 0x50 /* Atmel: AT24C32A-10TQ-2.7 */
  237. #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 10 /* 10ms of delay */
  238. #define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS 5 /* 32-Byte Page Write Mode */
  239. #define CONFIG_SYS_EEPROM_WREN /* Use EEPROM write protect */
  240. /*
  241. * Ethernet configuration
  242. */
  243. #define CONFIG_MPC512x_FEC 1
  244. #define CONFIG_NET_MULTI
  245. #define CONFIG_PHY_ADDR 0x1
  246. #define CONFIG_MII 1 /* MII PHY management */
  247. #define CONFIG_FEC_AN_TIMEOUT 1
  248. #define CONFIG_HAS_ETH0
  249. /*
  250. * Configure on-board RTC
  251. */
  252. #define CONFIG_SYS_RTC_BUS_NUM 0x01
  253. #define CONFIG_SYS_I2C_RTC_ADDR 0x32
  254. #define CONFIG_RTC_RX8025
  255. /*
  256. * Environment
  257. */
  258. #define CONFIG_ENV_IS_IN_EEPROM /* Store env in I2C EEPROM */
  259. #define CONFIG_ENV_SIZE 0x1000
  260. #define CONFIG_ENV_OFFSET 0x0000 /* environment starts here */
  261. #define CONFIG_LOADS_ECHO /* echo on for serial download */
  262. #define CONFIG_SYS_LOADS_BAUD_CHANGE /* allow baudrate change */
  263. #include <config_cmd_default.h>
  264. #define CONFIG_CMD_ASKENV
  265. #define CONFIG_CMD_DHCP
  266. #define CONFIG_CMD_I2C
  267. #define CONFIG_CMD_MII
  268. #define CONFIG_CMD_NFS
  269. #define CONFIG_CMD_PING
  270. #define CONFIG_CMD_REGINFO
  271. #define CONFIG_CMD_EEPROM
  272. #define CONFIG_CMD_DATE
  273. #undef CONFIG_CMD_FUSE
  274. #undef CONFIG_CMD_IDE
  275. #undef CONFIG_CMD_EXT2
  276. #define CONFIG_CMD_FAT
  277. #define CONFIG_CMD_JFFS2
  278. #define CONFIG_CMD_ELF
  279. #define CONFIG_DOS_PARTITION
  280. /*
  281. * Watchdog timeout = CONFIG_SYS_WATCHDOG_VALUE * 65536 / IPS clock.
  282. * For example, when IPS is set to 66MHz and CONFIG_SYS_WATCHDOG_VALUE is set
  283. * to 0xFFFF, watchdog timeouts after about 64s. For details refer
  284. * to chapter 36 of the MPC5121e Reference Manual.
  285. */
  286. /* #define CONFIG_WATCHDOG */ /* enable watchdog */
  287. #define CONFIG_SYS_WATCHDOG_VALUE 0xFFFF
  288. /*
  289. * Miscellaneous configurable options
  290. */
  291. #define CONFIG_SYS_LONGHELP /* undef to save memory */
  292. #define CONFIG_SYS_LOAD_ADDR 0x2000000 /* default load address */
  293. #define CONFIG_SYS_PROMPT "=> " /* Monitor Command Prompt */
  294. #ifdef CONFIG_CMD_KGDB
  295. # define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */
  296. #else
  297. # define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
  298. #endif
  299. /* Print Buffer Size */
  300. #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + \
  301. sizeof(CONFIG_SYS_PROMPT) + 16)
  302. /* max number of command args */
  303. #define CONFIG_SYS_MAXARGS 32
  304. /* Boot Argument Buffer Size */
  305. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE
  306. #define CONFIG_SYS_HZ 1000
  307. /*
  308. * For booting Linux, the board info and command line data
  309. * have to be in the first 8 MB of memory, since this is
  310. * the maximum mapped by the Linux kernel during initialization.
  311. */
  312. #define CONFIG_SYS_BOOTMAPSZ (8 << 20) /* Linux initial memory map */
  313. /* Cache Configuration */
  314. #define CONFIG_SYS_DCACHE_SIZE 32768
  315. #define CONFIG_SYS_CACHELINE_SIZE 32
  316. #ifdef CONFIG_CMD_KGDB
  317. #define CONFIG_SYS_CACHELINE_SHIFT 5
  318. #endif
  319. #define CONFIG_SYS_HID0_INIT 0x000000000
  320. #define CONFIG_SYS_HID0_FINAL HID0_ENABLE_MACHINE_CHECK
  321. #define CONFIG_SYS_HID2 HID2_HBE
  322. #define CONFIG_HIGH_BATS 1 /* High BATs supported */
  323. /*
  324. * Internal Definitions
  325. *
  326. * Boot Flags
  327. */
  328. #define BOOTFLAG_COLD 0x01 /* Normal Power-On: Boot from FLASH */
  329. #define BOOTFLAG_WARM 0x02 /* Software reboot */
  330. #ifdef CONFIG_CMD_KGDB
  331. #define CONFIG_KGDB_BAUDRATE 230400 /* speed of kgdb serial port */
  332. #define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */
  333. #endif
  334. /*
  335. * Environment Configuration
  336. */
  337. #define CONFIG_TIMESTAMP
  338. #define CONFIG_HOSTNAME mecp512x
  339. #define CONFIG_BOOTFILE /tftpboot/mecp512x/uImage
  340. #define CONFIG_ROOTPATH /tftpboot/mecp512x/target_root
  341. #define CONFIG_LOADADDR 400000 /* def. location for tftp and bootm */
  342. #define CONFIG_BOOTDELAY 5 /* -1 disables auto-boot */
  343. #undef CONFIG_BOOTARGS /* the boot command will set bootargs*/
  344. #define CONFIG_PREBOOT "echo;" \
  345. "echo Welcome to MECP5123" \
  346. "echo"
  347. #define CONFIG_EXTRA_ENV_SETTINGS \
  348. "u-boot_addr_r=200000\0" \
  349. "kernel_addr_r=600000\0" \
  350. "fdt_addr_r=880000\0" \
  351. "ramdisk_addr_r=900000\0" \
  352. "u-boot_addr=FFF00000\0" \
  353. "kernel_addr=FFC40000\0" \
  354. "fdt_addr=FFEC0000\0" \
  355. "ramdisk_addr=FC040000\0" \
  356. "ramdiskfile=/tftpboot/mecp512x/uRamdisk\0" \
  357. "u-boot=/tftpboot/mecp512x/u-boot.bin\0" \
  358. "bootfile=/tftpboot/mecp512x/uImage\0" \
  359. "fdtfile=/tftpboot/mecp512x/mecp512x.dtb\0" \
  360. "rootpath=/tftpboot/mecp512x/target_root\n" \
  361. "netdev=eth0\0" \
  362. "consdev=ttyPSC0\0" \
  363. "nfsargs=setenv bootargs root=/dev/nfs rw " \
  364. "nfsroot=${serverip}:${rootpath}\0" \
  365. "ramargs=setenv bootargs root=/dev/ram rw\0" \
  366. "addip=setenv bootargs ${bootargs} " \
  367. "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}" \
  368. ":${hostname}:${netdev}:off panic=1\0" \
  369. "addtty=setenv bootargs ${bootargs} " \
  370. "console=${consdev},${baudrate}\0" \
  371. "flash_nfs=run nfsargs addip addtty;" \
  372. "bootm ${kernel_addr} - ${fdt_addr}\0" \
  373. "flash_self=run ramargs addip addtty;" \
  374. "bootm ${kernel_addr} ${ramdisk_addr} ${fdt_addr}\0" \
  375. "net_nfs=tftp ${kernel_addr_r} ${bootfile};" \
  376. "tftp ${fdt_addr_r} ${fdtfile};" \
  377. "run nfsargs addip addtty;" \
  378. "bootm ${kernel_addr_r} - ${fdt_addr_r}\0" \
  379. "net_self=tftp ${kernel_addr_r} ${bootfile};" \
  380. "tftp ${ramdisk_addr_r} ${ramdiskfile};" \
  381. "tftp ${fdt_addr_r} ${fdtfile};" \
  382. "run ramargs addip addtty;" \
  383. "bootm ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}\0"\
  384. "load=tftp ${u-boot_addr_r} ${u-boot}\0" \
  385. "update=protect off ${u-boot_addr} +${filesize};" \
  386. "era ${u-boot_addr} +${filesize};" \
  387. "cp.b ${u-boot_addr_r} ${u-boot_addr} ${filesize}\0" \
  388. "upd=run load update\0" \
  389. ""
  390. #define CONFIG_BOOTCOMMAND "run flash_self"
  391. #define CONFIG_OF_LIBFDT
  392. #define CONFIG_OF_BOARD_SETUP
  393. #define OF_CPU "PowerPC,5121@0"
  394. #define OF_SOC_COMPAT "fsl,mpc5121-immr"
  395. #define OF_TBCLK (bd->bi_busfreq / 4)
  396. #define OF_STDOUT_PATH "/soc@80000000/serial@11300"
  397. #endif /* __CONFIG_H */