MPC8266ADS.h 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578
  1. /*
  2. * (C) Copyright 2001
  3. * Stuart Hughes <stuarth@lineo.com>
  4. * This file is based on similar values for other boards found in other
  5. * U-Boot config files, and some that I found in the mpc8260ads manual.
  6. *
  7. * Note: my board is a PILOT rev.
  8. * Note: the mpc8260ads doesn't come with a proper Ethernet MAC address.
  9. *
  10. * See file CREDITS for list of people who contributed to this
  11. * project.
  12. *
  13. * This program is free software; you can redistribute it and/or
  14. * modify it under the terms of the GNU General Public License as
  15. * published by the Free Software Foundation; either version 2 of
  16. * the License, or (at your option) any later version.
  17. *
  18. * This program is distributed in the hope that it will be useful,
  19. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21. * GNU General Public License for more details.
  22. *
  23. * You should have received a copy of the GNU General Public License
  24. * along with this program; if not, write to the Free Software
  25. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  26. * MA 02111-1307 USA
  27. */
  28. /*
  29. * Config header file for a MPC8266ADS Pilot 16M Ram Simm, 8Mbytes Flash Simm
  30. */
  31. /* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  32. !! !!
  33. !! This configuration requires JP3 to be in position 1-2 to work !!
  34. !! To make it work for the default, the TEXT_BASE define in !!
  35. !! board/mpc8266ads/config.mk must be changed from 0xfe000000 to !!
  36. !! 0xfff00000 !!
  37. !! The CONFIG_SYS_HRCW_MASTER define below must also be changed to match !!
  38. !! !!
  39. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  40. */
  41. #ifndef __CONFIG_H
  42. #define __CONFIG_H
  43. /*
  44. * High Level Configuration Options
  45. * (easy to change)
  46. */
  47. #define CONFIG_MPC8260 1 /* This is an MPC8260 CPU */
  48. #define CONFIG_MPC8266ADS 1 /* ...on motorola ADS board */
  49. #define CONFIG_CPM2 1 /* Has a CPM2 */
  50. #define CONFIG_BOARD_EARLY_INIT_F 1 /* Call board_early_init_f */
  51. /* allow serial and ethaddr to be overwritten */
  52. #define CONFIG_ENV_OVERWRITE
  53. /*
  54. * select serial console configuration
  55. *
  56. * if either CONFIG_CONS_ON_SMC or CONFIG_CONS_ON_SCC is selected, then
  57. * CONFIG_CONS_INDEX must be set to the channel number (1-2 for SMC, 1-4
  58. * for SCC).
  59. *
  60. * if CONFIG_CONS_NONE is defined, then the serial console routines must
  61. * defined elsewhere (for example, on the cogent platform, there are serial
  62. * ports on the motherboard which are used for the serial console - see
  63. * cogent/cma101/serial.[ch]).
  64. */
  65. #undef CONFIG_CONS_ON_SMC /* define if console on SMC */
  66. #define CONFIG_CONS_ON_SCC /* define if console on SCC */
  67. #undef CONFIG_CONS_NONE /* define if console on something else */
  68. #define CONFIG_CONS_INDEX 1 /* which serial channel for console */
  69. /*
  70. * select ethernet configuration
  71. *
  72. * if either CONFIG_ETHER_ON_SCC or CONFIG_ETHER_ON_FCC is selected, then
  73. * CONFIG_ETHER_INDEX must be set to the channel number (1-4 for SCC, 1-3
  74. * for FCC)
  75. *
  76. * if CONFIG_ETHER_NONE is defined, then either the ethernet routines must be
  77. * defined elsewhere (as for the console), or CONFIG_CMD_NET must be unset.
  78. */
  79. #undef CONFIG_ETHER_ON_SCC /* define if ether on SCC */
  80. #define CONFIG_ETHER_ON_FCC /* define if ether on FCC */
  81. #undef CONFIG_ETHER_NONE /* define if ether on something else */
  82. #define CONFIG_ETHER_INDEX 2 /* which channel for ether */
  83. #define CONFIG_MII /* MII PHY management */
  84. #define CONFIG_BITBANGMII /* bit-bang MII PHY management */
  85. /*
  86. * Port pins used for bit-banged MII communictions (if applicable).
  87. */
  88. #define MDIO_PORT 2 /* Port C */
  89. #define MDIO_ACTIVE (iop->pdir |= 0x00400000)
  90. #define MDIO_TRISTATE (iop->pdir &= ~0x00400000)
  91. #define MDIO_READ ((iop->pdat & 0x00400000) != 0)
  92. #define MDIO(bit) if(bit) iop->pdat |= 0x00400000; \
  93. else iop->pdat &= ~0x00400000
  94. #define MDC(bit) if(bit) iop->pdat |= 0x00200000; \
  95. else iop->pdat &= ~0x00200000
  96. #define MIIDELAY udelay(1)
  97. #if (CONFIG_ETHER_INDEX == 2)
  98. /*
  99. * - Rx-CLK is CLK13
  100. * - Tx-CLK is CLK14
  101. * - Select bus for bd/buffers (see 28-13)
  102. * - Half duplex
  103. */
  104. # define CONFIG_SYS_CMXFCR_MASK (CMXFCR_FC2 | CMXFCR_RF2CS_MSK | CMXFCR_TF2CS_MSK)
  105. # define CONFIG_SYS_CMXFCR_VALUE (CMXFCR_RF2CS_CLK13 | CMXFCR_TF2CS_CLK14)
  106. # define CONFIG_SYS_CPMFCR_RAMTYPE 0
  107. # define CONFIG_SYS_FCC_PSMR (FCC_PSMR_FDE | FCC_PSMR_LPB)
  108. #endif /* CONFIG_ETHER_INDEX */
  109. /* other options */
  110. #define CONFIG_HARD_I2C 1 /* To enable I2C support */
  111. #define CONFIG_SYS_I2C_SPEED 400000 /* I2C speed and slave address */
  112. #define CONFIG_SYS_I2C_SLAVE 0x7F
  113. #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1
  114. /* PCI */
  115. #define CONFIG_PCI
  116. #define CONFIG_PCI_PNP
  117. #define CONFIG_PCI_BOOTDELAY 0
  118. #undef CONFIG_PCI_SCAN_SHOW
  119. /*-----------------------------------------------------------------------
  120. * Definitions for Serial Presence Detect EEPROM address
  121. * (to get SDRAM settings)
  122. */
  123. #define SPD_EEPROM_ADDRESS 0x50
  124. #define CONFIG_8260_CLKIN 66000000 /* in Hz */
  125. #define CONFIG_BAUDRATE 115200
  126. /*
  127. * Command line configuration.
  128. */
  129. #include <config_cmd_default.h>
  130. /* Commands we want, that are not part of default set */
  131. #define CONFIG_CMD_ASKENV /* ask for env variable */
  132. #define CONFIG_CMD_CACHE /* icache, dcache */
  133. #define CONFIG_CMD_DHCP /* DHCP Support */
  134. #define CONFIG_CMD_DIAG /* Diagnostics */
  135. #define CONFIG_CMD_IMMAP /* IMMR dump support */
  136. #define CONFIG_CMD_IRQ /* irqinfo */
  137. #define CONFIG_CMD_MII /* MII support */
  138. #define CONFIG_CMD_PCI /* pciinfo */
  139. #define CONFIG_CMD_PING /* ping support */
  140. #define CONFIG_CMD_PORTIO /* Port I/O */
  141. #define CONFIG_CMD_REGINFO /* Register dump */
  142. #define CONFIG_CMD_SAVES /* save S record dump */
  143. #define CONFIG_CMD_SDRAM /* SDRAM DIMM SPD info printout */
  144. /* Commands from default set we don't need */
  145. #undef CONFIG_CMD_FPGA /* FPGA configuration Support */
  146. #undef CONFIG_CMD_SETGETDCR /* DCR support on 4xx */
  147. /* Define a command string that is automatically executed when no character
  148. * is read on the console interface withing "Boot Delay" after reset.
  149. */
  150. #undef CONFIG_BOOT_ROOT_INITRD /* Use ram disk for the root file system */
  151. #define CONFIG_BOOT_ROOT_NFS /* Use a NFS mounted root file system */
  152. #ifdef CONFIG_BOOT_ROOT_INITRD
  153. #define CONFIG_BOOTCOMMAND \
  154. "version;" \
  155. "echo;" \
  156. "bootp;" \
  157. "setenv bootargs root=/dev/ram0 rw " \
  158. "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off;" \
  159. "bootm"
  160. #endif /* CONFIG_BOOT_ROOT_INITRD */
  161. #ifdef CONFIG_BOOT_ROOT_NFS
  162. #define CONFIG_BOOTCOMMAND \
  163. "version;" \
  164. "echo;" \
  165. "bootp;" \
  166. "setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath} " \
  167. "ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off;" \
  168. "bootm"
  169. #endif /* CONFIG_BOOT_ROOT_NFS */
  170. /*
  171. * BOOTP options
  172. */
  173. #define CONFIG_BOOTP_SUBNETMASK
  174. #define CONFIG_BOOTP_GATEWAY
  175. #define CONFIG_BOOTP_HOSTNAME
  176. #define CONFIG_BOOTP_BOOTPATH
  177. #define CONFIG_BOOTP_BOOTFILESIZE
  178. #define CONFIG_BOOTP_DNS
  179. #define CONFIG_BOOTDELAY 5 /* autoboot after 5 seconds */
  180. #if defined(CONFIG_CMD_KGDB)
  181. #undef CONFIG_KGDB_ON_SMC /* define if kgdb on SMC */
  182. #define CONFIG_KGDB_ON_SCC /* define if kgdb on SCC */
  183. #undef CONFIG_KGDB_NONE /* define if kgdb on something else */
  184. #define CONFIG_KGDB_INDEX 2 /* which serial channel for kgdb */
  185. #define CONFIG_KGDB_BAUDRATE 115200 /* speed to run kgdb serial port at */
  186. #endif
  187. #undef CONFIG_WATCHDOG /* disable platform specific watchdog */
  188. /*
  189. * Miscellaneous configurable options
  190. */
  191. #define CONFIG_SYS_LONGHELP /* undef to save memory */
  192. #define CONFIG_SYS_PROMPT "=> " /* Monitor Command Prompt */
  193. #if defined(CONFIG_CMD_KGDB)
  194. #define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buffer Size */
  195. #else
  196. #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
  197. #endif
  198. #define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE+sizeof(CONFIG_SYS_PROMPT)+16) /* Print Buffer Size */
  199. #define CONFIG_SYS_MAXARGS 16 /* max number of command args */
  200. #define CONFIG_SYS_BARGSIZE CONFIG_SYS_CBSIZE /* Boot Argument Buffer Size */
  201. #define CONFIG_SYS_MEMTEST_START 0x00100000 /* memtest works on */
  202. #define CONFIG_SYS_MEMTEST_END 0x00f00000 /* 1 ... 15 MB in DRAM */
  203. #undef CONFIG_CLOCKS_IN_MHZ /* clocks passsed to Linux in MHz */
  204. /* for versions < 2.4.5-pre5 */
  205. #define CONFIG_SYS_LOAD_ADDR 0x100000 /* default load address */
  206. #define CONFIG_SYS_HZ 1000 /* decrementer freq: 1 ms ticks */
  207. #define CONFIG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200, 230400 }
  208. #define CONFIG_SYS_FLASH_BASE 0xFE000000
  209. #define FLASH_BASE 0xFE000000
  210. #define CONFIG_SYS_MAX_FLASH_BANKS 1 /* max num of memory banks */
  211. #define CONFIG_SYS_MAX_FLASH_SECT 32 /* max num of sects on one chip */
  212. #define CONFIG_SYS_FLASH_SIZE 8
  213. #define CONFIG_SYS_FLASH_ERASE_TOUT 8000 /* Timeout for Flash Erase (in ms) */
  214. #define CONFIG_SYS_FLASH_WRITE_TOUT 5 /* Timeout for Flash Write (in ms) */
  215. #undef CONFIG_SYS_FLASH_CHECKSUM
  216. /* this is stuff came out of the Motorola docs */
  217. /* Only change this if you also change the Hardware configuration Word */
  218. #define CONFIG_SYS_DEFAULT_IMMR 0x0F010000
  219. /* Set IMMR to 0xF0000000 or above to boot Linux */
  220. #define CONFIG_SYS_IMMR 0xF0000000
  221. #define CONFIG_SYS_BCSR 0xF8000000
  222. #define CONFIG_SYS_PCI_INT 0xF8200000 /* PCI interrupt controller */
  223. /* Define CONFIG_VERY_BIG_RAM to allow use of SDRAMs larger than 256MBytes
  224. */
  225. /*#define CONFIG_VERY_BIG_RAM 1*/
  226. /* What should be the base address of SDRAM DIMM and how big is
  227. * it (in Mbytes)? This will normally auto-configure via the SPD.
  228. */
  229. #define CONFIG_SYS_SDRAM_BASE 0x00000000
  230. #define CONFIG_SYS_SDRAM_SIZE 16
  231. #define SDRAM_SPD_ADDR 0x50
  232. /*-----------------------------------------------------------------------
  233. * BR2,BR3 - Base Register
  234. * Ref: Section 10.3.1 on page 10-14
  235. * OR2,OR3 - Option Register
  236. * Ref: Section 10.3.2 on page 10-16
  237. *-----------------------------------------------------------------------
  238. */
  239. /* Bank 2,3 - SDRAM DIMM
  240. */
  241. /* The BR2 is configured as follows:
  242. *
  243. * - Base address of 0x00000000
  244. * - 64 bit port size (60x bus only)
  245. * - Data errors checking is disabled
  246. * - Read and write access
  247. * - SDRAM 60x bus
  248. * - Access are handled by the memory controller according to MSEL
  249. * - Not used for atomic operations
  250. * - No data pipelining is done
  251. * - Valid
  252. */
  253. #define CONFIG_SYS_BR2_PRELIM ((CONFIG_SYS_SDRAM_BASE & BRx_BA_MSK) |\
  254. BRx_PS_64 |\
  255. BRx_MS_SDRAM_P |\
  256. BRx_V)
  257. #define CONFIG_SYS_BR3_PRELIM ((CONFIG_SYS_SDRAM_BASE & BRx_BA_MSK) |\
  258. BRx_PS_64 |\
  259. BRx_MS_SDRAM_P |\
  260. BRx_V)
  261. /* With a 64 MB DIMM, the OR2 is configured as follows:
  262. *
  263. * - 64 MB
  264. * - 4 internal banks per device
  265. * - Row start address bit is A8 with PSDMR[PBI] = 0
  266. * - 12 row address lines
  267. * - Back-to-back page mode
  268. * - Internal bank interleaving within save device enabled
  269. */
  270. #if (CONFIG_SYS_SDRAM_SIZE == 64)
  271. #define CONFIG_SYS_OR2_PRELIM (MEG_TO_AM(CONFIG_SYS_SDRAM_SIZE) |\
  272. ORxS_BPD_4 |\
  273. ORxS_ROWST_PBI0_A8 |\
  274. ORxS_NUMR_12)
  275. #elif (CONFIG_SYS_SDRAM_SIZE == 16)
  276. #define CONFIG_SYS_OR2_PRELIM (0xFF000C80)
  277. #else
  278. #error "INVALID SDRAM CONFIGURATION"
  279. #endif
  280. /*-----------------------------------------------------------------------
  281. * PSDMR - 60x Bus SDRAM Mode Register
  282. * Ref: Section 10.3.3 on page 10-21
  283. *-----------------------------------------------------------------------
  284. */
  285. #if (CONFIG_SYS_SDRAM_SIZE == 64)
  286. /* With a 64 MB DIMM, the PSDMR is configured as follows:
  287. *
  288. * - Bank Based Interleaving,
  289. * - Refresh Enable,
  290. * - Address Multiplexing where A5 is output on A14 pin
  291. * (A6 on A15, and so on),
  292. * - use address pins A14-A16 as bank select,
  293. * - A9 is output on SDA10 during an ACTIVATE command,
  294. * - earliest timing for ACTIVATE command after REFRESH command is 7 clocks,
  295. * - earliest timing for ACTIVATE or REFRESH command after PRECHARGE command
  296. * is 3 clocks,
  297. * - earliest timing for READ/WRITE command after ACTIVATE command is
  298. * 2 clocks,
  299. * - earliest timing for PRECHARGE after last data was read is 1 clock,
  300. * - earliest timing for PRECHARGE after last data was written is 1 clock,
  301. * - CAS Latency is 2.
  302. */
  303. #define CONFIG_SYS_PSDMR (PSDMR_RFEN |\
  304. PSDMR_SDAM_A14_IS_A5 |\
  305. PSDMR_BSMA_A14_A16 |\
  306. PSDMR_SDA10_PBI0_A9 |\
  307. PSDMR_RFRC_7_CLK |\
  308. PSDMR_PRETOACT_3W |\
  309. PSDMR_ACTTORW_2W |\
  310. PSDMR_LDOTOPRE_1C |\
  311. PSDMR_WRC_1C |\
  312. PSDMR_CL_2)
  313. #elif (CONFIG_SYS_SDRAM_SIZE == 16)
  314. /* With a 16 MB DIMM, the PSDMR is configured as follows:
  315. *
  316. * configuration parameters found in Motorola documentation
  317. */
  318. #define CONFIG_SYS_PSDMR (0x016EB452)
  319. #else
  320. #error "INVALID SDRAM CONFIGURATION"
  321. #endif
  322. #define RS232EN_1 0x02000002
  323. #define RS232EN_2 0x01000001
  324. #define FETHIEN 0x08000008
  325. #define FETH_RST 0x04000004
  326. #define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_IMMR
  327. #define CONFIG_SYS_INIT_RAM_END 0x4000 /* End of used area in DPRAM */
  328. #define CONFIG_SYS_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */
  329. #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_END - CONFIG_SYS_GBL_DATA_SIZE)
  330. #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
  331. /* Use this HRCW for booting from address 0xfe00000 (JP3 in setting 1-2) */
  332. /* 0x0EB2B645 */
  333. #define CONFIG_SYS_HRCW_MASTER (( HRCW_BPS11 | HRCW_CIP ) |\
  334. ( HRCW_L2CPC10 | HRCW_DPPC11 | HRCW_ISB010 ) |\
  335. ( HRCW_BMS | HRCW_MMR11 | HRCW_LBPC01 | HRCW_APPC10 ) |\
  336. ( HRCW_CS10PC01 | HRCW_MODCK_H0101 ) \
  337. )
  338. /* Use this HRCW for booting from address 0xfff0000 (JP3 in setting 2-3) */
  339. /* #define CONFIG_SYS_HRCW_MASTER 0x0cb23645 */
  340. /* This value should actually be situated in the first 256 bytes of the FLASH
  341. which on the standard MPC8266ADS board is at address 0xFF800000
  342. The linker script places it at 0xFFF00000 instead.
  343. It still works, however, as long as the ADS board jumper JP3 is set to
  344. position 2-3 so the board is using the BCSR as Hardware Configuration Word
  345. If you want to use the one defined here instead, ust copy the first 256 bytes from
  346. 0xfff00000 to 0xff800000 (for 8MB flash)
  347. - Rune
  348. */
  349. /* no slaves */
  350. #define CONFIG_SYS_HRCW_SLAVE1 0
  351. #define CONFIG_SYS_HRCW_SLAVE2 0
  352. #define CONFIG_SYS_HRCW_SLAVE3 0
  353. #define CONFIG_SYS_HRCW_SLAVE4 0
  354. #define CONFIG_SYS_HRCW_SLAVE5 0
  355. #define CONFIG_SYS_HRCW_SLAVE6 0
  356. #define CONFIG_SYS_HRCW_SLAVE7 0
  357. #define BOOTFLAG_COLD 0x01 /* Normal Power-On: Boot from FLASH */
  358. #define BOOTFLAG_WARM 0x02 /* Software reboot */
  359. #define CONFIG_SYS_MONITOR_BASE TEXT_BASE
  360. #if (CONFIG_SYS_MONITOR_BASE < CONFIG_SYS_FLASH_BASE)
  361. # define CONFIG_SYS_RAMBOOT
  362. #endif
  363. #define CONFIG_SYS_MONITOR_LEN (256 << 10) /* Reserve 256 kB for Monitor */
  364. #define CONFIG_SYS_MALLOC_LEN (128 << 10) /* Reserve 128 kB for malloc() */
  365. #define CONFIG_SYS_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux */
  366. #ifndef CONFIG_SYS_RAMBOOT
  367. # define CONFIG_ENV_IS_IN_FLASH 1
  368. # define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE + 0x40000)
  369. # define CONFIG_ENV_SECT_SIZE 0x40000
  370. #else
  371. # define CONFIG_ENV_IS_IN_NVRAM 1
  372. # define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE - 0x1000)
  373. # define CONFIG_ENV_SIZE 0x200
  374. #endif /* CONFIG_SYS_RAMBOOT */
  375. #define CONFIG_SYS_CACHELINE_SIZE 32 /* For MPC8260 CPU */
  376. #if defined(CONFIG_CMD_KGDB)
  377. # define CONFIG_SYS_CACHELINE_SHIFT 5 /* log base 2 of the above value */
  378. #endif
  379. /*-----------------------------------------------------------------------
  380. * HIDx - Hardware Implementation-dependent Registers 2-11
  381. *-----------------------------------------------------------------------
  382. * HID0 also contains cache control - initially enable both caches and
  383. * invalidate contents, then the final state leaves only the instruction
  384. * cache enabled. Note that Power-On and Hard reset invalidate the caches,
  385. * but Soft reset does not.
  386. *
  387. * HID1 has only read-only information - nothing to set.
  388. */
  389. /*#define CONFIG_SYS_HID0_INIT 0 */
  390. #define CONFIG_SYS_HID0_INIT (HID0_ICE |\
  391. HID0_DCE |\
  392. HID0_ICFI |\
  393. HID0_DCI |\
  394. HID0_IFEM |\
  395. HID0_ABE)
  396. #define CONFIG_SYS_HID0_FINAL (HID0_ICE | HID0_IFEM | HID0_ABE )
  397. #define CONFIG_SYS_HID2 0
  398. #define CONFIG_SYS_SYPCR 0xFFFFFFC3
  399. #define CONFIG_SYS_BCR 0x004C0000
  400. #define CONFIG_SYS_SIUMCR 0x4E64C000
  401. #define CONFIG_SYS_SCCR 0x00000000
  402. /* local bus memory map
  403. *
  404. * 0x00000000-0x03FFFFFF 64MB SDRAM
  405. * 0x80000000-0x9FFFFFFF 512MB outbound prefetchable PCI memory window
  406. * 0xA0000000-0xBFFFFFFF 512MB outbound non-prefetchable PCI memory window
  407. * 0xF0000000-0xF001FFFF 128KB MPC8266 internal memory
  408. * 0xF4000000-0xF7FFFFFF 64MB outbound PCI I/O window
  409. * 0xF8000000-0xF8007FFF 32KB BCSR
  410. * 0xF8100000-0xF8107FFF 32KB ATM UNI
  411. * 0xF8200000-0xF8207FFF 32KB PCI interrupt controller
  412. * 0xF8300000-0xF8307FFF 32KB EEPROM
  413. * 0xFE000000-0xFFFFFFFF 32MB flash
  414. */
  415. #define CONFIG_SYS_BR0_PRELIM 0xFE001801 /* flash */
  416. #define CONFIG_SYS_OR0_PRELIM 0xFE000836
  417. #define CONFIG_SYS_BR1_PRELIM (CONFIG_SYS_BCSR | 0x1801) /* BCSR */
  418. #define CONFIG_SYS_OR1_PRELIM 0xFFFF8010
  419. #define CONFIG_SYS_BR4_PRELIM 0xF8300801 /* EEPROM */
  420. #define CONFIG_SYS_OR4_PRELIM 0xFFFF8846
  421. #define CONFIG_SYS_BR5_PRELIM 0xF8100801 /* PM5350 ATM UNI */
  422. #define CONFIG_SYS_OR5_PRELIM 0xFFFF8E36
  423. #define CONFIG_SYS_BR8_PRELIM (CONFIG_SYS_PCI_INT | 0x1801) /* PCI interrupt controller */
  424. #define CONFIG_SYS_OR8_PRELIM 0xFFFF8010
  425. #define CONFIG_SYS_RMR 0x0001
  426. #define CONFIG_SYS_TMCNTSC (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
  427. #define CONFIG_SYS_PISCR (PISCR_PS|PISCR_PTF|PISCR_PTE)
  428. #define CONFIG_SYS_RCCR 0
  429. #define CONFIG_SYS_MPTPR 0x00001900
  430. #define CONFIG_SYS_PSRT 0x00000021
  431. /* This address must not exist */
  432. #define CONFIG_SYS_RESET_ADDRESS 0xFCFFFF00
  433. /* PCI Memory map (if different from default map */
  434. #define CONFIG_SYS_PCI_SLV_MEM_LOCAL CONFIG_SYS_SDRAM_BASE /* Local base */
  435. #define CONFIG_SYS_PCI_SLV_MEM_BUS 0x00000000 /* PCI base */
  436. #define CONFIG_SYS_PICMR0_MASK_ATTRIB (PICMR_MASK_512MB | PICMR_ENABLE | \
  437. PICMR_PREFETCH_EN)
  438. /*
  439. * These are the windows that allow the CPU to access PCI address space.
  440. * All three PCI master windows, which allow the CPU to access PCI
  441. * prefetch, non prefetch, and IO space (see below), must all fit within
  442. * these windows.
  443. */
  444. /* PCIBR0 */
  445. #define CONFIG_SYS_PCI_MSTR0_LOCAL 0x80000000 /* Local base */
  446. #define CONFIG_SYS_PCIMSK0_MASK PCIMSK_1GB /* Size of window */
  447. /* PCIBR1 */
  448. #define CONFIG_SYS_PCI_MSTR1_LOCAL 0xF4000000 /* Local base */
  449. #define CONFIG_SYS_PCIMSK1_MASK PCIMSK_64MB /* Size of window */
  450. /*
  451. * Master window that allows the CPU to access PCI Memory (prefetch).
  452. * This window will be setup with the first set of Outbound ATU registers
  453. * in the bridge.
  454. */
  455. #define CONFIG_SYS_PCI_MSTR_MEM_LOCAL 0x80000000 /* Local base */
  456. #define CONFIG_SYS_PCI_MSTR_MEM_BUS 0x80000000 /* PCI base */
  457. #define CONFIG_SYS_CPU_PCI_MEM_START PCI_MSTR_MEM_LOCAL
  458. #define CONFIG_SYS_PCI_MSTR_MEM_SIZE 0x20000000 /* 512MB */
  459. #define CONFIG_SYS_POCMR0_MASK_ATTRIB (POCMR_MASK_512MB | POCMR_ENABLE | POCMR_PREFETCH_EN)
  460. /*
  461. * Master window that allows the CPU to access PCI Memory (non-prefetch).
  462. * This window will be setup with the second set of Outbound ATU registers
  463. * in the bridge.
  464. */
  465. #define CONFIG_SYS_PCI_MSTR_MEMIO_LOCAL 0xA0000000 /* Local base */
  466. #define CONFIG_SYS_PCI_MSTR_MEMIO_BUS 0xA0000000 /* PCI base */
  467. #define CONFIG_SYS_CPU_PCI_MEMIO_START PCI_MSTR_MEMIO_LOCAL
  468. #define CONFIG_SYS_PCI_MSTR_MEMIO_SIZE 0x20000000 /* 512MB */
  469. #define CONFIG_SYS_POCMR1_MASK_ATTRIB (POCMR_MASK_512MB | POCMR_ENABLE)
  470. /*
  471. * Master window that allows the CPU to access PCI IO space.
  472. * This window will be setup with the third set of Outbound ATU registers
  473. * in the bridge.
  474. */
  475. #define CONFIG_SYS_PCI_MSTR_IO_LOCAL 0xF4000000 /* Local base */
  476. #define CONFIG_SYS_PCI_MSTR_IO_BUS 0xF4000000 /* PCI base */
  477. #define CONFIG_SYS_CPU_PCI_IO_START PCI_MSTR_IO_LOCAL
  478. #define CONFIG_SYS_PCI_MSTR_IO_SIZE 0x04000000 /* 64MB */
  479. #define CONFIG_SYS_POCMR2_MASK_ATTRIB (POCMR_MASK_64MB | POCMR_ENABLE | POCMR_PCI_IO)
  480. /*
  481. * JFFS2 partitions
  482. *
  483. */
  484. /* No command line, one static partition, whole device */
  485. #undef CONFIG_CMD_MTDPARTS
  486. #define CONFIG_JFFS2_DEV "nor0"
  487. #define CONFIG_JFFS2_PART_SIZE 0xFFFFFFFF
  488. #define CONFIG_JFFS2_PART_OFFSET 0x00000000
  489. /* mtdparts command line support */
  490. /*
  491. #define CONFIG_CMD_MTDPARTS
  492. #define MTDIDS_DEFAULT ""
  493. #define MTDPARTS_DEFAULT ""
  494. */
  495. #endif /* __CONFIG_H */