gt64260_defs.h 37 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010
  1. /*
  2. * include/asm-ppc/gt64260_defs.h
  3. *
  4. * Register definitions for the Marvell/Galileo GT64260 host bridge.
  5. *
  6. * Author: Mark A. Greer <mgreer@mvista.com>
  7. *
  8. * 2001 (c) MontaVista, Software, Inc. This file is licensed under
  9. * the terms of the GNU General Public License version 2. This program
  10. * is licensed "as is" without any warranty of any kind, whether express
  11. * or implied.
  12. */
  13. #ifndef __ASMPPC_GT64260_DEFS_H
  14. #define __ASMPPC_GT64260_DEFS_H
  15. /*
  16. * Define a macro to represent the supported version of the 64260.
  17. */
  18. #define GT64260 0x01
  19. #define GT64260A 0x10
  20. /*
  21. *****************************************************************************
  22. *
  23. * CPU Interface Registers
  24. *
  25. *****************************************************************************
  26. */
  27. /* CPU physical address of 64260's registers */
  28. #define GT64260_INTERNAL_SPACE_DECODE 0x0068
  29. #define GT64260_INTERNAL_SPACE_SIZE 0x10000
  30. #define GT64260_INTERNAL_SPACE_DEFAULT_ADDR 0x14000000
  31. /* CPU Memory Controller Window Registers (4 windows) */
  32. #define GT64260_CPU_SCS_DECODE_WINDOWS 4
  33. #define GT64260_CPU_SCS_DECODE_0_BOT 0x0008
  34. #define GT64260_CPU_SCS_DECODE_0_TOP 0x0010
  35. #define GT64260_CPU_SCS_DECODE_1_BOT 0x0208
  36. #define GT64260_CPU_SCS_DECODE_1_TOP 0x0210
  37. #define GT64260_CPU_SCS_DECODE_2_BOT 0x0018
  38. #define GT64260_CPU_SCS_DECODE_2_TOP 0x0020
  39. #define GT64260_CPU_SCS_DECODE_3_BOT 0x0218
  40. #define GT64260_CPU_SCS_DECODE_3_TOP 0x0220
  41. /* CPU Device Controller Window Registers (4 windows) */
  42. #define GT64260_CPU_CS_DECODE_WINDOWS 4
  43. #define GT64260_CPU_CS_DECODE_0_BOT 0x0028
  44. #define GT64260_CPU_CS_DECODE_0_TOP 0x0030
  45. #define GT64260_CPU_CS_DECODE_1_BOT 0x0228
  46. #define GT64260_CPU_CS_DECODE_1_TOP 0x0230
  47. #define GT64260_CPU_CS_DECODE_2_BOT 0x0248
  48. #define GT64260_CPU_CS_DECODE_2_TOP 0x0250
  49. #define GT64260_CPU_CS_DECODE_3_BOT 0x0038
  50. #define GT64260_CPU_CS_DECODE_3_TOP 0x0040
  51. #define GT64260_CPU_BOOT_CS_DECODE_0_BOT 0x0238
  52. #define GT64260_CPU_BOOT_CS_DECODE_0_TOP 0x0240
  53. /* CPU Windows to PCI space (2 PCI buses each w/ 1 I/O & 4 MEM windows) */
  54. #define GT64260_PCI_BUSES 2
  55. #define GT64260_PCI_IO_WINDOWS_PER_BUS 1
  56. #define GT64260_PCI_MEM_WINDOWS_PER_BUS 4
  57. #define GT64260_CPU_PCI_SWAP_BYTE 0x00000000
  58. #define GT64260_CPU_PCI_SWAP_NONE 0x01000000
  59. #define GT64260_CPU_PCI_SWAP_BYTE_WORD 0x02000000
  60. #define GT64260_CPU_PCI_SWAP_WORD 0x03000000
  61. #define GT64260_CPU_PCI_SWAP_MASK 0x07000000
  62. #define GT64260_CPU_PCI_MEM_REQ64 (1<<27)
  63. #define GT64260_CPU_PCI_0_IO_DECODE_BOT 0x0048
  64. #define GT64260_CPU_PCI_0_IO_DECODE_TOP 0x0050
  65. #define GT64260_CPU_PCI_0_MEM_0_DECODE_BOT 0x0058
  66. #define GT64260_CPU_PCI_0_MEM_0_DECODE_TOP 0x0060
  67. #define GT64260_CPU_PCI_0_MEM_1_DECODE_BOT 0x0080
  68. #define GT64260_CPU_PCI_0_MEM_1_DECODE_TOP 0x0088
  69. #define GT64260_CPU_PCI_0_MEM_2_DECODE_BOT 0x0258
  70. #define GT64260_CPU_PCI_0_MEM_2_DECODE_TOP 0x0260
  71. #define GT64260_CPU_PCI_0_MEM_3_DECODE_BOT 0x0280
  72. #define GT64260_CPU_PCI_0_MEM_3_DECODE_TOP 0x0288
  73. #define GT64260_CPU_PCI_0_IO_REMAP 0x00f0
  74. #define GT64260_CPU_PCI_0_MEM_0_REMAP_LO 0x00f8
  75. #define GT64260_CPU_PCI_0_MEM_0_REMAP_HI 0x0320
  76. #define GT64260_CPU_PCI_0_MEM_1_REMAP_LO 0x0100
  77. #define GT64260_CPU_PCI_0_MEM_1_REMAP_HI 0x0328
  78. #define GT64260_CPU_PCI_0_MEM_2_REMAP_LO 0x02f8
  79. #define GT64260_CPU_PCI_0_MEM_2_REMAP_HI 0x0330
  80. #define GT64260_CPU_PCI_0_MEM_3_REMAP_LO 0x0300
  81. #define GT64260_CPU_PCI_0_MEM_3_REMAP_HI 0x0338
  82. #define GT64260_CPU_PCI_1_IO_DECODE_BOT 0x0090
  83. #define GT64260_CPU_PCI_1_IO_DECODE_TOP 0x0098
  84. #define GT64260_CPU_PCI_1_MEM_0_DECODE_BOT 0x00a0
  85. #define GT64260_CPU_PCI_1_MEM_0_DECODE_TOP 0x00a8
  86. #define GT64260_CPU_PCI_1_MEM_1_DECODE_BOT 0x00b0
  87. #define GT64260_CPU_PCI_1_MEM_1_DECODE_TOP 0x00b8
  88. #define GT64260_CPU_PCI_1_MEM_2_DECODE_BOT 0x02a0
  89. #define GT64260_CPU_PCI_1_MEM_2_DECODE_TOP 0x02a8
  90. #define GT64260_CPU_PCI_1_MEM_3_DECODE_BOT 0x02b0
  91. #define GT64260_CPU_PCI_1_MEM_3_DECODE_TOP 0x02b8
  92. #define GT64260_CPU_PCI_1_IO_REMAP 0x0108
  93. #define GT64260_CPU_PCI_1_MEM_0_REMAP_LO 0x0110
  94. #define GT64260_CPU_PCI_1_MEM_0_REMAP_HI 0x0340
  95. #define GT64260_CPU_PCI_1_MEM_1_REMAP_LO 0x0118
  96. #define GT64260_CPU_PCI_1_MEM_1_REMAP_HI 0x0348
  97. #define GT64260_CPU_PCI_1_MEM_2_REMAP_LO 0x0310
  98. #define GT64260_CPU_PCI_1_MEM_2_REMAP_HI 0x0350
  99. #define GT64260_CPU_PCI_1_MEM_3_REMAP_LO 0x0318
  100. #define GT64260_CPU_PCI_1_MEM_3_REMAP_HI 0x0358
  101. /* CPU Control Registers */
  102. #define GT64260_CPU_CONFIG 0x0000
  103. #define GT64260_CPU_MODE 0x0120
  104. #define GT64260_CPU_MASTER_CNTL 0x0160
  105. #define GT64260_CPU_XBAR_CNTL_LO 0x0150
  106. #define GT64260_CPU_XBAR_CNTL_HI 0x0158
  107. #define GT64260_CPU_XBAR_TO 0x0168
  108. #define GT64260_CPU_RR_XBAR_CNTL_LO 0x0170
  109. #define GT64260_CPU_RR_XBAR_CNTL_HI 0x0178
  110. /* CPU Sync Barrier Registers */
  111. #define GT64260_CPU_SYNC_BARRIER_PCI_0 0x00c0
  112. #define GT64260_CPU_SYNC_BARRIER_PCI_1 0x00c8
  113. /* CPU Access Protection Registers */
  114. #define GT64260_CPU_PROT_WINDOWS 8
  115. #define GT64260_CPU_PROT_ACCPROTECT (1<<16)
  116. #define GT64260_CPU_PROT_WRPROTECT (1<<17)
  117. #define GT64260_CPU_PROT_CACHEPROTECT (1<<18)
  118. #define GT64260_CPU_PROT_BASE_0 0x0180
  119. #define GT64260_CPU_PROT_TOP_0 0x0188
  120. #define GT64260_CPU_PROT_BASE_1 0x0190
  121. #define GT64260_CPU_PROT_TOP_1 0x0198
  122. #define GT64260_CPU_PROT_BASE_2 0x01a0
  123. #define GT64260_CPU_PROT_TOP_2 0x01a8
  124. #define GT64260_CPU_PROT_BASE_3 0x01b0
  125. #define GT64260_CPU_PROT_TOP_3 0x01b8
  126. #define GT64260_CPU_PROT_BASE_4 0x01c0
  127. #define GT64260_CPU_PROT_TOP_4 0x01c8
  128. #define GT64260_CPU_PROT_BASE_5 0x01d0
  129. #define GT64260_CPU_PROT_TOP_5 0x01d8
  130. #define GT64260_CPU_PROT_BASE_6 0x01e0
  131. #define GT64260_CPU_PROT_TOP_6 0x01e8
  132. #define GT64260_CPU_PROT_BASE_7 0x01f0
  133. #define GT64260_CPU_PROT_TOP_7 0x01f8
  134. /* CPU Snoop Control Registers */
  135. #define GT64260_CPU_SNOOP_WINDOWS 4
  136. #define GT64260_CPU_SNOOP_NONE 0x00000000
  137. #define GT64260_CPU_SNOOP_WT 0x00010000
  138. #define GT64260_CPU_SNOOP_WB 0x00020000
  139. #define GT64260_CPU_SNOOP_MASK 0x00030000
  140. #define GT64260_CPU_SNOOP_ALL_BITS GT64260_CPU_SNOOP_MASK
  141. #define GT64260_CPU_SNOOP_BASE_0 0x0380
  142. #define GT64260_CPU_SNOOP_TOP_0 0x0388
  143. #define GT64260_CPU_SNOOP_BASE_1 0x0390
  144. #define GT64260_CPU_SNOOP_TOP_1 0x0398
  145. #define GT64260_CPU_SNOOP_BASE_2 0x03a0
  146. #define GT64260_CPU_SNOOP_TOP_2 0x03a8
  147. #define GT64260_CPU_SNOOP_BASE_3 0x03b0
  148. #define GT64260_CPU_SNOOP_TOP_3 0x03b8
  149. /* CPU Error Report Registers */
  150. #define GT64260_CPU_ERR_ADDR_LO 0x0070
  151. #define GT64260_CPU_ERR_ADDR_HI 0x0078
  152. #define GT64260_CPU_ERR_DATA_LO 0x0128
  153. #define GT64260_CPU_ERR_DATA_HI 0x0130
  154. #define GT64260_CPU_ERR_PARITY 0x0138
  155. #define GT64260_CPU_ERR_CAUSE 0x0140
  156. #define GT64260_CPU_ERR_MASK 0x0148
  157. /*
  158. *****************************************************************************
  159. *
  160. * SDRAM Cotnroller Registers
  161. *
  162. *****************************************************************************
  163. */
  164. /* SDRAM Config Registers */
  165. #define GT64260_SDRAM_CONFIG 0x0448
  166. #define GT64260_SDRAM_OPERATION_MODE 0x0474
  167. #define GT64260_SDRAM_ADDR_CNTL 0x047c
  168. #define GT64260_SDRAM_TIMING_PARAMS 0x04b4
  169. #define GT64260_SDRAM_UMA_CNTL 0x04a4
  170. #define GT64260_SDRAM_XBAR_CNTL_LO 0x04a8
  171. #define GT64260_SDRAM_XBAR_CNTL_HI 0x04ac
  172. #define GT64260_SDRAM_XBAR_CNTL_TO 0x04b0
  173. /* SDRAM Banks Parameters Registers */
  174. #define GT64260_SDRAM_BANK_PARAMS_0 0x044c
  175. #define GT64260_SDRAM_BANK_PARAMS_1 0x0450
  176. #define GT64260_SDRAM_BANK_PARAMS_2 0x0454
  177. #define GT64260_SDRAM_BANK_PARAMS_3 0x0458
  178. /* SDRAM Error Report Registers */
  179. #define GT64260_SDRAM_ERR_DATA_LO 0x0484
  180. #define GT64260_SDRAM_ERR_DATA_HI 0x0480
  181. #define GT64260_SDRAM_ERR_ADDR 0x0490
  182. #define GT64260_SDRAM_ERR_ECC_RCVD 0x0488
  183. #define GT64260_SDRAM_ERR_ECC_CALC 0x048c
  184. #define GT64260_SDRAM_ERR_ECC_CNTL 0x0494
  185. #define GT64260_SDRAM_ERR_ECC_ERR_CNT 0x0498
  186. /*
  187. *****************************************************************************
  188. *
  189. * Device/BOOT Cotnroller Registers
  190. *
  191. *****************************************************************************
  192. */
  193. /* Device Control Registers */
  194. #define GT64260_DEV_BANK_PARAMS_0 0x045c
  195. #define GT64260_DEV_BANK_PARAMS_1 0x0460
  196. #define GT64260_DEV_BANK_PARAMS_2 0x0464
  197. #define GT64260_DEV_BANK_PARAMS_3 0x0468
  198. #define GT64260_DEV_BOOT_PARAMS 0x046c
  199. #define GT64260_DEV_IF_CNTL 0x04c0
  200. #define GT64260_DEV_IF_XBAR_CNTL_LO 0x04c8
  201. #define GT64260_DEV_IF_XBAR_CNTL_HI 0x04cc
  202. #define GT64260_DEV_IF_XBAR_CNTL_TO 0x04c4
  203. /* Device Interrupt Registers */
  204. #define GT64260_DEV_INTR_CAUSE 0x04d0
  205. #define GT64260_DEV_INTR_MASK 0x04d4
  206. #define GT64260_DEV_INTR_ERR_ADDR 0x04d8
  207. /*
  208. *****************************************************************************
  209. *
  210. * PCI Bridge Interface Registers
  211. *
  212. *****************************************************************************
  213. */
  214. /* PCI Configuration Access Registers */
  215. #define GT64260_PCI_0_CONFIG_ADDR 0x0cf8
  216. #define GT64260_PCI_0_CONFIG_DATA 0x0cfc
  217. #define GT64260_PCI_0_IACK 0x0c34
  218. #define GT64260_PCI_1_CONFIG_ADDR 0x0c78
  219. #define GT64260_PCI_1_CONFIG_DATA 0x0c7c
  220. #define GT64260_PCI_1_IACK 0x0cb4
  221. /* PCI Control Registers */
  222. #define GT64260_PCI_0_CMD 0x0c00
  223. #define GT64260_PCI_0_MODE 0x0d00
  224. #define GT64260_PCI_0_TO_RETRY 0x0c04
  225. #define GT64260_PCI_0_RD_BUF_DISCARD_TIMER 0x0d04
  226. #define GT64260_PCI_0_MSI_TRIGGER_TIMER 0x0c38
  227. #define GT64260_PCI_0_ARBITER_CNTL 0x1d00
  228. #define GT64260_PCI_0_XBAR_CNTL_LO 0x1d08
  229. #define GT64260_PCI_0_XBAR_CNTL_HI 0x1d0c
  230. #define GT64260_PCI_0_XBAR_CNTL_TO 0x1d04
  231. #define GT64260_PCI_0_RD_RESP_XBAR_CNTL_LO 0x1d18
  232. #define GT64260_PCI_0_RD_RESP_XBAR_CNTL_HI 0x1d1c
  233. #define GT64260_PCI_0_SYNC_BARRIER 0x1d10
  234. #define GT64260_PCI_0_P2P_CONFIG 0x1d14
  235. #define GT64260_PCI_0_P2P_SWAP_CNTL 0x1d54
  236. #define GT64260_PCI_1_CMD 0x0c80
  237. #define GT64260_PCI_1_MODE 0x0d80
  238. #define GT64260_PCI_1_TO_RETRY 0x0c84
  239. #define GT64260_PCI_1_RD_BUF_DISCARD_TIMER 0x0d84
  240. #define GT64260_PCI_1_MSI_TRIGGER_TIMER 0x0cb8
  241. #define GT64260_PCI_1_ARBITER_CNTL 0x1d80
  242. #define GT64260_PCI_1_XBAR_CNTL_LO 0x1d88
  243. #define GT64260_PCI_1_XBAR_CNTL_HI 0x1d8c
  244. #define GT64260_PCI_1_XBAR_CNTL_TO 0x1d84
  245. #define GT64260_PCI_1_RD_RESP_XBAR_CNTL_LO 0x1d98
  246. #define GT64260_PCI_1_RD_RESP_XBAR_CNTL_HI 0x1d9c
  247. #define GT64260_PCI_1_SYNC_BARRIER 0x1d90
  248. #define GT64260_PCI_1_P2P_CONFIG 0x1d94
  249. #define GT64260_PCI_1_P2P_SWAP_CNTL 0x1dd4
  250. /* PCI Access Control Regions Registers */
  251. #define GT64260_PCI_ACC_CNTL_WINDOWS 8
  252. #define GT64260_PCI_ACC_CNTL_PREFETCHEN (1<<12)
  253. #define GT64260_PCI_ACC_CNTL_DREADEN (1<<13)
  254. #define GT64260_PCI_ACC_CNTL_RDPREFETCH (1<<16)
  255. #define GT64260_PCI_ACC_CNTL_RDLINEPREFETCH (1<<17)
  256. #define GT64260_PCI_ACC_CNTL_RDMULPREFETCH (1<<18)
  257. #define GT64260_PCI_ACC_CNTL_MBURST_4_WORDS 0x00000000
  258. #define GT64260_PCI_ACC_CNTL_MBURST_8_WORDS 0x00100000
  259. #define GT64260_PCI_ACC_CNTL_MBURST_16_WORDS 0x00200000
  260. #define GT64260_PCI_ACC_CNTL_MBURST_MASK 0x00300000
  261. #define GT64260_PCI_ACC_CNTL_SWAP_BYTE 0x00000000
  262. #define GT64260_PCI_ACC_CNTL_SWAP_NONE 0x01000000
  263. #define GT64260_PCI_ACC_CNTL_SWAP_BYTE_WORD 0x02000000
  264. #define GT64260_PCI_ACC_CNTL_SWAP_WORD 0x03000000
  265. #define GT64260_PCI_ACC_CNTL_SWAP_MASK 0x03000000
  266. #define GT64260_PCI_ACC_CNTL_ACCPROT (1<<28)
  267. #define GT64260_PCI_ACC_CNTL_WRPROT (1<<29)
  268. #define GT64260_PCI_ACC_CNTL_ALL_BITS (GT64260_PCI_ACC_CNTL_PREFETCHEN | \
  269. GT64260_PCI_ACC_CNTL_DREADEN | \
  270. GT64260_PCI_ACC_CNTL_RDPREFETCH | \
  271. GT64260_PCI_ACC_CNTL_RDLINEPREFETCH |\
  272. GT64260_PCI_ACC_CNTL_RDMULPREFETCH | \
  273. GT64260_PCI_ACC_CNTL_MBURST_MASK | \
  274. GT64260_PCI_ACC_CNTL_SWAP_MASK | \
  275. GT64260_PCI_ACC_CNTL_ACCPROT| \
  276. GT64260_PCI_ACC_CNTL_WRPROT)
  277. #define GT64260_PCI_0_ACC_CNTL_0_BASE_LO 0x1e00
  278. #define GT64260_PCI_0_ACC_CNTL_0_BASE_HI 0x1e04
  279. #define GT64260_PCI_0_ACC_CNTL_0_TOP 0x1e08
  280. #define GT64260_PCI_0_ACC_CNTL_1_BASE_LO 0x1e10
  281. #define GT64260_PCI_0_ACC_CNTL_1_BASE_HI 0x1e14
  282. #define GT64260_PCI_0_ACC_CNTL_1_TOP 0x1e18
  283. #define GT64260_PCI_0_ACC_CNTL_2_BASE_LO 0x1e20
  284. #define GT64260_PCI_0_ACC_CNTL_2_BASE_HI 0x1e24
  285. #define GT64260_PCI_0_ACC_CNTL_2_TOP 0x1e28
  286. #define GT64260_PCI_0_ACC_CNTL_3_BASE_LO 0x1e30
  287. #define GT64260_PCI_0_ACC_CNTL_3_BASE_HI 0x1e34
  288. #define GT64260_PCI_0_ACC_CNTL_3_TOP 0x1e38
  289. #define GT64260_PCI_0_ACC_CNTL_4_BASE_LO 0x1e40
  290. #define GT64260_PCI_0_ACC_CNTL_4_BASE_HI 0x1e44
  291. #define GT64260_PCI_0_ACC_CNTL_4_TOP 0x1e48
  292. #define GT64260_PCI_0_ACC_CNTL_5_BASE_LO 0x1e50
  293. #define GT64260_PCI_0_ACC_CNTL_5_BASE_HI 0x1e54
  294. #define GT64260_PCI_0_ACC_CNTL_5_TOP 0x1e58
  295. #define GT64260_PCI_0_ACC_CNTL_6_BASE_LO 0x1e60
  296. #define GT64260_PCI_0_ACC_CNTL_6_BASE_HI 0x1e64
  297. #define GT64260_PCI_0_ACC_CNTL_6_TOP 0x1e68
  298. #define GT64260_PCI_0_ACC_CNTL_7_BASE_LO 0x1e70
  299. #define GT64260_PCI_0_ACC_CNTL_7_BASE_HI 0x1e74
  300. #define GT64260_PCI_0_ACC_CNTL_7_TOP 0x1e78
  301. #define GT64260_PCI_1_ACC_CNTL_0_BASE_LO 0x1e80
  302. #define GT64260_PCI_1_ACC_CNTL_0_BASE_HI 0x1e84
  303. #define GT64260_PCI_1_ACC_CNTL_0_TOP 0x1e88
  304. #define GT64260_PCI_1_ACC_CNTL_1_BASE_LO 0x1e90
  305. #define GT64260_PCI_1_ACC_CNTL_1_BASE_HI 0x1e94
  306. #define GT64260_PCI_1_ACC_CNTL_1_TOP 0x1e98
  307. #define GT64260_PCI_1_ACC_CNTL_2_BASE_LO 0x1ea0
  308. #define GT64260_PCI_1_ACC_CNTL_2_BASE_HI 0x1ea4
  309. #define GT64260_PCI_1_ACC_CNTL_2_TOP 0x1ea8
  310. #define GT64260_PCI_1_ACC_CNTL_3_BASE_LO 0x1eb0
  311. #define GT64260_PCI_1_ACC_CNTL_3_BASE_HI 0x1eb4
  312. #define GT64260_PCI_1_ACC_CNTL_3_TOP 0x1eb8
  313. #define GT64260_PCI_1_ACC_CNTL_4_BASE_LO 0x1ec0
  314. #define GT64260_PCI_1_ACC_CNTL_4_BASE_HI 0x1ec4
  315. #define GT64260_PCI_1_ACC_CNTL_4_TOP 0x1ec8
  316. #define GT64260_PCI_1_ACC_CNTL_5_BASE_LO 0x1ed0
  317. #define GT64260_PCI_1_ACC_CNTL_5_BASE_HI 0x1ed4
  318. #define GT64260_PCI_1_ACC_CNTL_5_TOP 0x1ed8
  319. #define GT64260_PCI_1_ACC_CNTL_6_BASE_LO 0x1ee0
  320. #define GT64260_PCI_1_ACC_CNTL_6_BASE_HI 0x1ee4
  321. #define GT64260_PCI_1_ACC_CNTL_6_TOP 0x1ee8
  322. #define GT64260_PCI_1_ACC_CNTL_7_BASE_LO 0x1ef0
  323. #define GT64260_PCI_1_ACC_CNTL_7_BASE_HI 0x1ef4
  324. #define GT64260_PCI_1_ACC_CNTL_7_TOP 0x1ef8
  325. /* PCI Snoop Control Registers */
  326. #define GT64260_PCI_SNOOP_WINDOWS 4
  327. #define GT64260_PCI_SNOOP_NONE 0x00000000
  328. #define GT64260_PCI_SNOOP_WT 0x00001000
  329. #define GT64260_PCI_SNOOP_WB 0x00002000
  330. #define GT64260_PCI_0_SNOOP_0_BASE_LO 0x1f00
  331. #define GT64260_PCI_0_SNOOP_0_BASE_HI 0x1f04
  332. #define GT64260_PCI_0_SNOOP_0_TOP 0x1f08
  333. #define GT64260_PCI_0_SNOOP_1_BASE_LO 0x1f10
  334. #define GT64260_PCI_0_SNOOP_1_BASE_HI 0x1f14
  335. #define GT64260_PCI_0_SNOOP_1_TOP 0x1f18
  336. #define GT64260_PCI_0_SNOOP_2_BASE_LO 0x1f20
  337. #define GT64260_PCI_0_SNOOP_2_BASE_HI 0x1f24
  338. #define GT64260_PCI_0_SNOOP_2_TOP 0x1f28
  339. #define GT64260_PCI_0_SNOOP_3_BASE_LO 0x1f30
  340. #define GT64260_PCI_0_SNOOP_3_BASE_HI 0x1f34
  341. #define GT64260_PCI_0_SNOOP_3_TOP 0x1f38
  342. #define GT64260_PCI_1_SNOOP_0_BASE_LO 0x1f80
  343. #define GT64260_PCI_1_SNOOP_0_BASE_HI 0x1f84
  344. #define GT64260_PCI_1_SNOOP_0_TOP 0x1f88
  345. #define GT64260_PCI_1_SNOOP_1_BASE_LO 0x1f90
  346. #define GT64260_PCI_1_SNOOP_1_BASE_HI 0x1f94
  347. #define GT64260_PCI_1_SNOOP_1_TOP 0x1f98
  348. #define GT64260_PCI_1_SNOOP_2_BASE_LO 0x1fa0
  349. #define GT64260_PCI_1_SNOOP_2_BASE_HI 0x1fa4
  350. #define GT64260_PCI_1_SNOOP_2_TOP 0x1fa8
  351. #define GT64260_PCI_1_SNOOP_3_BASE_LO 0x1fb0
  352. #define GT64260_PCI_1_SNOOP_3_BASE_HI 0x1fb4
  353. #define GT64260_PCI_1_SNOOP_3_TOP 0x1fb8
  354. /* PCI Error Report Registers */
  355. #define GT64260_PCI_0_ERR_SERR_MASK 0x0c28
  356. #define GT64260_PCI_0_ERR_ADDR_LO 0x1d40
  357. #define GT64260_PCI_0_ERR_ADDR_HI 0x1d44
  358. #define GT64260_PCI_0_ERR_DATA_LO 0x1d48
  359. #define GT64260_PCI_0_ERR_DATA_HI 0x1d4c
  360. #define GT64260_PCI_0_ERR_CMD 0x1d50
  361. #define GT64260_PCI_0_ERR_CAUSE 0x1d58
  362. #define GT64260_PCI_0_ERR_MASK 0x1d5c
  363. #define GT64260_PCI_1_ERR_SERR_MASK 0x0ca8
  364. #define GT64260_PCI_1_ERR_ADDR_LO 0x1dc0
  365. #define GT64260_PCI_1_ERR_ADDR_HI 0x1dc4
  366. #define GT64260_PCI_1_ERR_DATA_LO 0x1dc8
  367. #define GT64260_PCI_1_ERR_DATA_HI 0x1dcc
  368. #define GT64260_PCI_1_ERR_CMD 0x1dd0
  369. #define GT64260_PCI_1_ERR_CAUSE 0x1dd8
  370. #define GT64260_PCI_1_ERR_MASK 0x1ddc
  371. /* PCI Slave Address Decoding Registers */
  372. #define GT64260_PCI_SCS_WINDOWS 4
  373. #define GT64260_PCI_CS_WINDOWS 4
  374. #define GT64260_PCI_BOOT_WINDOWS 1
  375. #define GT64260_PCI_P2P_MEM_WINDOWS 2
  376. #define GT64260_PCI_P2P_IO_WINDOWS 1
  377. #define GT64260_PCI_DAC_SCS_WINDOWS 4
  378. #define GT64260_PCI_DAC_CS_WINDOWS 4
  379. #define GT64260_PCI_DAC_BOOT_WINDOWS 1
  380. #define GT64260_PCI_DAC_P2P_MEM_WINDOWS 2
  381. #define GT64260_PCI_0_SLAVE_SCS_0_SIZE 0x0c08
  382. #define GT64260_PCI_0_SLAVE_SCS_1_SIZE 0x0d08
  383. #define GT64260_PCI_0_SLAVE_SCS_2_SIZE 0x0c0c
  384. #define GT64260_PCI_0_SLAVE_SCS_3_SIZE 0x0d0c
  385. #define GT64260_PCI_0_SLAVE_CS_0_SIZE 0x0c10
  386. #define GT64260_PCI_0_SLAVE_CS_1_SIZE 0x0d10
  387. #define GT64260_PCI_0_SLAVE_CS_2_SIZE 0x0d18
  388. #define GT64260_PCI_0_SLAVE_CS_3_SIZE 0x0c14
  389. #define GT64260_PCI_0_SLAVE_BOOT_SIZE 0x0d14
  390. #define GT64260_PCI_0_SLAVE_P2P_MEM_0_SIZE 0x0d1c
  391. #define GT64260_PCI_0_SLAVE_P2P_MEM_1_SIZE 0x0d20
  392. #define GT64260_PCI_0_SLAVE_P2P_IO_SIZE 0x0d24
  393. #define GT64260_PCI_0_SLAVE_CPU_SIZE 0x0d28
  394. #define GT64260_PCI_0_SLAVE_DAC_SCS_0_SIZE 0x0e00
  395. #define GT64260_PCI_0_SLAVE_DAC_SCS_1_SIZE 0x0e04
  396. #define GT64260_PCI_0_SLAVE_DAC_SCS_2_SIZE 0x0e08
  397. #define GT64260_PCI_0_SLAVE_DAC_SCS_3_SIZE 0x0e0c
  398. #define GT64260_PCI_0_SLAVE_DAC_CS_0_SIZE 0x0e10
  399. #define GT64260_PCI_0_SLAVE_DAC_CS_1_SIZE 0x0e14
  400. #define GT64260_PCI_0_SLAVE_DAC_CS_2_SIZE 0x0e18
  401. #define GT64260_PCI_0_SLAVE_DAC_CS_3_SIZE 0x0e1c
  402. #define GT64260_PCI_0_SLAVE_DAC_BOOT_SIZE 0x0e20
  403. #define GT64260_PCI_0_SLAVE_DAC_P2P_MEM_0_SIZE 0x0e24
  404. #define GT64260_PCI_0_SLAVE_DAC_P2P_MEM_1_SIZE 0x0e28
  405. #define GT64260_PCI_0_SLAVE_DAC_CPU_SIZE 0x0e2c
  406. #define GT64260_PCI_0_SLAVE_EXP_ROM_SIZE 0x0d2c
  407. #define GT64260_PCI_SLAVE_BAR_REG_ENABLES_SCS_0 (1<<0)
  408. #define GT64260_PCI_SLAVE_BAR_REG_ENABLES_SCS_1 (1<<1)
  409. #define GT64260_PCI_SLAVE_BAR_REG_ENABLES_SCS_2 (1<<2)
  410. #define GT64260_PCI_SLAVE_BAR_REG_ENABLES_SCS_3 (1<<3)
  411. #define GT64260_PCI_SLAVE_BAR_REG_ENABLES_CS_0 (1<<4)
  412. #define GT64260_PCI_SLAVE_BAR_REG_ENABLES_CS_1 (1<<5)
  413. #define GT64260_PCI_SLAVE_BAR_REG_ENABLES_CS_2 (1<<6)
  414. #define GT64260_PCI_SLAVE_BAR_REG_ENABLES_CS_3 (1<<7)
  415. #define GT64260_PCI_SLAVE_BAR_REG_ENABLES_BOOT (1<<8)
  416. #define GT64260_PCI_SLAVE_BAR_REG_ENABLES_REG_MEM (1<<9)
  417. #define GT64260_PCI_SLAVE_BAR_REG_ENABLES_REG_IO (1<<10)
  418. #define GT64260_PCI_SLAVE_BAR_REG_ENABLES_P2P_MEM_0 (1<<11)
  419. #define GT64260_PCI_SLAVE_BAR_REG_ENABLES_P2P_MEM_1 (1<<12)
  420. #define GT64260_PCI_SLAVE_BAR_REG_ENABLES_P2P_IO (1<<13)
  421. #define GT64260_PCI_SLAVE_BAR_REG_ENABLES_CPU (1<<14)
  422. #define GT64260_PCI_SLAVE_BAR_REG_ENABLES_DAC_SCS_0 (1<<15)
  423. #define GT64260_PCI_SLAVE_BAR_REG_ENABLES_DAC_SCS_1 (1<<16)
  424. #define GT64260_PCI_SLAVE_BAR_REG_ENABLES_DAC_SCS_2 (1<<17)
  425. #define GT64260_PCI_SLAVE_BAR_REG_ENABLES_DAC_SCS_3 (1<<18)
  426. #define GT64260_PCI_SLAVE_BAR_REG_ENABLES_DAC_CS_0 (1<<19)
  427. #define GT64260_PCI_SLAVE_BAR_REG_ENABLES_DAC_CS_1 (1<<20)
  428. #define GT64260_PCI_SLAVE_BAR_REG_ENABLES_DAC_CS_2 (1<<21)
  429. #define GT64260_PCI_SLAVE_BAR_REG_ENABLES_DAC_CS_3 (1<<22)
  430. #define GT64260_PCI_SLAVE_BAR_REG_ENABLES_DAC_BOOT (1<<23)
  431. #define GT64260_PCI_SLAVE_BAR_REG_ENABLES_DAC_P2P_MEM_0 (1<<24)
  432. #define GT64260_PCI_SLAVE_BAR_REG_ENABLES_DAC_P2P_MEM_1 (1<<25)
  433. #define GT64260_PCI_SLAVE_BAR_REG_ENABLES_DAC_CPU (1<<26)
  434. #define GT64260_PCI_0_SLAVE_BAR_REG_ENABLES 0x0c3c
  435. #define GT64260_PCI_0_SLAVE_SCS_0_REMAP 0x0c48
  436. #define GT64260_PCI_0_SLAVE_SCS_1_REMAP 0x0d48
  437. #define GT64260_PCI_0_SLAVE_SCS_2_REMAP 0x0c4c
  438. #define GT64260_PCI_0_SLAVE_SCS_3_REMAP 0x0d4c
  439. #define GT64260_PCI_0_SLAVE_CS_0_REMAP 0x0c50
  440. #define GT64260_PCI_0_SLAVE_CS_1_REMAP 0x0d50
  441. #define GT64260_PCI_0_SLAVE_CS_2_REMAP 0x0d58
  442. #define GT64260_PCI_0_SLAVE_CS_3_REMAP 0x0c54
  443. #define GT64260_PCI_0_SLAVE_BOOT_REMAP 0x0d54
  444. #define GT64260_PCI_0_SLAVE_P2P_MEM_0_REMAP_LO 0x0d5c
  445. #define GT64260_PCI_0_SLAVE_P2P_MEM_0_REMAP_HI 0x0d60
  446. #define GT64260_PCI_0_SLAVE_P2P_MEM_1_REMAP_LO 0x0d64
  447. #define GT64260_PCI_0_SLAVE_P2P_MEM_1_REMAP_HI 0x0d68
  448. #define GT64260_PCI_0_SLAVE_P2P_IO_REMAP 0x0d6c
  449. #define GT64260_PCI_0_SLAVE_CPU_REMAP 0x0d70
  450. #define GT64260_PCI_0_SLAVE_DAC_SCS_0_REMAP 0x0f00
  451. #define GT64260_PCI_0_SLAVE_DAC_SCS_1_REMAP 0x0f04
  452. #define GT64260_PCI_0_SLAVE_DAC_SCS_2_REMAP 0x0f08
  453. #define GT64260_PCI_0_SLAVE_DAC_SCS_3_REMAP 0x0f0c
  454. #define GT64260_PCI_0_SLAVE_DAC_CS_0_REMAP 0x0f10
  455. #define GT64260_PCI_0_SLAVE_DAC_CS_1_REMAP 0x0f14
  456. #define GT64260_PCI_0_SLAVE_DAC_CS_2_REMAP 0x0f18
  457. #define GT64260_PCI_0_SLAVE_DAC_CS_3_REMAP 0x0f1c
  458. #define GT64260_PCI_0_SLAVE_DAC_BOOT_REMAP 0x0f20
  459. #define GT64260_PCI_0_SLAVE_DAC_P2P_MEM_0_REMAP_LO 0x0f24
  460. #define GT64260_PCI_0_SLAVE_DAC_P2P_MEM_0_REMAP_HI 0x0f28
  461. #define GT64260_PCI_0_SLAVE_DAC_P2P_MEM_1_REMAP_LO 0x0f2c
  462. #define GT64260_PCI_0_SLAVE_DAC_P2P_MEM_1_REMAP_HI 0x0f30
  463. #define GT64260_PCI_0_SLAVE_DAC_CPU_REMAP 0x0f34
  464. #define GT64260_PCI_0_SLAVE_EXP_ROM_REMAP 0x0f38
  465. #define GT64260_PCI_0_SLAVE_PCI_DECODE_CNTL 0x0d3c
  466. #define GT64260_PCI_1_SLAVE_SCS_0_SIZE 0x0c88
  467. #define GT64260_PCI_1_SLAVE_SCS_1_SIZE 0x0d88
  468. #define GT64260_PCI_1_SLAVE_SCS_2_SIZE 0x0c8c
  469. #define GT64260_PCI_1_SLAVE_SCS_3_SIZE 0x0d8c
  470. #define GT64260_PCI_1_SLAVE_CS_0_SIZE 0x0c90
  471. #define GT64260_PCI_1_SLAVE_CS_1_SIZE 0x0d90
  472. #define GT64260_PCI_1_SLAVE_CS_2_SIZE 0x0d98
  473. #define GT64260_PCI_1_SLAVE_CS_3_SIZE 0x0c94
  474. #define GT64260_PCI_1_SLAVE_BOOT_SIZE 0x0d94
  475. #define GT64260_PCI_1_SLAVE_P2P_MEM_0_SIZE 0x0d9c
  476. #define GT64260_PCI_1_SLAVE_P2P_MEM_1_SIZE 0x0da0
  477. #define GT64260_PCI_1_SLAVE_P2P_IO_SIZE 0x0da4
  478. #define GT64260_PCI_1_SLAVE_CPU_SIZE 0x0da8
  479. #define GT64260_PCI_1_SLAVE_DAC_SCS_0_SIZE 0x0e80
  480. #define GT64260_PCI_1_SLAVE_DAC_SCS_1_SIZE 0x0e84
  481. #define GT64260_PCI_1_SLAVE_DAC_SCS_2_SIZE 0x0e88
  482. #define GT64260_PCI_1_SLAVE_DAC_SCS_3_SIZE 0x0e8c
  483. #define GT64260_PCI_1_SLAVE_DAC_CS_0_SIZE 0x0e90
  484. #define GT64260_PCI_1_SLAVE_DAC_CS_1_SIZE 0x0e94
  485. #define GT64260_PCI_1_SLAVE_DAC_CS_2_SIZE 0x0e98
  486. #define GT64260_PCI_1_SLAVE_DAC_CS_3_SIZE 0x0e9c
  487. #define GT64260_PCI_1_SLAVE_DAC_BOOT_SIZE 0x0ea0
  488. #define GT64260_PCI_1_SLAVE_DAC_P2P_MEM_0_SIZE 0x0ea4
  489. #define GT64260_PCI_1_SLAVE_DAC_P2P_MEM_1_SIZE 0x0ea8
  490. #define GT64260_PCI_1_SLAVE_DAC_CPU_SIZE 0x0eac
  491. #define GT64260_PCI_1_SLAVE_EXP_ROM_SIZE 0x0dac
  492. #define GT64260_PCI_1_SLAVE_BAR_REG_ENABLES 0x0cbc
  493. #define GT64260_PCI_1_SLAVE_SCS_0_REMAP 0x0cc8
  494. #define GT64260_PCI_1_SLAVE_SCS_1_REMAP 0x0dc8
  495. #define GT64260_PCI_1_SLAVE_SCS_2_REMAP 0x0ccc
  496. #define GT64260_PCI_1_SLAVE_SCS_3_REMAP 0x0dcc
  497. #define GT64260_PCI_1_SLAVE_CS_0_REMAP 0x0cd0
  498. #define GT64260_PCI_1_SLAVE_CS_1_REMAP 0x0dd0
  499. #define GT64260_PCI_1_SLAVE_CS_2_REMAP 0x0dd8
  500. #define GT64260_PCI_1_SLAVE_CS_3_REMAP 0x0cd4
  501. #define GT64260_PCI_1_SLAVE_BOOT_REMAP 0x0dd4
  502. #define GT64260_PCI_1_SLAVE_P2P_MEM_0_REMAP_LO 0x0ddc
  503. #define GT64260_PCI_1_SLAVE_P2P_MEM_0_REMAP_HI 0x0de0
  504. #define GT64260_PCI_1_SLAVE_P2P_MEM_1_REMAP_LO 0x0de4
  505. #define GT64260_PCI_1_SLAVE_P2P_MEM_1_REMAP_HI 0x0de8
  506. #define GT64260_PCI_1_SLAVE_P2P_IO_REMAP 0x0dec
  507. #define GT64260_PCI_1_SLAVE_CPU_REMAP 0x0df0
  508. #define GT64260_PCI_1_SLAVE_DAC_SCS_0_REMAP 0x0f80
  509. #define GT64260_PCI_1_SLAVE_DAC_SCS_1_REMAP 0x0f84
  510. #define GT64260_PCI_1_SLAVE_DAC_SCS_2_REMAP 0x0f88
  511. #define GT64260_PCI_1_SLAVE_DAC_SCS_3_REMAP 0x0f8c
  512. #define GT64260_PCI_1_SLAVE_DAC_CS_0_REMAP 0x0f90
  513. #define GT64260_PCI_1_SLAVE_DAC_CS_1_REMAP 0x0f94
  514. #define GT64260_PCI_1_SLAVE_DAC_CS_2_REMAP 0x0f98
  515. #define GT64260_PCI_1_SLAVE_DAC_CS_3_REMAP 0x0f9c
  516. #define GT64260_PCI_1_SLAVE_DAC_BOOT_REMAP 0x0fa0
  517. #define GT64260_PCI_1_SLAVE_DAC_P2P_MEM_0_REMAP_LO 0x0fa4
  518. #define GT64260_PCI_1_SLAVE_DAC_P2P_MEM_0_REMAP_HI 0x0fa8
  519. #define GT64260_PCI_1_SLAVE_DAC_P2P_MEM_1_REMAP_LO 0x0fac
  520. #define GT64260_PCI_1_SLAVE_DAC_P2P_MEM_1_REMAP_HI 0x0fb0
  521. #define GT64260_PCI_1_SLAVE_DAC_CPU_REMAP 0x0fb4
  522. #define GT64260_PCI_1_SLAVE_EXP_ROM_REMAP 0x0fb8
  523. #define GT64260_PCI_1_SLAVE_PCI_DECODE_CNTL 0x0dbc
  524. /*
  525. *****************************************************************************
  526. *
  527. * I2O Controller Interface Registers
  528. *
  529. *****************************************************************************
  530. */
  531. /* FIXME: fill in */
  532. /*
  533. *****************************************************************************
  534. *
  535. * DMA Controller Interface Registers
  536. *
  537. *****************************************************************************
  538. */
  539. /* FIXME: fill in */
  540. /*
  541. *****************************************************************************
  542. *
  543. * Timer/Counter Interface Registers
  544. *
  545. *****************************************************************************
  546. */
  547. /* FIXME: fill in */
  548. /*
  549. *****************************************************************************
  550. *
  551. * Communications Controller (Enet, Serial, etc.) Interface Registers
  552. *
  553. *****************************************************************************
  554. */
  555. #define GT64260_ENET_0_CNTL_LO 0xf200
  556. #define GT64260_ENET_0_CNTL_HI 0xf204
  557. #define GT64260_ENET_0_RX_BUF_PCI_ADDR_HI 0xf208
  558. #define GT64260_ENET_0_TX_BUF_PCI_ADDR_HI 0xf20c
  559. #define GT64260_ENET_0_RX_DESC_ADDR_HI 0xf210
  560. #define GT64260_ENET_0_TX_DESC_ADDR_HI 0xf214
  561. #define GT64260_ENET_0_HASH_TAB_PCI_ADDR_HI 0xf218
  562. #define GT64260_ENET_1_CNTL_LO 0xf220
  563. #define GT64260_ENET_1_CNTL_HI 0xf224
  564. #define GT64260_ENET_1_RX_BUF_PCI_ADDR_HI 0xf228
  565. #define GT64260_ENET_1_TX_BUF_PCI_ADDR_HI 0xf22c
  566. #define GT64260_ENET_1_RX_DESC_ADDR_HI 0xf230
  567. #define GT64260_ENET_1_TX_DESC_ADDR_HI 0xf234
  568. #define GT64260_ENET_1_HASH_TAB_PCI_ADDR_HI 0xf238
  569. #define GT64260_ENET_2_CNTL_LO 0xf240
  570. #define GT64260_ENET_2_CNTL_HI 0xf244
  571. #define GT64260_ENET_2_RX_BUF_PCI_ADDR_HI 0xf248
  572. #define GT64260_ENET_2_TX_BUF_PCI_ADDR_HI 0xf24c
  573. #define GT64260_ENET_2_RX_DESC_ADDR_HI 0xf250
  574. #define GT64260_ENET_2_TX_DESC_ADDR_HI 0xf254
  575. #define GT64260_ENET_2_HASH_TAB_PCI_ADDR_HI 0xf258
  576. #define GT64260_MPSC_0_CNTL_LO 0xf280
  577. #define GT64260_MPSC_0_CNTL_HI 0xf284
  578. #define GT64260_MPSC_0_RX_BUF_PCI_ADDR_HI 0xf288
  579. #define GT64260_MPSC_0_TX_BUF_PCI_ADDR_HI 0xf28c
  580. #define GT64260_MPSC_0_RX_DESC_ADDR_HI 0xf290
  581. #define GT64260_MPSC_0_TX_DESC_ADDR_HI 0xf294
  582. #define GT64260_MPSC_1_CNTL_LO 0xf2c0
  583. #define GT64260_MPSC_1_CNTL_HI 0xf2c4
  584. #define GT64260_MPSC_1_RX_BUF_PCI_ADDR_HI 0xf2c8
  585. #define GT64260_MPSC_1_TX_BUF_PCI_ADDR_HI 0xf2cc
  586. #define GT64260_MPSC_1_RX_DESC_ADDR_HI 0xf2d0
  587. #define GT64260_MPSC_1_TX_DESC_ADDR_HI 0xf2d4
  588. #define GT64260_SER_INIT_PCI_ADDR_HI 0xf320
  589. #define GT64260_SER_INIT_LAST_DATA 0xf324
  590. #define GT64260_SER_INIT_CONTROL 0xf328
  591. #define GT64260_SER_INIT_STATUS 0xf32c
  592. #define GT64260_COMM_ARBITER_CNTL 0xf300
  593. #define GT64260_COMM_CONFIG 0xb40c
  594. #define GT64260_COMM_XBAR_TO 0xf304
  595. #define GT64260_COMM_INTR_CAUSE 0xf310
  596. #define GT64260_COMM_INTR_MASK 0xf314
  597. #define GT64260_COMM_ERR_ADDR 0xf318
  598. /*
  599. *****************************************************************************
  600. *
  601. * Fast Ethernet Controller Interface Registers
  602. *
  603. *****************************************************************************
  604. */
  605. #define GT64260_ENET_PHY_ADDR 0x2000
  606. #define GT64260_ENET_ESMIR 0x2010
  607. #define GT64260_ENET_E0PCR 0x2400
  608. #define GT64260_ENET_E0PCXR 0x2408
  609. #define GT64260_ENET_E0PCMR 0x2410
  610. #define GT64260_ENET_E0PSR 0x2418
  611. #define GT64260_ENET_E0SPR 0x2420
  612. #define GT64260_ENET_E0HTPR 0x2428
  613. #define GT64260_ENET_E0FCSAL 0x2430
  614. #define GT64260_ENET_E0FCSAH 0x2438
  615. #define GT64260_ENET_E0SDCR 0x2440
  616. #define GT64260_ENET_E0SDCMR 0x2448
  617. #define GT64260_ENET_E0ICR 0x2450
  618. #define GT64260_ENET_E0IMR 0x2458
  619. #define GT64260_ENET_E0FRDP0 0x2480
  620. #define GT64260_ENET_E0FRDP1 0x2484
  621. #define GT64260_ENET_E0FRDP2 0x2488
  622. #define GT64260_ENET_E0FRDP3 0x248c
  623. #define GT64260_ENET_E0CRDP0 0x24a0
  624. #define GT64260_ENET_E0CRDP1 0x24a4
  625. #define GT64260_ENET_E0CRDP2 0x24a8
  626. #define GT64260_ENET_E0CRDP3 0x24ac
  627. #define GT64260_ENET_E0CTDP0 0x24e0
  628. #define GT64260_ENET_E0CTDP1 0x24e4
  629. #define GT64260_ENET_0_DSCP2P0L 0x2460
  630. #define GT64260_ENET_0_DSCP2P0H 0x2464
  631. #define GT64260_ENET_0_DSCP2P1L 0x2468
  632. #define GT64260_ENET_0_DSCP2P1H 0x246c
  633. #define GT64260_ENET_0_VPT2P 0x2470
  634. #define GT64260_ENET_0_MIB_CTRS 0x2500
  635. #define GT64260_ENET_E1PCR 0x2800
  636. #define GT64260_ENET_E1PCXR 0x2808
  637. #define GT64260_ENET_E1PCMR 0x2810
  638. #define GT64260_ENET_E1PSR 0x2818
  639. #define GT64260_ENET_E1SPR 0x2820
  640. #define GT64260_ENET_E1HTPR 0x2828
  641. #define GT64260_ENET_E1FCSAL 0x2830
  642. #define GT64260_ENET_E1FCSAH 0x2838
  643. #define GT64260_ENET_E1SDCR 0x2840
  644. #define GT64260_ENET_E1SDCMR 0x2848
  645. #define GT64260_ENET_E1ICR 0x2850
  646. #define GT64260_ENET_E1IMR 0x2858
  647. #define GT64260_ENET_E1FRDP0 0x2880
  648. #define GT64260_ENET_E1FRDP1 0x2884
  649. #define GT64260_ENET_E1FRDP2 0x2888
  650. #define GT64260_ENET_E1FRDP3 0x288c
  651. #define GT64260_ENET_E1CRDP0 0x28a0
  652. #define GT64260_ENET_E1CRDP1 0x28a4
  653. #define GT64260_ENET_E1CRDP2 0x28a8
  654. #define GT64260_ENET_E1CRDP3 0x28ac
  655. #define GT64260_ENET_E1CTDP0 0x28e0
  656. #define GT64260_ENET_E1CTDP1 0x28e4
  657. #define GT64260_ENET_1_DSCP2P0L 0x2860
  658. #define GT64260_ENET_1_DSCP2P0H 0x2864
  659. #define GT64260_ENET_1_DSCP2P1L 0x2868
  660. #define GT64260_ENET_1_DSCP2P1H 0x286c
  661. #define GT64260_ENET_1_VPT2P 0x2870
  662. #define GT64260_ENET_1_MIB_CTRS 0x2900
  663. #define GT64260_ENET_E2PCR 0x2c00
  664. #define GT64260_ENET_E2PCXR 0x2c08
  665. #define GT64260_ENET_E2PCMR 0x2c10
  666. #define GT64260_ENET_E2PSR 0x2c18
  667. #define GT64260_ENET_E2SPR 0x2c20
  668. #define GT64260_ENET_E2HTPR 0x2c28
  669. #define GT64260_ENET_E2FCSAL 0x2c30
  670. #define GT64260_ENET_E2FCSAH 0x2c38
  671. #define GT64260_ENET_E2SDCR 0x2c40
  672. #define GT64260_ENET_E2SDCMR 0x2c48
  673. #define GT64260_ENET_E2ICR 0x2c50
  674. #define GT64260_ENET_E2IMR 0x2c58
  675. #define GT64260_ENET_E2FRDP0 0x2c80
  676. #define GT64260_ENET_E2FRDP1 0x2c84
  677. #define GT64260_ENET_E2FRDP2 0x2c88
  678. #define GT64260_ENET_E2FRDP3 0x2c8c
  679. #define GT64260_ENET_E2CRDP0 0x2ca0
  680. #define GT64260_ENET_E2CRDP1 0x2ca4
  681. #define GT64260_ENET_E2CRDP2 0x2ca8
  682. #define GT64260_ENET_E2CRDP3 0x2cac
  683. #define GT64260_ENET_E2CTDP0 0x2ce0
  684. #define GT64260_ENET_E2CTDP1 0x2ce4
  685. #define GT64260_ENET_2_DSCP2P0L 0x2c60
  686. #define GT64260_ENET_2_DSCP2P0H 0x2c64
  687. #define GT64260_ENET_2_DSCP2P1L 0x2c68
  688. #define GT64260_ENET_2_DSCP2P1H 0x2c6c
  689. #define GT64260_ENET_2_VPT2P 0x2c70
  690. #define GT64260_ENET_2_MIB_CTRS 0x2d00
  691. /*
  692. *****************************************************************************
  693. *
  694. * Multi-Protocol Serial Controller Interface Registers
  695. *
  696. *****************************************************************************
  697. */
  698. /* Signal Routing */
  699. #define GT64260_MPSC_MRR 0xb400
  700. #define GT64260_MPSC_RCRR 0xb404
  701. #define GT64260_MPSC_TCRR 0xb408
  702. /* Main Configuratino Registers */
  703. #define GT64260_MPSC_0_MMCRL 0x8000
  704. #define GT64260_MPSC_0_MMCRH 0x8004
  705. #define GT64260_MPSC_0_MPCR 0x8008
  706. #define GT64260_MPSC_0_CHR_1 0x800c
  707. #define GT64260_MPSC_0_CHR_2 0x8010
  708. #define GT64260_MPSC_0_CHR_3 0x8014
  709. #define GT64260_MPSC_0_CHR_4 0x8018
  710. #define GT64260_MPSC_0_CHR_5 0x801c
  711. #define GT64260_MPSC_0_CHR_6 0x8020
  712. #define GT64260_MPSC_0_CHR_7 0x8024
  713. #define GT64260_MPSC_0_CHR_8 0x8028
  714. #define GT64260_MPSC_0_CHR_9 0x802c
  715. #define GT64260_MPSC_0_CHR_10 0x8030
  716. #define GT64260_MPSC_0_CHR_11 0x8034
  717. #define GT64260_MPSC_1_MMCRL 0x9000
  718. #define GT64260_MPSC_1_MMCRH 0x9004
  719. #define GT64260_MPSC_1_MPCR 0x9008
  720. #define GT64260_MPSC_1_CHR_1 0x900c
  721. #define GT64260_MPSC_1_CHR_2 0x9010
  722. #define GT64260_MPSC_1_CHR_3 0x9014
  723. #define GT64260_MPSC_1_CHR_4 0x9018
  724. #define GT64260_MPSC_1_CHR_5 0x901c
  725. #define GT64260_MPSC_1_CHR_6 0x9020
  726. #define GT64260_MPSC_1_CHR_7 0x9024
  727. #define GT64260_MPSC_1_CHR_8 0x9028
  728. #define GT64260_MPSC_1_CHR_9 0x902c
  729. #define GT64260_MPSC_1_CHR_10 0x9030
  730. #define GT64260_MPSC_1_CHR_11 0x9034
  731. #define GT64260_MPSC_0_INTR_CAUSE 0xb804
  732. #define GT64260_MPSC_0_INTR_MASK 0xb884
  733. #define GT64260_MPSC_1_INTR_CAUSE 0xb80c
  734. #define GT64260_MPSC_1_INTR_MASK 0xb88c
  735. #define GT64260_MPSC_UART_CR_TEV (1<<1)
  736. #define GT64260_MPSC_UART_CR_TA (1<<7)
  737. #define GT64260_MPSC_UART_CR_TTCS (1<<9)
  738. #define GT64260_MPSC_UART_CR_REV (1<<17)
  739. #define GT64260_MPSC_UART_CR_RA (1<<23)
  740. #define GT64260_MPSC_UART_CR_CRD (1<<25)
  741. #define GT64260_MPSC_UART_CR_EH (1<<31)
  742. #define GT64260_MPSC_UART_ESR_CTS (1<<0)
  743. #define GT64260_MPSC_UART_ESR_CD (1<<1)
  744. #define GT64260_MPSC_UART_ESR_TIDLE (1<<3)
  745. #define GT64260_MPSC_UART_ESR_RHS (1<<5)
  746. #define GT64260_MPSC_UART_ESR_RLS (1<<7)
  747. #define GT64260_MPSC_UART_ESR_RLIDL (1<<11)
  748. /*
  749. *****************************************************************************
  750. *
  751. * Serial DMA Controller Interface Registers
  752. *
  753. *****************************************************************************
  754. */
  755. #define GT64260_SDMA_0_SDC 0x4000
  756. #define GT64260_SDMA_0_SDCM 0x4008
  757. #define GT64260_SDMA_0_RX_DESC 0x4800
  758. #define GT64260_SDMA_0_RX_BUF_PTR 0x4808
  759. #define GT64260_SDMA_0_SCRDP 0x4810
  760. #define GT64260_SDMA_0_TX_DESC 0x4c00
  761. #define GT64260_SDMA_0_SCTDP 0x4c10
  762. #define GT64260_SDMA_0_SFTDP 0x4c14
  763. #define GT64260_SDMA_1_SDC 0x6000
  764. #define GT64260_SDMA_1_SDCM 0x6008
  765. #define GT64260_SDMA_1_RX_DESC 0x6800
  766. #define GT64260_SDMA_1_RX_BUF_PTR 0x6808
  767. #define GT64260_SDMA_1_SCRDP 0x6810
  768. #define GT64260_SDMA_1_TX_DESC 0x6c00
  769. #define GT64260_SDMA_1_SCTDP 0x6c10
  770. #define GT64260_SDMA_1_SFTDP 0x6c14
  771. #define GT64260_SDMA_INTR_CAUSE 0xb800
  772. #define GT64260_SDMA_INTR_MASK 0xb880
  773. #define GT64260_SDMA_DESC_CMDSTAT_PE (1<<0)
  774. #define GT64260_SDMA_DESC_CMDSTAT_CDL (1<<1)
  775. #define GT64260_SDMA_DESC_CMDSTAT_FR (1<<3)
  776. #define GT64260_SDMA_DESC_CMDSTAT_OR (1<<6)
  777. #define GT64260_SDMA_DESC_CMDSTAT_BR (1<<9)
  778. #define GT64260_SDMA_DESC_CMDSTAT_MI (1<<10)
  779. #define GT64260_SDMA_DESC_CMDSTAT_A (1<<11)
  780. #define GT64260_SDMA_DESC_CMDSTAT_AM (1<<12)
  781. #define GT64260_SDMA_DESC_CMDSTAT_CT (1<<13)
  782. #define GT64260_SDMA_DESC_CMDSTAT_C (1<<14)
  783. #define GT64260_SDMA_DESC_CMDSTAT_ES (1<<15)
  784. #define GT64260_SDMA_DESC_CMDSTAT_L (1<<16)
  785. #define GT64260_SDMA_DESC_CMDSTAT_F (1<<17)
  786. #define GT64260_SDMA_DESC_CMDSTAT_P (1<<18)
  787. #define GT64260_SDMA_DESC_CMDSTAT_EI (1<<23)
  788. #define GT64260_SDMA_DESC_CMDSTAT_O (1<<31)
  789. #define GT64260_SDMA_SDC_RFT (1<<0)
  790. #define GT64260_SDMA_SDC_SFM (1<<1)
  791. #define GT64260_SDMA_SDC_BLMR (1<<6)
  792. #define GT64260_SDMA_SDC_BLMT (1<<7)
  793. #define GT64260_SDMA_SDC_POVR (1<<8)
  794. #define GT64260_SDMA_SDC_RIFB (1<<9)
  795. #define GT64260_SDMA_SDCM_ERD (1<<7)
  796. #define GT64260_SDMA_SDCM_AR (1<<15)
  797. #define GT64260_SDMA_SDCM_STD (1<<16)
  798. #define GT64260_SDMA_SDCM_TXD (1<<23)
  799. #define GT64260_SDMA_SDCM_AT (1<<31)
  800. #define GT64260_SDMA_0_CAUSE_RXBUF (1<<0)
  801. #define GT64260_SDMA_0_CAUSE_RXERR (1<<1)
  802. #define GT64260_SDMA_0_CAUSE_TXBUF (1<<2)
  803. #define GT64260_SDMA_0_CAUSE_TXEND (1<<3)
  804. #define GT64260_SDMA_1_CAUSE_RXBUF (1<<8)
  805. #define GT64260_SDMA_1_CAUSE_RXERR (1<<9)
  806. #define GT64260_SDMA_1_CAUSE_TXBUF (1<<10)
  807. #define GT64260_SDMA_1_CAUSE_TXEND (1<<11)
  808. /*
  809. *****************************************************************************
  810. *
  811. * Baud Rate Generator Interface Registers
  812. *
  813. *****************************************************************************
  814. */
  815. #define GT64260_BRG_0_BCR 0xb200
  816. #define GT64260_BRG_0_BTR 0xb204
  817. #define GT64260_BRG_1_BCR 0xb208
  818. #define GT64260_BRG_1_BTR 0xb20c
  819. #define GT64260_BRG_2_BCR 0xb210
  820. #define GT64260_BRG_2_BTR 0xb214
  821. #define GT64260_BRG_INTR_CAUSE 0xb834
  822. #define GT64260_BRG_INTR_MASK 0xb8b4
  823. /*
  824. *****************************************************************************
  825. *
  826. * Watchdog Timer Interface Registers
  827. *
  828. *****************************************************************************
  829. */
  830. #define GT64260_WDT_WDC 0xb410
  831. #define GT64260_WDT_WDV 0xb414
  832. /*
  833. *****************************************************************************
  834. *
  835. * General Purpose Pins Controller Interface Registers
  836. *
  837. *****************************************************************************
  838. */
  839. #define GT64260_GPP_IO_CNTL 0xf100
  840. #define GT64260_GPP_LEVEL_CNTL 0xf110
  841. #define GT64260_GPP_VALUE 0xf104
  842. #define GT64260_GPP_INTR_CAUSE 0xf108
  843. #define GT64260_GPP_INTR_MASK 0xf10c
  844. /*
  845. *****************************************************************************
  846. *
  847. * Multi-Purpose Pins Controller Interface Registers
  848. *
  849. *****************************************************************************
  850. */
  851. #define GT64260_MPP_CNTL_0 0xf000
  852. #define GT64260_MPP_CNTL_1 0xf004
  853. #define GT64260_MPP_CNTL_2 0xf008
  854. #define GT64260_MPP_CNTL_3 0xf00c
  855. #define GT64260_MPP_SERIAL_PORTS_MULTIPLEX 0xf010
  856. /*
  857. *****************************************************************************
  858. *
  859. * I2C Controller Interface Registers
  860. *
  861. *****************************************************************************
  862. */
  863. /* FIXME: fill in */
  864. /*
  865. *****************************************************************************
  866. *
  867. * Interrupt Controller Interface Registers
  868. *
  869. *****************************************************************************
  870. */
  871. #define GT64260_IC_MAIN_CAUSE_LO 0x0c18
  872. #define GT64260_IC_MAIN_CAUSE_HI 0x0c68
  873. #define GT64260_IC_CPU_INTR_MASK_LO 0x0c1c
  874. #define GT64260_IC_CPU_INTR_MASK_HI 0x0c6c
  875. #define GT64260_IC_CPU_SELECT_CAUSE 0x0c70
  876. #define GT64260_IC_PCI_0_INTR_MASK_LO 0x0c24
  877. #define GT64260_IC_PCI_0_INTR_MASK_HI 0x0c64
  878. #define GT64260_IC_PCI_0_SELECT_CAUSE 0x0c74
  879. #define GT64260_IC_PCI_1_INTR_MASK_LO 0x0ca4
  880. #define GT64260_IC_PCI_1_INTR_MASK_HI 0x0ce4
  881. #define GT64260_IC_PCI_1_SELECT_CAUSE 0x0cf4
  882. #define GT64260_IC_CPU_INT_0_MASK 0x0e60
  883. #define GT64260_IC_CPU_INT_1_MASK 0x0e64
  884. #define GT64260_IC_CPU_INT_2_MASK 0x0e68
  885. #define GT64260_IC_CPU_INT_3_MASK 0x0e6c
  886. #endif /* __ASMPPC_GT64260_DEFS_H */