MPC8266ADS.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572
  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 CFG_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_BOARD_EARLY_INIT_F 1 /* Call board_early_init_f */
  50. /* allow serial and ethaddr to be overwritten */
  51. #define CONFIG_ENV_OVERWRITE
  52. /*
  53. * select serial console configuration
  54. *
  55. * if either CONFIG_CONS_ON_SMC or CONFIG_CONS_ON_SCC is selected, then
  56. * CONFIG_CONS_INDEX must be set to the channel number (1-2 for SMC, 1-4
  57. * for SCC).
  58. *
  59. * if CONFIG_CONS_NONE is defined, then the serial console routines must
  60. * defined elsewhere (for example, on the cogent platform, there are serial
  61. * ports on the motherboard which are used for the serial console - see
  62. * cogent/cma101/serial.[ch]).
  63. */
  64. #undef CONFIG_CONS_ON_SMC /* define if console on SMC */
  65. #define CONFIG_CONS_ON_SCC /* define if console on SCC */
  66. #undef CONFIG_CONS_NONE /* define if console on something else */
  67. #define CONFIG_CONS_INDEX 1 /* which serial channel for console */
  68. /*
  69. * select ethernet configuration
  70. *
  71. * if either CONFIG_ETHER_ON_SCC or CONFIG_ETHER_ON_FCC is selected, then
  72. * CONFIG_ETHER_INDEX must be set to the channel number (1-4 for SCC, 1-3
  73. * for FCC)
  74. *
  75. * if CONFIG_ETHER_NONE is defined, then either the ethernet routines must be
  76. * defined elsewhere (as for the console), or CFG_CMD_NET must be removed
  77. * from CONFIG_COMMANDS to remove support for networking.
  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 CFG_CMXFCR_MASK (CMXFCR_FC2 | CMXFCR_RF2CS_MSK | CMXFCR_TF2CS_MSK)
  105. # define CFG_CMXFCR_VALUE (CMXFCR_RF2CS_CLK13 | CMXFCR_TF2CS_CLK14)
  106. # define CFG_CPMFCR_RAMTYPE 0
  107. # define CFG_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 CFG_I2C_SPEED 400000 /* I2C speed and slave address */
  112. #define CFG_I2C_SLAVE 0x7F
  113. #define CFG_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. #define CONFIG_COMMANDS (CFG_CMD_ALL & ~( \
  127. CFG_CMD_BEDBUG | \
  128. CFG_CMD_BMP | \
  129. CFG_CMD_BSP | \
  130. CFG_CMD_DATE | \
  131. CFG_CMD_DHCP | \
  132. CFG_CMD_DOC | \
  133. CFG_CMD_DTT | \
  134. CFG_CMD_EEPROM | \
  135. CFG_CMD_ELF | \
  136. CFG_CMD_FDC | \
  137. CFG_CMD_FDOS | \
  138. CFG_CMD_HWFLOW | \
  139. CFG_CMD_IDE | \
  140. CFG_CMD_JFFS2 | \
  141. CFG_CMD_KGDB | \
  142. CFG_CMD_MMC | \
  143. CFG_CMD_NAND | \
  144. CFG_CMD_PCMCIA | \
  145. CFG_CMD_REISER | \
  146. CFG_CMD_SCSI | \
  147. CFG_CMD_SPI | \
  148. CFG_CMD_VFD | \
  149. CFG_CMD_USB ) )
  150. /* Define a command string that is automatically executed when no character
  151. * is read on the console interface withing "Boot Delay" after reset.
  152. */
  153. #undef CONFIG_BOOT_ROOT_INITRD /* Use ram disk for the root file system */
  154. #define CONFIG_BOOT_ROOT_NFS /* Use a NFS mounted root file system */
  155. #ifdef CONFIG_BOOT_ROOT_INITRD
  156. #define CONFIG_BOOTCOMMAND \
  157. "version;" \
  158. "echo;" \
  159. "bootp;" \
  160. "setenv bootargs root=/dev/ram0 rw " \
  161. "ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname)::off;" \
  162. "bootm"
  163. #endif /* CONFIG_BOOT_ROOT_INITRD */
  164. #ifdef CONFIG_BOOT_ROOT_NFS
  165. #define CONFIG_BOOTCOMMAND \
  166. "version;" \
  167. "echo;" \
  168. "bootp;" \
  169. "setenv bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath) " \
  170. "ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname)::off;" \
  171. "bootm"
  172. #endif /* CONFIG_BOOT_ROOT_NFS */
  173. /* Add support for a few extra bootp options like:
  174. * - File size
  175. * - DNS
  176. */
  177. #define CONFIG_BOOTP_MASK (CONFIG_BOOTP_DEFAULT | \
  178. CONFIG_BOOTP_BOOTFILESIZE | \
  179. CONFIG_BOOTP_DNS)
  180. /* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
  181. #include <cmd_confdefs.h>
  182. #define CONFIG_BOOTDELAY 5 /* autoboot after 5 seconds */
  183. #if (CONFIG_COMMANDS & CFG_CMD_KGDB)
  184. #undef CONFIG_KGDB_ON_SMC /* define if kgdb on SMC */
  185. #define CONFIG_KGDB_ON_SCC /* define if kgdb on SCC */
  186. #undef CONFIG_KGDB_NONE /* define if kgdb on something else */
  187. #define CONFIG_KGDB_INDEX 2 /* which serial channel for kgdb */
  188. #define CONFIG_KGDB_BAUDRATE 115200 /* speed to run kgdb serial port at */
  189. #endif
  190. #undef CONFIG_WATCHDOG /* disable platform specific watchdog */
  191. /*
  192. * Miscellaneous configurable options
  193. */
  194. #define CFG_LONGHELP /* undef to save memory */
  195. #define CFG_PROMPT "=> " /* Monitor Command Prompt */
  196. #if (CONFIG_COMMANDS & CFG_CMD_KGDB)
  197. #define CFG_CBSIZE 1024 /* Console I/O Buffer Size */
  198. #else
  199. #define CFG_CBSIZE 256 /* Console I/O Buffer Size */
  200. #endif
  201. #define CFG_PBSIZE (CFG_CBSIZE+sizeof(CFG_PROMPT)+16) /* Print Buffer Size */
  202. #define CFG_MAXARGS 16 /* max number of command args */
  203. #define CFG_BARGSIZE CFG_CBSIZE /* Boot Argument Buffer Size */
  204. #define CFG_MEMTEST_START 0x00100000 /* memtest works on */
  205. #define CFG_MEMTEST_END 0x00f00000 /* 1 ... 15 MB in DRAM */
  206. #undef CONFIG_CLOCKS_IN_MHZ /* clocks passsed to Linux in MHz */
  207. /* for versions < 2.4.5-pre5 */
  208. #define CFG_LOAD_ADDR 0x100000 /* default load address */
  209. #define CFG_HZ 1000 /* decrementer freq: 1 ms ticks */
  210. #define CFG_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200, 230400 }
  211. #define CFG_FLASH_BASE 0xFE000000
  212. #define FLASH_BASE 0xFE000000
  213. #define CFG_MAX_FLASH_BANKS 1 /* max num of memory banks */
  214. #define CFG_MAX_FLASH_SECT 32 /* max num of sects on one chip */
  215. #define CFG_FLASH_SIZE 8
  216. #define CFG_FLASH_ERASE_TOUT 8000 /* Timeout for Flash Erase (in ms) */
  217. #define CFG_FLASH_WRITE_TOUT 5 /* Timeout for Flash Write (in ms) */
  218. #undef CFG_FLASH_CHECKSUM
  219. /* this is stuff came out of the Motorola docs */
  220. /* Only change this if you also change the Hardware configuration Word */
  221. #define CFG_DEFAULT_IMMR 0x0F010000
  222. /* Set IMMR to 0xF0000000 or above to boot Linux */
  223. #define CFG_IMMR 0xF0000000
  224. #define CFG_BCSR 0xF8000000
  225. #define CFG_PCI_INT 0xF8200000 /* PCI interrupt controller */
  226. /* Define CONFIG_VERY_BIG_RAM to allow use of SDRAMs larger than 256MBytes
  227. */
  228. /*#define CONFIG_VERY_BIG_RAM 1*/
  229. /* What should be the base address of SDRAM DIMM and how big is
  230. * it (in Mbytes)? This will normally auto-configure via the SPD.
  231. */
  232. #define CFG_SDRAM_BASE 0x00000000
  233. #define CFG_SDRAM_SIZE 16
  234. #define SDRAM_SPD_ADDR 0x50
  235. /*-----------------------------------------------------------------------
  236. * BR2,BR3 - Base Register
  237. * Ref: Section 10.3.1 on page 10-14
  238. * OR2,OR3 - Option Register
  239. * Ref: Section 10.3.2 on page 10-16
  240. *-----------------------------------------------------------------------
  241. */
  242. /* Bank 2,3 - SDRAM DIMM
  243. */
  244. /* The BR2 is configured as follows:
  245. *
  246. * - Base address of 0x00000000
  247. * - 64 bit port size (60x bus only)
  248. * - Data errors checking is disabled
  249. * - Read and write access
  250. * - SDRAM 60x bus
  251. * - Access are handled by the memory controller according to MSEL
  252. * - Not used for atomic operations
  253. * - No data pipelining is done
  254. * - Valid
  255. */
  256. #define CFG_BR2_PRELIM ((CFG_SDRAM_BASE & BRx_BA_MSK) |\
  257. BRx_PS_64 |\
  258. BRx_MS_SDRAM_P |\
  259. BRx_V)
  260. #define CFG_BR3_PRELIM ((CFG_SDRAM_BASE & BRx_BA_MSK) |\
  261. BRx_PS_64 |\
  262. BRx_MS_SDRAM_P |\
  263. BRx_V)
  264. /* With a 64 MB DIMM, the OR2 is configured as follows:
  265. *
  266. * - 64 MB
  267. * - 4 internal banks per device
  268. * - Row start address bit is A8 with PSDMR[PBI] = 0
  269. * - 12 row address lines
  270. * - Back-to-back page mode
  271. * - Internal bank interleaving within save device enabled
  272. */
  273. #if (CFG_SDRAM_SIZE == 64)
  274. #define CFG_OR2_PRELIM (MEG_TO_AM(CFG_SDRAM_SIZE) |\
  275. ORxS_BPD_4 |\
  276. ORxS_ROWST_PBI0_A8 |\
  277. ORxS_NUMR_12)
  278. #elif (CFG_SDRAM_SIZE == 16)
  279. #define CFG_OR2_PRELIM (0xFF000C80)
  280. #else
  281. #error "INVALID SDRAM CONFIGURATION"
  282. #endif
  283. /*-----------------------------------------------------------------------
  284. * PSDMR - 60x Bus SDRAM Mode Register
  285. * Ref: Section 10.3.3 on page 10-21
  286. *-----------------------------------------------------------------------
  287. */
  288. #if (CFG_SDRAM_SIZE == 64)
  289. /* With a 64 MB DIMM, the PSDMR is configured as follows:
  290. *
  291. * - Bank Based Interleaving,
  292. * - Refresh Enable,
  293. * - Address Multiplexing where A5 is output on A14 pin
  294. * (A6 on A15, and so on),
  295. * - use address pins A14-A16 as bank select,
  296. * - A9 is output on SDA10 during an ACTIVATE command,
  297. * - earliest timing for ACTIVATE command after REFRESH command is 7 clocks,
  298. * - earliest timing for ACTIVATE or REFRESH command after PRECHARGE command
  299. * is 3 clocks,
  300. * - earliest timing for READ/WRITE command after ACTIVATE command is
  301. * 2 clocks,
  302. * - earliest timing for PRECHARGE after last data was read is 1 clock,
  303. * - earliest timing for PRECHARGE after last data was written is 1 clock,
  304. * - CAS Latency is 2.
  305. */
  306. #define CFG_PSDMR (PSDMR_RFEN |\
  307. PSDMR_SDAM_A14_IS_A5 |\
  308. PSDMR_BSMA_A14_A16 |\
  309. PSDMR_SDA10_PBI0_A9 |\
  310. PSDMR_RFRC_7_CLK |\
  311. PSDMR_PRETOACT_3W |\
  312. PSDMR_ACTTORW_2W |\
  313. PSDMR_LDOTOPRE_1C |\
  314. PSDMR_WRC_1C |\
  315. PSDMR_CL_2)
  316. #elif (CFG_SDRAM_SIZE == 16)
  317. /* With a 16 MB DIMM, the PSDMR is configured as follows:
  318. *
  319. * configuration parameters found in Motorola documentation
  320. */
  321. #define CFG_PSDMR (0x016EB452)
  322. #else
  323. #error "INVALID SDRAM CONFIGURATION"
  324. #endif
  325. #define RS232EN_1 0x02000002
  326. #define RS232EN_2 0x01000001
  327. #define FETHIEN 0x08000008
  328. #define FETH_RST 0x04000004
  329. #define CFG_INIT_RAM_ADDR CFG_IMMR
  330. #define CFG_INIT_RAM_END 0x4000 /* End of used area in DPRAM */
  331. #define CFG_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */
  332. #define CFG_GBL_DATA_OFFSET (CFG_INIT_RAM_END - CFG_GBL_DATA_SIZE)
  333. #define CFG_INIT_SP_OFFSET CFG_GBL_DATA_OFFSET
  334. /* Use this HRCW for booting from address 0xfe00000 (JP3 in setting 1-2) */
  335. /* 0x0EB2B645 */
  336. #define CFG_HRCW_MASTER (( HRCW_BPS11 | HRCW_CIP ) |\
  337. ( HRCW_L2CPC10 | HRCW_DPPC11 | HRCW_ISB010 ) |\
  338. ( HRCW_BMS | HRCW_MMR11 | HRCW_LBPC01 | HRCW_APPC10 ) |\
  339. ( HRCW_CS10PC01 | HRCW_MODCK_H0101 ) \
  340. )
  341. /* Use this HRCW for booting from address 0xfff0000 (JP3 in setting 2-3) */
  342. /* #define CFG_HRCW_MASTER 0x0cb23645 */
  343. /* This value should actually be situated in the first 256 bytes of the FLASH
  344. which on the standard MPC8266ADS board is at address 0xFF800000
  345. The linker script places it at 0xFFF00000 instead.
  346. It still works, however, as long as the ADS board jumper JP3 is set to
  347. position 2-3 so the board is using the BCSR as Hardware Configuration Word
  348. If you want to use the one defined here instead, ust copy the first 256 bytes from
  349. 0xfff00000 to 0xff800000 (for 8MB flash)
  350. - Rune
  351. */
  352. /* no slaves */
  353. #define CFG_HRCW_SLAVE1 0
  354. #define CFG_HRCW_SLAVE2 0
  355. #define CFG_HRCW_SLAVE3 0
  356. #define CFG_HRCW_SLAVE4 0
  357. #define CFG_HRCW_SLAVE5 0
  358. #define CFG_HRCW_SLAVE6 0
  359. #define CFG_HRCW_SLAVE7 0
  360. #define BOOTFLAG_COLD 0x01 /* Normal Power-On: Boot from FLASH */
  361. #define BOOTFLAG_WARM 0x02 /* Software reboot */
  362. #define CFG_MONITOR_BASE TEXT_BASE
  363. #if (CFG_MONITOR_BASE < CFG_FLASH_BASE)
  364. # define CFG_RAMBOOT
  365. #endif
  366. #define CFG_MONITOR_LEN (256 << 10) /* Reserve 256 kB for Monitor */
  367. #define CFG_MALLOC_LEN (128 << 10) /* Reserve 128 kB for malloc() */
  368. #define CFG_BOOTMAPSZ (8 << 20) /* Initial Memory map for Linux */
  369. #ifndef CFG_RAMBOOT
  370. # define CFG_ENV_IS_IN_FLASH 1
  371. # define CFG_ENV_ADDR (CFG_MONITOR_BASE + 0x40000)
  372. # define CFG_ENV_SECT_SIZE 0x40000
  373. #else
  374. # define CFG_ENV_IS_IN_NVRAM 1
  375. # define CFG_ENV_ADDR (CFG_MONITOR_BASE - 0x1000)
  376. # define CFG_ENV_SIZE 0x200
  377. #endif /* CFG_RAMBOOT */
  378. #define CFG_CACHELINE_SIZE 32 /* For MPC8260 CPU */
  379. #if (CONFIG_COMMANDS & CFG_CMD_KGDB)
  380. # define CFG_CACHELINE_SHIFT 5 /* log base 2 of the above value */
  381. #endif
  382. /*-----------------------------------------------------------------------
  383. * HIDx - Hardware Implementation-dependent Registers 2-11
  384. *-----------------------------------------------------------------------
  385. * HID0 also contains cache control - initially enable both caches and
  386. * invalidate contents, then the final state leaves only the instruction
  387. * cache enabled. Note that Power-On and Hard reset invalidate the caches,
  388. * but Soft reset does not.
  389. *
  390. * HID1 has only read-only information - nothing to set.
  391. */
  392. /*#define CFG_HID0_INIT 0 */
  393. #define CFG_HID0_INIT (HID0_ICE |\
  394. HID0_DCE |\
  395. HID0_ICFI |\
  396. HID0_DCI |\
  397. HID0_IFEM |\
  398. HID0_ABE)
  399. #define CFG_HID0_FINAL (HID0_ICE | HID0_IFEM | HID0_ABE )
  400. #define CFG_HID2 0
  401. #define CFG_SYPCR 0xFFFFFFC3
  402. #define CFG_BCR 0x004C0000
  403. #define CFG_SIUMCR 0x4E64C000
  404. #define CFG_SCCR 0x00000000
  405. /* local bus memory map
  406. *
  407. * 0x00000000-0x03FFFFFF 64MB SDRAM
  408. * 0x80000000-0x9FFFFFFF 512MB outbound prefetchable PCI memory window
  409. * 0xA0000000-0xBFFFFFFF 512MB outbound non-prefetchable PCI memory window
  410. * 0xF0000000-0xF001FFFF 128KB MPC8266 internal memory
  411. * 0xF4000000-0xF7FFFFFF 64MB outbound PCI I/O window
  412. * 0xF8000000-0xF8007FFF 32KB BCSR
  413. * 0xF8100000-0xF8107FFF 32KB ATM UNI
  414. * 0xF8200000-0xF8207FFF 32KB PCI interrupt controller
  415. * 0xF8300000-0xF8307FFF 32KB EEPROM
  416. * 0xFE000000-0xFFFFFFFF 32MB flash
  417. */
  418. #define CFG_BR0_PRELIM 0xFE001801 /* flash */
  419. #define CFG_OR0_PRELIM 0xFE000836
  420. #define CFG_BR1_PRELIM (CFG_BCSR | 0x1801) /* BCSR */
  421. #define CFG_OR1_PRELIM 0xFFFF8010
  422. #define CFG_BR4_PRELIM 0xF8300801 /* EEPROM */
  423. #define CFG_OR4_PRELIM 0xFFFF8846
  424. #define CFG_BR5_PRELIM 0xF8100801 /* PM5350 ATM UNI */
  425. #define CFG_OR5_PRELIM 0xFFFF8E36
  426. #define CFG_BR8_PRELIM (CFG_PCI_INT | 0x1801) /* PCI interrupt controller */
  427. #define CFG_OR8_PRELIM 0xFFFF8010
  428. #define CFG_RMR 0x0001
  429. #define CFG_TMCNTSC (TMCNTSC_SEC|TMCNTSC_ALR|TMCNTSC_TCF|TMCNTSC_TCE)
  430. #define CFG_PISCR (PISCR_PS|PISCR_PTF|PISCR_PTE)
  431. #define CFG_RCCR 0
  432. #define CFG_MPTPR 0x00001900
  433. #define CFG_PSRT 0x00000021
  434. /* This address must not exist */
  435. #define CFG_RESET_ADDRESS 0xFCFFFF00
  436. /* PCI Memory map (if different from default map */
  437. #define CFG_PCI_SLV_MEM_LOCAL CFG_SDRAM_BASE /* Local base */
  438. #define CFG_PCI_SLV_MEM_BUS 0x00000000 /* PCI base */
  439. #define CFG_PICMR0_MASK_ATTRIB (PICMR_MASK_512MB | PICMR_ENABLE | \
  440. PICMR_PREFETCH_EN)
  441. /*
  442. * These are the windows that allow the CPU to access PCI address space.
  443. * All three PCI master windows, which allow the CPU to access PCI
  444. * prefetch, non prefetch, and IO space (see below), must all fit within
  445. * these windows.
  446. */
  447. /* PCIBR0 */
  448. #define CFG_PCI_MSTR0_LOCAL 0x80000000 /* Local base */
  449. #define CFG_PCIMSK0_MASK PCIMSK_1GB /* Size of window */
  450. /* PCIBR1 */
  451. #define CFG_PCI_MSTR1_LOCAL 0xF4000000 /* Local base */
  452. #define CFG_PCIMSK1_MASK PCIMSK_64MB /* Size of window */
  453. /*
  454. * Master window that allows the CPU to access PCI Memory (prefetch).
  455. * This window will be setup with the first set of Outbound ATU registers
  456. * in the bridge.
  457. */
  458. #define CFG_PCI_MSTR_MEM_LOCAL 0x80000000 /* Local base */
  459. #define CFG_PCI_MSTR_MEM_BUS 0x80000000 /* PCI base */
  460. #define CFG_CPU_PCI_MEM_START PCI_MSTR_MEM_LOCAL
  461. #define CFG_PCI_MSTR_MEM_SIZE 0x20000000 /* 512MB */
  462. #define CFG_POCMR0_MASK_ATTRIB (POCMR_MASK_512MB | POCMR_ENABLE | POCMR_PREFETCH_EN)
  463. /*
  464. * Master window that allows the CPU to access PCI Memory (non-prefetch).
  465. * This window will be setup with the second set of Outbound ATU registers
  466. * in the bridge.
  467. */
  468. #define CFG_PCI_MSTR_MEMIO_LOCAL 0xA0000000 /* Local base */
  469. #define CFG_PCI_MSTR_MEMIO_BUS 0xA0000000 /* PCI base */
  470. #define CFG_CPU_PCI_MEMIO_START PCI_MSTR_MEMIO_LOCAL
  471. #define CFG_PCI_MSTR_MEMIO_SIZE 0x20000000 /* 512MB */
  472. #define CFG_POCMR1_MASK_ATTRIB (POCMR_MASK_512MB | POCMR_ENABLE)
  473. /*
  474. * Master window that allows the CPU to access PCI IO space.
  475. * This window will be setup with the third set of Outbound ATU registers
  476. * in the bridge.
  477. */
  478. #define CFG_PCI_MSTR_IO_LOCAL 0xF4000000 /* Local base */
  479. #define CFG_PCI_MSTR_IO_BUS 0xF4000000 /* PCI base */
  480. #define CFG_CPU_PCI_IO_START PCI_MSTR_IO_LOCAL
  481. #define CFG_PCI_MSTR_IO_SIZE 0x04000000 /* 64MB */
  482. #define CFG_POCMR2_MASK_ATTRIB (POCMR_MASK_64MB | POCMR_ENABLE | POCMR_PCI_IO)
  483. #endif /* __CONFIG_H */