cx25821-reg.h 75 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589
  1. /*
  2. * Driver for the Conexant CX25821 PCIe bridge
  3. *
  4. * Copyright (C) 2009 Conexant Systems Inc.
  5. * Authors <shu.lin@conexant.com>, <hiep.huynh@conexant.com>
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. *
  16. * GNU General Public License for more details.
  17. */
  18. #ifndef __CX25821_REGISTERS__
  19. #define __CX25821_REGISTERS__
  20. /* Risc Instructions */
  21. #define RISC_CNT_INC 0x00010000
  22. #define RISC_CNT_RESET 0x00030000
  23. #define RISC_IRQ1 0x01000000
  24. #define RISC_IRQ2 0x02000000
  25. #define RISC_EOL 0x04000000
  26. #define RISC_SOL 0x08000000
  27. #define RISC_WRITE 0x10000000
  28. #define RISC_SKIP 0x20000000
  29. #define RISC_JUMP 0x70000000
  30. #define RISC_SYNC 0x80000000
  31. #define RISC_RESYNC 0x80008000
  32. #define RISC_READ 0x90000000
  33. #define RISC_WRITERM 0xB0000000
  34. #define RISC_WRITECM 0xC0000000
  35. #define RISC_WRITECR 0xD0000000
  36. #define RISC_WRITEC 0x50000000
  37. #define RISC_READC 0xA0000000
  38. #define RISC_SYNC_ODD 0x00000000
  39. #define RISC_SYNC_EVEN 0x00000200
  40. #define RISC_SYNC_ODD_VBI 0x00000006
  41. #define RISC_SYNC_EVEN_VBI 0x00000207
  42. #define RISC_NOOP 0xF0000000
  43. /*****************************************************************************
  44. * ASB SRAM
  45. *****************************************************************************/
  46. #define TX_SRAM 0x000000 /* Transmit SRAM */
  47. /*****************************************************************************/
  48. #define RX_RAM 0x010000 /* Receive SRAM */
  49. /*****************************************************************************
  50. * Application Layer (AL)
  51. *****************************************************************************/
  52. #define DEV_CNTRL2 0x040000 /* Device control */
  53. #define FLD_RUN_RISC 0x00000020
  54. /* ***************************************************************************** */
  55. #define PCI_INT_MSK 0x040010 /* PCI interrupt mask */
  56. #define PCI_INT_STAT 0x040014 /* PCI interrupt status */
  57. #define PCI_INT_MSTAT 0x040018 /* PCI interrupt masked status */
  58. #define FLD_HAMMERHEAD_INT (1 << 27)
  59. #define FLD_UART_INT (1 << 26)
  60. #define FLD_IRQN_INT (1 << 25)
  61. #define FLD_TM_INT (1 << 28)
  62. #define FLD_I2C_3_RACK (1 << 27)
  63. #define FLD_I2C_3_INT (1 << 26)
  64. #define FLD_I2C_2_RACK (1 << 25)
  65. #define FLD_I2C_2_INT (1 << 24)
  66. #define FLD_I2C_1_RACK (1 << 23)
  67. #define FLD_I2C_1_INT (1 << 22)
  68. #define FLD_APB_DMA_BERR_INT (1 << 21)
  69. #define FLD_AL_WR_BERR_INT (1 << 20)
  70. #define FLD_AL_RD_BERR_INT (1 << 19)
  71. #define FLD_RISC_WR_BERR_INT (1 << 18)
  72. #define FLD_RISC_RD_BERR_INT (1 << 17)
  73. #define FLD_VID_I_INT (1 << 8)
  74. #define FLD_VID_H_INT (1 << 7)
  75. #define FLD_VID_G_INT (1 << 6)
  76. #define FLD_VID_F_INT (1 << 5)
  77. #define FLD_VID_E_INT (1 << 4)
  78. #define FLD_VID_D_INT (1 << 3)
  79. #define FLD_VID_C_INT (1 << 2)
  80. #define FLD_VID_B_INT (1 << 1)
  81. #define FLD_VID_A_INT (1 << 0)
  82. /* ***************************************************************************** */
  83. #define VID_A_INT_MSK 0x040020 /* Video A interrupt mask */
  84. #define VID_A_INT_STAT 0x040024 /* Video A interrupt status */
  85. #define VID_A_INT_MSTAT 0x040028 /* Video A interrupt masked status */
  86. #define VID_A_INT_SSTAT 0x04002C /* Video A interrupt set status */
  87. /* ***************************************************************************** */
  88. #define VID_B_INT_MSK 0x040030 /* Video B interrupt mask */
  89. #define VID_B_INT_STAT 0x040034 /* Video B interrupt status */
  90. #define VID_B_INT_MSTAT 0x040038 /* Video B interrupt masked status */
  91. #define VID_B_INT_SSTAT 0x04003C /* Video B interrupt set status */
  92. /* ***************************************************************************** */
  93. #define VID_C_INT_MSK 0x040040 /* Video C interrupt mask */
  94. #define VID_C_INT_STAT 0x040044 /* Video C interrupt status */
  95. #define VID_C_INT_MSTAT 0x040048 /* Video C interrupt masked status */
  96. #define VID_C_INT_SSTAT 0x04004C /* Video C interrupt set status */
  97. /* ***************************************************************************** */
  98. #define VID_D_INT_MSK 0x040050 /* Video D interrupt mask */
  99. #define VID_D_INT_STAT 0x040054 /* Video D interrupt status */
  100. #define VID_D_INT_MSTAT 0x040058 /* Video D interrupt masked status */
  101. #define VID_D_INT_SSTAT 0x04005C /* Video D interrupt set status */
  102. /* ***************************************************************************** */
  103. #define VID_E_INT_MSK 0x040060 /* Video E interrupt mask */
  104. #define VID_E_INT_STAT 0x040064 /* Video E interrupt status */
  105. #define VID_E_INT_MSTAT 0x040068 /* Video E interrupt masked status */
  106. #define VID_E_INT_SSTAT 0x04006C /* Video E interrupt set status */
  107. /* ***************************************************************************** */
  108. #define VID_F_INT_MSK 0x040070 /* Video F interrupt mask */
  109. #define VID_F_INT_STAT 0x040074 /* Video F interrupt status */
  110. #define VID_F_INT_MSTAT 0x040078 /* Video F interrupt masked status */
  111. #define VID_F_INT_SSTAT 0x04007C /* Video F interrupt set status */
  112. /* ***************************************************************************** */
  113. #define VID_G_INT_MSK 0x040080 /* Video G interrupt mask */
  114. #define VID_G_INT_STAT 0x040084 /* Video G interrupt status */
  115. #define VID_G_INT_MSTAT 0x040088 /* Video G interrupt masked status */
  116. #define VID_G_INT_SSTAT 0x04008C /* Video G interrupt set status */
  117. /* ***************************************************************************** */
  118. #define VID_H_INT_MSK 0x040090 /* Video H interrupt mask */
  119. #define VID_H_INT_STAT 0x040094 /* Video H interrupt status */
  120. #define VID_H_INT_MSTAT 0x040098 /* Video H interrupt masked status */
  121. #define VID_H_INT_SSTAT 0x04009C /* Video H interrupt set status */
  122. /* ***************************************************************************** */
  123. #define VID_I_INT_MSK 0x0400A0 /* Video I interrupt mask */
  124. #define VID_I_INT_STAT 0x0400A4 /* Video I interrupt status */
  125. #define VID_I_INT_MSTAT 0x0400A8 /* Video I interrupt masked status */
  126. #define VID_I_INT_SSTAT 0x0400AC /* Video I interrupt set status */
  127. /* ***************************************************************************** */
  128. #define VID_J_INT_MSK 0x0400B0 /* Video J interrupt mask */
  129. #define VID_J_INT_STAT 0x0400B4 /* Video J interrupt status */
  130. #define VID_J_INT_MSTAT 0x0400B8 /* Video J interrupt masked status */
  131. #define VID_J_INT_SSTAT 0x0400BC /* Video J interrupt set status */
  132. #define FLD_VID_SRC_OPC_ERR 0x00020000
  133. #define FLD_VID_DST_OPC_ERR 0x00010000
  134. #define FLD_VID_SRC_SYNC 0x00002000
  135. #define FLD_VID_DST_SYNC 0x00001000
  136. #define FLD_VID_SRC_UF 0x00000200
  137. #define FLD_VID_DST_OF 0x00000100
  138. #define FLD_VID_SRC_RISC2 0x00000020
  139. #define FLD_VID_DST_RISC2 0x00000010
  140. #define FLD_VID_SRC_RISC1 0x00000002
  141. #define FLD_VID_DST_RISC1 0x00000001
  142. #define FLD_VID_SRC_ERRORS (FLD_VID_SRC_OPC_ERR | FLD_VID_SRC_SYNC | FLD_VID_SRC_UF)
  143. #define FLD_VID_DST_ERRORS (FLD_VID_DST_OPC_ERR | FLD_VID_DST_SYNC | FLD_VID_DST_OF)
  144. /* ***************************************************************************** */
  145. #define AUD_A_INT_MSK 0x0400C0 /* Audio Int interrupt mask */
  146. #define AUD_A_INT_STAT 0x0400C4 /* Audio Int interrupt status */
  147. #define AUD_A_INT_MSTAT 0x0400C8 /* Audio Int interrupt masked status */
  148. #define AUD_A_INT_SSTAT 0x0400CC /* Audio Int interrupt set status */
  149. /* ***************************************************************************** */
  150. #define AUD_B_INT_MSK 0x0400D0 /* Audio Int interrupt mask */
  151. #define AUD_B_INT_STAT 0x0400D4 /* Audio Int interrupt status */
  152. #define AUD_B_INT_MSTAT 0x0400D8 /* Audio Int interrupt masked status */
  153. #define AUD_B_INT_SSTAT 0x0400DC /* Audio Int interrupt set status */
  154. /* ***************************************************************************** */
  155. #define AUD_C_INT_MSK 0x0400E0 /* Audio Int interrupt mask */
  156. #define AUD_C_INT_STAT 0x0400E4 /* Audio Int interrupt status */
  157. #define AUD_C_INT_MSTAT 0x0400E8 /* Audio Int interrupt masked status */
  158. #define AUD_C_INT_SSTAT 0x0400EC /* Audio Int interrupt set status */
  159. /* ***************************************************************************** */
  160. #define AUD_D_INT_MSK 0x0400F0 /* Audio Int interrupt mask */
  161. #define AUD_D_INT_STAT 0x0400F4 /* Audio Int interrupt status */
  162. #define AUD_D_INT_MSTAT 0x0400F8 /* Audio Int interrupt masked status */
  163. #define AUD_D_INT_SSTAT 0x0400FC /* Audio Int interrupt set status */
  164. /* ***************************************************************************** */
  165. #define AUD_E_INT_MSK 0x040100 /* Audio Int interrupt mask */
  166. #define AUD_E_INT_STAT 0x040104 /* Audio Int interrupt status */
  167. #define AUD_E_INT_MSTAT 0x040108 /* Audio Int interrupt masked status */
  168. #define AUD_E_INT_SSTAT 0x04010C /* Audio Int interrupt set status */
  169. #define FLD_AUD_SRC_OPC_ERR 0x00020000
  170. #define FLD_AUD_DST_OPC_ERR 0x00010000
  171. #define FLD_AUD_SRC_SYNC 0x00002000
  172. #define FLD_AUD_DST_SYNC 0x00001000
  173. #define FLD_AUD_SRC_OF 0x00000200
  174. #define FLD_AUD_DST_OF 0x00000100
  175. #define FLD_AUD_SRC_RISCI2 0x00000020
  176. #define FLD_AUD_DST_RISCI2 0x00000010
  177. #define FLD_AUD_SRC_RISCI1 0x00000002
  178. #define FLD_AUD_DST_RISCI1 0x00000001
  179. /* ***************************************************************************** */
  180. #define MBIF_A_INT_MSK 0x040110 /* MBIF Int interrupt mask */
  181. #define MBIF_A_INT_STAT 0x040114 /* MBIF Int interrupt status */
  182. #define MBIF_A_INT_MSTAT 0x040118 /* MBIF Int interrupt masked status */
  183. #define MBIF_A_INT_SSTAT 0x04011C /* MBIF Int interrupt set status */
  184. /* ***************************************************************************** */
  185. #define MBIF_B_INT_MSK 0x040120 /* MBIF Int interrupt mask */
  186. #define MBIF_B_INT_STAT 0x040124 /* MBIF Int interrupt status */
  187. #define MBIF_B_INT_MSTAT 0x040128 /* MBIF Int interrupt masked status */
  188. #define MBIF_B_INT_SSTAT 0x04012C /* MBIF Int interrupt set status */
  189. #define FLD_MBIF_DST_OPC_ERR 0x00010000
  190. #define FLD_MBIF_DST_SYNC 0x00001000
  191. #define FLD_MBIF_DST_OF 0x00000100
  192. #define FLD_MBIF_DST_RISCI2 0x00000010
  193. #define FLD_MBIF_DST_RISCI1 0x00000001
  194. /* ***************************************************************************** */
  195. #define AUD_EXT_INT_MSK 0x040060 /* Audio Ext interrupt mask */
  196. #define AUD_EXT_INT_STAT 0x040064 /* Audio Ext interrupt status */
  197. #define AUD_EXT_INT_MSTAT 0x040068 /* Audio Ext interrupt masked status */
  198. #define AUD_EXT_INT_SSTAT 0x04006C /* Audio Ext interrupt set status */
  199. #define FLD_AUD_EXT_OPC_ERR 0x00010000
  200. #define FLD_AUD_EXT_SYNC 0x00001000
  201. #define FLD_AUD_EXT_OF 0x00000100
  202. #define FLD_AUD_EXT_RISCI2 0x00000010
  203. #define FLD_AUD_EXT_RISCI1 0x00000001
  204. /* ***************************************************************************** */
  205. #define GPIO_LO 0x110010 /* Lower of GPIO pins [31:0] */
  206. #define GPIO_HI 0x110014 /* Upper WORD of GPIO pins [47:31] */
  207. #define GPIO_LO_OE 0x110018 /* Lower of GPIO output enable [31:0] */
  208. #define GPIO_HI_OE 0x11001C /* Upper word of GPIO output enable [47:32] */
  209. #define GPIO_LO_INT_MSK 0x11003C /* GPIO interrupt mask */
  210. #define GPIO_LO_INT_STAT 0x110044 /* GPIO interrupt status */
  211. #define GPIO_LO_INT_MSTAT 0x11004C /* GPIO interrupt masked status */
  212. #define GPIO_LO_ISM_SNS 0x110054 /* GPIO interrupt sensitivity */
  213. #define GPIO_LO_ISM_POL 0x11005C /* GPIO interrupt polarity */
  214. #define GPIO_HI_INT_MSK 0x110040 /* GPIO interrupt mask */
  215. #define GPIO_HI_INT_STAT 0x110048 /* GPIO interrupt status */
  216. #define GPIO_HI_INT_MSTAT 0x110050 /* GPIO interrupt masked status */
  217. #define GPIO_HI_ISM_SNS 0x110058 /* GPIO interrupt sensitivity */
  218. #define GPIO_HI_ISM_POL 0x110060 /* GPIO interrupt polarity */
  219. #define FLD_GPIO43_INT (1 << 11)
  220. #define FLD_GPIO42_INT (1 << 10)
  221. #define FLD_GPIO41_INT (1 << 9)
  222. #define FLD_GPIO40_INT (1 << 8)
  223. #define FLD_GPIO9_INT (1 << 9)
  224. #define FLD_GPIO8_INT (1 << 8)
  225. #define FLD_GPIO7_INT (1 << 7)
  226. #define FLD_GPIO6_INT (1 << 6)
  227. #define FLD_GPIO5_INT (1 << 5)
  228. #define FLD_GPIO4_INT (1 << 4)
  229. #define FLD_GPIO3_INT (1 << 3)
  230. #define FLD_GPIO2_INT (1 << 2)
  231. #define FLD_GPIO1_INT (1 << 1)
  232. #define FLD_GPIO0_INT (1 << 0)
  233. /* ***************************************************************************** */
  234. #define TC_REQ 0x040090 /* Rider PCI Express traFFic class request */
  235. /* ***************************************************************************** */
  236. #define TC_REQ_SET 0x040094 /* Rider PCI Express traFFic class request set */
  237. /* ***************************************************************************** */
  238. /* Rider */
  239. /* ***************************************************************************** */
  240. /* PCI Compatible Header */
  241. /* ***************************************************************************** */
  242. #define RDR_CFG0 0x050000
  243. #define RDR_VENDOR_DEVICE_ID_CFG 0x050000
  244. /* ***************************************************************************** */
  245. #define RDR_CFG1 0x050004
  246. /* ***************************************************************************** */
  247. #define RDR_CFG2 0x050008
  248. /* ***************************************************************************** */
  249. #define RDR_CFG3 0x05000C
  250. /* ***************************************************************************** */
  251. #define RDR_CFG4 0x050010
  252. /* ***************************************************************************** */
  253. #define RDR_CFG5 0x050014
  254. /* ***************************************************************************** */
  255. #define RDR_CFG6 0x050018
  256. /* ***************************************************************************** */
  257. #define RDR_CFG7 0x05001C
  258. /* ***************************************************************************** */
  259. #define RDR_CFG8 0x050020
  260. /* ***************************************************************************** */
  261. #define RDR_CFG9 0x050024
  262. /* ***************************************************************************** */
  263. #define RDR_CFGA 0x050028
  264. /* ***************************************************************************** */
  265. #define RDR_CFGB 0x05002C
  266. #define RDR_SUSSYSTEM_ID_CFG 0x05002C
  267. /* ***************************************************************************** */
  268. #define RDR_CFGC 0x050030
  269. /* ***************************************************************************** */
  270. #define RDR_CFGD 0x050034
  271. /* ***************************************************************************** */
  272. #define RDR_CFGE 0x050038
  273. /* ***************************************************************************** */
  274. #define RDR_CFGF 0x05003C
  275. /* ***************************************************************************** */
  276. /* PCI-Express Capabilities */
  277. /* ***************************************************************************** */
  278. #define RDR_PECAP 0x050040
  279. /* ***************************************************************************** */
  280. #define RDR_PEDEVCAP 0x050044
  281. /* ***************************************************************************** */
  282. #define RDR_PEDEVSC 0x050048
  283. /* ***************************************************************************** */
  284. #define RDR_PELINKCAP 0x05004C
  285. /* ***************************************************************************** */
  286. #define RDR_PELINKSC 0x050050
  287. /* ***************************************************************************** */
  288. #define RDR_PMICAP 0x050080
  289. /* ***************************************************************************** */
  290. #define RDR_PMCSR 0x050084
  291. /* ***************************************************************************** */
  292. #define RDR_VPDCAP 0x050090
  293. /* ***************************************************************************** */
  294. #define RDR_VPDDATA 0x050094
  295. /* ***************************************************************************** */
  296. #define RDR_MSICAP 0x0500A0
  297. /* ***************************************************************************** */
  298. #define RDR_MSIARL 0x0500A4
  299. /* ***************************************************************************** */
  300. #define RDR_MSIARU 0x0500A8
  301. /* ***************************************************************************** */
  302. #define RDR_MSIDATA 0x0500AC
  303. /* ***************************************************************************** */
  304. /* PCI Express Extended Capabilities */
  305. /* ***************************************************************************** */
  306. #define RDR_AERXCAP 0x050100
  307. /* ***************************************************************************** */
  308. #define RDR_AERUESTA 0x050104
  309. /* ***************************************************************************** */
  310. #define RDR_AERUEMSK 0x050108
  311. /* ***************************************************************************** */
  312. #define RDR_AERUESEV 0x05010C
  313. /* ***************************************************************************** */
  314. #define RDR_AERCESTA 0x050110
  315. /* ***************************************************************************** */
  316. #define RDR_AERCEMSK 0x050114
  317. /* ***************************************************************************** */
  318. #define RDR_AERCC 0x050118
  319. /* ***************************************************************************** */
  320. #define RDR_AERHL0 0x05011C
  321. /* ***************************************************************************** */
  322. #define RDR_AERHL1 0x050120
  323. /* ***************************************************************************** */
  324. #define RDR_AERHL2 0x050124
  325. /* ***************************************************************************** */
  326. #define RDR_AERHL3 0x050128
  327. /* ***************************************************************************** */
  328. #define RDR_VCXCAP 0x050200
  329. /* ***************************************************************************** */
  330. #define RDR_VCCAP1 0x050204
  331. /* ***************************************************************************** */
  332. #define RDR_VCCAP2 0x050208
  333. /* ***************************************************************************** */
  334. #define RDR_VCSC 0x05020C
  335. /* ***************************************************************************** */
  336. #define RDR_VCR0_CAP 0x050210
  337. /* ***************************************************************************** */
  338. #define RDR_VCR0_CTRL 0x050214
  339. /* ***************************************************************************** */
  340. #define RDR_VCR0_STAT 0x050218
  341. /* ***************************************************************************** */
  342. #define RDR_VCR1_CAP 0x05021C
  343. /* ***************************************************************************** */
  344. #define RDR_VCR1_CTRL 0x050220
  345. /* ***************************************************************************** */
  346. #define RDR_VCR1_STAT 0x050224
  347. /* ***************************************************************************** */
  348. #define RDR_VCR2_CAP 0x050228
  349. /* ***************************************************************************** */
  350. #define RDR_VCR2_CTRL 0x05022C
  351. /* ***************************************************************************** */
  352. #define RDR_VCR2_STAT 0x050230
  353. /* ***************************************************************************** */
  354. #define RDR_VCR3_CAP 0x050234
  355. /* ***************************************************************************** */
  356. #define RDR_VCR3_CTRL 0x050238
  357. /* ***************************************************************************** */
  358. #define RDR_VCR3_STAT 0x05023C
  359. /* ***************************************************************************** */
  360. #define RDR_VCARB0 0x050240
  361. /* ***************************************************************************** */
  362. #define RDR_VCARB1 0x050244
  363. /* ***************************************************************************** */
  364. #define RDR_VCARB2 0x050248
  365. /* ***************************************************************************** */
  366. #define RDR_VCARB3 0x05024C
  367. /* ***************************************************************************** */
  368. #define RDR_VCARB4 0x050250
  369. /* ***************************************************************************** */
  370. #define RDR_VCARB5 0x050254
  371. /* ***************************************************************************** */
  372. #define RDR_VCARB6 0x050258
  373. /* ***************************************************************************** */
  374. #define RDR_VCARB7 0x05025C
  375. /* ***************************************************************************** */
  376. #define RDR_RDRSTAT0 0x050300
  377. /* ***************************************************************************** */
  378. #define RDR_RDRSTAT1 0x050304
  379. /* ***************************************************************************** */
  380. #define RDR_RDRCTL0 0x050308
  381. /* ***************************************************************************** */
  382. #define RDR_RDRCTL1 0x05030C
  383. /* ***************************************************************************** */
  384. /* Transaction Layer Registers */
  385. /* ***************************************************************************** */
  386. #define RDR_TLSTAT0 0x050310
  387. /* ***************************************************************************** */
  388. #define RDR_TLSTAT1 0x050314
  389. /* ***************************************************************************** */
  390. #define RDR_TLCTL0 0x050318
  391. #define FLD_CFG_UR_CPL_MODE 0x00000040
  392. #define FLD_CFG_CORR_ERR_QUITE 0x00000020
  393. #define FLD_CFG_RCB_CK_EN 0x00000010
  394. #define FLD_CFG_BNDRY_CK_EN 0x00000008
  395. #define FLD_CFG_BYTE_EN_CK_EN 0x00000004
  396. #define FLD_CFG_RELAX_ORDER_MSK 0x00000002
  397. #define FLD_CFG_TAG_ORDER_EN 0x00000001
  398. /* ***************************************************************************** */
  399. #define RDR_TLCTL1 0x05031C
  400. /* ***************************************************************************** */
  401. #define RDR_REQRCAL 0x050320
  402. /* ***************************************************************************** */
  403. #define RDR_REQRCAU 0x050324
  404. /* ***************************************************************************** */
  405. #define RDR_REQEPA 0x050328
  406. /* ***************************************************************************** */
  407. #define RDR_REQCTRL 0x05032C
  408. /* ***************************************************************************** */
  409. #define RDR_REQSTAT 0x050330
  410. /* ***************************************************************************** */
  411. #define RDR_TL_TEST 0x050334
  412. /* ***************************************************************************** */
  413. #define RDR_VCR01_CTL 0x050348
  414. /* ***************************************************************************** */
  415. #define RDR_VCR23_CTL 0x05034C
  416. /* ***************************************************************************** */
  417. #define RDR_RX_VCR0_FC 0x050350
  418. /* ***************************************************************************** */
  419. #define RDR_RX_VCR1_FC 0x050354
  420. /* ***************************************************************************** */
  421. #define RDR_RX_VCR2_FC 0x050358
  422. /* ***************************************************************************** */
  423. #define RDR_RX_VCR3_FC 0x05035C
  424. /* ***************************************************************************** */
  425. /* Data Link Layer Registers */
  426. /* ***************************************************************************** */
  427. #define RDR_DLLSTAT 0x050360
  428. /* ***************************************************************************** */
  429. #define RDR_DLLCTRL 0x050364
  430. /* ***************************************************************************** */
  431. #define RDR_REPLAYTO 0x050368
  432. /* ***************************************************************************** */
  433. #define RDR_ACKLATTO 0x05036C
  434. /* ***************************************************************************** */
  435. /* MAC Layer Registers */
  436. /* ***************************************************************************** */
  437. #define RDR_MACSTAT0 0x050380
  438. /* ***************************************************************************** */
  439. #define RDR_MACSTAT1 0x050384
  440. /* ***************************************************************************** */
  441. #define RDR_MACCTRL0 0x050388
  442. /* ***************************************************************************** */
  443. #define RDR_MACCTRL1 0x05038C
  444. /* ***************************************************************************** */
  445. #define RDR_MACCTRL2 0x050390
  446. /* ***************************************************************************** */
  447. #define RDR_MAC_LB_DATA 0x050394
  448. /* ***************************************************************************** */
  449. #define RDR_L0S_EXIT_LAT 0x050398
  450. /* ***************************************************************************** */
  451. /* DMAC */
  452. /* ***************************************************************************** */
  453. #define DMA1_PTR1 0x100000 /* DMA Current Ptr : Ch#1 */
  454. /* ***************************************************************************** */
  455. #define DMA2_PTR1 0x100004 /* DMA Current Ptr : Ch#2 */
  456. /* ***************************************************************************** */
  457. #define DMA3_PTR1 0x100008 /* DMA Current Ptr : Ch#3 */
  458. /* ***************************************************************************** */
  459. #define DMA4_PTR1 0x10000C /* DMA Current Ptr : Ch#4 */
  460. /* ***************************************************************************** */
  461. #define DMA5_PTR1 0x100010 /* DMA Current Ptr : Ch#5 */
  462. /* ***************************************************************************** */
  463. #define DMA6_PTR1 0x100014 /* DMA Current Ptr : Ch#6 */
  464. /* ***************************************************************************** */
  465. #define DMA7_PTR1 0x100018 /* DMA Current Ptr : Ch#7 */
  466. /* ***************************************************************************** */
  467. #define DMA8_PTR1 0x10001C /* DMA Current Ptr : Ch#8 */
  468. /* ***************************************************************************** */
  469. #define DMA9_PTR1 0x100020 /* DMA Current Ptr : Ch#9 */
  470. /* ***************************************************************************** */
  471. #define DMA10_PTR1 0x100024 /* DMA Current Ptr : Ch#10 */
  472. /* ***************************************************************************** */
  473. #define DMA11_PTR1 0x100028 /* DMA Current Ptr : Ch#11 */
  474. /* ***************************************************************************** */
  475. #define DMA12_PTR1 0x10002C /* DMA Current Ptr : Ch#12 */
  476. /* ***************************************************************************** */
  477. #define DMA13_PTR1 0x100030 /* DMA Current Ptr : Ch#13 */
  478. /* ***************************************************************************** */
  479. #define DMA14_PTR1 0x100034 /* DMA Current Ptr : Ch#14 */
  480. /* ***************************************************************************** */
  481. #define DMA15_PTR1 0x100038 /* DMA Current Ptr : Ch#15 */
  482. /* ***************************************************************************** */
  483. #define DMA16_PTR1 0x10003C /* DMA Current Ptr : Ch#16 */
  484. /* ***************************************************************************** */
  485. #define DMA17_PTR1 0x100040 /* DMA Current Ptr : Ch#17 */
  486. /* ***************************************************************************** */
  487. #define DMA18_PTR1 0x100044 /* DMA Current Ptr : Ch#18 */
  488. /* ***************************************************************************** */
  489. #define DMA19_PTR1 0x100048 /* DMA Current Ptr : Ch#19 */
  490. /* ***************************************************************************** */
  491. #define DMA20_PTR1 0x10004C /* DMA Current Ptr : Ch#20 */
  492. /* ***************************************************************************** */
  493. #define DMA21_PTR1 0x100050 /* DMA Current Ptr : Ch#21 */
  494. /* ***************************************************************************** */
  495. #define DMA22_PTR1 0x100054 /* DMA Current Ptr : Ch#22 */
  496. /* ***************************************************************************** */
  497. #define DMA23_PTR1 0x100058 /* DMA Current Ptr : Ch#23 */
  498. /* ***************************************************************************** */
  499. #define DMA24_PTR1 0x10005C /* DMA Current Ptr : Ch#24 */
  500. /* ***************************************************************************** */
  501. #define DMA25_PTR1 0x100060 /* DMA Current Ptr : Ch#25 */
  502. /* ***************************************************************************** */
  503. #define DMA26_PTR1 0x100064 /* DMA Current Ptr : Ch#26 */
  504. /* ***************************************************************************** */
  505. #define DMA1_PTR2 0x100080 /* DMA Tab Ptr : Ch#1 */
  506. /* ***************************************************************************** */
  507. #define DMA2_PTR2 0x100084 /* DMA Tab Ptr : Ch#2 */
  508. /* ***************************************************************************** */
  509. #define DMA3_PTR2 0x100088 /* DMA Tab Ptr : Ch#3 */
  510. /* ***************************************************************************** */
  511. #define DMA4_PTR2 0x10008C /* DMA Tab Ptr : Ch#4 */
  512. /* ***************************************************************************** */
  513. #define DMA5_PTR2 0x100090 /* DMA Tab Ptr : Ch#5 */
  514. /* ***************************************************************************** */
  515. #define DMA6_PTR2 0x100094 /* DMA Tab Ptr : Ch#6 */
  516. /* ***************************************************************************** */
  517. #define DMA7_PTR2 0x100098 /* DMA Tab Ptr : Ch#7 */
  518. /* ***************************************************************************** */
  519. #define DMA8_PTR2 0x10009C /* DMA Tab Ptr : Ch#8 */
  520. /* ***************************************************************************** */
  521. #define DMA9_PTR2 0x1000A0 /* DMA Tab Ptr : Ch#9 */
  522. /* ***************************************************************************** */
  523. #define DMA10_PTR2 0x1000A4 /* DMA Tab Ptr : Ch#10 */
  524. /* ***************************************************************************** */
  525. #define DMA11_PTR2 0x1000A8 /* DMA Tab Ptr : Ch#11 */
  526. /* ***************************************************************************** */
  527. #define DMA12_PTR2 0x1000AC /* DMA Tab Ptr : Ch#12 */
  528. /* ***************************************************************************** */
  529. #define DMA13_PTR2 0x1000B0 /* DMA Tab Ptr : Ch#13 */
  530. /* ***************************************************************************** */
  531. #define DMA14_PTR2 0x1000B4 /* DMA Tab Ptr : Ch#14 */
  532. /* ***************************************************************************** */
  533. #define DMA15_PTR2 0x1000B8 /* DMA Tab Ptr : Ch#15 */
  534. /* ***************************************************************************** */
  535. #define DMA16_PTR2 0x1000BC /* DMA Tab Ptr : Ch#16 */
  536. /* ***************************************************************************** */
  537. #define DMA17_PTR2 0x1000C0 /* DMA Tab Ptr : Ch#17 */
  538. /* ***************************************************************************** */
  539. #define DMA18_PTR2 0x1000C4 /* DMA Tab Ptr : Ch#18 */
  540. /* ***************************************************************************** */
  541. #define DMA19_PTR2 0x1000C8 /* DMA Tab Ptr : Ch#19 */
  542. /* ***************************************************************************** */
  543. #define DMA20_PTR2 0x1000CC /* DMA Tab Ptr : Ch#20 */
  544. /* ***************************************************************************** */
  545. #define DMA21_PTR2 0x1000D0 /* DMA Tab Ptr : Ch#21 */
  546. /* ***************************************************************************** */
  547. #define DMA22_PTR2 0x1000D4 /* DMA Tab Ptr : Ch#22 */
  548. /* ***************************************************************************** */
  549. #define DMA23_PTR2 0x1000D8 /* DMA Tab Ptr : Ch#23 */
  550. /* ***************************************************************************** */
  551. #define DMA24_PTR2 0x1000DC /* DMA Tab Ptr : Ch#24 */
  552. /* ***************************************************************************** */
  553. #define DMA25_PTR2 0x1000E0 /* DMA Tab Ptr : Ch#25 */
  554. /* ***************************************************************************** */
  555. #define DMA26_PTR2 0x1000E4 /* DMA Tab Ptr : Ch#26 */
  556. /* ***************************************************************************** */
  557. #define DMA1_CNT1 0x100100 /* DMA BuFFer Size : Ch#1 */
  558. /* ***************************************************************************** */
  559. #define DMA2_CNT1 0x100104 /* DMA BuFFer Size : Ch#2 */
  560. /* ***************************************************************************** */
  561. #define DMA3_CNT1 0x100108 /* DMA BuFFer Size : Ch#3 */
  562. /* ***************************************************************************** */
  563. #define DMA4_CNT1 0x10010C /* DMA BuFFer Size : Ch#4 */
  564. /* ***************************************************************************** */
  565. #define DMA5_CNT1 0x100110 /* DMA BuFFer Size : Ch#5 */
  566. /* ***************************************************************************** */
  567. #define DMA6_CNT1 0x100114 /* DMA BuFFer Size : Ch#6 */
  568. /* ***************************************************************************** */
  569. #define DMA7_CNT1 0x100118 /* DMA BuFFer Size : Ch#7 */
  570. /* ***************************************************************************** */
  571. #define DMA8_CNT1 0x10011C /* DMA BuFFer Size : Ch#8 */
  572. /* ***************************************************************************** */
  573. #define DMA9_CNT1 0x100120 /* DMA BuFFer Size : Ch#9 */
  574. /* ***************************************************************************** */
  575. #define DMA10_CNT1 0x100124 /* DMA BuFFer Size : Ch#10 */
  576. /* ***************************************************************************** */
  577. #define DMA11_CNT1 0x100128 /* DMA BuFFer Size : Ch#11 */
  578. /* ***************************************************************************** */
  579. #define DMA12_CNT1 0x10012C /* DMA BuFFer Size : Ch#12 */
  580. /* ***************************************************************************** */
  581. #define DMA13_CNT1 0x100130 /* DMA BuFFer Size : Ch#13 */
  582. /* ***************************************************************************** */
  583. #define DMA14_CNT1 0x100134 /* DMA BuFFer Size : Ch#14 */
  584. /* ***************************************************************************** */
  585. #define DMA15_CNT1 0x100138 /* DMA BuFFer Size : Ch#15 */
  586. /* ***************************************************************************** */
  587. #define DMA16_CNT1 0x10013C /* DMA BuFFer Size : Ch#16 */
  588. /* ***************************************************************************** */
  589. #define DMA17_CNT1 0x100140 /* DMA BuFFer Size : Ch#17 */
  590. /* ***************************************************************************** */
  591. #define DMA18_CNT1 0x100144 /* DMA BuFFer Size : Ch#18 */
  592. /* ***************************************************************************** */
  593. #define DMA19_CNT1 0x100148 /* DMA BuFFer Size : Ch#19 */
  594. /* ***************************************************************************** */
  595. #define DMA20_CNT1 0x10014C /* DMA BuFFer Size : Ch#20 */
  596. /* ***************************************************************************** */
  597. #define DMA21_CNT1 0x100150 /* DMA BuFFer Size : Ch#21 */
  598. /* ***************************************************************************** */
  599. #define DMA22_CNT1 0x100154 /* DMA BuFFer Size : Ch#22 */
  600. /* ***************************************************************************** */
  601. #define DMA23_CNT1 0x100158 /* DMA BuFFer Size : Ch#23 */
  602. /* ***************************************************************************** */
  603. #define DMA24_CNT1 0x10015C /* DMA BuFFer Size : Ch#24 */
  604. /* ***************************************************************************** */
  605. #define DMA25_CNT1 0x100160 /* DMA BuFFer Size : Ch#25 */
  606. /* ***************************************************************************** */
  607. #define DMA26_CNT1 0x100164 /* DMA BuFFer Size : Ch#26 */
  608. /* ***************************************************************************** */
  609. #define DMA1_CNT2 0x100180 /* DMA Table Size : Ch#1 */
  610. /* ***************************************************************************** */
  611. #define DMA2_CNT2 0x100184 /* DMA Table Size : Ch#2 */
  612. /* ***************************************************************************** */
  613. #define DMA3_CNT2 0x100188 /* DMA Table Size : Ch#3 */
  614. /* ***************************************************************************** */
  615. #define DMA4_CNT2 0x10018C /* DMA Table Size : Ch#4 */
  616. /* ***************************************************************************** */
  617. #define DMA5_CNT2 0x100190 /* DMA Table Size : Ch#5 */
  618. /* ***************************************************************************** */
  619. #define DMA6_CNT2 0x100194 /* DMA Table Size : Ch#6 */
  620. /* ***************************************************************************** */
  621. #define DMA7_CNT2 0x100198 /* DMA Table Size : Ch#7 */
  622. /* ***************************************************************************** */
  623. #define DMA8_CNT2 0x10019C /* DMA Table Size : Ch#8 */
  624. /* ***************************************************************************** */
  625. #define DMA9_CNT2 0x1001A0 /* DMA Table Size : Ch#9 */
  626. /* ***************************************************************************** */
  627. #define DMA10_CNT2 0x1001A4 /* DMA Table Size : Ch#10 */
  628. /* ***************************************************************************** */
  629. #define DMA11_CNT2 0x1001A8 /* DMA Table Size : Ch#11 */
  630. /* ***************************************************************************** */
  631. #define DMA12_CNT2 0x1001AC /* DMA Table Size : Ch#12 */
  632. /* ***************************************************************************** */
  633. #define DMA13_CNT2 0x1001B0 /* DMA Table Size : Ch#13 */
  634. /* ***************************************************************************** */
  635. #define DMA14_CNT2 0x1001B4 /* DMA Table Size : Ch#14 */
  636. /* ***************************************************************************** */
  637. #define DMA15_CNT2 0x1001B8 /* DMA Table Size : Ch#15 */
  638. /* ***************************************************************************** */
  639. #define DMA16_CNT2 0x1001BC /* DMA Table Size : Ch#16 */
  640. /* ***************************************************************************** */
  641. #define DMA17_CNT2 0x1001C0 /* DMA Table Size : Ch#17 */
  642. /* ***************************************************************************** */
  643. #define DMA18_CNT2 0x1001C4 /* DMA Table Size : Ch#18 */
  644. /* ***************************************************************************** */
  645. #define DMA19_CNT2 0x1001C8 /* DMA Table Size : Ch#19 */
  646. /* ***************************************************************************** */
  647. #define DMA20_CNT2 0x1001CC /* DMA Table Size : Ch#20 */
  648. /* ***************************************************************************** */
  649. #define DMA21_CNT2 0x1001D0 /* DMA Table Size : Ch#21 */
  650. /* ***************************************************************************** */
  651. #define DMA22_CNT2 0x1001D4 /* DMA Table Size : Ch#22 */
  652. /* ***************************************************************************** */
  653. #define DMA23_CNT2 0x1001D8 /* DMA Table Size : Ch#23 */
  654. /* ***************************************************************************** */
  655. #define DMA24_CNT2 0x1001DC /* DMA Table Size : Ch#24 */
  656. /* ***************************************************************************** */
  657. #define DMA25_CNT2 0x1001E0 /* DMA Table Size : Ch#25 */
  658. /* ***************************************************************************** */
  659. #define DMA26_CNT2 0x1001E4 /* DMA Table Size : Ch#26 */
  660. /* ***************************************************************************** */
  661. /* ITG */
  662. /* ***************************************************************************** */
  663. #define TM_CNT_LDW 0x110000 /* Timer : Counter low */
  664. /* ***************************************************************************** */
  665. #define TM_CNT_UW 0x110004 /* Timer : Counter high word */
  666. /* ***************************************************************************** */
  667. #define TM_LMT_LDW 0x110008 /* Timer : Limit low */
  668. /* ***************************************************************************** */
  669. #define TM_LMT_UW 0x11000C /* Timer : Limit high word */
  670. /* ***************************************************************************** */
  671. #define GP0_IO 0x110010 /* GPIO output enables data I/O */
  672. #define FLD_GP_OE 0x00FF0000 /* GPIO: GP_OE output enable */
  673. #define FLD_GP_IN 0x0000FF00 /* GPIO: GP_IN status */
  674. #define FLD_GP_OUT 0x000000FF /* GPIO: GP_OUT control */
  675. /* ***************************************************************************** */
  676. #define GPIO_ISM 0x110014 /* GPIO interrupt sensitivity mode */
  677. #define FLD_GP_ISM_SNS 0x00000070
  678. #define FLD_GP_ISM_POL 0x00000007
  679. /* ***************************************************************************** */
  680. #define SOFT_RESET 0x11001C /* Output system reset reg */
  681. #define FLD_PECOS_SOFT_RESET 0x00000001
  682. /* ***************************************************************************** */
  683. #define MC416_RWD 0x110020 /* MC416 GPIO[18:3] pin */
  684. #define MC416_OEN 0x110024 /* Output enable of GPIO[18:3] */
  685. #define MC416_CTL 0x110028
  686. /* ***************************************************************************** */
  687. #define ALT_PIN_OUT_SEL 0x11002C /* Alternate GPIO output select */
  688. #define FLD_ALT_GPIO_OUT_SEL 0xF0000000
  689. /* 0 Disabled <-- default */
  690. /* 1 GPIO[0] */
  691. /* 2 GPIO[10] */
  692. /* 3 VIP_656_DATA_VAL */
  693. /* 4 VIP_656_DATA[0] */
  694. /* 5 VIP_656_CLK */
  695. /* 6 VIP_656_DATA_EXT[1] */
  696. /* 7 VIP_656_DATA_EXT[0] */
  697. /* 8 ATT_IF */
  698. #define FLD_AUX_PLL_CLK_ALT_SEL 0x0F000000
  699. /* 0 AUX_PLL_CLK<-- default */
  700. /* 1 GPIO[2] */
  701. /* 2 GPIO[10] */
  702. /* 3 VIP_656_DATA_VAL */
  703. /* 4 VIP_656_DATA[0] */
  704. /* 5 VIP_656_CLK */
  705. /* 6 VIP_656_DATA_EXT[1] */
  706. /* 7 VIP_656_DATA_EXT[0] */
  707. #define FLD_IR_TX_ALT_SEL 0x00F00000
  708. /* 0 IR_TX <-- default */
  709. /* 1 GPIO[1] */
  710. /* 2 GPIO[10] */
  711. /* 3 VIP_656_DATA_VAL */
  712. /* 4 VIP_656_DATA[0] */
  713. /* 5 VIP_656_CLK */
  714. /* 6 VIP_656_DATA_EXT[1] */
  715. /* 7 VIP_656_DATA_EXT[0] */
  716. #define FLD_IR_RX_ALT_SEL 0x000F0000
  717. /* 0 IR_RX <-- default */
  718. /* 1 GPIO[0] */
  719. /* 2 GPIO[10] */
  720. /* 3 VIP_656_DATA_VAL */
  721. /* 4 VIP_656_DATA[0] */
  722. /* 5 VIP_656_CLK */
  723. /* 6 VIP_656_DATA_EXT[1] */
  724. /* 7 VIP_656_DATA_EXT[0] */
  725. #define FLD_GPIO10_ALT_SEL 0x0000F000
  726. /* 0 GPIO[10] <-- default */
  727. /* 1 GPIO[0] */
  728. /* 2 GPIO[10] */
  729. /* 3 VIP_656_DATA_VAL */
  730. /* 4 VIP_656_DATA[0] */
  731. /* 5 VIP_656_CLK */
  732. /* 6 VIP_656_DATA_EXT[1] */
  733. /* 7 VIP_656_DATA_EXT[0] */
  734. #define FLD_GPIO2_ALT_SEL 0x00000F00
  735. /* 0 GPIO[2] <-- default */
  736. /* 1 GPIO[1] */
  737. /* 2 GPIO[10] */
  738. /* 3 VIP_656_DATA_VAL */
  739. /* 4 VIP_656_DATA[0] */
  740. /* 5 VIP_656_CLK */
  741. /* 6 VIP_656_DATA_EXT[1] */
  742. /* 7 VIP_656_DATA_EXT[0] */
  743. #define FLD_GPIO1_ALT_SEL 0x000000F0
  744. /* 0 GPIO[1] <-- default */
  745. /* 1 GPIO[0] */
  746. /* 2 GPIO[10] */
  747. /* 3 VIP_656_DATA_VAL */
  748. /* 4 VIP_656_DATA[0] */
  749. /* 5 VIP_656_CLK */
  750. /* 6 VIP_656_DATA_EXT[1] */
  751. /* 7 VIP_656_DATA_EXT[0] */
  752. #define FLD_GPIO0_ALT_SEL 0x0000000F
  753. /* 0 GPIO[0] <-- default */
  754. /* 1 GPIO[1] */
  755. /* 2 GPIO[10] */
  756. /* 3 VIP_656_DATA_VAL */
  757. /* 4 VIP_656_DATA[0] */
  758. /* 5 VIP_656_CLK */
  759. /* 6 VIP_656_DATA_EXT[1] */
  760. /* 7 VIP_656_DATA_EXT[0] */
  761. #define ALT_PIN_IN_SEL 0x110030 /* Alternate GPIO input select */
  762. #define FLD_GPIO10_ALT_IN_SEL 0x0000F000
  763. /* 0 GPIO[10] <-- default */
  764. /* 1 IR_RX */
  765. /* 2 IR_TX */
  766. /* 3 AUX_PLL_CLK */
  767. /* 4 IF_ATT_SEL */
  768. /* 5 GPIO[0] */
  769. /* 6 GPIO[1] */
  770. /* 7 GPIO[2] */
  771. #define FLD_GPIO2_ALT_IN_SEL 0x00000F00
  772. /* 0 GPIO[2] <-- default */
  773. /* 1 IR_RX */
  774. /* 2 IR_TX */
  775. /* 3 AUX_PLL_CLK */
  776. /* 4 IF_ATT_SEL */
  777. #define FLD_GPIO1_ALT_IN_SEL 0x000000F0
  778. /* 0 GPIO[1] <-- default */
  779. /* 1 IR_RX */
  780. /* 2 IR_TX */
  781. /* 3 AUX_PLL_CLK */
  782. /* 4 IF_ATT_SEL */
  783. #define FLD_GPIO0_ALT_IN_SEL 0x0000000F
  784. /* 0 GPIO[0] <-- default */
  785. /* 1 IR_RX */
  786. /* 2 IR_TX */
  787. /* 3 AUX_PLL_CLK */
  788. /* 4 IF_ATT_SEL */
  789. /* ***************************************************************************** */
  790. #define TEST_BUS_CTL1 0x110040 /* Test bus control register #1 */
  791. /* ***************************************************************************** */
  792. #define TEST_BUS_CTL2 0x110044 /* Test bus control register #2 */
  793. /* ***************************************************************************** */
  794. #define CLK_DELAY 0x110048 /* Clock delay */
  795. #define FLD_MOE_CLK_DIS 0x80000000 /* Disable MoE clock */
  796. /* ***************************************************************************** */
  797. #define PAD_CTRL 0x110068 /* Pad drive strength control */
  798. /* ***************************************************************************** */
  799. #define MBIST_CTRL 0x110050 /* SRAM memory built-in self test control */
  800. /* ***************************************************************************** */
  801. #define MBIST_STAT 0x110054 /* SRAM memory built-in self test status */
  802. /* ***************************************************************************** */
  803. /* PLL registers */
  804. /* ***************************************************************************** */
  805. #define PLL_A_INT_FRAC 0x110088
  806. #define PLL_A_POST_STAT_BIST 0x11008C
  807. #define PLL_B_INT_FRAC 0x110090
  808. #define PLL_B_POST_STAT_BIST 0x110094
  809. #define PLL_C_INT_FRAC 0x110098
  810. #define PLL_C_POST_STAT_BIST 0x11009C
  811. #define PLL_D_INT_FRAC 0x1100A0
  812. #define PLL_D_POST_STAT_BIST 0x1100A4
  813. #define CLK_RST 0x11002C
  814. #define FLD_VID_I_CLK_NOE 0x00001000
  815. #define FLD_VID_J_CLK_NOE 0x00002000
  816. #define FLD_USE_ALT_PLL_REF 0x00004000
  817. #define VID_CH_MODE_SEL 0x110078
  818. #define VID_CH_CLK_SEL 0x11007C
  819. /* ***************************************************************************** */
  820. #define VBI_A_DMA 0x130008 /* VBI A DMA data port */
  821. /* ***************************************************************************** */
  822. #define VID_A_VIP_CTL 0x130080 /* Video A VIP format control */
  823. #define FLD_VIP_MODE 0x00000001
  824. /* ***************************************************************************** */
  825. #define VID_A_PIXEL_FRMT 0x130084 /* Video A pixel format */
  826. #define FLD_VID_A_GAMMA_DIS 0x00000008
  827. #define FLD_VID_A_FORMAT 0x00000007
  828. #define FLD_VID_A_GAMMA_FACTOR 0x00000010
  829. /* ***************************************************************************** */
  830. #define VID_A_VBI_CTL 0x130088 /* Video A VBI miscellaneous control */
  831. #define FLD_VID_A_VIP_EXT 0x00000003
  832. /* ***************************************************************************** */
  833. #define VID_B_DMA 0x130100 /* Video B DMA data port */
  834. /* ***************************************************************************** */
  835. #define VBI_B_DMA 0x130108 /* VBI B DMA data port */
  836. /* ***************************************************************************** */
  837. #define VID_B_SRC_SEL 0x130144 /* Video B source select */
  838. #define FLD_VID_B_SRC_SEL 0x00000000
  839. /* ***************************************************************************** */
  840. #define VID_B_LNGTH 0x130150 /* Video B line length */
  841. #define FLD_VID_B_LN_LNGTH 0x00000FFF
  842. /* ***************************************************************************** */
  843. #define VID_B_VIP_CTL 0x130180 /* Video B VIP format control */
  844. /* ***************************************************************************** */
  845. #define VID_B_PIXEL_FRMT 0x130184 /* Video B pixel format */
  846. #define FLD_VID_B_GAMMA_DIS 0x00000008
  847. #define FLD_VID_B_FORMAT 0x00000007
  848. #define FLD_VID_B_GAMMA_FACTOR 0x00000010
  849. /* ***************************************************************************** */
  850. #define VID_C_DMA 0x130200 /* Video C DMA data port */
  851. /* ***************************************************************************** */
  852. #define VID_C_LNGTH 0x130250 /* Video C line length */
  853. #define FLD_VID_C_LN_LNGTH 0x00000FFF
  854. /* ***************************************************************************** */
  855. /* Video Destination Channels */
  856. /* ***************************************************************************** */
  857. #define VID_DST_A_GPCNT 0x130020 /* Video A general purpose counter */
  858. #define VID_DST_B_GPCNT 0x130120 /* Video B general purpose counter */
  859. #define VID_DST_C_GPCNT 0x130220 /* Video C general purpose counter */
  860. #define VID_DST_D_GPCNT 0x130320 /* Video D general purpose counter */
  861. #define VID_DST_E_GPCNT 0x130420 /* Video E general purpose counter */
  862. #define VID_DST_F_GPCNT 0x130520 /* Video F general purpose counter */
  863. #define VID_DST_G_GPCNT 0x130620 /* Video G general purpose counter */
  864. #define VID_DST_H_GPCNT 0x130720 /* Video H general purpose counter */
  865. /* ***************************************************************************** */
  866. #define VID_DST_A_GPCNT_CTL 0x130030 /* Video A general purpose control */
  867. #define VID_DST_B_GPCNT_CTL 0x130130 /* Video B general purpose control */
  868. #define VID_DST_C_GPCNT_CTL 0x130230 /* Video C general purpose control */
  869. #define VID_DST_D_GPCNT_CTL 0x130330 /* Video D general purpose control */
  870. #define VID_DST_E_GPCNT_CTL 0x130430 /* Video E general purpose control */
  871. #define VID_DST_F_GPCNT_CTL 0x130530 /* Video F general purpose control */
  872. #define VID_DST_G_GPCNT_CTL 0x130630 /* Video G general purpose control */
  873. #define VID_DST_H_GPCNT_CTL 0x130730 /* Video H general purpose control */
  874. /* ***************************************************************************** */
  875. #define VID_DST_A_DMA_CTL 0x130040 /* Video A DMA control */
  876. #define VID_DST_B_DMA_CTL 0x130140 /* Video B DMA control */
  877. #define VID_DST_C_DMA_CTL 0x130240 /* Video C DMA control */
  878. #define VID_DST_D_DMA_CTL 0x130340 /* Video D DMA control */
  879. #define VID_DST_E_DMA_CTL 0x130440 /* Video E DMA control */
  880. #define VID_DST_F_DMA_CTL 0x130540 /* Video F DMA control */
  881. #define VID_DST_G_DMA_CTL 0x130640 /* Video G DMA control */
  882. #define VID_DST_H_DMA_CTL 0x130740 /* Video H DMA control */
  883. #define FLD_VID_RISC_EN 0x00000010
  884. #define FLD_VID_FIFO_EN 0x00000001
  885. /* ***************************************************************************** */
  886. #define VID_DST_A_VIP_CTL 0x130080 /* Video A VIP control */
  887. #define VID_DST_B_VIP_CTL 0x130180 /* Video B VIP control */
  888. #define VID_DST_C_VIP_CTL 0x130280 /* Video C VIP control */
  889. #define VID_DST_D_VIP_CTL 0x130380 /* Video D VIP control */
  890. #define VID_DST_E_VIP_CTL 0x130480 /* Video E VIP control */
  891. #define VID_DST_F_VIP_CTL 0x130580 /* Video F VIP control */
  892. #define VID_DST_G_VIP_CTL 0x130680 /* Video G VIP control */
  893. #define VID_DST_H_VIP_CTL 0x130780 /* Video H VIP control */
  894. /* ***************************************************************************** */
  895. #define VID_DST_A_PIX_FRMT 0x130084 /* Video A Pixel format */
  896. #define VID_DST_B_PIX_FRMT 0x130184 /* Video B Pixel format */
  897. #define VID_DST_C_PIX_FRMT 0x130284 /* Video C Pixel format */
  898. #define VID_DST_D_PIX_FRMT 0x130384 /* Video D Pixel format */
  899. #define VID_DST_E_PIX_FRMT 0x130484 /* Video E Pixel format */
  900. #define VID_DST_F_PIX_FRMT 0x130584 /* Video F Pixel format */
  901. #define VID_DST_G_PIX_FRMT 0x130684 /* Video G Pixel format */
  902. #define VID_DST_H_PIX_FRMT 0x130784 /* Video H Pixel format */
  903. /* ***************************************************************************** */
  904. /* Video Source Channels */
  905. /* ***************************************************************************** */
  906. #define VID_SRC_A_GPCNT_CTL 0x130804 /* Video A general purpose control */
  907. #define VID_SRC_B_GPCNT_CTL 0x130904 /* Video B general purpose control */
  908. #define VID_SRC_C_GPCNT_CTL 0x130A04 /* Video C general purpose control */
  909. #define VID_SRC_D_GPCNT_CTL 0x130B04 /* Video D general purpose control */
  910. #define VID_SRC_E_GPCNT_CTL 0x130C04 /* Video E general purpose control */
  911. #define VID_SRC_F_GPCNT_CTL 0x130D04 /* Video F general purpose control */
  912. #define VID_SRC_I_GPCNT_CTL 0x130E04 /* Video I general purpose control */
  913. #define VID_SRC_J_GPCNT_CTL 0x130F04 /* Video J general purpose control */
  914. /* ***************************************************************************** */
  915. #define VID_SRC_A_GPCNT 0x130808 /* Video A general purpose counter */
  916. #define VID_SRC_B_GPCNT 0x130908 /* Video B general purpose counter */
  917. #define VID_SRC_C_GPCNT 0x130A08 /* Video C general purpose counter */
  918. #define VID_SRC_D_GPCNT 0x130B08 /* Video D general purpose counter */
  919. #define VID_SRC_E_GPCNT 0x130C08 /* Video E general purpose counter */
  920. #define VID_SRC_F_GPCNT 0x130D08 /* Video F general purpose counter */
  921. #define VID_SRC_I_GPCNT 0x130E08 /* Video I general purpose counter */
  922. #define VID_SRC_J_GPCNT 0x130F08 /* Video J general purpose counter */
  923. /* ***************************************************************************** */
  924. #define VID_SRC_A_DMA_CTL 0x13080C /* Video A DMA control */
  925. #define VID_SRC_B_DMA_CTL 0x13090C /* Video B DMA control */
  926. #define VID_SRC_C_DMA_CTL 0x130A0C /* Video C DMA control */
  927. #define VID_SRC_D_DMA_CTL 0x130B0C /* Video D DMA control */
  928. #define VID_SRC_E_DMA_CTL 0x130C0C /* Video E DMA control */
  929. #define VID_SRC_F_DMA_CTL 0x130D0C /* Video F DMA control */
  930. #define VID_SRC_I_DMA_CTL 0x130E0C /* Video I DMA control */
  931. #define VID_SRC_J_DMA_CTL 0x130F0C /* Video J DMA control */
  932. #define FLD_APB_RISC_EN 0x00000010
  933. #define FLD_APB_FIFO_EN 0x00000001
  934. /* ***************************************************************************** */
  935. #define VID_SRC_A_FMT_CTL 0x130810 /* Video A format control */
  936. #define VID_SRC_B_FMT_CTL 0x130910 /* Video B format control */
  937. #define VID_SRC_C_FMT_CTL 0x130A10 /* Video C format control */
  938. #define VID_SRC_D_FMT_CTL 0x130B10 /* Video D format control */
  939. #define VID_SRC_E_FMT_CTL 0x130C10 /* Video E format control */
  940. #define VID_SRC_F_FMT_CTL 0x130D10 /* Video F format control */
  941. #define VID_SRC_I_FMT_CTL 0x130E10 /* Video I format control */
  942. #define VID_SRC_J_FMT_CTL 0x130F10 /* Video J format control */
  943. /* ***************************************************************************** */
  944. #define VID_SRC_A_ACTIVE_CTL1 0x130814 /* Video A active control 1 */
  945. #define VID_SRC_B_ACTIVE_CTL1 0x130914 /* Video B active control 1 */
  946. #define VID_SRC_C_ACTIVE_CTL1 0x130A14 /* Video C active control 1 */
  947. #define VID_SRC_D_ACTIVE_CTL1 0x130B14 /* Video D active control 1 */
  948. #define VID_SRC_E_ACTIVE_CTL1 0x130C14 /* Video E active control 1 */
  949. #define VID_SRC_F_ACTIVE_CTL1 0x130D14 /* Video F active control 1 */
  950. #define VID_SRC_I_ACTIVE_CTL1 0x130E14 /* Video I active control 1 */
  951. #define VID_SRC_J_ACTIVE_CTL1 0x130F14 /* Video J active control 1 */
  952. /* ***************************************************************************** */
  953. #define VID_SRC_A_ACTIVE_CTL2 0x130818 /* Video A active control 2 */
  954. #define VID_SRC_B_ACTIVE_CTL2 0x130918 /* Video B active control 2 */
  955. #define VID_SRC_C_ACTIVE_CTL2 0x130A18 /* Video C active control 2 */
  956. #define VID_SRC_D_ACTIVE_CTL2 0x130B18 /* Video D active control 2 */
  957. #define VID_SRC_E_ACTIVE_CTL2 0x130C18 /* Video E active control 2 */
  958. #define VID_SRC_F_ACTIVE_CTL2 0x130D18 /* Video F active control 2 */
  959. #define VID_SRC_I_ACTIVE_CTL2 0x130E18 /* Video I active control 2 */
  960. #define VID_SRC_J_ACTIVE_CTL2 0x130F18 /* Video J active control 2 */
  961. /* ***************************************************************************** */
  962. #define VID_SRC_A_CDT_SZ 0x13081C /* Video A CDT size */
  963. #define VID_SRC_B_CDT_SZ 0x13091C /* Video B CDT size */
  964. #define VID_SRC_C_CDT_SZ 0x130A1C /* Video C CDT size */
  965. #define VID_SRC_D_CDT_SZ 0x130B1C /* Video D CDT size */
  966. #define VID_SRC_E_CDT_SZ 0x130C1C /* Video E CDT size */
  967. #define VID_SRC_F_CDT_SZ 0x130D1C /* Video F CDT size */
  968. #define VID_SRC_I_CDT_SZ 0x130E1C /* Video I CDT size */
  969. #define VID_SRC_J_CDT_SZ 0x130F1C /* Video J CDT size */
  970. /* ***************************************************************************** */
  971. /* Audio I/F */
  972. /* ***************************************************************************** */
  973. #define AUD_DST_A_DMA 0x140000 /* Audio Int A DMA data port */
  974. #define AUD_SRC_A_DMA 0x140008 /* Audio Int A DMA data port */
  975. #define AUD_A_GPCNT 0x140010 /* Audio Int A gp counter */
  976. #define FLD_AUD_A_GP_CNT 0x0000FFFF
  977. #define AUD_A_GPCNT_CTL 0x140014 /* Audio Int A gp control */
  978. #define AUD_A_LNGTH 0x140018 /* Audio Int A line length */
  979. #define AUD_A_CFG 0x14001C /* Audio Int A configuration */
  980. /* ***************************************************************************** */
  981. #define AUD_DST_B_DMA 0x140100 /* Audio Int B DMA data port */
  982. #define AUD_SRC_B_DMA 0x140108 /* Audio Int B DMA data port */
  983. #define AUD_B_GPCNT 0x140110 /* Audio Int B gp counter */
  984. #define FLD_AUD_B_GP_CNT 0x0000FFFF
  985. #define AUD_B_GPCNT_CTL 0x140114 /* Audio Int B gp control */
  986. #define AUD_B_LNGTH 0x140118 /* Audio Int B line length */
  987. #define AUD_B_CFG 0x14011C /* Audio Int B configuration */
  988. /* ***************************************************************************** */
  989. #define AUD_DST_C_DMA 0x140200 /* Audio Int C DMA data port */
  990. #define AUD_SRC_C_DMA 0x140208 /* Audio Int C DMA data port */
  991. #define AUD_C_GPCNT 0x140210 /* Audio Int C gp counter */
  992. #define FLD_AUD_C_GP_CNT 0x0000FFFF
  993. #define AUD_C_GPCNT_CTL 0x140214 /* Audio Int C gp control */
  994. #define AUD_C_LNGTH 0x140218 /* Audio Int C line length */
  995. #define AUD_C_CFG 0x14021C /* Audio Int C configuration */
  996. /* ***************************************************************************** */
  997. #define AUD_DST_D_DMA 0x140300 /* Audio Int D DMA data port */
  998. #define AUD_SRC_D_DMA 0x140308 /* Audio Int D DMA data port */
  999. #define AUD_D_GPCNT 0x140310 /* Audio Int D gp counter */
  1000. #define FLD_AUD_D_GP_CNT 0x0000FFFF
  1001. #define AUD_D_GPCNT_CTL 0x140314 /* Audio Int D gp control */
  1002. #define AUD_D_LNGTH 0x140318 /* Audio Int D line length */
  1003. #define AUD_D_CFG 0x14031C /* Audio Int D configuration */
  1004. /* ***************************************************************************** */
  1005. #define AUD_SRC_E_DMA 0x140400 /* Audio Int E DMA data port */
  1006. #define AUD_E_GPCNT 0x140410 /* Audio Int E gp counter */
  1007. #define FLD_AUD_E_GP_CNT 0x0000FFFF
  1008. #define AUD_E_GPCNT_CTL 0x140414 /* Audio Int E gp control */
  1009. #define AUD_E_CFG 0x14041C /* Audio Int E configuration */
  1010. /* ***************************************************************************** */
  1011. #define FLD_AUD_DST_LN_LNGTH 0x00000FFF
  1012. #define FLD_AUD_DST_PK_MODE 0x00004000
  1013. #define FLD_AUD_CLK_ENABLE 0x00000200
  1014. #define FLD_AUD_MASTER_MODE 0x00000002
  1015. #define FLD_AUD_SONY_MODE 0x00000001
  1016. #define FLD_AUD_CLK_SELECT_PLL_D 0x00001800
  1017. #define FLD_AUD_DST_ENABLE 0x00020000
  1018. #define FLD_AUD_SRC_ENABLE 0x00010000
  1019. /* ***************************************************************************** */
  1020. #define AUD_INT_DMA_CTL 0x140500 /* Audio Int DMA control */
  1021. #define FLD_AUD_SRC_E_RISC_EN 0x00008000
  1022. #define FLD_AUD_SRC_C_RISC_EN 0x00004000
  1023. #define FLD_AUD_SRC_B_RISC_EN 0x00002000
  1024. #define FLD_AUD_SRC_A_RISC_EN 0x00001000
  1025. #define FLD_AUD_DST_D_RISC_EN 0x00000800
  1026. #define FLD_AUD_DST_C_RISC_EN 0x00000400
  1027. #define FLD_AUD_DST_B_RISC_EN 0x00000200
  1028. #define FLD_AUD_DST_A_RISC_EN 0x00000100
  1029. #define FLD_AUD_SRC_E_FIFO_EN 0x00000080
  1030. #define FLD_AUD_SRC_C_FIFO_EN 0x00000040
  1031. #define FLD_AUD_SRC_B_FIFO_EN 0x00000020
  1032. #define FLD_AUD_SRC_A_FIFO_EN 0x00000010
  1033. #define FLD_AUD_DST_D_FIFO_EN 0x00000008
  1034. #define FLD_AUD_DST_C_FIFO_EN 0x00000004
  1035. #define FLD_AUD_DST_B_FIFO_EN 0x00000002
  1036. #define FLD_AUD_DST_A_FIFO_EN 0x00000001
  1037. /* ***************************************************************************** */
  1038. /* */
  1039. /* Mobilygen Interface Registers */
  1040. /* */
  1041. /* ***************************************************************************** */
  1042. /* Mobilygen Interface A */
  1043. /* ***************************************************************************** */
  1044. #define MB_IF_A_DMA 0x150000 /* MBIF A DMA data port */
  1045. #define MB_IF_A_GPCN 0x150008 /* MBIF A GP counter */
  1046. #define MB_IF_A_GPCN_CTRL 0x15000C
  1047. #define MB_IF_A_DMA_CTRL 0x150010
  1048. #define MB_IF_A_LENGTH 0x150014
  1049. #define MB_IF_A_HDMA_XFER_SZ 0x150018
  1050. #define MB_IF_A_HCMD 0x15001C
  1051. #define MB_IF_A_HCONFIG 0x150020
  1052. #define MB_IF_A_DATA_STRUCT_0 0x150024
  1053. #define MB_IF_A_DATA_STRUCT_1 0x150028
  1054. #define MB_IF_A_DATA_STRUCT_2 0x15002C
  1055. #define MB_IF_A_DATA_STRUCT_3 0x150030
  1056. #define MB_IF_A_DATA_STRUCT_4 0x150034
  1057. #define MB_IF_A_DATA_STRUCT_5 0x150038
  1058. #define MB_IF_A_DATA_STRUCT_6 0x15003C
  1059. #define MB_IF_A_DATA_STRUCT_7 0x150040
  1060. #define MB_IF_A_DATA_STRUCT_8 0x150044
  1061. #define MB_IF_A_DATA_STRUCT_9 0x150048
  1062. #define MB_IF_A_DATA_STRUCT_A 0x15004C
  1063. #define MB_IF_A_DATA_STRUCT_B 0x150050
  1064. #define MB_IF_A_DATA_STRUCT_C 0x150054
  1065. #define MB_IF_A_DATA_STRUCT_D 0x150058
  1066. #define MB_IF_A_DATA_STRUCT_E 0x15005C
  1067. #define MB_IF_A_DATA_STRUCT_F 0x150060
  1068. /* ***************************************************************************** */
  1069. /* Mobilygen Interface B */
  1070. /* ***************************************************************************** */
  1071. #define MB_IF_B_DMA 0x160000 /* MBIF A DMA data port */
  1072. #define MB_IF_B_GPCN 0x160008 /* MBIF A GP counter */
  1073. #define MB_IF_B_GPCN_CTRL 0x16000C
  1074. #define MB_IF_B_DMA_CTRL 0x160010
  1075. #define MB_IF_B_LENGTH 0x160014
  1076. #define MB_IF_B_HDMA_XFER_SZ 0x160018
  1077. #define MB_IF_B_HCMD 0x16001C
  1078. #define MB_IF_B_HCONFIG 0x160020
  1079. #define MB_IF_B_DATA_STRUCT_0 0x160024
  1080. #define MB_IF_B_DATA_STRUCT_1 0x160028
  1081. #define MB_IF_B_DATA_STRUCT_2 0x16002C
  1082. #define MB_IF_B_DATA_STRUCT_3 0x160030
  1083. #define MB_IF_B_DATA_STRUCT_4 0x160034
  1084. #define MB_IF_B_DATA_STRUCT_5 0x160038
  1085. #define MB_IF_B_DATA_STRUCT_6 0x16003C
  1086. #define MB_IF_B_DATA_STRUCT_7 0x160040
  1087. #define MB_IF_B_DATA_STRUCT_8 0x160044
  1088. #define MB_IF_B_DATA_STRUCT_9 0x160048
  1089. #define MB_IF_B_DATA_STRUCT_A 0x16004C
  1090. #define MB_IF_B_DATA_STRUCT_B 0x160050
  1091. #define MB_IF_B_DATA_STRUCT_C 0x160054
  1092. #define MB_IF_B_DATA_STRUCT_D 0x160058
  1093. #define MB_IF_B_DATA_STRUCT_E 0x16005C
  1094. #define MB_IF_B_DATA_STRUCT_F 0x160060
  1095. /* MB_DMA_CTRL */
  1096. #define FLD_MB_IF_RISC_EN 0x00000010
  1097. #define FLD_MB_IF_FIFO_EN 0x00000001
  1098. /* MB_LENGTH */
  1099. #define FLD_MB_IF_LN_LNGTH 0x00000FFF
  1100. /* MB_HCMD register */
  1101. #define FLD_MB_HCMD_H_GO 0x80000000
  1102. #define FLD_MB_HCMD_H_BUSY 0x40000000
  1103. #define FLD_MB_HCMD_H_DMA_HOLD 0x10000000
  1104. #define FLD_MB_HCMD_H_DMA_BUSY 0x08000000
  1105. #define FLD_MB_HCMD_H_DMA_TYPE 0x04000000
  1106. #define FLD_MB_HCMD_H_DMA_XACT 0x02000000
  1107. #define FLD_MB_HCMD_H_RW_N 0x01000000
  1108. #define FLD_MB_HCMD_H_ADDR 0x00FF0000
  1109. #define FLD_MB_HCMD_H_DATA 0x0000FFFF
  1110. /* ***************************************************************************** */
  1111. /* I2C #1 */
  1112. /* ***************************************************************************** */
  1113. #define I2C1_ADDR 0x180000 /* I2C #1 address */
  1114. #define FLD_I2C_DADDR 0xfe000000 /* RW [31:25] I2C Device Address */
  1115. /* RO [24] reserved */
  1116. /* ***************************************************************************** */
  1117. #define FLD_I2C_SADDR 0x00FFFFFF /* RW [23:0] I2C Sub-address */
  1118. /* ***************************************************************************** */
  1119. #define I2C1_WDATA 0x180004 /* I2C #1 write data */
  1120. #define FLD_I2C_WDATA 0xFFFFFFFF /* RW [31:0] */
  1121. /* ***************************************************************************** */
  1122. #define I2C1_CTRL 0x180008 /* I2C #1 control */
  1123. #define FLD_I2C_PERIOD 0xFF000000 /* RW [31:24] */
  1124. #define FLD_I2C_SCL_IN 0x00200000 /* RW [21] */
  1125. #define FLD_I2C_SDA_IN 0x00100000 /* RW [20] */
  1126. /* RO [19:18] reserved */
  1127. #define FLD_I2C_SCL_OUT 0x00020000 /* RW [17] */
  1128. #define FLD_I2C_SDA_OUT 0x00010000 /* RW [16] */
  1129. /* RO [15] reserved */
  1130. #define FLD_I2C_DATA_LEN 0x00007000 /* RW [14:12] */
  1131. #define FLD_I2C_SADDR_INC 0x00000800 /* RW [11] */
  1132. /* RO [10:9] reserved */
  1133. #define FLD_I2C_SADDR_LEN 0x00000300 /* RW [9:8] */
  1134. /* RO [7:6] reserved */
  1135. #define FLD_I2C_SOFT 0x00000020 /* RW [5] */
  1136. #define FLD_I2C_NOSTOP 0x00000010 /* RW [4] */
  1137. #define FLD_I2C_EXTEND 0x00000008 /* RW [3] */
  1138. #define FLD_I2C_SYNC 0x00000004 /* RW [2] */
  1139. #define FLD_I2C_READ_SA 0x00000002 /* RW [1] */
  1140. #define FLD_I2C_READ_WRN 0x00000001 /* RW [0] */
  1141. /* ***************************************************************************** */
  1142. #define I2C1_RDATA 0x18000C /* I2C #1 read data */
  1143. #define FLD_I2C_RDATA 0xFFFFFFFF /* RO [31:0] */
  1144. /* ***************************************************************************** */
  1145. #define I2C1_STAT 0x180010 /* I2C #1 status */
  1146. #define FLD_I2C_XFER_IN_PROG 0x00000002 /* RO [1] */
  1147. #define FLD_I2C_RACK 0x00000001 /* RO [0] */
  1148. /* ***************************************************************************** */
  1149. /* I2C #2 */
  1150. /* ***************************************************************************** */
  1151. #define I2C2_ADDR 0x190000 /* I2C #2 address */
  1152. /* ***************************************************************************** */
  1153. #define I2C2_WDATA 0x190004 /* I2C #2 write data */
  1154. /* ***************************************************************************** */
  1155. #define I2C2_CTRL 0x190008 /* I2C #2 control */
  1156. /* ***************************************************************************** */
  1157. #define I2C2_RDATA 0x19000C /* I2C #2 read data */
  1158. /* ***************************************************************************** */
  1159. #define I2C2_STAT 0x190010 /* I2C #2 status */
  1160. /* ***************************************************************************** */
  1161. /* I2C #3 */
  1162. /* ***************************************************************************** */
  1163. #define I2C3_ADDR 0x1A0000 /* I2C #3 address */
  1164. /* ***************************************************************************** */
  1165. #define I2C3_WDATA 0x1A0004 /* I2C #3 write data */
  1166. /* ***************************************************************************** */
  1167. #define I2C3_CTRL 0x1A0008 /* I2C #3 control */
  1168. /* ***************************************************************************** */
  1169. #define I2C3_RDATA 0x1A000C /* I2C #3 read data */
  1170. /* ***************************************************************************** */
  1171. #define I2C3_STAT 0x1A0010 /* I2C #3 status */
  1172. /* ***************************************************************************** */
  1173. /* UART */
  1174. /* ***************************************************************************** */
  1175. #define UART_CTL 0x1B0000 /* UART Control Register */
  1176. #define FLD_LOOP_BACK_EN (1 << 7) /* RW field - default 0 */
  1177. #define FLD_RX_TRG_SZ (3 << 2) /* RW field - default 0 */
  1178. #define FLD_RX_EN (1 << 1) /* RW field - default 0 */
  1179. #define FLD_TX_EN (1 << 0) /* RW field - default 0 */
  1180. /* ***************************************************************************** */
  1181. #define UART_BRD 0x1B0004 /* UART Baud Rate Divisor */
  1182. #define FLD_BRD 0x0000FFFF /* RW field - default 0x197 */
  1183. /* ***************************************************************************** */
  1184. #define UART_DBUF 0x1B0008 /* UART Tx/Rx Data BuFFer */
  1185. #define FLD_DB 0xFFFFFFFF /* RW field - default 0 */
  1186. /* ***************************************************************************** */
  1187. #define UART_ISR 0x1B000C /* UART Interrupt Status */
  1188. #define FLD_RXD_TIMEOUT_EN (1 << 7) /* RW field - default 0 */
  1189. #define FLD_FRM_ERR_EN (1 << 6) /* RW field - default 0 */
  1190. #define FLD_RXD_RDY_EN (1 << 5) /* RW field - default 0 */
  1191. #define FLD_TXD_EMPTY_EN (1 << 4) /* RW field - default 0 */
  1192. #define FLD_RXD_OVERFLOW (1 << 3) /* RW field - default 0 */
  1193. #define FLD_FRM_ERR (1 << 2) /* RW field - default 0 */
  1194. #define FLD_RXD_RDY (1 << 1) /* RW field - default 0 */
  1195. #define FLD_TXD_EMPTY (1 << 0) /* RW field - default 0 */
  1196. /* ***************************************************************************** */
  1197. #define UART_CNT 0x1B0010 /* UART Tx/Rx FIFO Byte Count */
  1198. #define FLD_TXD_CNT (0x1F << 8) /* RW field - default 0 */
  1199. #define FLD_RXD_CNT (0x1F << 0) /* RW field - default 0 */
  1200. /* ***************************************************************************** */
  1201. /* Motion Detection */
  1202. #define MD_CH0_GRID_BLOCK_YCNT 0x170014
  1203. #define MD_CH1_GRID_BLOCK_YCNT 0x170094
  1204. #define MD_CH2_GRID_BLOCK_YCNT 0x170114
  1205. #define MD_CH3_GRID_BLOCK_YCNT 0x170194
  1206. #define MD_CH4_GRID_BLOCK_YCNT 0x170214
  1207. #define MD_CH5_GRID_BLOCK_YCNT 0x170294
  1208. #define MD_CH6_GRID_BLOCK_YCNT 0x170314
  1209. #define MD_CH7_GRID_BLOCK_YCNT 0x170394
  1210. #define PIXEL_FRMT_422 4
  1211. #define PIXEL_FRMT_411 5
  1212. #define PIXEL_FRMT_Y8 6
  1213. #define PIXEL_ENGINE_VIP1 0
  1214. #define PIXEL_ENGINE_VIP2 1
  1215. #endif /* Athena_REGISTERS */