ve8313.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479
  1. /*
  2. * Copyright (C) Freescale Semiconductor, Inc. 2006.
  3. *
  4. * (C) Copyright 2010
  5. * Heiko Schocher, DENX Software Engineering, hs@denx.de.
  6. *
  7. * SPDX-License-Identifier: GPL-2.0+
  8. */
  9. /*
  10. * ve8313 board configuration file
  11. */
  12. #ifndef __CONFIG_H
  13. #define __CONFIG_H
  14. /*
  15. * High Level Configuration Options
  16. */
  17. #define CONFIG_E300 1
  18. #define CONFIG_MPC831x 1
  19. #define CONFIG_MPC8313 1
  20. #define CONFIG_VE8313 1
  21. #ifndef CONFIG_SYS_TEXT_BASE
  22. #define CONFIG_SYS_TEXT_BASE 0xfe000000
  23. #endif
  24. #define CONFIG_PCI_INDIRECT_BRIDGE 1
  25. #define CONFIG_FSL_ELBC 1
  26. #define CONFIG_BOARD_EARLY_INIT_F 1
  27. /*
  28. * On-board devices
  29. *
  30. */
  31. #define CONFIG_83XX_CLKIN 32000000 /* in Hz */
  32. #define CONFIG_SYS_CLK_FREQ CONFIG_83XX_CLKIN
  33. #define CONFIG_SYS_IMMR 0xE0000000
  34. #define CONFIG_SYS_MEMTEST_START 0x00001000
  35. #define CONFIG_SYS_MEMTEST_END 0x07000000
  36. #define CONFIG_SYS_ACR_PIPE_DEP 3 /* Arbiter pipeline depth */
  37. #define CONFIG_SYS_ACR_RPTCNT 3 /* Arbiter repeat count */
  38. /*
  39. * Device configurations
  40. */
  41. /*
  42. * DDR Setup
  43. */
  44. #define CONFIG_SYS_DDR_BASE 0x00000000 /* DDR is system memory*/
  45. #define CONFIG_SYS_SDRAM_BASE CONFIG_SYS_DDR_BASE
  46. #define CONFIG_SYS_DDR_SDRAM_BASE CONFIG_SYS_DDR_BASE
  47. /*
  48. * Manually set up DDR parameters, as this board does not
  49. * have the SPD connected to I2C.
  50. */
  51. #define CONFIG_SYS_DDR_SIZE 128 /* MB */
  52. #define CONFIG_SYS_DDR_CS0_CONFIG (CSCONFIG_EN \
  53. | CSCONFIG_AP \
  54. | CSCONFIG_ODT_RD_NEVER \
  55. | CSCONFIG_ODT_WR_ALL \
  56. | CSCONFIG_ROW_BIT_13 \
  57. | CSCONFIG_COL_BIT_10)
  58. /* 0x80840102 */
  59. #define CONFIG_SYS_DDR_TIMING_3 0x00000000
  60. #define CONFIG_SYS_DDR_TIMING_0 ((0 << TIMING_CFG0_RWT_SHIFT) \
  61. | (0 << TIMING_CFG0_WRT_SHIFT) \
  62. | (3 << TIMING_CFG0_RRT_SHIFT) \
  63. | (2 << TIMING_CFG0_WWT_SHIFT) \
  64. | (7 << TIMING_CFG0_ACT_PD_EXIT_SHIFT) \
  65. | (2 << TIMING_CFG0_PRE_PD_EXIT_SHIFT) \
  66. | (8 << TIMING_CFG0_ODT_PD_EXIT_SHIFT) \
  67. | (2 << TIMING_CFG0_MRS_CYC_SHIFT))
  68. /* 0x0e720802 */
  69. #define CONFIG_SYS_DDR_TIMING_1 ((2 << TIMING_CFG1_PRETOACT_SHIFT) \
  70. | (6 << TIMING_CFG1_ACTTOPRE_SHIFT) \
  71. | (2 << TIMING_CFG1_ACTTORW_SHIFT) \
  72. | (5 << TIMING_CFG1_CASLAT_SHIFT) \
  73. | (6 << TIMING_CFG1_REFREC_SHIFT) \
  74. | (2 << TIMING_CFG1_WRREC_SHIFT) \
  75. | (2 << TIMING_CFG1_ACTTOACT_SHIFT) \
  76. | (2 << TIMING_CFG1_WRTORD_SHIFT))
  77. /* 0x26256222 */
  78. #define CONFIG_SYS_DDR_TIMING_2 ((0 << TIMING_CFG2_ADD_LAT_SHIFT) \
  79. | (5 << TIMING_CFG2_CPO_SHIFT) \
  80. | (2 << TIMING_CFG2_WR_LAT_DELAY_SHIFT) \
  81. | (1 << TIMING_CFG2_RD_TO_PRE_SHIFT) \
  82. | (2 << TIMING_CFG2_WR_DATA_DELAY_SHIFT) \
  83. | (3 << TIMING_CFG2_CKE_PLS_SHIFT) \
  84. | (7 << TIMING_CFG2_FOUR_ACT_SHIFT))
  85. /* 0x029028c7 */
  86. #define CONFIG_SYS_DDR_INTERVAL ((0x320 << SDRAM_INTERVAL_REFINT_SHIFT) \
  87. | (0x2000 << SDRAM_INTERVAL_BSTOPRE_SHIFT))
  88. /* 0x03202000 */
  89. #define CONFIG_SYS_SDRAM_CFG (SDRAM_CFG_SREN \
  90. | SDRAM_CFG_SDRAM_TYPE_DDR2 \
  91. | SDRAM_CFG_DBW_32)
  92. /* 0x43080000 */
  93. #define CONFIG_SYS_SDRAM_CFG2 0x00401000
  94. #define CONFIG_SYS_DDR_MODE ((0x4440 << SDRAM_MODE_ESD_SHIFT) \
  95. | (0x0232 << SDRAM_MODE_SD_SHIFT))
  96. /* 0x44400232 */
  97. #define CONFIG_SYS_DDR_MODE_2 0x8000C000
  98. #define CONFIG_SYS_DDR_CLK_CNTL DDR_SDRAM_CLK_CNTL_CLK_ADJUST_05
  99. /*0x02000000*/
  100. #define CONFIG_SYS_DDRCDR_VALUE (DDRCDR_EN \
  101. | DDRCDR_PZ_NOMZ \
  102. | DDRCDR_NZ_NOMZ \
  103. | DDRCDR_M_ODR)
  104. /* 0x73000002 */
  105. /*
  106. * FLASH on the Local Bus
  107. */
  108. #define CONFIG_SYS_FLASH_CFI /* use the Common Flash Interface */
  109. #define CONFIG_FLASH_CFI_DRIVER /* use the CFI driver */
  110. #define CONFIG_SYS_FLASH_BASE 0xFE000000
  111. #define CONFIG_SYS_FLASH_SIZE 32 /* size in MB */
  112. #define CONFIG_SYS_FLASH_EMPTY_INFO /* display empty sectors */
  113. #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE /* buffer up multiple bytes */
  114. #define CONFIG_SYS_NOR_BR_PRELIM (CONFIG_SYS_FLASH_BASE \
  115. | BR_PS_16 /* 16 bit */ \
  116. | BR_MS_GPCM /* MSEL = GPCM */ \
  117. | BR_V) /* valid */
  118. #define CONFIG_SYS_NOR_OR_PRELIM (MEG_TO_AM(CONFIG_SYS_FLASH_SIZE) \
  119. | OR_GPCM_CSNT \
  120. | OR_GPCM_ACS_DIV4 \
  121. | OR_GPCM_SCY_5 \
  122. | OR_GPCM_TRLX_SET \
  123. | OR_GPCM_EAD)
  124. /* 0xfe000c55 */
  125. #define CONFIG_SYS_LBLAWBAR0_PRELIM CONFIG_SYS_FLASH_BASE
  126. #define CONFIG_SYS_LBLAWAR0_PRELIM (LBLAWAR_EN | LBLAWAR_32MB)
  127. #define CONFIG_SYS_MAX_FLASH_BANKS 1 /* number of banks */
  128. #define CONFIG_SYS_MAX_FLASH_SECT 256 /* sectors per dev */
  129. #define CONFIG_SYS_FLASH_ERASE_TOUT 60000 /* Flash Erase Timeout (ms) */
  130. #define CONFIG_SYS_FLASH_WRITE_TOUT 500 /* Flash Write Timeout (ms) */
  131. #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE /* start of monitor */
  132. #if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
  133. #define CONFIG_SYS_RAMBOOT
  134. #endif
  135. #define CONFIG_SYS_INIT_RAM_LOCK 1
  136. #define CONFIG_SYS_INIT_RAM_ADDR 0xFD000000 /* Initial RAM address */
  137. #define CONFIG_SYS_INIT_RAM_SIZE 0x1000 /* Size of used area in RAM*/
  138. #define CONFIG_SYS_GBL_DATA_OFFSET \
  139. (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
  140. #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
  141. /* CONFIG_SYS_MONITOR_LEN must be a multiple of CONFIG_ENV_SECT_SIZE */
  142. #define CONFIG_SYS_MONITOR_LEN (384 * 1024)
  143. #define CONFIG_SYS_MALLOC_LEN (512 * 1024)
  144. /*
  145. * Local Bus LCRR and LBCR regs
  146. */
  147. #define CONFIG_SYS_LCRR_EADC LCRR_EADC_3
  148. #define CONFIG_SYS_LCRR_CLKDIV LCRR_CLKDIV_2
  149. #define CONFIG_SYS_LBC_LBCR 0x00040000
  150. #define CONFIG_SYS_LBC_MRTPR 0x20000000
  151. /*
  152. * NAND settings
  153. */
  154. #define CONFIG_SYS_NAND_BASE 0x61000000
  155. #define CONFIG_SYS_MAX_NAND_DEVICE 1
  156. #define CONFIG_CMD_NAND 1
  157. #define CONFIG_NAND_FSL_ELBC 1
  158. #define CONFIG_SYS_NAND_BLOCK_SIZE 16384
  159. #define CONFIG_SYS_NAND_BR_PRELIM (CONFIG_SYS_NAND_BASE \
  160. | BR_PS_8 \
  161. | BR_DECC_CHK_GEN \
  162. | BR_MS_FCM \
  163. | BR_V) /* valid */
  164. /* 0x61000c21 */
  165. #define CONFIG_SYS_NAND_OR_PRELIM (OR_AM_32KB \
  166. | OR_FCM_BCTLD \
  167. | OR_FCM_CHT \
  168. | OR_FCM_SCY_2 \
  169. | OR_FCM_RST \
  170. | OR_FCM_TRLX)
  171. /* 0xffff90ac */
  172. #define CONFIG_SYS_BR0_PRELIM CONFIG_SYS_NOR_BR_PRELIM
  173. #define CONFIG_SYS_OR0_PRELIM CONFIG_SYS_NOR_OR_PRELIM
  174. #define CONFIG_SYS_BR1_PRELIM CONFIG_SYS_NAND_BR_PRELIM
  175. #define CONFIG_SYS_OR1_PRELIM CONFIG_SYS_NAND_OR_PRELIM
  176. #define CONFIG_SYS_LBLAWBAR1_PRELIM CONFIG_SYS_NAND_BASE
  177. #define CONFIG_SYS_LBLAWAR1_PRELIM (LBLAWAR_EN | LBLAWAR_32KB)
  178. #define CONFIG_SYS_NAND_LBLAWBAR_PRELIM CONFIG_SYS_LBLAWBAR1_PRELIM
  179. #define CONFIG_SYS_NAND_LBLAWAR_PRELIM CONFIG_SYS_LBLAWAR1_PRELIM
  180. /* CS2 NvRAM */
  181. #define CONFIG_SYS_BR2_PRELIM (0x60000000 \
  182. | BR_PS_8 \
  183. | BR_V)
  184. /* 0x60000801 */
  185. #define CONFIG_SYS_OR2_PRELIM (OR_AM_128KB \
  186. | OR_GPCM_CSNT \
  187. | OR_GPCM_XACS \
  188. | OR_GPCM_SCY_3 \
  189. | OR_GPCM_TRLX_SET \
  190. | OR_GPCM_EHTR_SET \
  191. | OR_GPCM_EAD)
  192. /* 0xfffe0937 */
  193. /* local bus read write buffer mapping SRAM@0x64000000 */
  194. #define CONFIG_SYS_BR3_PRELIM (0x62000000 \
  195. | BR_PS_16 \
  196. | BR_V)
  197. /* 0x62001001 */
  198. #define CONFIG_SYS_OR3_PRELIM (OR_AM_32MB \
  199. | OR_GPCM_CSNT \
  200. | OR_GPCM_XACS \
  201. | OR_GPCM_SCY_15 \
  202. | OR_GPCM_TRLX_SET \
  203. | OR_GPCM_EHTR_SET \
  204. | OR_GPCM_EAD)
  205. /* 0xfe0009f7 */
  206. /*
  207. * Serial Port
  208. */
  209. #define CONFIG_CONS_INDEX 1
  210. #define CONFIG_SYS_NS16550_SERIAL
  211. #define CONFIG_SYS_NS16550_REG_SIZE 1
  212. #define CONFIG_SYS_NS16550_CLK get_bus_freq(0)
  213. #define CONFIG_SYS_BAUDRATE_TABLE \
  214. {300, 600, 1200, 2400, 4800, 9600, 19200, 38400, 115200}
  215. #define CONFIG_SYS_NS16550_COM1 (CONFIG_SYS_IMMR+0x4500)
  216. #define CONFIG_SYS_NS16550_COM2 (CONFIG_SYS_IMMR+0x4600)
  217. #if defined(CONFIG_PCI)
  218. /*
  219. * General PCI
  220. * Addresses are mapped 1-1.
  221. */
  222. #define CONFIG_SYS_PCI1_MEM_BASE 0x80000000
  223. #define CONFIG_SYS_PCI1_MEM_PHYS CONFIG_SYS_PCI1_MEM_BASE
  224. #define CONFIG_SYS_PCI1_MEM_SIZE 0x10000000 /* 256M */
  225. #define CONFIG_SYS_PCI1_MMIO_BASE 0x90000000
  226. #define CONFIG_SYS_PCI1_MMIO_PHYS CONFIG_SYS_PCI1_MMIO_BASE
  227. #define CONFIG_SYS_PCI1_MMIO_SIZE 0x10000000 /* 256M */
  228. #define CONFIG_SYS_PCI1_IO_BASE 0x00000000
  229. #define CONFIG_SYS_PCI1_IO_PHYS 0xE2000000
  230. #define CONFIG_SYS_PCI1_IO_SIZE 0x00100000 /* 1M */
  231. #define CONFIG_SYS_PCI_SUBSYS_VENDORID 0x1957 /* Freescale */
  232. #endif
  233. /*
  234. * TSEC
  235. */
  236. #define CONFIG_TSEC_ENET /* TSEC ethernet support */
  237. #define CONFIG_TSEC1
  238. #ifdef CONFIG_TSEC1
  239. #define CONFIG_HAS_ETH0
  240. #define CONFIG_TSEC1_NAME "TSEC1"
  241. #define CONFIG_SYS_TSEC1_OFFSET 0x24000
  242. #define TSEC1_PHY_ADDR 0x01
  243. #define TSEC1_FLAGS 0
  244. #define TSEC1_PHYIDX 0
  245. #endif
  246. /* Options are: TSEC[0-1] */
  247. #define CONFIG_ETHPRIME "TSEC1"
  248. /*
  249. * Environment
  250. */
  251. #define CONFIG_ENV_IS_IN_FLASH 1
  252. #define CONFIG_ENV_ADDR \
  253. (CONFIG_SYS_FLASH_BASE + CONFIG_SYS_MONITOR_LEN)
  254. #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K(one sector) for env */
  255. #define CONFIG_ENV_SIZE 0x4000
  256. /* Address and size of Redundant Environment Sector */
  257. #define CONFIG_ENV_OFFSET_REDUND \
  258. (CONFIG_ENV_OFFSET + CONFIG_ENV_SECT_SIZE)
  259. #define CONFIG_ENV_SIZE_REDUND (CONFIG_ENV_SIZE)
  260. #define CONFIG_LOADS_ECHO 1 /* echo on for serial download */
  261. #define CONFIG_SYS_LOADS_BAUD_CHANGE 1 /* allow baudrate change */
  262. /*
  263. * BOOTP options
  264. */
  265. #define CONFIG_BOOTP_BOOTFILESIZE
  266. #define CONFIG_BOOTP_BOOTPATH
  267. #define CONFIG_BOOTP_GATEWAY
  268. #define CONFIG_BOOTP_HOSTNAME
  269. /*
  270. * Command line configuration.
  271. */
  272. #define CONFIG_CMD_PCI
  273. #define CONFIG_CMDLINE_EDITING 1
  274. #define CONFIG_AUTO_COMPLETE /* add autocompletion support */
  275. /*
  276. * Miscellaneous configurable options
  277. */
  278. #define CONFIG_SYS_LONGHELP /* undef to save memory */
  279. #define CONFIG_SYS_LOAD_ADDR 0x100000 /* default load address */
  280. #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */
  281. #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16)
  282. #define CONFIG_SYS_MAXARGS 16 /* max number of cmd args */
  283. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot arg Buffer size */
  284. /*
  285. * For booting Linux, the board info and command line data
  286. * have to be in the first 256 MB of memory, since this is
  287. * the maximum mapped by the Linux kernel during initialization.
  288. */
  289. /* Initial Memory map for Linux*/
  290. #define CONFIG_SYS_BOOTMAPSZ (256 << 20)
  291. /* 0x64050000 */
  292. #define CONFIG_SYS_HRCW_LOW (\
  293. 0x20000000 /* reserved, must be set */ |\
  294. HRCWL_DDRCM |\
  295. HRCWL_CSB_TO_CLKIN_4X1 | \
  296. HRCWL_CORE_TO_CSB_2_5X1)
  297. /* 0xa0600004 */
  298. #define CONFIG_SYS_HRCW_HIGH (HRCWH_PCI_HOST | \
  299. HRCWH_PCI_ARBITER_ENABLE | \
  300. HRCWH_CORE_ENABLE | \
  301. HRCWH_FROM_0X00000100 | \
  302. HRCWH_BOOTSEQ_DISABLE |\
  303. HRCWH_SW_WATCHDOG_DISABLE |\
  304. HRCWH_ROM_LOC_LOCAL_16BIT | \
  305. HRCWH_TSEC1M_IN_MII | \
  306. HRCWH_BIG_ENDIAN | \
  307. HRCWH_LALE_EARLY)
  308. /* System IO Config */
  309. #define CONFIG_SYS_SICRH (0x01000000 | \
  310. SICRH_ETSEC2_B | \
  311. SICRH_ETSEC2_C | \
  312. SICRH_ETSEC2_D | \
  313. SICRH_ETSEC2_E | \
  314. SICRH_ETSEC2_F | \
  315. SICRH_ETSEC2_G | \
  316. SICRH_TSOBI1 | \
  317. SICRH_TSOBI2)
  318. /* 0x010fff03 */
  319. #define CONFIG_SYS_SICRL (SICRL_LBC | \
  320. SICRL_SPI_A | \
  321. SICRL_SPI_B | \
  322. SICRL_SPI_C | \
  323. SICRL_SPI_D | \
  324. SICRL_ETSEC2_A)
  325. /* 0x33fc0003) */
  326. #define CONFIG_SYS_HID0_INIT 0x000000000
  327. #define CONFIG_SYS_HID0_FINAL (HID0_ENABLE_MACHINE_CHECK | \
  328. HID0_ENABLE_INSTRUCTION_CACHE)
  329. #define CONFIG_SYS_HID2 HID2_HBE
  330. #define CONFIG_HIGH_BATS 1 /* High BATs supported */
  331. /* DDR @ 0x00000000 */
  332. #define CONFIG_SYS_IBAT0L (CONFIG_SYS_SDRAM_BASE | BATL_PP_RW)
  333. #define CONFIG_SYS_IBAT0U (CONFIG_SYS_SDRAM_BASE \
  334. | BATU_BL_256M \
  335. | BATU_VS \
  336. | BATU_VP)
  337. #if defined(CONFIG_PCI)
  338. /* PCI @ 0x80000000 */
  339. #define CONFIG_SYS_IBAT1L (CONFIG_SYS_PCI1_MEM_BASE | BATL_PP_RW)
  340. #define CONFIG_SYS_IBAT1U (CONFIG_SYS_PCI1_MEM_BASE \
  341. | BATU_BL_256M \
  342. | BATU_VS \
  343. | BATU_VP)
  344. #define CONFIG_SYS_IBAT2L (CONFIG_SYS_PCI1_MMIO_BASE \
  345. | BATL_PP_RW \
  346. | BATL_CACHEINHIBIT \
  347. | BATL_GUARDEDSTORAGE)
  348. #define CONFIG_SYS_IBAT2U (CONFIG_SYS_PCI1_MMIO_BASE \
  349. | BATU_BL_256M \
  350. | BATU_VS \
  351. | BATU_VP)
  352. #else
  353. #define CONFIG_SYS_IBAT1L (0)
  354. #define CONFIG_SYS_IBAT1U (0)
  355. #define CONFIG_SYS_IBAT2L (0)
  356. #define CONFIG_SYS_IBAT2U (0)
  357. #endif
  358. /* PCI2 not supported on 8313 */
  359. #define CONFIG_SYS_IBAT3L (0)
  360. #define CONFIG_SYS_IBAT3U (0)
  361. #define CONFIG_SYS_IBAT4L (0)
  362. #define CONFIG_SYS_IBAT4U (0)
  363. /* IMMRBAR @ 0xE0000000, PCI IO @ 0xE2000000 & BCSR @ 0xE2400000 */
  364. #define CONFIG_SYS_IBAT5L (CONFIG_SYS_IMMR \
  365. | BATL_PP_RW \
  366. | BATL_CACHEINHIBIT \
  367. | BATL_GUARDEDSTORAGE)
  368. #define CONFIG_SYS_IBAT5U (CONFIG_SYS_IMMR \
  369. | BATU_BL_256M \
  370. | BATU_VS \
  371. | BATU_VP)
  372. /* stack in DCACHE 0xFDF00000 & FLASH @ 0xFE000000 */
  373. #define CONFIG_SYS_IBAT6L (0xF0000000 | BATL_PP_RW | BATL_GUARDEDSTORAGE)
  374. #define CONFIG_SYS_IBAT6U (0xF0000000 | BATU_BL_256M | BATU_VS | BATU_VP)
  375. /* FPGA, SRAM, NAND @ 0x60000000 */
  376. #define CONFIG_SYS_IBAT7L (0x60000000 | BATL_PP_RW | BATL_GUARDEDSTORAGE)
  377. #define CONFIG_SYS_IBAT7U (0x60000000 | BATU_BL_256M | BATU_VS | BATU_VP)
  378. #define CONFIG_SYS_DBAT0L CONFIG_SYS_IBAT0L
  379. #define CONFIG_SYS_DBAT0U CONFIG_SYS_IBAT0U
  380. #define CONFIG_SYS_DBAT1L CONFIG_SYS_IBAT1L
  381. #define CONFIG_SYS_DBAT1U CONFIG_SYS_IBAT1U
  382. #define CONFIG_SYS_DBAT2L CONFIG_SYS_IBAT2L
  383. #define CONFIG_SYS_DBAT2U CONFIG_SYS_IBAT2U
  384. #define CONFIG_SYS_DBAT3L CONFIG_SYS_IBAT3L
  385. #define CONFIG_SYS_DBAT3U CONFIG_SYS_IBAT3U
  386. #define CONFIG_SYS_DBAT4L CONFIG_SYS_IBAT4L
  387. #define CONFIG_SYS_DBAT4U CONFIG_SYS_IBAT4U
  388. #define CONFIG_SYS_DBAT5L CONFIG_SYS_IBAT5L
  389. #define CONFIG_SYS_DBAT5U CONFIG_SYS_IBAT5U
  390. #define CONFIG_SYS_DBAT6L CONFIG_SYS_IBAT6L
  391. #define CONFIG_SYS_DBAT6U CONFIG_SYS_IBAT6U
  392. #define CONFIG_SYS_DBAT7L CONFIG_SYS_IBAT7L
  393. #define CONFIG_SYS_DBAT7U CONFIG_SYS_IBAT7U
  394. #define CONFIG_NETDEV eth0
  395. #define CONFIG_HOSTNAME ve8313
  396. #define CONFIG_UBOOTPATH ve8313/u-boot.bin
  397. #define CONFIG_BAUDRATE 115200
  398. #define CONFIG_EXTRA_ENV_SETTINGS \
  399. "netdev=" __stringify(CONFIG_NETDEV) "\0" \
  400. "ethprime=" __stringify(CONFIG_TSEC1_NAME) "\0" \
  401. "u-boot=" __stringify(CONFIG_UBOOTPATH) "\0" \
  402. "u-boot_addr_r=100000\0" \
  403. "load=tftp ${u-boot_addr_r} ${u-boot}\0" \
  404. "update=protect off " __stringify(CONFIG_SYS_FLASH_BASE) \
  405. " +${filesize};" \
  406. "erase " __stringify(CONFIG_SYS_FLASH_BASE) " +${filesize};" \
  407. "cp.b ${u-boot_addr_r} " __stringify(CONFIG_SYS_FLASH_BASE) \
  408. " ${filesize};" \
  409. "protect on " __stringify(CONFIG_SYS_FLASH_BASE) " +${filesize}\0" \
  410. #endif /* __CONFIG_H */