p3mx.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451
  1. /*
  2. * (C) Copyright 2006
  3. * Stefan Roese, DENX Software Engineering, sr@denx.de.
  4. *
  5. * Based on original work by
  6. * Roel Loeffen, (C) Copyright 2006 Prodrive B.V.
  7. *
  8. * See file CREDITS for list of people who contributed to this
  9. * project.
  10. *
  11. * This program is free software; you can redistribute it and/or
  12. * modify it under the terms of the GNU General Public License as
  13. * published by the Free Software Foundation; either version 2 of
  14. * the License, or (at your option) any later version.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU General Public License
  22. * along with this program; if not, write to the Free Software
  23. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  24. * MA 02111-1307 USA
  25. */
  26. /************************************************************************
  27. * p3mx.h - configuration for Prodrive P3M750 & P3M7448 boards
  28. *
  29. * The defines:
  30. * CONFIG_P3M750 or
  31. * CONFIG_P3M7448
  32. * are written into include/config.h by the "make xxx_config" command
  33. ***********************************************************************/
  34. #ifndef __CONFIG_H
  35. #define __CONFIG_H
  36. /*-----------------------------------------------------------------------
  37. * High Level Configuration Options
  38. *----------------------------------------------------------------------*/
  39. #define CONFIG_P3Mx /* used for both board versions */
  40. #if defined (CONFIG_P3M750)
  41. #define CONFIG_750FX /* 750GL/GX/FX */
  42. #define CFG_BOARD_NAME "P3M750"
  43. #define CFG_BUS_HZ 100000000
  44. #define CFG_BUS_CLK CFG_BUS_HZ
  45. #define CFG_TCLK 100000000
  46. #elif defined (CONFIG_P3M7448)
  47. #define CONFIG_74xx
  48. #define CFG_BOARD_NAME "P3M7448"
  49. #define CFG_BUS_HZ 133333333
  50. #define CFG_BUS_CLK CFG_BUS_HZ
  51. #define CFG_TCLK 133333333
  52. #endif
  53. #define CFG_GT_DUAL_CPU /* also for JTAG even with one cpu */
  54. /* which initialization functions to call for this board */
  55. #define CFG_BOARD_ASM_INIT 1
  56. #define CONFIG_BOARD_EARLY_INIT_F 1 /* Call board_early_init_f */
  57. #define CONFIG_BOARD_EARLY_INIT_R 1 /* Call board_early_init_f */
  58. #define CONFIG_MISC_INIT_R 1 /* Call misc_init_r() */
  59. #define CONFIG_ADD_RAM_INFO 1 /* Print additional info */
  60. /*-----------------------------------------------------------------------
  61. * Base addresses -- Note these are effective addresses where the
  62. * actual resources get mapped (not physical addresses)
  63. *----------------------------------------------------------------------*/
  64. #define CFG_SDRAM_BASE 0x00000000
  65. #ifdef CONFIG_P3M750
  66. #define CFG_SDRAM1_BASE 0x10000000 /* each 256 MByte */
  67. #endif
  68. #define CFG_MONITOR_LEN (256 << 10) /* Reserve 256 kB for Monitor */
  69. #if defined (CONFIG_P3M750)
  70. #define CFG_FLASH_BASE 0xff800000 /* start of flash banks */
  71. #define CFG_BOOT_SIZE _8M /* boot flash */
  72. #elif defined (CONFIG_P3M7448)
  73. #define CFG_FLASH_BASE 0xff000000 /* start of flash banks */
  74. #define CFG_BOOT_SIZE _16M /* boot flash */
  75. #endif
  76. #define CFG_BOOT_SPACE CFG_FLASH_BASE /* BOOT_CS0 flash 0 */
  77. #define CFG_MONITOR_BASE 0xfff00000
  78. #define CFG_RESET_ADDRESS 0xfff00100
  79. #define CFG_MALLOC_LEN (256 << 10) /* Reserve 256 kB for malloc */
  80. #define CFG_MISC_REGION_BASE 0xf0000000
  81. #define CFG_DFL_GT_REGS 0xf1000000 /* boot time GT_REGS */
  82. #define CFG_GT_REGS 0xf1000000 /* GT Registers are mapped here */
  83. #define CFG_INT_SRAM_BASE 0x42000000 /* GT offers 256k internal SRAM */
  84. /*-----------------------------------------------------------------------
  85. * Initial RAM & stack pointer (placed in internal SRAM)
  86. *----------------------------------------------------------------------*/
  87. /*
  88. * When locking data in cache you should point the CFG_INIT_RAM_ADDRESS
  89. * To an unused memory region. The stack will remain in cache until RAM
  90. * is initialized
  91. */
  92. #undef CFG_INIT_RAM_LOCK
  93. #define CFG_INIT_RAM_ADDR 0x42000000
  94. #define CFG_INIT_RAM_END 0x1000
  95. #define CFG_GBL_DATA_SIZE 128 /* size in bytes reserved for init data */
  96. #define CFG_GBL_DATA_OFFSET (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
  97. /*-----------------------------------------------------------------------
  98. * Serial Port
  99. *----------------------------------------------------------------------*/
  100. #define CONFIG_MPSC /* MV64460 Serial */
  101. #define CONFIG_MPSC_PORT 0
  102. #define CONFIG_BAUDRATE 115200 /* console baudrate */
  103. #define CFG_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200, 230400 }
  104. #define CONFIG_LOADS_ECHO 1 /* echo on for serial download */
  105. #define CFG_LOADS_BAUD_CHANGE 1 /* allow baudrate change */
  106. /*-----------------------------------------------------------------------
  107. * Ethernet
  108. *----------------------------------------------------------------------*/
  109. /* Change the default ethernet port, use this define (options: 0, 1, 2) */
  110. #define CFG_ETH_PORT ETH_0
  111. #define CONFIG_NET_MULTI
  112. #define MV_ETH_DEVS 2
  113. #define CONFIG_PHY_RESET 1 /* reset phy upon startup */
  114. #define CONFIG_PHY_GIGE 1 /* Include GbE speed/duplex detection */
  115. /*-----------------------------------------------------------------------
  116. * FLASH related
  117. *----------------------------------------------------------------------*/
  118. #define CFG_FLASH_CFI /* The flash is CFI compatible */
  119. #define CFG_FLASH_CFI_DRIVER /* Use common CFI driver */
  120. #define CFG_MAX_FLASH_BANKS 1 /* max number of memory banks */
  121. #define CFG_MAX_FLASH_SECT 512 /* max number of sectors on one chip */
  122. #define CFG_FLASH_ERASE_TOUT 120000 /* Timeout for Flash Erase (in ms) */
  123. #define CFG_FLASH_WRITE_TOUT 500 /* Timeout for Flash Write (in ms) */
  124. #define CFG_FLASH_USE_BUFFER_WRITE 1 /* use buffered writes (20x faster) */
  125. #define CFG_FLASH_PROTECTION 1 /* use hardware flash protection */
  126. #define CFG_FLASH_EMPTY_INFO /* print 'E' for empty sector on flinfo */
  127. #define CFG_ENV_IS_IN_FLASH 1 /* use FLASH for environment vars */
  128. #if defined (CONFIG_P3M750)
  129. #define CFG_ENV_SECT_SIZE 0x20000 /* one sector (1 device)*/
  130. #elif defined (CONFIG_P3M7448)
  131. #define CFG_ENV_SECT_SIZE 0x40000 /* two sectors (2 devices parallel */
  132. #endif
  133. #define CFG_ENV_SIZE 0x2000 /* Total Size of Environment Sector */
  134. #define CFG_ENV_ADDR (CFG_MONITOR_BASE + CFG_MONITOR_LEN)
  135. /*-----------------------------------------------------------------------
  136. * DDR SDRAM
  137. *----------------------------------------------------------------------*/
  138. #define CONFIG_MV64460_ECC
  139. /*-----------------------------------------------------------------------
  140. * I2C
  141. *----------------------------------------------------------------------*/
  142. #define CFG_I2C_SPEED 100000 /* I2C speed default */
  143. /* I2C RTC */
  144. #define CONFIG_RTC_M41T11 1
  145. #define CFG_I2C_RTC_ADDR 0x68
  146. #define CFG_M41T11_BASE_YEAR 1900 /* play along with linux */
  147. /*-----------------------------------------------------------------------
  148. * PCI stuff
  149. *----------------------------------------------------------------------*/
  150. #define PCI_HOST_ADAPTER 0 /* configure ar pci adapter */
  151. #define PCI_HOST_FORCE 1 /* configure as pci host */
  152. #define PCI_HOST_AUTO 2 /* detected via arbiter enable */
  153. #undef CONFIG_PCI /* include pci support */
  154. #ifdef CONFIG_PCI
  155. #define CONFIG_PCI_HOST PCI_HOST_FORCE /* select pci host function */
  156. #define CONFIG_PCI_PNP /* do pci plug-and-play */
  157. #define CONFIG_PCI_SCAN_SHOW /* show devices on bus */
  158. #endif /* CONFIG_PCI */
  159. /* PCI MEMORY MAP section */
  160. #define CFG_PCI0_MEM_BASE 0x80000000
  161. #define CFG_PCI0_MEM_SIZE _128M
  162. #define CFG_PCI1_MEM_BASE 0x88000000
  163. #define CFG_PCI1_MEM_SIZE _128M
  164. #define CFG_PCI0_0_MEM_SPACE (CFG_PCI0_MEM_BASE)
  165. #define CFG_PCI1_0_MEM_SPACE (CFG_PCI1_MEM_BASE)
  166. /* PCI I/O MAP section */
  167. #define CFG_PCI0_IO_BASE 0xfa000000
  168. #define CFG_PCI0_IO_SIZE _16M
  169. #define CFG_PCI1_IO_BASE 0xfb000000
  170. #define CFG_PCI1_IO_SIZE _16M
  171. #define CFG_PCI0_IO_SPACE (CFG_PCI0_IO_BASE)
  172. #define CFG_PCI0_IO_SPACE_PCI 0x00000000
  173. #define CFG_PCI1_IO_SPACE (CFG_PCI1_IO_BASE)
  174. #define CFG_PCI1_IO_SPACE_PCI 0x00000000
  175. #define CFG_ISA_IO_BASE_ADDRESS (CFG_PCI0_IO_BASE)
  176. #define CFG_PCI_IDSEL 0x30
  177. #undef CONFIG_BOOTARGS
  178. #define CONFIG_EXTRA_ENV_SETTINGS_COMMON \
  179. "netdev=eth0\0" \
  180. "nfsargs=setenv bootargs root=/dev/nfs rw " \
  181. "nfsroot=${serverip}:${rootpath}\0" \
  182. "ramargs=setenv bootargs root=/dev/ram rw\0" \
  183. "addip=setenv bootargs ${bootargs} " \
  184. "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}" \
  185. ":${hostname}:${netdev}:off panic=1\0" \
  186. "addtty=setenv bootargs ${bootargs} console=ttyS0,${baudrate}\0"\
  187. "flash_nfs=run nfsargs addip addtty;" \
  188. "bootm ${kernel_addr}\0" \
  189. "flash_self=run ramargs addip addtty;" \
  190. "bootm ${kernel_addr} ${ramdisk_addr}\0" \
  191. "net_nfs=tftp 200000 ${bootfile};run nfsargs addip addtty;" \
  192. "bootm\0" \
  193. "rootpath=/opt/eldk/ppc_6xx\0" \
  194. "u-boot=p3mx/u-boot/u-boot.bin\0" \
  195. "load=tftp 100000 ${u-boot}\0" \
  196. "update=protect off fff00000 fff3ffff;era fff00000 fff3ffff;" \
  197. "cp.b 100000 fff00000 40000;" \
  198. "setenv filesize;saveenv\0" \
  199. "upd=run load;run update\0" \
  200. "serverip=11.0.0.152\0"
  201. #if defined (CONFIG_P3M750)
  202. #define CONFIG_EXTRA_ENV_SETTINGS \
  203. CONFIG_EXTRA_ENV_SETTINGS_COMMON \
  204. "hostname=p3m750\0" \
  205. "bootfile=/tftpboot/p3mx/vxWorks.st\0" \
  206. "kernel_addr=fc000000\0" \
  207. "ramdisk_addr=fc180000\0" \
  208. "vxfile=p3m750/vxWorks\0" \
  209. "vxuser=ddg\0" \
  210. "vxpass=ddg\0" \
  211. "vxtarget=target\0" \
  212. "vxflags=0x8\0" \
  213. "vxargs=setenv bootargs mgi(0,0)host:${vxfile} h=${serverip} " \
  214. "e=${ipaddr} u=${vxuser} pw=${vxpass} tn=${vxtarget} " \
  215. "f=${vxflags}\0"
  216. #elif defined (CONFIG_P3M7448)
  217. #define CONFIG_EXTRA_ENV_SETTINGS \
  218. CONFIG_EXTRA_ENV_SETTINGS_COMMON \
  219. "hostname=p3m7448\0"
  220. #endif
  221. #if defined (CONFIG_P3M750)
  222. #define CONFIG_BOOTCOMMAND "tftp;run vxargs;bootvx"
  223. #elif defined (CONFIG_P3M7448)
  224. #define CONFIG_BOOTCOMMAND " "
  225. #endif
  226. #define CONFIG_BOOTDELAY 3 /* autoboot after 5 seconds */
  227. #define CONFIG_BOOTP_MASK (CONFIG_BOOTP_DEFAULT | \
  228. CONFIG_BOOTP_BOOTFILESIZE)
  229. #define CONFIG_COMMANDS (CONFIG_CMD_DFL | \
  230. CFG_CMD_ASKENV | \
  231. CFG_CMD_DATE | \
  232. CFG_CMD_DIAG | \
  233. CFG_CMD_ELF | \
  234. CFG_CMD_I2C | \
  235. CFG_CMD_IRQ | \
  236. CFG_CMD_MII | \
  237. CFG_CMD_NET | \
  238. CFG_CMD_NFS | \
  239. CFG_CMD_PING | \
  240. CFG_CMD_REGINFO | \
  241. CFG_CMD_PCI | \
  242. CFG_CMD_CACHE | \
  243. CFG_CMD_SDRAM)
  244. /* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
  245. #include <cmd_confdefs.h>
  246. /*-----------------------------------------------------------------------
  247. * Miscellaneous configurable options
  248. *----------------------------------------------------------------------*/
  249. #define CFG_HUSH_PARSER
  250. #define CFG_PROMPT_HUSH_PS2 "> "
  251. #define CFG_LONGHELP /* undef to save memory */
  252. #define CFG_PROMPT "=> " /* Monitor Command Prompt */
  253. #if (CONFIG_COMMANDS & CFG_CMD_KGDB)
  254. #define CFG_CBSIZE 1024 /* Console I/O Buffer Size */
  255. #else
  256. #define CFG_CBSIZE 256 /* Console I/O Buffer Size */
  257. #endif
  258. #define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
  259. #define CFG_MAXARGS 16 /* max number of command args */
  260. #define CFG_BARGSIZE CFG_CBSIZE /* Boot Argument Buffer Size */
  261. #define CFG_MEMTEST_START 0x0400000 /* memtest works on */
  262. #define CFG_MEMTEST_END 0x0C00000 /* 4 ... 12 MB in DRAM */
  263. #define CFG_LOAD_ADDR 0x08000000 /* default load address */
  264. #define CFG_HZ 1000 /* decrementer freq: 1 ms ticks */
  265. #define CONFIG_CMDLINE_EDITING 1 /* add command line history */
  266. #define CONFIG_LOOPW 1 /* enable loopw command */
  267. #define CONFIG_MX_CYCLIC 1 /* enable mdc/mwc commands */
  268. #define CONFIG_ZERO_BOOTDELAY_CHECK /* check for keypress on bootdelay==0 */
  269. #define CONFIG_VERSION_VARIABLE 1 /* include version env variable */
  270. /*-----------------------------------------------------------------------
  271. * Marvell MV64460 config settings
  272. *----------------------------------------------------------------------*/
  273. /* Reset values for Port behavior (8bit/ 32bit, etc.) only corrected device width */
  274. #if defined (CONFIG_P3M750)
  275. #define CFG_BOOT_PAR 0x8FDFF87F /* 16 bit flash, disable burst*/
  276. #elif defined (CONFIG_P3M7448)
  277. #define CFG_BOOT_PAR 0x8FEFFFFF /* 32 bit flash, burst enabled */
  278. #endif
  279. /*
  280. * MPP[0] Serial Port 0 TxD TxD OUT Connected to P14 (buffered)
  281. * MPP[1] Serial Port 0 RxD RxD IN Connected to P14 (buffered)
  282. * MPP[2] NC
  283. * MPP[3] Serial Port 1 TxD TxD OUT Connected to P14 (buffered)
  284. * MPP[4] PCI Monarch# GPIO IN Connected to P12
  285. * MPP[5] Serial Port 1 RxD RxD IN Connected to P14 (buffered)
  286. * MPP[6] PMC Carrier Interrupt 0 Int IN Connected to P14
  287. * MPP[7] PMC Carrier Interrupt 1 Int IN Connected to P14
  288. * MPP[8] Reserved Do not use
  289. * MPP[9] Reserved Do not use
  290. * MPP[10] Reserved Do not use
  291. * MPP[11] Reserved Do not use
  292. * MPP[12] Phy 0 Interrupt Int IN
  293. * MPP[13] Phy 1 Interrupt Int IN
  294. * MPP[14] NC
  295. * MPP[15] NC
  296. * MPP[16] PCI Interrupt C Int IN Connected to P11
  297. * MPP[17] PCI Interrupt D Int IN Connected to P11
  298. * MPP[18] Watchdog NMI# GPIO IN Connected to MPP[24]
  299. * MPP[19] Watchdog Expired# WDE OUT Connected to rst logic
  300. * MPP[20] Watchdog Status WD_STS IN Read back of rst by watchdog
  301. * MPP[21] NC
  302. * MPP[22] GP LED Green GPIO OUT
  303. * MPP[23] GP LED Red GPIO OUT
  304. * MPP[24] Watchdog NMI# Int OUT
  305. * MPP[25] NC
  306. * MPP[26] NC
  307. * MPP[27] PCI Interrupt A Int IN Connected to P11
  308. * MPP[28] NC
  309. * MPP[29] PCI Interrupt B Int IN Connected to P11
  310. * MPP[30] Module reset GPIO OUT Board reset
  311. * MPP[31] PCI EReady GPIO IN Connected to P12
  312. */
  313. #define CFG_MPP_CONTROL_0 0x00303022
  314. #define CFG_MPP_CONTROL_1 0x00000000
  315. #define CFG_MPP_CONTROL_2 0x00004000
  316. #define CFG_MPP_CONTROL_3 0x00000004
  317. #define CFG_GPP_LEVEL_CONTROL 0x280730D0
  318. /*----------------------------------------------------------------------
  319. * Initial BAT mappings
  320. */
  321. /* NOTES:
  322. * 1) GUARDED and WRITE_THRU not allowed in IBATS
  323. * 2) CACHEINHIBIT and WRITETHROUGH not allowed together in same BAT
  324. */
  325. /* SDRAM */
  326. #define CFG_IBAT0L (CFG_SDRAM_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
  327. #define CFG_IBAT0U (CFG_SDRAM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
  328. #define CFG_DBAT0L (CFG_SDRAM_BASE | BATL_PP_RW | BATL_GUARDEDSTORAGE | BATL_CACHEINHIBIT)
  329. #define CFG_DBAT0U CFG_IBAT0U
  330. /* init ram */
  331. #define CFG_IBAT1L (CFG_INIT_RAM_ADDR | BATL_PP_RW | BATL_MEMCOHERENCE)
  332. #define CFG_IBAT1U (CFG_INIT_RAM_ADDR | BATU_BL_256K | BATU_VS | BATU_VP)
  333. #define CFG_DBAT1L CFG_IBAT1L
  334. #define CFG_DBAT1U CFG_IBAT1U
  335. /* PCI0, PCI1 in one BAT */
  336. #define CFG_IBAT2L BATL_NO_ACCESS
  337. #define CFG_IBAT2U CFG_DBAT2U
  338. #define CFG_DBAT2L (CFG_PCI0_MEM_BASE | BATL_CACHEINHIBIT | BATL_PP_RW | BATL_GUARDEDSTORAGE)
  339. #define CFG_DBAT2U (CFG_PCI0_MEM_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
  340. /* GT regs, bootrom, all the devices, PCI I/O */
  341. #define CFG_IBAT3L (CFG_MISC_REGION_BASE | BATL_CACHEINHIBIT | BATL_PP_RW)
  342. #define CFG_IBAT3U (CFG_MISC_REGION_BASE | BATU_VS | BATU_VP | BATU_BL_256M)
  343. #define CFG_DBAT3L (CFG_MISC_REGION_BASE | BATL_CACHEINHIBIT | BATL_PP_RW | BATL_GUARDEDSTORAGE)
  344. #define CFG_DBAT3U CFG_IBAT3U
  345. #define CFG_IBAT4L (CFG_SDRAM1_BASE | BATL_PP_RW | BATL_CACHEINHIBIT)
  346. #define CFG_IBAT4U (CFG_SDRAM1_BASE | BATU_BL_256M | BATU_VS | BATU_VP)
  347. #define CFG_DBAT4L (CFG_SDRAM1_BASE | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
  348. #define CFG_DBAT4U CFG_IBAT4U
  349. /* set rest out of range for Linux !!!!!!!!!!! */
  350. /* IBAT5 and DBAT5 */
  351. #define CFG_IBAT5L (0x20000000 | BATL_PP_RW | BATL_CACHEINHIBIT)
  352. #define CFG_IBAT5U (0x20000000 | BATU_BL_256M | BATU_VS | BATU_VP)
  353. #define CFG_DBAT5L (0x20000000 | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
  354. #define CFG_DBAT5U CFG_IBAT5U
  355. /* IBAT6 and DBAT6 */
  356. #define CFG_IBAT6L (0x20000000 | BATL_PP_RW | BATL_CACHEINHIBIT)
  357. #define CFG_IBAT6U (0x20000000 | BATU_BL_256M | BATU_VS | BATU_VP)
  358. #define CFG_DBAT6L (0x20000000 | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
  359. #define CFG_DBAT6U CFG_IBAT6U
  360. /* IBAT7 and DBAT7 */
  361. #define CFG_IBAT7L (0x20000000 | BATL_PP_RW | BATL_CACHEINHIBIT)
  362. #define CFG_IBAT7U (0x20000000 | BATU_BL_256M | BATU_VS | BATU_VP)
  363. #define CFG_DBAT7L (0x20000000 | BATL_PP_RW | BATL_CACHEINHIBIT | BATL_GUARDEDSTORAGE)
  364. #define CFG_DBAT7U CFG_IBAT7U
  365. /*
  366. * For booting Linux, the board info and command line data
  367. * have to be in the first 8 MB of memory, since this is
  368. * the maximum mapped by the Linux kernel during initialization.
  369. */
  370. #define CFG_BOOTMAPSZ (8<<20) /* Initial Memory map for Linux */
  371. #define CFG_VXWORKS_MAC_PTR 0x42010000 /* use some memory in SRAM that's not used!!! */
  372. /*-----------------------------------------------------------------------
  373. * Cache Configuration
  374. */
  375. #define CFG_CACHELINE_SIZE 32 /* For all MPC74xx CPUs */
  376. #if (CONFIG_COMMANDS & CFG_CMD_KGDB)
  377. #define CFG_CACHELINE_SHIFT 5 /* log base 2 of the above value */
  378. #endif
  379. /*-----------------------------------------------------------------------
  380. * L2CR setup -- make sure this is right for your board!
  381. * look in include/mpc74xx.h for the defines used here
  382. */
  383. #define CFG_L2
  384. #if defined (CONFIG_750CX) || defined (CONFIG_750FX)
  385. #define L2_INIT 0
  386. #else
  387. #define L2_INIT (L2CR_L2SIZ_2M | L2CR_L2CLK_3 | L2CR_L2RAM_BURST | \
  388. L2CR_L2OH_5 | L2CR_L2CTL | L2CR_L2WT)
  389. #endif
  390. #define L2_ENABLE (L2_INIT | L2CR_L2E)
  391. /*
  392. * Internal Definitions
  393. *
  394. * Boot Flags
  395. */
  396. #define BOOTFLAG_COLD 0x01 /* Normal Power-On: Boot from FLASH */
  397. #define BOOTFLAG_WARM 0x02 /* Software reboot */
  398. #endif /* __CONFIG_H */