nvr4131.h
上传用户:luoyougen
上传日期:2008-05-12
资源大小:23136k
文件大小:16k
源码类别:

VxWorks

开发平台:

C/C++

  1. /* nvr4131.h - NEC NVR4131 header file */
  2. /* Copyright 2002 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01c,20jun02,sru  Added constants for cache control (SPR 78924).
  7. 01b,12mar02,sru  added VR4131_PCICLKSEL_DIV_3 and VR4131_PCIDMACTRLREG.
  8. 01a,10oct01,sru  created, based upon nvr4122.h
  9. */
  10. /*
  11. DESCRIPTION
  12. This file contains constants for the NEC Vr4131.  Register address
  13. definitions for the various subsystems are provided, and some (but
  14. not all) register field definitions are provided.
  15. */
  16. #ifndef __INCnvr4131h
  17. #define __INCnvr4131h
  18. #include "vxWorks.h"
  19. #ifdef __cplusplus
  20. extern "C" {
  21. #endif
  22. /* VR4131 cache sizes */
  23. #define VR4131_ICACHE_SIZE 16384
  24. #define VR4131_DCACHE_SIZE 16384
  25. /* VR4131 cache line configuration (config bits in C0_CONFIG) */
  26. #define VR4131_ICACHE_LINE_32_MASK   (1 << 5)
  27. #define VR4131_DCACHE_LINE_32_MASK   (1 << 4)
  28. #define VR4131_CACHE_LINE_SIZE_16 16
  29. #define VR4131_CACHE_LINE_SIZE_32 32
  30. /* VR4131 register definitions. */
  31. #define VR4131_REG_BASE   (0x0f000000+K1BASE)
  32. #ifdef _ASMLANGUAGE
  33. #define VR4131_REG32(reg) (VR4131_REG_BASE + (reg))
  34. #define VR4131_REG16(reg) (VR4131_REG_BASE + (reg))
  35. #define VR4131_REG8(reg) (VR4131_REG_BASE + (reg))
  36. #else
  37. #define VR4131_REG32(reg) ((volatile UINT32 *)(VR4131_REG_BASE + (reg)))
  38. #define VR4131_REG16(reg) ((volatile UINT16 *)(VR4131_REG_BASE + (reg)))
  39. #define VR4131_REG8(reg) ((volatile UINT8 *)(VR4131_REG_BASE + (reg)))
  40. #endif /* _ASMLANGUAGE */
  41. /* BCU registers */
  42. #define VR4131_BCUCNTREG1 VR4131_REG16(0x00)
  43. #define VR4131_ROMSIZEREG VR4131_REG16(0x04)
  44. #define VR4131_ROMSPEEDREG VR4131_REG16(0x06)
  45. #define VR4131_IO0SPEEDREG VR4131_REG16(0x08)
  46. #define VR4131_IO1SPEEDREG VR4131_REG16(0x0a)
  47. #define VR4131_REVIDREG VR4131_REG16(0x10)
  48. #define VR4131_CLKSPEEDREG VR4131_REG16(0x14)
  49. #define VR4131_BCUCNTREG3 VR4131_REG16(0x16)
  50. #define VR4131_BCUCACHECNTREG VR4131_REG16(0x18)
  51. /* BCUCNTREG1 bit definitions */
  52. #define VR4131_PAGESIZE 0x3000
  53. #define VR4131_PAGEROM2 0x0400
  54. #define VR4131_PAGEROM0 0x0100
  55. #define VR4131_ROMWEN2 0x0040
  56. #define VR4131_ROMWEN0 0x0010
  57. /* DMAAU registers */
  58. #define VR4131_CSIIBALREG VR4131_REG16(0x20)
  59. #define VR4131_CSIIBAHREG VR4131_REG16(0x22)
  60. #define VR4131_CSIIALREG VR4131_REG16(0x24)
  61. #define VR4131_CSIIAHREG VR4131_REG16(0x26)
  62. #define VR4131_CSIOBALREG VR4131_REG16(0x28)
  63. #define VR4131_CSIOBAHREG VR4131_REG16(0x2a)
  64. #define VR4131_CSIOALREG VR4131_REG16(0x2c)
  65. #define VR4131_CSIOAHREG VR4131_REG16(0x2e)
  66. #define VR4131_FIRBALREG VR4131_REG16(0x30)
  67. #define VR4131_FIRBAHREG VR4131_REG16(0x32)
  68. #define VR4131_FIRALREG VR4131_REG16(0x34)
  69. #define VR4131_FIRAHREG VR4131_REG16(0x36)
  70. #define VR4131_RAMBALREG VR4131_REG16(0x1e0)
  71. #define VR4131_RAMBAHREG VR4131_REG16(0x1e2)
  72. #define VR4131_RAMALREG VR4131_REG16(0x1e4)
  73. #define VR4131_RAMAHREG VR4131_REG16(0x1e6)
  74. #define VR4131_IOBALREG VR4131_REG16(0x1e8)
  75. #define VR4131_IOBAHREG VR4131_REG16(0x1ea)
  76. #define VR4131_IOALREG VR4131_REG16(0x1ec)
  77. #define VR4131_IOAHREG VR4131_REG16(0x1ee)
  78. /* DCU registers */
  79. #define VR4131_DMARSTREG VR4131_REG16(0x40)
  80. #define VR4131_DMAIDLEREG VR4131_REG16(0x42)
  81. #define VR4131_DMASENREG VR4131_REG16(0x44)
  82. #define VR4131_DMAMSKREG VR4131_REG16(0x46)
  83. #define VR4131_DMAREQREG VR4131_REG16(0x48)
  84. #define VR4131_TDREG VR4131_REG16(0x4a)
  85. #define VR4131_DMAABITREG VR4131_REG16(0x4c)
  86. #define VR4131_CONTROLREG VR4131_REG16(0x4e)
  87. #define VR4131_BASSCNTLREG VR4131_REG16(0x50)
  88. #define VR4131_BASSCNTHREG VR4131_REG16(0x52)
  89. #define VR4131_CURRENTCNTLREG VR4131_REG16(0x54)
  90. #define VR4131_CURRENTCNTHREG VR4131_REG16(0x56)
  91. #define VR4131_TCINTR VR4131_REG16(0x58)
  92. /* DMA mask bit definitions */
  93. #define  VR4131_DMAMSKAIOR 0x0008
  94. #define  VR4131_DMAMSKCOUT 0x0004
  95. #define  VR4131_DMAMSKCIN 0x0002
  96. #define  VR4131_DMAMSKFOUT 0x0001
  97. /* CMU register */
  98. #define VR4131_CMUCLKMSK VR4131_REG16(0x60)
  99. #define VR4131_MSKPCIU 0x2080
  100. #define VR4131_MSKSCSI 0x1000
  101. #define VR4131_MSKDSIU 0x0800
  102. #define VR4131_MSKFFIR 0x0400
  103. #define VR4131_MSKSSIU 0x0100
  104. #define VR4131_MSKCSI 0x0040
  105. #define VR4131_MSKFIR 0x0010
  106. #define VR4131_MSKSIU 0x0002
  107. /* ICU system and system mask registers */
  108. #define VR4131_SYSINT1REG   VR4131_REG16(0x80)
  109. #define VR4131_GIUINTLREG   VR4131_REG16(0x88)
  110. #define VR4131_DSIUINTREG   VR4131_REG16(0x8a)
  111. #define VR4131_MSYSINT1REG VR4131_REG16(0x8c)
  112. #define VR4131_MGIUINTLREG   VR4131_REG16(0x94)
  113. #define VR4131_MDSIUINTREG   VR4131_REG16(0x96)
  114. #define VR4131_NMIREG VR4131_REG16(0x98)
  115. #define VR4131_SOFTINTREG VR4131_REG16(0x9a)
  116. #define VR4131_SYSINT2REG VR4131_REG16(0xa0)
  117. #define VR4131_GIUINTHREG VR4131_REG16(0xa2)
  118. #define VR4131_FIRINTREG VR4131_REG16(0xa4)
  119. #define VR4131_MSYSINT2REG VR4131_REG16(0xa6)
  120. #define VR4131_MGIUINTHREG VR4131_REG16(0xa8)
  121. #define VR4131_MFIRINTREG VR4131_REG16(0xaa)
  122. #define VR4131_PCIINTREG VR4131_REG16(0xac)
  123. #define VR4131_SCUINTREG VR4131_REG16(0xae)
  124. #define VR4131_CSIINTREG VR4131_REG16(0xb0)
  125. #define VR4131_MPCIINTREG VR4131_REG16(0xb2)
  126. #define VR4131_MSCUINTREG VR4131_REG16(0xb4)
  127. #define VR4131_MCSIINTREG VR4131_REG16(0xb6)
  128. #define VR4131_BCUINTREG VR4131_REG16(0xb8)
  129. #define VR4131_MBCUINTREG VR4131_REG16(0xba)
  130. #define VR4131_CLKRUNINTR 0x1000
  131. #define VR4131_SOFTINTR 0x0800
  132. #define VR4131_SIUINTR 0x0200
  133. #define VR4131_GIUINTR 0x0100
  134. #define VR4131_ETIMERINTR 0x0008
  135. #define VR4131_RTCL1INTR 0x0004
  136. #define VR4131_POWERINTR 0x0002
  137. #define VR4131_BATINTR 0x0001
  138. #define VR4131_BCUINTR 0x0200
  139. #define VR4131_CSIINTR 0x0100
  140. #define VR4131_SCUINTR 0x0080
  141. #define VR4131_PCIINTR 0x0040
  142. #define VR4131_DSIUINTR 0x0020
  143. #define VR4131_FIRINTR 0x0010
  144. #define VR4131_TCLKINTR 0x0008
  145. #define VR4131_LEDINTR 0x0002
  146. #define VR4131_RTCL2INTR 0x0001
  147. /* PMU registers */
  148. #define VR4131_PMUINTREG VR4131_REG16(0xc0)
  149. #define VR4131_PMUCNTREG VR4131_REG16(0xc2)
  150. #define VR4131_PMUINT2REG VR4131_REG16(0xc4)
  151. #define VR4131_PMUCNT2REG VR4131_REG16(0xc6)
  152. #define VR4131_PMUWAITREG VR4131_REG16(0xc8)
  153. #define VR4131_PMUTCLKDIVREG VR4131_REG16(0xcc)
  154. #define VR4131_PMUINTRCLKDIVREG VR4131_REG16(0xce)
  155. #define VR4131_HALTIMERRST 0x0004
  156. /* RTC registers */
  157. #define VR4131_ETIMELREG VR4131_REG16(0x100)
  158. #define VR4131_ETIMEMREG VR4131_REG16(0x102)
  159. #define VR4131_ETIMEHREG VR4131_REG16(0x104)
  160. #define VR4131_ECMPLREG VR4131_REG16(0x108)
  161. #define VR4131_ECMPMREG VR4131_REG16(0x10a)
  162. #define VR4131_ECMPHREG VR4131_REG16(0x10c)
  163. #define VR4131_RTCL1LREG VR4131_REG16(0x110)
  164. #define VR4131_RTCL1HREG VR4131_REG16(0x112)
  165. #define VR4131_RTCL1CNTLREG VR4131_REG16(0x114)
  166. #define VR4131_RTCL1CNTHREG VR4131_REG16(0x116)
  167. #define VR4131_RTCL2LREG VR4131_REG16(0x118)
  168. #define VR4131_RTCL2HREG VR4131_REG16(0x11a)
  169. #define VR4131_RTCL2CNTLREG VR4131_REG16(0x11c)
  170. #define VR4131_RTCL2CNTHREG VR4131_REG16(0x11e)
  171. #define VR4131_TCLKLREG VR4131_REG16(0x120)
  172. #define VR4131_TCLKHREG VR4131_REG16(0x122)
  173. #define VR4131_TCLKCNTLREG VR4131_REG16(0x124)
  174. #define VR4131_TCLKCNTHREG VR4131_REG16(0x126)
  175. #define VR4131_RTCINTREG VR4131_REG16(0x13e)
  176. #define VR4131_RTCINTR0 0x0001
  177. #define VR4131_RTCINTR1 0x0002
  178. #define VR4131_RTCINTR2 0x0004
  179. #define VR4131_RTCINTR3 0x0008
  180. /* 
  181.  * The VR4131 RTC module has identical functionality to the VR4102
  182.  * RTC module. In order to use the nvr4102RTCTimer.c driver, we must
  183.  * define the VR4102_... constants in terms of the VR4131 values.
  184.  */
  185. #define VR4102_ETIMELREG VR4131_ETIMELREG
  186. #define VR4102_ETIMEMRE VR4131_ETIMEMRE
  187. #define VR4102_ETIMEHREG VR4131_ETIMEHREG
  188. #define VR4102_ECMPLREG  VR4131_ECMPLREG
  189. #define VR4102_ECMPMREG  VR4131_ECMPMREG
  190. #define VR4102_ECMPHREG  VR4131_ECMPHREG
  191. #define VR4102_RTCL1LREG VR4131_RTCL1LREG
  192. #define VR4102_RTCL1HREG VR4131_RTCL1HREG
  193. #define VR4102_RTCL1CNTLREG VR4131_RTCL1CNTLREG
  194. #define VR4102_RTCL1CNTHREG VR4131_RTCL1CNTHREG
  195. #define VR4102_RTCL2LREG VR4131_RTCL2LREG
  196. #define VR4102_RTCL2HREG VR4131_RTCL2HREG
  197. #define VR4102_RTCL2CNTLREG VR4131_RTCL2CNTLREG
  198. #define VR4102_RTCL2CNTHREG VR4131_RTCL2CNTHREG
  199. #define VR4102_TCLKLREG VR4131_TCLKLREG
  200. #define VR4102_TCLKHREG VR4131_TCLKHREG
  201. #define VR4102_TCLKCNTLREG VR4131_TCLKCNTLREG
  202. #define VR4102_TCLKCNTHREG VR4131_TCLKCNTHREG
  203. #define VR4102_RTCINTREG   VR4131_RTCINTREG
  204. #define VR4102_RTC_RTCINTR0 VR4131_RTCINTR0
  205. #define VR4102_RTC_RTCINTR1 VR4131_RTCINTR1
  206. #define VR4102_RTC_RTCINTR2 VR4131_RTCINTR2
  207. #define VR4102_RTC_RTCINTR3 VR4131_RTCINTR3
  208. #define VR4102_RTCL1INTR VR4131_RTCL1INTR
  209. #define VR4102_RTCL2INTR VR4131_RTCL2INTR
  210. #define VR4102_ICU_MSYSINT1REG VR4131_MSYSINT1REG
  211. /* GIU registers */
  212. #define VR4131_GIUIOSELL VR4131_REG16(0x140)
  213. #define VR4131_GIUIOSELH VR4131_REG16(0x142)
  214. #define VR4131_GIUPIODL VR4131_REG16(0x144)
  215. #define VR4131_GIUPIODH VR4131_REG16(0x146)
  216. #define VR4131_GIUINTSTATL VR4131_REG16(0x148)
  217. #define VR4131_GIUINTSTATH VR4131_REG16(0x14a)
  218. #define VR4131_GIUINTENL VR4131_REG16(0x14c)
  219. #define VR4131_GIUINTENH VR4131_REG16(0x14e)
  220. #define VR4131_GIUINTTYPL VR4131_REG16(0x150)
  221. #define VR4131_GIUINTTYPH VR4131_REG16(0x152)
  222. #define VR4131_GIUINTALSELL VR4131_REG16(0x154)
  223. #define VR4131_GIUINTALSELH VR4131_REG16(0x156)
  224. #define VR4131_GIUINTHTSELL VR4131_REG16(0x158)
  225. #define VR4131_GIUINTHTSELH VR4131_REG16(0x15a)
  226. #define VR4131_GIUPODATEN VR4131_REG16(0x15c)
  227. #define VR4131_GIUPODATL VR4131_REG16(0x15e)
  228. /* 
  229.  * The general-purpose I/O pins (GPIO) are enabled and controlled via
  230.  * identically placed bits in the GIU registers and some of the ICU
  231.  * registers. This set of pin masks can be used with whichever registers
  232.  * contain GPIO pin configuration. 
  233.  */
  234. #define  VR4131_GPIO_PIN_31 0x8000
  235. #define  VR4131_GPIO_PIN_30 0x4000
  236. #define  VR4131_GPIO_PIN_29 0x2000
  237. #define  VR4131_GPIO_PIN_28 0x1000
  238. #define  VR4131_GPIO_PIN_27 0x0800
  239. #define  VR4131_GPIO_PIN_26 0x0400
  240. #define  VR4131_GPIO_PIN_25 0x0200
  241. #define  VR4131_GPIO_PIN_24 0x0100
  242. #define  VR4131_GPIO_PIN_23 0x0080
  243. #define  VR4131_GPIO_PIN_22 0x0040
  244. #define  VR4131_GPIO_PIN_21 0x0020
  245. #define  VR4131_GPIO_PIN_20 0x0010
  246. #define  VR4131_GPIO_PIN_19 0x0008
  247. #define  VR4131_GPIO_PIN_18 0x0004
  248. #define  VR4131_GPIO_PIN_17 0x0002
  249. #define  VR4131_GPIO_PIN_16 0x0001
  250. #define  VR4131_GPIO_PIN_15 0x8000
  251. #define  VR4131_GPIO_PIN_14 0x4000
  252. #define  VR4131_GPIO_PIN_13 0x2000
  253. #define  VR4131_GPIO_PIN_12 0x1000
  254. #define  VR4131_GPIO_PIN_11 0x0800
  255. #define  VR4131_GPIO_PIN_10 0x0400
  256. #define  VR4131_GPIO_PIN_9 0x0200
  257. #define  VR4131_GPIO_PIN_8 0x0100
  258. #define  VR4131_GPIO_PIN_7 0x0080
  259. #define  VR4131_GPIO_PIN_6 0x0040
  260. #define  VR4131_GPIO_PIN_5 0x0020
  261. #define  VR4131_GPIO_PIN_4 0x0010
  262. #define  VR4131_GPIO_PIN_3 0x0008
  263. #define  VR4131_GPIO_PIN_2 0x0004
  264. #define  VR4131_GPIO_PIN_1 0x0002
  265. #define  VR4131_GPIO_PIN_0 0x0001
  266. /* SCI registers */
  267. #define VR4131_TIMOUTCNTREG VR4131_REG16(0x1000)
  268. #define VR4131_TIMOUTCOUNTREG VR4131_REG16(0x1002)
  269. #define VR4131_ERRLADDRESSREG VR4131_REG16(0x1004)
  270. #define VR4131_ERRHADDRESSREG VR4131_REG16(0x1006)
  271. #define VR4131_SCUINTRREG VR4131_REG16(0x1008)
  272. /* SDRAMU registers */
  273. #define VR4131_SDRAMMODEREG VR4131_REG16(0x400)
  274. #define VR4131_SDRAMCNTREG VR4131_REG16(0x402)
  275. #define VR4131_BCURFCNTREG VR4131_REG16(0x404)
  276. #define VR4131_BCURFCOUNTREG VR4131_REG16(0x406)
  277. #define VR4131_RAMSIZEREG VR4131_REG16(0x408)
  278. /* PCIU registers */
  279. #define VR4131_PCIMMAW1REG VR4131_REG32(0xc00)
  280. #define VR4131_PCIMMAW2REG VR4131_REG32(0xc04)
  281. #define VR4131_PCITAW1REG VR4131_REG32(0xc08)
  282. #define VR4131_PCITAW2REG VR4131_REG32(0xc0c)
  283. #define VR4131_PCIMIOAWREG VR4131_REG32(0xc10)
  284. #define VR4131_PCICONFDREG VR4131_REG32(0xc14)
  285. #define VR4131_PCICONFAREG VR4131_REG32(0xc18)
  286. #define VR4131_PCIMAILREG VR4131_REG32(0xc1c)
  287. #define VR4131_BUSERRADREG VR4131_REG32(0xc24)
  288. #define VR4131_INTCNTSTAREG VR4131_REG32(0xc28)
  289. #define VR4131_PCIEXACCREG VR4131_REG32(0xc2c)
  290. #define VR4131_PCIRECONTREG VR4131_REG32(0xc30)
  291. #define VR4131_PCIENREG VR4131_REG32(0xc34)
  292. #define VR4131_PCICLKSELREG VR4131_REG32(0xc38)
  293. #define VR4131_PCITRDYVREG VR4131_REG32(0xc3c)
  294. #define VR4131_PCICLKRUNREG VR4131_REG16(0xc60)
  295. #define VR4131_PCIDMACTRLREG VR4131_REG32(0xc80)
  296. #define VR4131_PCICLKSEL_DIV_1  0x2
  297. #define VR4131_PCICLKSEL_DIV_2  0x0
  298. #define VR4131_PCICLKSEL_DIV_3  0x3
  299. #define VR4131_PCICLKSEL_DIV_4  0x1
  300. #define VR4131_PCICONFIGDONE 0x00000004 /* PCIENREG */
  301. #define VR4131_PCICLKRUN 0x0001 /* PCICLKRUNREG */
  302. #define VR4131_PCISTOPEN 0x8000 /* PCICLKRUNREG */
  303. #define VR4131_PCIIBA 0xFF000000 /* PCIM*AW*REG */
  304. #define VR4131_PCIMSK 0x000FE000 /* PCIM*AW*REG, PCITAWnREG */
  305. #define VR4131_PCIWINEN 0x00001000 /* PCIM*AW*REG, PCITAWnREG */
  306. #define VR4131_PCIPCIA 0x000000FF /* PCIM*AW*REG */
  307. #define VR4131_PCIITA 0x000007FF /* PCITAWnREG */
  308. /* PCI Config Registers */
  309. #define VR4131_PCICONF_IDENT VR4131_REG32(0xd00)
  310. #define VR4131_PCICONF_CMDSR VR4131_REG32(0xd04)
  311. #define VR4131_PCICONF_REVCLASS VR4131_REG32(0xd08)
  312. #define VR4131_PCICONF_CACHELAT VR4131_REG32(0xd0c)
  313. #define VR4131_PCICONF_MAILBA VR4131_REG32(0xd10)
  314. #define VR4131_PCICONF_PCIMBA1 VR4131_REG32(0xd14)
  315. #define VR4131_PCICONF_PCIMBA2 VR4131_REG32(0xd18)
  316. #define VR4131_PCICONF_PCIINT VR4131_REG32(0xd3c)
  317. #define VR4131_PCICONF_RETVAL VR4131_REG32(0xd40)
  318. /* DSIU registers */
  319. #define VR4131_DSIURB VR4131_REG8(0x820) /* SUILC7 = 0, read */
  320. #define VR4131_DSIUTH VR4131_REG8(0x820) /* SUILC7 = 0, write */
  321. #define VR4131_DSIUDLL VR4131_REG8(0x820) /* SUILC7 = 1 */
  322. #define VR4131_DSIUIE VR4131_REG8(0x821) /* SUILC7 = 0 */
  323. #define VR4131_DSIUDLM VR4131_REG8(0x821) /* SUILC7 = 1 */
  324. #define VR4131_DSIUIID VR4131_REG8(0x822) /* read */
  325. #define VR4131_DSIUFC VR4131_REG8(0x822) /* write */
  326. #define VR4131_DSIULC VR4131_REG8(0x823)
  327. #define VR4131_DSIUMC VR4131_REG8(0x824)
  328. #define VR4131_DSIULS VR4131_REG8(0x825)
  329. #define VR4131_DSIUMS VR4131_REG8(0x826)
  330. #define VR4131_DSIUSC VR4131_REG8(0x827)
  331. #define VR4131_DSIURESET VR4131_SIURESET /* Common with SIU */
  332. #define VR4131_DSIU_BASE VR4131_DSIURB
  333. #define VR4131_DSIU_DELTA 1
  334. #define VR4131_DSIU_XTAL 18432000 /* crystal input to 16550 */
  335. #define VR4131_DSIURST 0x0002 /* in SIURESET register */
  336. /* LED registers */
  337. #define VR4131_LEDHTSREG VR4131_REG16(0x180)
  338. #define VR4131_LEDLTSREG VR4131_REG16(0x182)
  339. #define VR4131_LEDCNTREG VR4131_REG16(0x188)
  340. #define VR4131_LEDASTCREG VR4131_REG16(0x18a)
  341. #define VR4131_LEDINTREG VR4131_REG16(0x18c)
  342. /* SIU registers */
  343. #define VR4131_SIURB VR4131_REG8(0x800) /* SUILC7 = 0, read */
  344. #define VR4131_SIUTH VR4131_REG8(0x800) /* SUILC7 = 0, write */
  345. #define VR4131_SIUDLL VR4131_REG8(0x800) /* SUILC7 = 1 */
  346. #define VR4131_SIUIE VR4131_REG8(0x801) /* SUILC7 = 0 */
  347. #define VR4131_SIUDLM VR4131_REG8(0x801) /* SUILC7 = 1 */
  348. #define VR4131_SIUIID VR4131_REG8(0x802) /* read */
  349. #define VR4131_SIUFC VR4131_REG8(0x802) /* write */
  350. #define VR4131_SIULC VR4131_REG8(0x803)
  351. #define VR4131_SIUMC VR4131_REG8(0x804)
  352. #define VR4131_SIULS VR4131_REG8(0x805)
  353. #define VR4131_SIUMS VR4131_REG8(0x806)
  354. #define VR4131_SIUSC VR4131_REG8(0x807)
  355. #define VR4131_SIUIRSEL VR4131_REG8(0x808)
  356. #define VR4131_SIURESET VR4131_REG8(0x809) /* common with DSIU */
  357. #define VR4131_SIUCSEL VR4131_REG8(0x80a)
  358. #define VR4131_SIU_BASE VR4131_SIURB
  359. #define VR4131_SIU_DELTA 1
  360. #define VR4131_SIU_XTAL 18432000 /* crystal input to 16550 */
  361. #define VR4131_SIURST 0x0001 /* in SIURESET register */
  362. /* CSI registers */
  363. #define VR4131_CSI_MODEREG VR4131_REG16(0x1a0)
  364. #define VR4131_CSI_CLKSELREG VR4131_REG16(0x1a1)
  365. #define VR4131_CSI_SIRBREG VR4131_REG16(0x1a2)
  366. #define VR4131_CSI_SOTBREG VR4131_REG16(0x1a4)
  367. #define VR4131_CSI_SIRBEREG VR4131_REG16(0x1a6)
  368. #define VR4131_CSI_SOTBFREG VR4131_REG16(0x1a8)
  369. #define VR4131_CSI_SIOREG VR4131_REG16(0x1aa)
  370. #define VR4131_CSI_CNTREG VR4131_REG16(0x1b0)
  371. #define VR4131_CSI_INTREG VR4131_REG16(0x1b2)
  372. #define VR4131_CSI_IFIFOVREG VR4131_REG16(0x1b4)
  373. #define VR4131_CSI_OFIFOVREG VR4131_REG16(0x1b6)
  374. #define VR4131_CSI_IFIFOREG VR4131_REG16(0x1b8)
  375. #define VR4131_CSI_OFIFOREG VR4131_REG16(0x1ba)
  376. #define VR4131_CSI_FIFOTRGREG VR4131_REG16(0x1bc)
  377. /* FIR registers - not included */
  378. /* Clock rate values for different settings of CLKSEL[2:0] pins/jumpers. */
  379. #define CPU_PCLOCK_RATE_111 200700000
  380. #define CPU_PCLOCK_RATE_110 180600000
  381. #define CPU_PCLOCK_RATE_101 164200000
  382. #define CPU_PCLOCK_RATE_100 150500000
  383. #define CPU_PCLOCK_RATE_011 129000000
  384. #define CPU_PCLOCK_RATE_010 100400000
  385. #define CPU_PCLOCK_RATE_001  90300000
  386. #define CPU_PCLOCK_RATE_000  78500000
  387. /* Miscellaneous */
  388. #define NUM_4131_TTY 2 /* SIU + DSIU */
  389. #ifdef __cplusplus
  390. }
  391. #endif
  392. #endif /* __INCnvr4131h */