t4qds.h 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896
  1. /*
  2. * Copyright 2011-2012 Freescale Semiconductor, Inc.
  3. *
  4. * See file CREDITS for list of people who contributed to this
  5. * project.
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License as
  9. * published by the Free Software Foundation; either version 2 of
  10. * the License, or (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  20. * MA 02111-1307 USA
  21. */
  22. /*
  23. * Corenet DS style board configuration file
  24. */
  25. #ifndef __CONFIG_H
  26. #define __CONFIG_H
  27. #ifdef CONFIG_RAMBOOT_PBL
  28. #define CONFIG_RAMBOOT_TEXT_BASE CONFIG_SYS_TEXT_BASE
  29. #define CONFIG_RESET_VECTOR_ADDRESS 0xfffffffc
  30. #endif
  31. #define CONFIG_CMD_REGINFO
  32. /* High Level Configuration Options */
  33. #define CONFIG_BOOKE
  34. #define CONFIG_E6500
  35. #define CONFIG_E500 /* BOOKE e500 family */
  36. #define CONFIG_E500MC /* BOOKE e500mc family */
  37. #define CONFIG_SYS_BOOK3E_HV /* Category E.HV supported */
  38. #define CONFIG_MPC85xx /* MPC85xx/PQ3 platform */
  39. #define CONFIG_FSL_CORENET /* Freescale CoreNet platform */
  40. #define CONFIG_MP /* support multiple processors */
  41. #ifndef CONFIG_SYS_TEXT_BASE
  42. #define CONFIG_SYS_TEXT_BASE 0xeff80000
  43. #endif
  44. #ifndef CONFIG_RESET_VECTOR_ADDRESS
  45. #define CONFIG_RESET_VECTOR_ADDRESS 0xeffffffc
  46. #endif
  47. #define CONFIG_SYS_FSL_CPC /* Corenet Platform Cache */
  48. #define CONFIG_SYS_NUM_CPC CONFIG_NUM_DDR_CONTROLLERS
  49. #define CONFIG_FSL_IFC /* Enable IFC Support */
  50. #define CONFIG_PCI /* Enable PCI/PCIE */
  51. #define CONFIG_PCIE1 /* PCIE controler 1 */
  52. #define CONFIG_PCIE2 /* PCIE controler 2 */
  53. #define CONFIG_PCIE3 /* PCIE controler 3 */
  54. #define CONFIG_FSL_PCI_INIT /* Use common FSL init code */
  55. #define CONFIG_SYS_PCI_64BIT /* enable 64-bit PCI resources */
  56. #define CONFIG_SYS_SRIO
  57. #define CONFIG_SRIO1 /* SRIO port 1 */
  58. #define CONFIG_SRIO2 /* SRIO port 2 */
  59. #define CONFIG_FSL_LAW /* Use common FSL init code */
  60. #define CONFIG_ENV_OVERWRITE
  61. #ifdef CONFIG_SYS_NO_FLASH
  62. #define CONFIG_ENV_IS_NOWHERE
  63. #else
  64. #define CONFIG_FLASH_CFI_DRIVER
  65. #define CONFIG_SYS_FLASH_CFI
  66. #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE
  67. #endif
  68. #ifndef CONFIG_SYS_NO_FLASH
  69. #if defined(CONFIG_SPIFLASH)
  70. #define CONFIG_SYS_EXTRA_ENV_RELOC
  71. #define CONFIG_ENV_IS_IN_SPI_FLASH
  72. #define CONFIG_ENV_SPI_BUS 0
  73. #define CONFIG_ENV_SPI_CS 0
  74. #define CONFIG_ENV_SPI_MAX_HZ 10000000
  75. #define CONFIG_ENV_SPI_MODE 0
  76. #define CONFIG_ENV_SIZE 0x2000 /* 8KB */
  77. #define CONFIG_ENV_OFFSET 0x100000 /* 1MB */
  78. #define CONFIG_ENV_SECT_SIZE 0x10000
  79. #elif defined(CONFIG_SDCARD)
  80. #define CONFIG_SYS_EXTRA_ENV_RELOC
  81. #define CONFIG_ENV_IS_IN_MMC
  82. #define CONFIG_SYS_MMC_ENV_DEV 0
  83. #define CONFIG_ENV_SIZE 0x2000
  84. #define CONFIG_ENV_OFFSET (512 * 1097)
  85. #elif defined(CONFIG_NAND)
  86. #define CONFIG_SYS_EXTRA_ENV_RELOC
  87. #define CONFIG_ENV_IS_IN_NAND
  88. #define CONFIG_ENV_SIZE CONFIG_SYS_NAND_BLOCK_SIZE
  89. #define CONFIG_ENV_OFFSET (5 * CONFIG_SYS_NAND_BLOCK_SIZE)
  90. #else
  91. #define CONFIG_ENV_IS_IN_FLASH
  92. #define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - CONFIG_ENV_SECT_SIZE)
  93. #define CONFIG_ENV_SIZE 0x2000
  94. #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K (one sector) */
  95. #endif
  96. #else /* CONFIG_SYS_NO_FLASH */
  97. #define CONFIG_ENV_SIZE 0x2000
  98. #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K (one sector) */
  99. #endif
  100. #define CONFIG_SYS_CLK_FREQ get_board_sys_clk()
  101. #define CONFIG_DDR_CLK_FREQ get_board_ddr_clk()
  102. #ifndef __ASSEMBLY__
  103. unsigned long get_board_sys_clk(void);
  104. unsigned long get_board_ddr_clk(void);
  105. #endif
  106. /*
  107. * These can be toggled for performance analysis, otherwise use default.
  108. */
  109. #define CONFIG_SYS_CACHE_STASHING
  110. #define CONFIG_BTB /* toggle branch predition */
  111. #define CONFIG_DDR_ECC
  112. #ifdef CONFIG_DDR_ECC
  113. #define CONFIG_ECC_INIT_VIA_DDRCONTROLLER
  114. #define CONFIG_MEM_INIT_VALUE 0xdeadbeef
  115. #endif
  116. #define CONFIG_ENABLE_36BIT_PHYS
  117. #ifdef CONFIG_PHYS_64BIT
  118. #define CONFIG_ADDR_MAP
  119. #define CONFIG_SYS_NUM_ADDR_MAP 64 /* number of TLB1 entries */
  120. #endif
  121. #if 0
  122. #define CONFIG_POST CONFIG_SYS_POST_MEMORY /* test POST memory test */
  123. #endif
  124. #define CONFIG_SYS_MEMTEST_START 0x00200000 /* memtest works on */
  125. #define CONFIG_SYS_MEMTEST_END 0x00400000
  126. #define CONFIG_SYS_ALT_MEMTEST
  127. #define CONFIG_PANIC_HANG /* do not reset board on panic */
  128. /*
  129. * Config the L3 Cache as L3 SRAM
  130. */
  131. #define CONFIG_SYS_INIT_L3_ADDR CONFIG_RAMBOOT_TEXT_BASE
  132. #ifdef CONFIG_PHYS_64BIT
  133. #define CONFIG_SYS_DCSRBAR 0xf0000000
  134. #define CONFIG_SYS_DCSRBAR_PHYS 0xf00000000ull
  135. #endif
  136. /* EEPROM */
  137. #define CONFIG_ID_EEPROM
  138. #define CONFIG_SYS_I2C_EEPROM_NXID
  139. #define CONFIG_SYS_EEPROM_BUS_NUM 0
  140. #define CONFIG_SYS_I2C_EEPROM_ADDR 0x57
  141. #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
  142. /*
  143. * DDR Setup
  144. */
  145. #define CONFIG_VERY_BIG_RAM
  146. #define CONFIG_SYS_DDR_SDRAM_BASE 0x00000000
  147. #define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_DDR_SDRAM_BASE
  148. /* CONFIG_NUM_DDR_CONTROLLERS is defined in include/asm/config_mpc85xx.h */
  149. #define CONFIG_DIMM_SLOTS_PER_CTLR 2
  150. #define CONFIG_CHIP_SELECTS_PER_CTRL 4
  151. #define CONFIG_FSL_DDR_FIRST_SLOT_QUAD_CAPABLE
  152. #define CONFIG_DDR_SPD
  153. #define CONFIG_FSL_DDR3
  154. #define CONFIG_SYS_SPD_BUS_NUM 0
  155. #define SPD_EEPROM_ADDRESS1 0x51
  156. #define SPD_EEPROM_ADDRESS2 0x52
  157. #define SPD_EEPROM_ADDRESS3 0x53
  158. #define SPD_EEPROM_ADDRESS4 0x54
  159. #define SPD_EEPROM_ADDRESS5 0x55
  160. #define SPD_EEPROM_ADDRESS6 0x56
  161. #define SPD_EEPROM_ADDRESS SPD_EEPROM_ADDRESS1 /* for p3041/p5010 */
  162. #define CONFIG_SYS_SDRAM_SIZE 4096 /* for fixed parameter use */
  163. /*
  164. * IFC Definitions
  165. */
  166. #define CONFIG_SYS_FLASH_BASE 0xe0000000
  167. #ifdef CONFIG_PHYS_64BIT
  168. #define CONFIG_SYS_FLASH_BASE_PHYS (0xf00000000ull | CONFIG_SYS_FLASH_BASE)
  169. #else
  170. #define CONFIG_SYS_FLASH_BASE_PHYS CONFIG_SYS_FLASH_BASE
  171. #endif
  172. #define CONFIG_SYS_NOR0_CSPR_EXT (0xf)
  173. #define CONFIG_SYS_NOR0_CSPR (CSPR_PHYS_ADDR(CONFIG_SYS_FLASH_BASE_PHYS \
  174. + 0x8000000) | \
  175. CSPR_PORT_SIZE_16 | \
  176. CSPR_MSEL_NOR | \
  177. CSPR_V)
  178. #define CONFIG_SYS_NOR1_CSPR_EXT (0xf)
  179. #define CONFIG_SYS_NOR1_CSPR (CSPR_PHYS_ADDR(CONFIG_SYS_FLASH_BASE_PHYS) | \
  180. CSPR_PORT_SIZE_16 | \
  181. CSPR_MSEL_NOR | \
  182. CSPR_V)
  183. #define CONFIG_SYS_NOR_AMASK IFC_AMASK(128*1024*1024)
  184. /* NOR Flash Timing Params */
  185. #define CONFIG_SYS_NOR_CSOR CSOR_NAND_TRHZ_80
  186. #define CONFIG_SYS_NOR_FTIM0 (FTIM0_NOR_TACSE(0x4) | \
  187. FTIM0_NOR_TEADC(0x5) | \
  188. FTIM0_NOR_TEAHC(0x5))
  189. #define CONFIG_SYS_NOR_FTIM1 (FTIM1_NOR_TACO(0x35) | \
  190. FTIM1_NOR_TRAD_NOR(0x1A) |\
  191. FTIM1_NOR_TSEQRAD_NOR(0x13))
  192. #define CONFIG_SYS_NOR_FTIM2 (FTIM2_NOR_TCS(0x4) | \
  193. FTIM2_NOR_TCH(0x4) | \
  194. FTIM2_NOR_TWPH(0x0E) | \
  195. FTIM2_NOR_TWP(0x1c))
  196. #define CONFIG_SYS_NOR_FTIM3 0x0
  197. #define CONFIG_SYS_FLASH_QUIET_TEST
  198. #define CONFIG_FLASH_SHOW_PROGRESS 45 /* count down from 45/5: 9..1 */
  199. #define CONFIG_SYS_MAX_FLASH_BANKS 2 /* number of banks */
  200. #define CONFIG_SYS_MAX_FLASH_SECT 1024 /* sectors per device */
  201. #define CONFIG_SYS_FLASH_ERASE_TOUT 60000 /* Flash Erase Timeout (ms) */
  202. #define CONFIG_SYS_FLASH_WRITE_TOUT 500 /* Flash Write Timeout (ms) */
  203. #define CONFIG_SYS_FLASH_EMPTY_INFO
  204. #define CONFIG_SYS_FLASH_BANKS_LIST {CONFIG_SYS_FLASH_BASE_PHYS \
  205. + 0x8000000, CONFIG_SYS_FLASH_BASE_PHYS}
  206. #define CONFIG_FSL_QIXIS /* use common QIXIS code */
  207. #define QIXIS_BASE 0xffdf0000
  208. #define QIXIS_LBMAP_SWITCH 6
  209. #define QIXIS_LBMAP_MASK 0x0f
  210. #define QIXIS_LBMAP_SHIFT 0
  211. #define QIXIS_LBMAP_DFLTBANK 0x00
  212. #define QIXIS_LBMAP_ALTBANK 0x04
  213. #define QIXIS_RST_CTL_RESET 0x83
  214. #define QIXIS_RCFG_CTL_RECONFIG_IDLE 0x20
  215. #define QIXIS_RCFG_CTL_RECONFIG_START 0x21
  216. #define QIXIS_RCFG_CTL_WATCHDOG_ENBLE 0x08
  217. #ifdef CONFIG_PHYS_64BIT
  218. #define QIXIS_BASE_PHYS (0xf00000000ull | QIXIS_BASE)
  219. #else
  220. #define QIXIS_BASE_PHYS QIXIS_BASE
  221. #endif
  222. #define CONFIG_SYS_CSPR3_EXT (0xf)
  223. #define CONFIG_SYS_CSPR3 (CSPR_PHYS_ADDR(QIXIS_BASE_PHYS) \
  224. | CSPR_PORT_SIZE_8 \
  225. | CSPR_MSEL_GPCM \
  226. | CSPR_V)
  227. #define CONFIG_SYS_AMASK3 IFC_AMASK(4 * 1024)
  228. #define CONFIG_SYS_CSOR3 0x0
  229. /* QIXIS Timing parameters for IFC CS3 */
  230. #define CONFIG_SYS_CS3_FTIM0 (FTIM0_GPCM_TACSE(0x0e) | \
  231. FTIM0_GPCM_TEADC(0x0e) | \
  232. FTIM0_GPCM_TEAHC(0x0e))
  233. #define CONFIG_SYS_CS3_FTIM1 (FTIM1_GPCM_TACO(0xff) | \
  234. FTIM1_GPCM_TRAD(0x3f))
  235. #define CONFIG_SYS_CS3_FTIM2 (FTIM2_GPCM_TCS(0x0e) | \
  236. FTIM2_GPCM_TCH(0x0) | \
  237. FTIM2_GPCM_TWP(0x1f))
  238. #define CONFIG_SYS_CS3_FTIM3 0x0
  239. /* NAND Flash on IFC */
  240. #define CONFIG_NAND_FSL_IFC
  241. #define CONFIG_SYS_NAND_BASE 0xff800000
  242. #ifdef CONFIG_PHYS_64BIT
  243. #define CONFIG_SYS_NAND_BASE_PHYS (0xf00000000ull | CONFIG_SYS_NAND_BASE)
  244. #else
  245. #define CONFIG_SYS_NAND_BASE_PHYS CONFIG_SYS_NAND_BASE
  246. #endif
  247. #define CONFIG_SYS_NAND_CSPR_EXT (0xf)
  248. #define CONFIG_SYS_NAND_CSPR (CSPR_PHYS_ADDR(CONFIG_SYS_NAND_BASE_PHYS) \
  249. | CSPR_PORT_SIZE_8 /* Port Size = 8 bit */ \
  250. | CSPR_MSEL_NAND /* MSEL = NAND */ \
  251. | CSPR_V)
  252. #define CONFIG_SYS_NAND_AMASK IFC_AMASK(64*1024)
  253. #define CONFIG_SYS_NAND_CSOR (CSOR_NAND_ECC_ENC_EN /* ECC on encode */ \
  254. | CSOR_NAND_ECC_DEC_EN /* ECC on decode */ \
  255. | CSOR_NAND_ECC_MODE_4 /* 4-bit ECC */ \
  256. | CSOR_NAND_RAL_3 /* RAL = 2Byes */ \
  257. | CSOR_NAND_PGS_2K /* Page Size = 2K */ \
  258. | CSOR_NAND_SPRZ_64/* Spare size = 64 */ \
  259. | CSOR_NAND_PB(64)) /*Pages Per Block = 64*/
  260. #define CONFIG_SYS_NAND_ONFI_DETECTION
  261. /* ONFI NAND Flash mode0 Timing Params */
  262. #define CONFIG_SYS_NAND_FTIM0 (FTIM0_NAND_TCCST(0x07) | \
  263. FTIM0_NAND_TWP(0x18) | \
  264. FTIM0_NAND_TWCHT(0x07) | \
  265. FTIM0_NAND_TWH(0x0a))
  266. #define CONFIG_SYS_NAND_FTIM1 (FTIM1_NAND_TADLE(0x32) | \
  267. FTIM1_NAND_TWBE(0x39) | \
  268. FTIM1_NAND_TRR(0x0e) | \
  269. FTIM1_NAND_TRP(0x18))
  270. #define CONFIG_SYS_NAND_FTIM2 (FTIM2_NAND_TRAD(0x0f) | \
  271. FTIM2_NAND_TREH(0x0a) | \
  272. FTIM2_NAND_TWHRE(0x1e))
  273. #define CONFIG_SYS_NAND_FTIM3 0x0
  274. #define CONFIG_SYS_NAND_DDR_LAW 11
  275. #define CONFIG_SYS_NAND_BASE_LIST { CONFIG_SYS_NAND_BASE }
  276. #define CONFIG_SYS_MAX_NAND_DEVICE 1
  277. #define CONFIG_MTD_NAND_VERIFY_WRITE
  278. #define CONFIG_CMD_NAND
  279. #define CONFIG_SYS_NAND_BLOCK_SIZE (128 * 1024)
  280. #if defined(CONFIG_NAND)
  281. #define CONFIG_SYS_CSPR0_EXT CONFIG_SYS_NAND_CSPR_EXT
  282. #define CONFIG_SYS_CSPR0 CONFIG_SYS_NAND_CSPR
  283. #define CONFIG_SYS_AMASK0 CONFIG_SYS_NAND_AMASK
  284. #define CONFIG_SYS_CSOR0 CONFIG_SYS_NAND_CSOR
  285. #define CONFIG_SYS_CS0_FTIM0 CONFIG_SYS_NAND_FTIM0
  286. #define CONFIG_SYS_CS0_FTIM1 CONFIG_SYS_NAND_FTIM1
  287. #define CONFIG_SYS_CS0_FTIM2 CONFIG_SYS_NAND_FTIM2
  288. #define CONFIG_SYS_CS0_FTIM3 CONFIG_SYS_NAND_FTIM3
  289. #define CONFIG_SYS_CSPR2_EXT CONFIG_SYS_NOR0_CSPR_EXT
  290. #define CONFIG_SYS_CSPR2 CONFIG_SYS_NOR0_CSPR
  291. #define CONFIG_SYS_AMASK2 CONFIG_SYS_NOR_AMASK
  292. #define CONFIG_SYS_CSOR2 CONFIG_SYS_NOR_CSOR
  293. #define CONFIG_SYS_CS2_FTIM0 CONFIG_SYS_NOR_FTIM0
  294. #define CONFIG_SYS_CS2_FTIM1 CONFIG_SYS_NOR_FTIM1
  295. #define CONFIG_SYS_CS2_FTIM2 CONFIG_SYS_NOR_FTIM2
  296. #define CONFIG_SYS_CS2_FTIM3 CONFIG_SYS_NOR_FTIM3
  297. #else
  298. #define CONFIG_SYS_CSPR0_EXT CONFIG_SYS_NOR0_CSPR_EXT
  299. #define CONFIG_SYS_CSPR0 CONFIG_SYS_NOR0_CSPR
  300. #define CONFIG_SYS_AMASK0 CONFIG_SYS_NOR_AMASK
  301. #define CONFIG_SYS_CSOR0 CONFIG_SYS_NOR_CSOR
  302. #define CONFIG_SYS_CS0_FTIM0 CONFIG_SYS_NOR_FTIM0
  303. #define CONFIG_SYS_CS0_FTIM1 CONFIG_SYS_NOR_FTIM1
  304. #define CONFIG_SYS_CS0_FTIM2 CONFIG_SYS_NOR_FTIM2
  305. #define CONFIG_SYS_CS0_FTIM3 CONFIG_SYS_NOR_FTIM3
  306. #define CONFIG_SYS_CSPR2_EXT CONFIG_SYS_NAND_CSPR_EXT
  307. #define CONFIG_SYS_CSPR2 CONFIG_SYS_NAND_CSPR
  308. #define CONFIG_SYS_AMASK2 CONFIG_SYS_NAND_AMASK
  309. #define CONFIG_SYS_CSOR2 CONFIG_SYS_NAND_CSOR
  310. #define CONFIG_SYS_CS2_FTIM0 CONFIG_SYS_NAND_FTIM0
  311. #define CONFIG_SYS_CS2_FTIM1 CONFIG_SYS_NAND_FTIM1
  312. #define CONFIG_SYS_CS2_FTIM2 CONFIG_SYS_NAND_FTIM2
  313. #define CONFIG_SYS_CS2_FTIM3 CONFIG_SYS_NAND_FTIM3
  314. #endif
  315. #define CONFIG_SYS_CSPR1_EXT CONFIG_SYS_NOR1_CSPR_EXT
  316. #define CONFIG_SYS_CSPR1 CONFIG_SYS_NOR1_CSPR
  317. #define CONFIG_SYS_AMASK1 CONFIG_SYS_NOR_AMASK
  318. #define CONFIG_SYS_CSOR1 CONFIG_SYS_NOR_CSOR
  319. #define CONFIG_SYS_CS1_FTIM0 CONFIG_SYS_NOR_FTIM0
  320. #define CONFIG_SYS_CS1_FTIM1 CONFIG_SYS_NOR_FTIM1
  321. #define CONFIG_SYS_CS1_FTIM2 CONFIG_SYS_NOR_FTIM2
  322. #define CONFIG_SYS_CS1_FTIM3 CONFIG_SYS_NOR_FTIM3
  323. #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
  324. #if defined(CONFIG_RAMBOOT_PBL)
  325. #define CONFIG_SYS_RAMBOOT
  326. #endif
  327. #define CONFIG_BOARD_EARLY_INIT_R /* call board_early_init_r function */
  328. #define CONFIG_MISC_INIT_R
  329. #define CONFIG_HWCONFIG
  330. /* define to use L1 as initial stack */
  331. #define CONFIG_L1_INIT_RAM
  332. #define CONFIG_SYS_INIT_RAM_LOCK
  333. #define CONFIG_SYS_INIT_RAM_ADDR 0xfdd00000 /* Initial L1 address */
  334. #ifdef CONFIG_PHYS_64BIT
  335. #define CONFIG_SYS_INIT_RAM_ADDR_PHYS_HIGH 0xf
  336. #define CONFIG_SYS_INIT_RAM_ADDR_PHYS_LOW 0xfe0ec000
  337. /* The assembler doesn't like typecast */
  338. #define CONFIG_SYS_INIT_RAM_ADDR_PHYS \
  339. ((CONFIG_SYS_INIT_RAM_ADDR_PHYS_HIGH * 1ull << 32) | \
  340. CONFIG_SYS_INIT_RAM_ADDR_PHYS_LOW)
  341. #else
  342. #define CONFIG_SYS_INIT_RAM_ADDR_PHYS 0xfe0ec000 /* Initial L1 address */
  343. #define CONFIG_SYS_INIT_RAM_ADDR_PHYS_HIGH 0
  344. #define CONFIG_SYS_INIT_RAM_ADDR_PHYS_LOW CONFIG_SYS_INIT_RAM_ADDR_PHYS
  345. #endif
  346. #define CONFIG_SYS_INIT_RAM_SIZE 0x00004000
  347. #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - \
  348. GENERATED_GBL_DATA_SIZE)
  349. #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
  350. #define CONFIG_SYS_MONITOR_LEN (512 * 1024)
  351. #define CONFIG_SYS_MALLOC_LEN (4 * 1024 * 1024)
  352. /* Serial Port - controlled on board with jumper J8
  353. * open - index 2
  354. * shorted - index 1
  355. */
  356. #define CONFIG_CONS_INDEX 1
  357. #define CONFIG_SYS_NS16550
  358. #define CONFIG_SYS_NS16550_SERIAL
  359. #define CONFIG_SYS_NS16550_REG_SIZE 1
  360. #define CONFIG_SYS_NS16550_CLK (get_bus_freq(0)/2)
  361. #define CONFIG_SYS_BAUDRATE_TABLE \
  362. {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 115200}
  363. #define CONFIG_SYS_NS16550_COM1 (CONFIG_SYS_CCSRBAR+0x11C500)
  364. #define CONFIG_SYS_NS16550_COM2 (CONFIG_SYS_CCSRBAR+0x11C600)
  365. #define CONFIG_SYS_NS16550_COM3 (CONFIG_SYS_CCSRBAR+0x11D500)
  366. #define CONFIG_SYS_NS16550_COM4 (CONFIG_SYS_CCSRBAR+0x11D600)
  367. /* Use the HUSH parser */
  368. #define CONFIG_SYS_HUSH_PARSER
  369. #define CONFIG_SYS_PROMPT_HUSH_PS2 "> "
  370. /* pass open firmware flat tree */
  371. #define CONFIG_OF_LIBFDT
  372. #define CONFIG_OF_BOARD_SETUP
  373. #define CONFIG_OF_STDOUT_VIA_ALIAS
  374. /* new uImage format support */
  375. #define CONFIG_FIT
  376. #define CONFIG_FIT_VERBOSE /* enable fit_format_{error,warning}() */
  377. /* I2C */
  378. #define CONFIG_FSL_I2C /* Use FSL common I2C driver */
  379. #define CONFIG_HARD_I2C /* I2C with hardware support */
  380. #define CONFIG_I2C_MULTI_BUS
  381. #define CONFIG_I2C_CMD_TREE
  382. #define CONFIG_SYS_I2C_SPEED 100000 /* I2C speed */
  383. #define CONFIG_SYS_I2C_SLAVE 0x7F
  384. #define CONFIG_SYS_I2C_OFFSET 0x118000
  385. #define CONFIG_SYS_I2C2_OFFSET 0x118100
  386. #define I2C_MUX_PCA_ADDR_PRI 0x77 /* I2C bus multiplexer,primary */
  387. #define I2C_MUX_PCA_ADDR_SEC 0x76 /* I2C bus multiplexer,secondary */
  388. #define I2C_MUX_CH_DEFAULT 0x8
  389. #define I2C_MUX_CH_VOL_MONITOR 0xa
  390. #define I2C_MUX_CH_VSC3316_FS 0xc
  391. #define I2C_MUX_CH_VSC3316_BS 0xd
  392. /* Voltage monitor on channel 2*/
  393. #define I2C_VOL_MONITOR_ADDR 0x40
  394. #define I2C_VOL_MONITOR_BUS_V_OFFSET 0x2
  395. #define I2C_VOL_MONITOR_BUS_V_OVF 0x1
  396. #define I2C_VOL_MONITOR_BUS_V_SHIFT 3
  397. /* VSC Crossbar switches */
  398. #define CONFIG_VSC_CROSSBAR
  399. #define VSC3316_FSM_TX_ADDR 0x70
  400. #define VSC3316_FSM_RX_ADDR 0x71
  401. /*
  402. * RapidIO
  403. */
  404. #define CONFIG_SYS_SRIO1_MEM_VIRT 0xa0000000
  405. #ifdef CONFIG_PHYS_64BIT
  406. #define CONFIG_SYS_SRIO1_MEM_PHYS 0xc20000000ull
  407. #else
  408. #define CONFIG_SYS_SRIO1_MEM_PHYS 0xa0000000
  409. #endif
  410. #define CONFIG_SYS_SRIO1_MEM_SIZE 0x10000000 /* 256M */
  411. #define CONFIG_SYS_SRIO2_MEM_VIRT 0xb0000000
  412. #ifdef CONFIG_PHYS_64BIT
  413. #define CONFIG_SYS_SRIO2_MEM_PHYS 0xc30000000ull
  414. #else
  415. #define CONFIG_SYS_SRIO2_MEM_PHYS 0xb0000000
  416. #endif
  417. #define CONFIG_SYS_SRIO2_MEM_SIZE 0x10000000 /* 256M */
  418. /*
  419. * for slave u-boot IMAGE instored in master memory space,
  420. * PHYS must be aligned based on the SIZE
  421. */
  422. #define CONFIG_SRIO_PCIE_BOOT_IMAGE_MEM_PHYS 0xfef080000ull
  423. #define CONFIG_SRIO_PCIE_BOOT_IMAGE_MEM_BUS1 0xfff80000ull
  424. #define CONFIG_SRIO_PCIE_BOOT_IMAGE_SIZE 0x80000 /* 512K */
  425. #define CONFIG_SRIO_PCIE_BOOT_IMAGE_MEM_BUS2 0x3fff80000ull
  426. /*
  427. * for slave UCODE and ENV instored in master memory space,
  428. * PHYS must be aligned based on the SIZE
  429. */
  430. #define CONFIG_SRIO_PCIE_BOOT_UCODE_ENV_MEM_PHYS 0xfef040000ull
  431. #define CONFIG_SRIO_PCIE_BOOT_UCODE_ENV_MEM_BUS 0x3ffe00000ull
  432. #define CONFIG_SRIO_PCIE_BOOT_UCODE_ENV_SIZE 0x40000 /* 256K */
  433. /* slave core release by master*/
  434. #define CONFIG_SRIO_PCIE_BOOT_BRR_OFFSET 0xe00e4
  435. #define CONFIG_SRIO_PCIE_BOOT_RELEASE_MASK 0x00000001 /* release core 0 */
  436. /*
  437. * SRIO_PCIE_BOOT - SLAVE
  438. */
  439. #ifdef CONFIG_SRIO_PCIE_BOOT_SLAVE
  440. #define CONFIG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR 0xFFE00000
  441. #define CONFIG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR_PHYS \
  442. (0x300000000ull | CONFIG_SYS_SRIO_PCIE_BOOT_UCODE_ENV_ADDR)
  443. #endif
  444. /*
  445. * eSPI - Enhanced SPI
  446. */
  447. #define CONFIG_FSL_ESPI
  448. #define CONFIG_SPI_FLASH
  449. #define CONFIG_SPI_FLASH_SST
  450. #define CONFIG_CMD_SF
  451. #define CONFIG_SF_DEFAULT_SPEED 10000000
  452. #define CONFIG_SF_DEFAULT_MODE 0
  453. /*
  454. * General PCI
  455. * Memory space is mapped 1-1, but I/O space must start from 0.
  456. */
  457. /* controller 1, direct to uli, tgtid 3, Base address 20000 */
  458. #define CONFIG_SYS_PCIE1_MEM_VIRT 0x80000000
  459. #ifdef CONFIG_PHYS_64BIT
  460. #define CONFIG_SYS_PCIE1_MEM_BUS 0xe0000000
  461. #define CONFIG_SYS_PCIE1_MEM_PHYS 0xc00000000ull
  462. #else
  463. #define CONFIG_SYS_PCIE1_MEM_BUS 0x80000000
  464. #define CONFIG_SYS_PCIE1_MEM_PHYS 0x80000000
  465. #endif
  466. #define CONFIG_SYS_PCIE1_MEM_SIZE 0x20000000 /* 512M */
  467. #define CONFIG_SYS_PCIE1_IO_VIRT 0xf8000000
  468. #define CONFIG_SYS_PCIE1_IO_BUS 0x00000000
  469. #ifdef CONFIG_PHYS_64BIT
  470. #define CONFIG_SYS_PCIE1_IO_PHYS 0xff8000000ull
  471. #else
  472. #define CONFIG_SYS_PCIE1_IO_PHYS 0xf8000000
  473. #endif
  474. #define CONFIG_SYS_PCIE1_IO_SIZE 0x00010000 /* 64k */
  475. /* controller 2, Slot 2, tgtid 2, Base address 201000 */
  476. #define CONFIG_SYS_PCIE2_MEM_VIRT 0xa0000000
  477. #ifdef CONFIG_PHYS_64BIT
  478. #define CONFIG_SYS_PCIE2_MEM_BUS 0xe0000000
  479. #define CONFIG_SYS_PCIE2_MEM_PHYS 0xc20000000ull
  480. #else
  481. #define CONFIG_SYS_PCIE2_MEM_BUS 0xa0000000
  482. #define CONFIG_SYS_PCIE2_MEM_PHYS 0xa0000000
  483. #endif
  484. #define CONFIG_SYS_PCIE2_MEM_SIZE 0x20000000 /* 512M */
  485. #define CONFIG_SYS_PCIE2_IO_VIRT 0xf8010000
  486. #define CONFIG_SYS_PCIE2_IO_BUS 0x00000000
  487. #ifdef CONFIG_PHYS_64BIT
  488. #define CONFIG_SYS_PCIE2_IO_PHYS 0xff8010000ull
  489. #else
  490. #define CONFIG_SYS_PCIE2_IO_PHYS 0xf8010000
  491. #endif
  492. #define CONFIG_SYS_PCIE2_IO_SIZE 0x00010000 /* 64k */
  493. /* controller 3, Slot 1, tgtid 1, Base address 202000 */
  494. #define CONFIG_SYS_PCIE3_MEM_VIRT 0xc0000000
  495. #ifdef CONFIG_PHYS_64BIT
  496. #define CONFIG_SYS_PCIE3_MEM_BUS 0xe0000000
  497. #define CONFIG_SYS_PCIE3_MEM_PHYS 0xc40000000ull
  498. #else
  499. #define CONFIG_SYS_PCIE3_MEM_BUS 0xc0000000
  500. #define CONFIG_SYS_PCIE3_MEM_PHYS 0xc0000000
  501. #endif
  502. #define CONFIG_SYS_PCIE3_MEM_SIZE 0x20000000 /* 512M */
  503. #define CONFIG_SYS_PCIE3_IO_VIRT 0xf8020000
  504. #define CONFIG_SYS_PCIE3_IO_BUS 0x00000000
  505. #ifdef CONFIG_PHYS_64BIT
  506. #define CONFIG_SYS_PCIE3_IO_PHYS 0xff8020000ull
  507. #else
  508. #define CONFIG_SYS_PCIE3_IO_PHYS 0xf8020000
  509. #endif
  510. #define CONFIG_SYS_PCIE3_IO_SIZE 0x00010000 /* 64k */
  511. /* controller 4, Base address 203000 */
  512. #define CONFIG_SYS_PCIE4_MEM_BUS 0xe0000000
  513. #define CONFIG_SYS_PCIE4_MEM_PHYS 0xc60000000ull
  514. #define CONFIG_SYS_PCIE4_MEM_SIZE 0x20000000 /* 512M */
  515. #define CONFIG_SYS_PCIE4_IO_BUS 0x00000000
  516. #define CONFIG_SYS_PCIE4_IO_PHYS 0xff8030000ull
  517. #define CONFIG_SYS_PCIE4_IO_SIZE 0x00010000 /* 64k */
  518. /* Qman/Bman */
  519. #ifndef CONFIG_NOBQFMAN
  520. #define CONFIG_SYS_DPAA_QBMAN /* Support Q/Bman */
  521. #define CONFIG_SYS_BMAN_NUM_PORTALS 50
  522. #define CONFIG_SYS_BMAN_MEM_BASE 0xf4000000
  523. #ifdef CONFIG_PHYS_64BIT
  524. #define CONFIG_SYS_BMAN_MEM_PHYS 0xff4000000ull
  525. #else
  526. #define CONFIG_SYS_BMAN_MEM_PHYS CONFIG_SYS_BMAN_MEM_BASE
  527. #endif
  528. #define CONFIG_SYS_BMAN_MEM_SIZE 0x02000000
  529. #define CONFIG_SYS_QMAN_NUM_PORTALS 50
  530. #define CONFIG_SYS_QMAN_MEM_BASE 0xf6000000
  531. #ifdef CONFIG_PHYS_64BIT
  532. #define CONFIG_SYS_QMAN_MEM_PHYS 0xff6000000ull
  533. #else
  534. #define CONFIG_SYS_QMAN_MEM_PHYS CONFIG_SYS_QMAN_MEM_BASE
  535. #endif
  536. #define CONFIG_SYS_QMAN_MEM_SIZE 0x02000000
  537. #define CONFIG_SYS_DPAA_FMAN
  538. #define CONFIG_SYS_DPAA_PME
  539. #define CONFIG_SYS_PMAN
  540. #define CONFIG_SYS_DPAA_DCE
  541. #define CONFIG_SYS_INTERLAKEN
  542. /* Default address of microcode for the Linux Fman driver */
  543. #if defined(CONFIG_SPIFLASH)
  544. /*
  545. * env is stored at 0x100000, sector size is 0x10000, ucode is stored after
  546. * env, so we got 0x110000.
  547. */
  548. #define CONFIG_SYS_QE_FW_IN_SPIFLASH
  549. #define CONFIG_SYS_QE_FMAN_FW_ADDR 0x110000
  550. #elif defined(CONFIG_SDCARD)
  551. /*
  552. * PBL SD boot image should stored at 0x1000(8 blocks), the size of the image is
  553. * about 545KB (1089 blocks), Env is stored after the image, and the env size is
  554. * 0x2000 (16 blocks), 8 + 1089 + 16 = 1113, enlarge it to 1130.
  555. */
  556. #define CONFIG_SYS_QE_FMAN_FW_IN_MMC
  557. #define CONFIG_SYS_QE_FMAN_FW_ADDR (512 * 1130)
  558. #elif defined(CONFIG_NAND)
  559. #define CONFIG_SYS_QE_FMAN_FW_IN_NAND
  560. #define CONFIG_SYS_QE_FMAN_FW_ADDR (6 * CONFIG_SYS_NAND_BLOCK_SIZE)
  561. #else
  562. #define CONFIG_SYS_QE_FMAN_FW_IN_NOR
  563. #define CONFIG_SYS_QE_FMAN_FW_ADDR 0xEFF40000
  564. #endif
  565. #define CONFIG_SYS_QE_FMAN_FW_LENGTH 0x10000
  566. #define CONFIG_SYS_FDT_PAD (0x3000 + CONFIG_SYS_QE_FMAN_FW_LENGTH)
  567. #endif /* CONFIG_NOBQFMAN */
  568. #ifdef CONFIG_SYS_DPAA_FMAN
  569. #define CONFIG_FMAN_ENET
  570. #define CONFIG_PHYLIB_10G
  571. #define CONFIG_PHY_VITESSE
  572. #define CONFIG_PHY_TERANETICS
  573. #define SGMII_CARD_PORT1_PHY_ADDR 0x1C
  574. #define SGMII_CARD_PORT2_PHY_ADDR 0x1D
  575. #define SGMII_CARD_PORT3_PHY_ADDR 0x1E
  576. #define SGMII_CARD_PORT4_PHY_ADDR 0x1F
  577. #define XFI_CARD_PORT1_PHY_ADDR 0x1 /* tmp, FIXME below addr */
  578. #define XFI_CARD_PORT2_PHY_ADDR 0x2
  579. #define XFI_CARD_PORT3_PHY_ADDR 0x3
  580. #define XFI_CARD_PORT4_PHY_ADDR 0x4
  581. #define QSGMII_CARD_PHY_ADDR 0x5
  582. #define FM1_10GEC1_PHY_ADDR 0x0
  583. #define FM1_10GEC2_PHY_ADDR 0x1
  584. #define FM2_10GEC1_PHY_ADDR 0x2
  585. #define FM2_10GEC2_PHY_ADDR 0x3
  586. #endif
  587. #ifdef CONFIG_PCI
  588. #define CONFIG_NET_MULTI
  589. #define CONFIG_PCI_PNP /* do pci plug-and-play */
  590. #define CONFIG_E1000
  591. #define CONFIG_PCI_SCAN_SHOW /* show pci devices on startup */
  592. #define CONFIG_DOS_PARTITION
  593. #endif /* CONFIG_PCI */
  594. /* SATA */
  595. #ifdef CONFIG_FSL_SATA_V2
  596. #define CONFIG_LIBATA
  597. #define CONFIG_FSL_SATA
  598. #define CONFIG_SYS_SATA_MAX_DEVICE 2
  599. #define CONFIG_SATA1
  600. #define CONFIG_SYS_SATA1 CONFIG_SYS_MPC85xx_SATA1_ADDR
  601. #define CONFIG_SYS_SATA1_FLAGS FLAGS_DMA
  602. #define CONFIG_SATA2
  603. #define CONFIG_SYS_SATA2 CONFIG_SYS_MPC85xx_SATA2_ADDR
  604. #define CONFIG_SYS_SATA2_FLAGS FLAGS_DMA
  605. #define CONFIG_LBA48
  606. #define CONFIG_CMD_SATA
  607. #define CONFIG_DOS_PARTITION
  608. #define CONFIG_CMD_EXT2
  609. #endif
  610. #ifdef CONFIG_FMAN_ENET
  611. #define CONFIG_MII /* MII PHY management */
  612. #define CONFIG_ETHPRIME "FM1@DTSEC1"
  613. #define CONFIG_PHY_GIGE /* Include GbE speed/duplex detection */
  614. #endif
  615. /*
  616. * Environment
  617. */
  618. #define CONFIG_LOADS_ECHO /* echo on for serial download */
  619. #define CONFIG_SYS_LOADS_BAUD_CHANGE /* allow baudrate change */
  620. /*
  621. * Command line configuration.
  622. */
  623. #include <config_cmd_default.h>
  624. #define CONFIG_CMD_DHCP
  625. #define CONFIG_CMD_ELF
  626. #define CONFIG_CMD_ERRATA
  627. #define CONFIG_CMD_GREPENV
  628. #define CONFIG_CMD_IRQ
  629. #define CONFIG_CMD_I2C
  630. #define CONFIG_CMD_MII
  631. #define CONFIG_CMD_PING
  632. #define CONFIG_CMD_SETEXPR
  633. #ifdef CONFIG_PCI
  634. #define CONFIG_CMD_PCI
  635. #define CONFIG_CMD_NET
  636. #endif
  637. /*
  638. * USB
  639. */
  640. #define CONFIG_CMD_USB
  641. #define CONFIG_USB_STORAGE
  642. #define CONFIG_USB_EHCI
  643. #define CONFIG_USB_EHCI_FSL
  644. #define CONFIG_EHCI_HCD_INIT_AFTER_RESET
  645. #define CONFIG_CMD_EXT2
  646. #define CONFIG_HAS_FSL_DR_USB
  647. #define CONFIG_MMC
  648. #ifdef CONFIG_MMC
  649. #define CONFIG_FSL_ESDHC
  650. #define CONFIG_SYS_FSL_ESDHC_ADDR CONFIG_SYS_MPC85xx_ESDHC_ADDR
  651. #define CONFIG_SYS_FSL_ESDHC_BROKEN_TIMEOUT
  652. #define CONFIG_CMD_MMC
  653. #define CONFIG_GENERIC_MMC
  654. #define CONFIG_CMD_EXT2
  655. #define CONFIG_CMD_FAT
  656. #define CONFIG_DOS_PARTITION
  657. #endif
  658. /*
  659. * Miscellaneous configurable options
  660. */
  661. #define CONFIG_SYS_LONGHELP /* undef to save memory */
  662. #define CONFIG_CMDLINE_EDITING /* Command-line editing */
  663. #define CONFIG_AUTO_COMPLETE /* add autocompletion support */
  664. #define CONFIG_SYS_LOAD_ADDR 0x2000000 /* default load address */
  665. #define CONFIG_SYS_PROMPT "=> " /* Monitor Command Prompt */
  666. #ifdef CONFIG_CMD_KGDB
  667. #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */
  668. #else
  669. #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
  670. #endif
  671. #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
  672. #define CONFIG_SYS_MAXARGS 16 /* max number of command args */
  673. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE/* Boot Argument Buffer Size */
  674. #define CONFIG_SYS_HZ 1000 /* decrementer freq: 1ms ticks*/
  675. /*
  676. * For booting Linux, the board info and command line data
  677. * have to be in the first 64 MB of memory, since this is
  678. * the maximum mapped by the Linux kernel during initialization.
  679. */
  680. #define CONFIG_SYS_BOOTMAPSZ (64 << 20) /* Initial map for Linux*/
  681. #define CONFIG_SYS_BOOTM_LEN (64 << 20) /* Increase max gunzip size */
  682. #ifdef CONFIG_CMD_KGDB
  683. #define CONFIG_KGDB_BAUDRATE 230400 /* speed to run kgdb serial port */
  684. #define CONFIG_KGDB_SER_INDEX 2 /* which serial port to use */
  685. #endif
  686. /*
  687. * Environment Configuration
  688. */
  689. #define CONFIG_ROOTPATH "/opt/nfsroot"
  690. #define CONFIG_BOOTFILE "uImage"
  691. #define CONFIG_UBOOTPATH "u-boot.bin" /* U-Boot image on TFTP server*/
  692. /* default location for tftp and bootm */
  693. #define CONFIG_LOADADDR 1000000
  694. #define CONFIG_BOOTDELAY 10 /* -1 disables auto-boot */
  695. #define CONFIG_BAUDRATE 115200
  696. #define __USB_PHY_TYPE utmi
  697. /*
  698. * T4240 has 3 DDR controllers. Default to 3way_4KB interleaving. It can be
  699. * 3way_1KB, 3way_4KB, 3way_8KB. T4160 has 2 DDR controllers. Default to
  700. * cacheline interleaving. It can be cacheline, page, bank, superbank.
  701. * See doc/README.fsl-ddr for details.
  702. */
  703. #ifdef CONFIG_PPC_T4240
  704. #define CTRL_INTLV_PREFERED 3way_4KB
  705. #else
  706. #define CTRL_INTLV_PREFERED cacheline
  707. #endif
  708. #define CONFIG_EXTRA_ENV_SETTINGS \
  709. "hwconfig=fsl_ddr:" \
  710. "ctlr_intlv=" __stringify(CTRL_INTLV_PREFERED) "," \
  711. "bank_intlv=auto;" \
  712. "usb1:dr_mode=host,phy_type=" __stringify(__USB_PHY_TYPE) "\0"\
  713. "netdev=eth0\0" \
  714. "uboot=" __stringify(CONFIG_UBOOTPATH) "\0" \
  715. "ubootaddr=" __stringify(CONFIG_SYS_TEXT_BASE) "\0" \
  716. "tftpflash=tftpboot $loadaddr $uboot && " \
  717. "protect off $ubootaddr +$filesize && " \
  718. "erase $ubootaddr +$filesize && " \
  719. "cp.b $loadaddr $ubootaddr $filesize && " \
  720. "protect on $ubootaddr +$filesize && " \
  721. "cmp.b $loadaddr $ubootaddr $filesize\0" \
  722. "consoledev=ttyS0\0" \
  723. "ramdiskaddr=2000000\0" \
  724. "ramdiskfile=t4240qds/ramdisk.uboot\0" \
  725. "fdtaddr=c00000\0" \
  726. "fdtfile=t4240qds/t4240qds.dtb\0" \
  727. "bdev=sda3\0" \
  728. "c=ffe\0"
  729. /* For emulation this causes u-boot to jump to the start of the proof point
  730. app code automatically */
  731. #define CONFIG_PROOF_POINTS \
  732. "setenv bootargs root=/dev/$bdev rw " \
  733. "console=$consoledev,$baudrate $othbootargs;" \
  734. "cpu 1 release 0x29000000 - - -;" \
  735. "cpu 2 release 0x29000000 - - -;" \
  736. "cpu 3 release 0x29000000 - - -;" \
  737. "cpu 4 release 0x29000000 - - -;" \
  738. "cpu 5 release 0x29000000 - - -;" \
  739. "cpu 6 release 0x29000000 - - -;" \
  740. "cpu 7 release 0x29000000 - - -;" \
  741. "go 0x29000000"
  742. #define CONFIG_HVBOOT \
  743. "setenv bootargs config-addr=0x60000000; " \
  744. "bootm 0x01000000 - 0x00f00000"
  745. #define CONFIG_ALU \
  746. "setenv bootargs root=/dev/$bdev rw " \
  747. "console=$consoledev,$baudrate $othbootargs;" \
  748. "cpu 1 release 0x01000000 - - -;" \
  749. "cpu 2 release 0x01000000 - - -;" \
  750. "cpu 3 release 0x01000000 - - -;" \
  751. "cpu 4 release 0x01000000 - - -;" \
  752. "cpu 5 release 0x01000000 - - -;" \
  753. "cpu 6 release 0x01000000 - - -;" \
  754. "cpu 7 release 0x01000000 - - -;" \
  755. "go 0x01000000"
  756. #define CONFIG_LINUX \
  757. "setenv bootargs root=/dev/ram rw " \
  758. "console=$consoledev,$baudrate $othbootargs;" \
  759. "setenv ramdiskaddr 0x02000000;" \
  760. "setenv fdtaddr 0x00c00000;" \
  761. "setenv loadaddr 0x1000000;" \
  762. "bootm $loadaddr $ramdiskaddr $fdtaddr"
  763. #define CONFIG_HDBOOT \
  764. "setenv bootargs root=/dev/$bdev rw " \
  765. "console=$consoledev,$baudrate $othbootargs;" \
  766. "tftp $loadaddr $bootfile;" \
  767. "tftp $fdtaddr $fdtfile;" \
  768. "bootm $loadaddr - $fdtaddr"
  769. #define CONFIG_NFSBOOTCOMMAND \
  770. "setenv bootargs root=/dev/nfs rw " \
  771. "nfsroot=$serverip:$rootpath " \
  772. "ip=$ipaddr:$serverip:$gatewayip:$netmask:$hostname:$netdev:off " \
  773. "console=$consoledev,$baudrate $othbootargs;" \
  774. "tftp $loadaddr $bootfile;" \
  775. "tftp $fdtaddr $fdtfile;" \
  776. "bootm $loadaddr - $fdtaddr"
  777. #define CONFIG_RAMBOOTCOMMAND \
  778. "setenv bootargs root=/dev/ram rw " \
  779. "console=$consoledev,$baudrate $othbootargs;" \
  780. "tftp $ramdiskaddr $ramdiskfile;" \
  781. "tftp $loadaddr $bootfile;" \
  782. "tftp $fdtaddr $fdtfile;" \
  783. "bootm $loadaddr $ramdiskaddr $fdtaddr"
  784. #define CONFIG_BOOTCOMMAND CONFIG_LINUX
  785. #ifdef CONFIG_SECURE_BOOT
  786. #include <asm/fsl_secure_boot.h>
  787. #endif
  788. #endif /* __CONFIG_H */