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

VxWorks

开发平台:

C/C++

  1. /* nvr4122.h - NEC NVR4122 header file */
  2. /* Copyright 1984-2001 Wind River Systems, Inc. */
  3. /*
  4. modification history
  5. --------------------
  6. 01c,17apr01,sru  update after code review
  7. 01b,09apr01,sru  cleanup after code review
  8. 01a,05jan01,sru  fix cache sizes
  9. 01a,03jan01,sru  created.
  10. */
  11. /*
  12. DESCRIPTION
  13. This file contains constants for the NEC VR4122.  Register address
  14. definitions for the various subsystems are provided, and some (but
  15. not all) register field definitions are provided.
  16. */
  17. #ifndef __INCnvr4122h
  18. #define __INCnvr4122h
  19. #include "vxWorks.h"
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. #define VR4122_ICACHE_SIZE 32768
  24. #define VR4122_DCACHE_SIZE 16384
  25. /* VR4122 register definitions. */
  26. #define VR4122_REG_BASE   (0x0f000000+K1BASE)
  27. #ifdef _ASMLANGUAGE
  28. #define VR4122_REG32(reg) (VR4122_REG_BASE + (reg))
  29. #define VR4122_REG16(reg) (VR4122_REG_BASE + (reg))
  30. #define VR4122_REG8(reg) (VR4122_REG_BASE + (reg))
  31. #else
  32. #define VR4122_REG32(reg) ((volatile UINT32 *)(VR4122_REG_BASE + (reg)))
  33. #define VR4122_REG16(reg) ((volatile UINT16 *)(VR4122_REG_BASE + (reg)))
  34. #define VR4122_REG8(reg) ((volatile UINT8 *)(VR4122_REG_BASE + (reg)))
  35. #endif /* _ASMLANGUAGE */
  36. /* BCU registers */
  37. #define VR4122_BCUCNTREG1 VR4122_REG16(0x00)
  38. #define VR4122_ROMSIZEREG VR4122_REG16(0x04)
  39. #define VR4122_ROMSPEEDREG VR4122_REG16(0x06)
  40. #define VR4122_IO0SPEEDREG VR4122_REG16(0x08)
  41. #define VR4122_IO1SPEEDREG VR4122_REG16(0x0a)
  42. #define VR4122_REVIDREG VR4122_REG16(0x10)
  43. #define VR4122_CLKSPEEDREG VR4122_REG16(0x14)
  44. #define VR4122_BCUCNTREG3 VR4122_REG16(0x16)
  45. #define VR4122_BCUCACHECNTREG VR4122_REG16(0x18)
  46. /* BCUCNTREG1 bit definitions */
  47. #define VR4122_PAGESIZE 0x3000
  48. #define VR4122_PAGEROM2 0x0400
  49. #define VR4122_PAGEROM0 0x0100
  50. #define VR4122_ROMWEN2 0x0040
  51. #define VR4122_ROMWEN0 0x0010
  52. /* DMAAU registers */
  53. #define VR4122_CSIIBALREG VR4122_REG16(0x20)
  54. #define VR4122_CSIIBAHREG VR4122_REG16(0x22)
  55. #define VR4122_CSIIALREG VR4122_REG16(0x24)
  56. #define VR4122_CSIIAHREG VR4122_REG16(0x26)
  57. #define VR4122_CSIOBALREG VR4122_REG16(0x28)
  58. #define VR4122_CSIOBAHREG VR4122_REG16(0x2a)
  59. #define VR4122_CSIOALREG VR4122_REG16(0x2c)
  60. #define VR4122_CSIOAHREG VR4122_REG16(0x2e)
  61. #define VR4122_FIRBALREG VR4122_REG16(0x30)
  62. #define VR4122_FIRBAHREG VR4122_REG16(0x32)
  63. #define VR4122_FIRALREG VR4122_REG16(0x34)
  64. #define VR4122_FIRAHREG VR4122_REG16(0x36)
  65. #define VR4122_RAMBALREG VR4122_REG16(0x1e0)
  66. #define VR4122_RAMBAHREG VR4122_REG16(0x1e2)
  67. #define VR4122_RAMALREG VR4122_REG16(0x1e4)
  68. #define VR4122_RAMAHREG VR4122_REG16(0x1e6)
  69. #define VR4122_IOBALREG VR4122_REG16(0x1e8)
  70. #define VR4122_IOBAHREG VR4122_REG16(0x1ea)
  71. #define VR4122_IOALREG VR4122_REG16(0x1ec)
  72. #define VR4122_IOAHREG VR4122_REG16(0x1ee)
  73. /* DCU registers */
  74. #define VR4122_DMARSTREG VR4122_REG16(0x40)
  75. #define VR4122_DMAIDLEREG VR4122_REG16(0x42)
  76. #define VR4122_DMASENREG VR4122_REG16(0x44)
  77. #define VR4122_DMAMSKREG VR4122_REG16(0x46)
  78. #define VR4122_DMAREQREG VR4122_REG16(0x48)
  79. #define VR4122_TDREG VR4122_REG16(0x4a)
  80. #define VR4122_DMAABITREG VR4122_REG16(0x4c)
  81. #define VR4122_CONTROLREG VR4122_REG16(0x4e)
  82. #define VR4122_BASSCNTLREG VR4122_REG16(0x50)
  83. #define VR4122_BASSCNTHREG VR4122_REG16(0x52)
  84. #define VR4122_CURRENTCNTLREG VR4122_REG16(0x54)
  85. #define VR4122_CURRENTCNTHREG VR4122_REG16(0x56)
  86. #define VR4122_TCINTR VR4122_REG16(0x58)
  87. /* DMA mask bit definitions */
  88. #define  VR4122_DMAMSKAIOR 0x0008
  89. #define  VR4122_DMAMSKCOUT 0x0004
  90. #define  VR4122_DMAMSKCIN 0x0002
  91. #define  VR4122_DMAMSKFOUT 0x0001
  92. /* CMU register */
  93. #define VR4122_CMUCLKMSK VR4122_REG16(0x60)
  94. #define VR4122_MSKPCIU 0x2000
  95. #define VR4122_MSKSCSI 0x1000
  96. #define VR4122_MSKDSIU 0x0800
  97. #define VR4122_MSKFFIR 0x0400
  98. #define VR4122_MSKSSIU 0x0100
  99. #define VR4122_MSKCSI 0x0040
  100. #define VR4122_MSKFIR 0x0010
  101. #define VR4122_MSKSIU 0x0002
  102. /* ICU system and system mask registers */
  103. #define VR4122_SYSINT1REG   VR4122_REG16(0x80)
  104. #define VR4122_GIUINTLREG   VR4122_REG16(0x88)
  105. #define VR4122_DSIUINTREG   VR4122_REG16(0x8a)
  106. #define VR4122_MSYSINT1REG VR4122_REG16(0x8c)
  107. #define VR4122_MGIUINTLREG   VR4122_REG16(0x94)
  108. #define VR4122_MDSIUINTREG   VR4122_REG16(0x96)
  109. #define VR4122_NMIREG VR4122_REG16(0x98)
  110. #define VR4122_SOFTINTREG VR4122_REG16(0x9a)
  111. #define VR4122_SYSINT2REG VR4122_REG16(0xa0)
  112. #define VR4122_GIUINTHREG VR4122_REG16(0xa2)
  113. #define VR4122_FIRINTREG VR4122_REG16(0xa4)
  114. #define VR4122_MSYSINT2REG VR4122_REG16(0xa6)
  115. #define VR4122_MGIUINTHREG VR4122_REG16(0xa8)
  116. #define VR4122_MFIRINTREG VR4122_REG16(0xaa)
  117. #define VR4122_PCIINTREG VR4122_REG16(0xac)
  118. #define VR4122_SCUINTREG VR4122_REG16(0xae)
  119. #define VR4122_CSIINTREG VR4122_REG16(0xb0)
  120. #define VR4122_MPCIINTREG VR4122_REG16(0xb2)
  121. #define VR4122_MSCUINTREG VR4122_REG16(0xb4)
  122. #define VR4122_MCSIINTREG VR4122_REG16(0xb6)
  123. #define VR4122_BCUINTREG VR4122_REG16(0xb8)
  124. #define VR4122_MBCUINTREG VR4122_REG16(0xba)
  125. #define VR4122_CLKRUNINTR 0x1000
  126. #define VR4122_SOFTINTR 0x0800
  127. #define VR4122_SIUINTR 0x0200
  128. #define VR4122_GIUINTR 0x0100
  129. #define VR4122_ETIMERINTR 0x0008
  130. #define VR4122_RTCL1INTR 0x0004
  131. #define VR4122_POWERINTR 0x0002
  132. #define VR4122_BATINTR 0x0001
  133. #define VR4122_BCUINTR 0x0200
  134. #define VR4122_CSIINTR 0x0100
  135. #define VR4122_SCUINTR 0x0080
  136. #define VR4122_PCIINTR 0x0040
  137. #define VR4122_DSIUINTR 0x0020
  138. #define VR4122_FIRINTR 0x0010
  139. #define VR4122_TCLKINTR 0x0008
  140. #define VR4122_LEDINTR 0x0002
  141. #define VR4122_RTCL2INTR 0x0001
  142. /* PMU registers */
  143. #define VR4122_PMUINTREG VR4122_REG16(0xc0)
  144. #define VR4122_PMUCNTREG VR4122_REG16(0xc2)
  145. #define VR4122_PMUINT2REG VR4122_REG16(0xc4)
  146. #define VR4122_PMUCNT2REG VR4122_REG16(0xc6)
  147. #define VR4122_PMUWAITREG VR4122_REG16(0xc8)
  148. #define VR4122_PMUTCLKDIVREG VR4122_REG16(0xcc)
  149. #define VR4122_PMUINTRCLKDIVREG VR4122_REG16(0xce)
  150. #define VR4122_HALTIMERRST 0x0004
  151. /* RTC registers */
  152. #define VR4122_ETIMELREG VR4122_REG16(0x100)
  153. #define VR4122_ETIMEMREG VR4122_REG16(0x102)
  154. #define VR4122_ETIMEHREG VR4122_REG16(0x104)
  155. #define VR4122_ECMPLREG VR4122_REG16(0x108)
  156. #define VR4122_ECMPMREG VR4122_REG16(0x10a)
  157. #define VR4122_ECMPHREG VR4122_REG16(0x10c)
  158. #define VR4122_RTCL1LREG VR4122_REG16(0x110)
  159. #define VR4122_RTCL1HREG VR4122_REG16(0x112)
  160. #define VR4122_RTCL1CNTLREG VR4122_REG16(0x114)
  161. #define VR4122_RTCL1CNTHREG VR4122_REG16(0x116)
  162. #define VR4122_RTCL2LREG VR4122_REG16(0x118)
  163. #define VR4122_RTCL2HREG VR4122_REG16(0x11a)
  164. #define VR4122_RTCL2CNTLREG VR4122_REG16(0x11c)
  165. #define VR4122_RTCL2CNTHREG VR4122_REG16(0x11e)
  166. #define VR4122_TCLKLREG VR4122_REG16(0x120)
  167. #define VR4122_TCLKHREG VR4122_REG16(0x122)
  168. #define VR4122_TCLKCNTLREG VR4122_REG16(0x124)
  169. #define VR4122_TCLKCNTHREG VR4122_REG16(0x126)
  170. #define VR4122_RTCINTREG VR4122_REG16(0x13e)
  171. #define VR4122_RTCINTR0 0x0001
  172. #define VR4122_RTCINTR1 0x0002
  173. #define VR4122_RTCINTR2 0x0004
  174. #define VR4122_RTCINTR3 0x0008
  175. /* 
  176.  * The VR4122 RTC module has identical functionality to the VR4102
  177.  * RTC module. In order to use the nvr4102RTCTimer.c driver, we must
  178.  * define the VR4102_... constants in terms of the VR4122 values.
  179.  */
  180. #define VR4102_ETIMELREG VR4122_ETIMELREG
  181. #define VR4102_ETIMEMRE VR4122_ETIMEMRE
  182. #define VR4102_ETIMEHREG VR4122_ETIMEHREG
  183. #define VR4102_ECMPLREG  VR4122_ECMPLREG
  184. #define VR4102_ECMPMREG  VR4122_ECMPMREG
  185. #define VR4102_ECMPHREG  VR4122_ECMPHREG
  186. #define VR4102_RTCL1LREG VR4122_RTCL1LREG
  187. #define VR4102_RTCL1HREG VR4122_RTCL1HREG
  188. #define VR4102_RTCL1CNTLREG VR4122_RTCL1CNTLREG
  189. #define VR4102_RTCL1CNTHREG VR4122_RTCL1CNTHREG
  190. #define VR4102_RTCL2LREG VR4122_RTCL2LREG
  191. #define VR4102_RTCL2HREG VR4122_RTCL2HREG
  192. #define VR4102_RTCL2CNTLREG VR4122_RTCL2CNTLREG
  193. #define VR4102_RTCL2CNTHREG VR4122_RTCL2CNTHREG
  194. #define VR4102_TCLKLREG VR4122_TCLKLREG
  195. #define VR4102_TCLKHREG VR4122_TCLKHREG
  196. #define VR4102_TCLKCNTLREG VR4122_TCLKCNTLREG
  197. #define VR4102_TCLKCNTHREG VR4122_TCLKCNTHREG
  198. #define VR4102_RTCINTREG   VR4122_RTCINTREG
  199. #define VR4102_RTC_RTCINTR0 VR4122_RTCINTR0
  200. #define VR4102_RTC_RTCINTR1 VR4122_RTCINTR1
  201. #define VR4102_RTC_RTCINTR2 VR4122_RTCINTR2
  202. #define VR4102_RTC_RTCINTR3 VR4122_RTCINTR3
  203. #define VR4102_RTCL1INTR VR4122_RTCL1INTR
  204. #define VR4102_RTCL2INTR VR4122_RTCL2INTR
  205. #define VR4102_ICU_MSYSINT1REG VR4122_MSYSINT1REG
  206. /* GIU registers */
  207. #define VR4122_GIUIOSELL VR4122_REG16(0x140)
  208. #define VR4122_GIUIOSELH VR4122_REG16(0x142)
  209. #define VR4122_GIUPIODL VR4122_REG16(0x144)
  210. #define VR4122_GIUPIODH VR4122_REG16(0x146)
  211. #define VR4122_GIUINTSTATL VR4122_REG16(0x148)
  212. #define VR4122_GIUINTSTATH VR4122_REG16(0x14a)
  213. #define VR4122_GIUINTENL VR4122_REG16(0x14c)
  214. #define VR4122_GIUINTENH VR4122_REG16(0x14e)
  215. #define VR4122_GIUINTTYPL VR4122_REG16(0x150)
  216. #define VR4122_GIUINTTYPH VR4122_REG16(0x152)
  217. #define VR4122_GIUINTALSELL VR4122_REG16(0x154)
  218. #define VR4122_GIUINTALSELH VR4122_REG16(0x156)
  219. #define VR4122_GIUINTHTSELL VR4122_REG16(0x158)
  220. #define VR4122_GIUINTHTSELH VR4122_REG16(0x15a)
  221. #define VR4122_GIUPODATEN VR4122_REG16(0x15c)
  222. #define VR4122_GIUPODATL VR4122_REG16(0x15e)
  223. /* 
  224.  * The general-purpose I/O pins (GPIO) are enabled and controlled via
  225.  * identically placed bits in the GIU registers and some of the ICU
  226.  * registers. This set of pin masks can be used with whichever registers
  227.  * contain GPIO pin configuration. 
  228.  */
  229. #define  VR4122_GPIO_PIN_31 0x8000
  230. #define  VR4122_GPIO_PIN_30 0x4000
  231. #define  VR4122_GPIO_PIN_29 0x2000
  232. #define  VR4122_GPIO_PIN_28 0x1000
  233. #define  VR4122_GPIO_PIN_27 0x0800
  234. #define  VR4122_GPIO_PIN_26 0x0400
  235. #define  VR4122_GPIO_PIN_25 0x0200
  236. #define  VR4122_GPIO_PIN_24 0x0100
  237. #define  VR4122_GPIO_PIN_23 0x0080
  238. #define  VR4122_GPIO_PIN_22 0x0040
  239. #define  VR4122_GPIO_PIN_21 0x0020
  240. #define  VR4122_GPIO_PIN_20 0x0010
  241. #define  VR4122_GPIO_PIN_19 0x0008
  242. #define  VR4122_GPIO_PIN_18 0x0004
  243. #define  VR4122_GPIO_PIN_17 0x0002
  244. #define  VR4122_GPIO_PIN_16 0x0001
  245. #define  VR4122_GPIO_PIN_15 0x8000
  246. #define  VR4122_GPIO_PIN_14 0x4000
  247. #define  VR4122_GPIO_PIN_13 0x2000
  248. #define  VR4122_GPIO_PIN_12 0x1000
  249. #define  VR4122_GPIO_PIN_11 0x0800
  250. #define  VR4122_GPIO_PIN_10 0x0400
  251. #define  VR4122_GPIO_PIN_9 0x0200
  252. #define  VR4122_GPIO_PIN_8 0x0100
  253. #define  VR4122_GPIO_PIN_7 0x0080
  254. #define  VR4122_GPIO_PIN_6 0x0040
  255. #define  VR4122_GPIO_PIN_5 0x0020
  256. #define  VR4122_GPIO_PIN_4 0x0010
  257. #define  VR4122_GPIO_PIN_3 0x0008
  258. #define  VR4122_GPIO_PIN_2 0x0004
  259. #define  VR4122_GPIO_PIN_1 0x0002
  260. #define  VR4122_GPIO_PIN_0 0x0001
  261. /* SCI registers */
  262. #define VR4122_TIMOUTCNTREG VR4122_REG16(0x1000)
  263. #define VR4122_TIMOUTCOUNTREG VR4122_REG16(0x1002)
  264. #define VR4122_ERRLADDRESSREG VR4122_REG16(0x1004)
  265. #define VR4122_ERRHADDRESSREG VR4122_REG16(0x1006)
  266. #define VR4122_SCUINTRREG VR4122_REG16(0x1008)
  267. /* SDRAMU registers */
  268. #define VR4122_SDRAMMODEREG VR4122_REG16(0x400)
  269. #define VR4122_SDRAMCNTREG VR4122_REG16(0x402)
  270. #define VR4122_BCURFCNTREG VR4122_REG16(0x404)
  271. #define VR4122_BCURFCOUNTREG VR4122_REG16(0x406)
  272. #define VR4122_RAMSIZEREG VR4122_REG16(0x408)
  273. /* PCIU registers */
  274. #define VR4122_PCIMMAW1REG VR4122_REG32(0xc00)
  275. #define VR4122_PCIMMAW2REG VR4122_REG32(0xc04)
  276. #define VR4122_PCITAW1REG VR4122_REG32(0xc08)
  277. #define VR4122_PCITAW2REG VR4122_REG32(0xc0c)
  278. #define VR4122_PCIMIOAWREG VR4122_REG32(0xc10)
  279. #define VR4122_PCICONFDREG VR4122_REG32(0xc14)
  280. #define VR4122_PCICONFAREG VR4122_REG32(0xc18)
  281. #define VR4122_PCIMAILREG VR4122_REG32(0xc1c)
  282. #define VR4122_BUSERRADREG VR4122_REG32(0xc24)
  283. #define VR4122_INTCNTSTAREG VR4122_REG32(0xc28)
  284. #define VR4122_PCIEXACCREG VR4122_REG32(0xc2c)
  285. #define VR4122_PCIRECONTREG VR4122_REG32(0xc30)
  286. #define VR4122_PCIENREG VR4122_REG32(0xc34)
  287. #define VR4122_PCICLKSELREG VR4122_REG32(0xc38)
  288. #define VR4122_PCITRDYVREG VR4122_REG32(0xc3c)
  289. #define VR4122_PCICLKRUNREG VR4122_REG16(0xc60)
  290. #define VR4122_PCICLKSEL_DIV_1  0x2
  291. #define VR4122_PCICLKSEL_DIV_2  0x0
  292. #define VR4122_PCICLKSEL_DIV_4  0x1
  293. #define VR4122_PCICONFIGDONE 0x00000004 /* PCIENREG */
  294. #define VR4122_PCICLKRUN 0x0001 /* PCICLKRUNREG */
  295. #define VR4122_PCISTOPEN 0x8000 /* PCICLKRUNREG */
  296. #define VR4122_PCIIBA 0xFF000000 /* PCIM*AW*REG */
  297. #define VR4122_PCIMSK 0x000FE000 /* PCIM*AW*REG, PCITAWnREG */
  298. #define VR4122_PCIWINEN 0x00001000 /* PCIM*AW*REG, PCITAWnREG */
  299. #define VR4122_PCIPCIA 0x000000FF /* PCIM*AW*REG */
  300. #define VR4122_PCIITA 0x000007FF /* PCITAWnREG */
  301. /* PCI Config Registers */
  302. #define VR4122_PCICONF_IDENT VR4122_REG32(0xd00)
  303. #define VR4122_PCICONF_CMDSR VR4122_REG32(0xd04)
  304. #define VR4122_PCICONF_REVCLASS VR4122_REG32(0xd08)
  305. #define VR4122_PCICONF_CACHELAT VR4122_REG32(0xd0c)
  306. #define VR4122_PCICONF_MAILBA VR4122_REG32(0xd10)
  307. #define VR4122_PCICONF_PCIMBA1 VR4122_REG32(0xd14)
  308. #define VR4122_PCICONF_PCIMBA2 VR4122_REG32(0xd18)
  309. #define VR4122_PCICONF_PCIINT VR4122_REG32(0xd3c)
  310. #define VR4122_PCICONF_RETVAL VR4122_REG32(0xd40)
  311. /* DSIU registers */
  312. #define VR4122_DSIURB VR4122_REG8(0x820) /* SUILC7 = 0, read */
  313. #define VR4122_DSIUTH VR4122_REG8(0x820) /* SUILC7 = 0, write */
  314. #define VR4122_DSIUDLL VR4122_REG8(0x820) /* SUILC7 = 1 */
  315. #define VR4122_DSIUIE VR4122_REG8(0x821) /* SUILC7 = 0 */
  316. #define VR4122_DSIUDLM VR4122_REG8(0x821) /* SUILC7 = 1 */
  317. #define VR4122_DSIUIID VR4122_REG8(0x822) /* read */
  318. #define VR4122_DSIUFC VR4122_REG8(0x822) /* write */
  319. #define VR4122_DSIULC VR4122_REG8(0x823)
  320. #define VR4122_DSIUMC VR4122_REG8(0x824)
  321. #define VR4122_DSIULS VR4122_REG8(0x825)
  322. #define VR4122_DSIUMS VR4122_REG8(0x826)
  323. #define VR4122_DSIUSC VR4122_REG8(0x827)
  324. #define VR4122_DSIURESET VR4122_SIURESET /* Common with SIU */
  325. #define VR4122_DSIU_BASE VR4122_DSIURB
  326. #define VR4122_DSIU_DELTA 1
  327. #define VR4122_DSIU_XTAL 18432000 /* crystal input to 16550 */
  328. #define VR4122_DSIURST 0x0002 /* in SIURESET register */
  329. /* LED registers */
  330. #define VR4122_LEDHTSREG VR4122_REG16(0x180)
  331. #define VR4122_LEDLTSREG VR4122_REG16(0x182)
  332. #define VR4122_LEDCNTREG VR4122_REG16(0x188)
  333. #define VR4122_LEDASTCREG VR4122_REG16(0x18a)
  334. #define VR4122_LEDINTREG VR4122_REG16(0x18c)
  335. /* SIU registers */
  336. #define VR4122_SIURB VR4122_REG8(0x800) /* SUILC7 = 0, read */
  337. #define VR4122_SIUTH VR4122_REG8(0x800) /* SUILC7 = 0, write */
  338. #define VR4122_SIUDLL VR4122_REG8(0x800) /* SUILC7 = 1 */
  339. #define VR4122_SIUIE VR4122_REG8(0x801) /* SUILC7 = 0 */
  340. #define VR4122_SIUDLM VR4122_REG8(0x801) /* SUILC7 = 1 */
  341. #define VR4122_SIUIID VR4122_REG8(0x802) /* read */
  342. #define VR4122_SIUFC VR4122_REG8(0x802) /* write */
  343. #define VR4122_SIULC VR4122_REG8(0x803)
  344. #define VR4122_SIUMC VR4122_REG8(0x804)
  345. #define VR4122_SIULS VR4122_REG8(0x805)
  346. #define VR4122_SIUMS VR4122_REG8(0x806)
  347. #define VR4122_SIUSC VR4122_REG8(0x807)
  348. #define VR4122_SIUIRSEL VR4122_REG8(0x808)
  349. #define VR4122_SIURESET VR4122_REG8(0x809) /* common with DSIU */
  350. #define VR4122_SIUCSEL VR4122_REG8(0x80a)
  351. #define VR4122_SIU_BASE VR4122_SIURB
  352. #define VR4122_SIU_DELTA 1
  353. #define VR4122_SIU_XTAL 18432000 /* crystal input to 16550 */
  354. #define VR4122_SIURST 0x0001 /* in SIURESET register */
  355. /* CSI registers */
  356. #define VR4122_CSI_MODEREG VR4122_REG16(0x1a0)
  357. #define VR4122_CSI_CLKSELREG VR4122_REG16(0x1a1)
  358. #define VR4122_CSI_SIRBREG VR4122_REG16(0x1a2)
  359. #define VR4122_CSI_SOTBREG VR4122_REG16(0x1a4)
  360. #define VR4122_CSI_SIRBEREG VR4122_REG16(0x1a6)
  361. #define VR4122_CSI_SOTBFREG VR4122_REG16(0x1a8)
  362. #define VR4122_CSI_SIOREG VR4122_REG16(0x1aa)
  363. #define VR4122_CSI_CNTREG VR4122_REG16(0x1b0)
  364. #define VR4122_CSI_INTREG VR4122_REG16(0x1b2)
  365. #define VR4122_CSI_IFIFOVREG VR4122_REG16(0x1b4)
  366. #define VR4122_CSI_OFIFOVREG VR4122_REG16(0x1b6)
  367. #define VR4122_CSI_IFIFOREG VR4122_REG16(0x1b8)
  368. #define VR4122_CSI_OFIFOREG VR4122_REG16(0x1ba)
  369. #define VR4122_CSI_FIFOTRGREG VR4122_REG16(0x1bc)
  370. /* FIR registers - not included */
  371. /* Clock rate values for different settings of CLKSEL[2:0] pins/jumpers. */
  372. #define CPU_PCLOCK_RATE_111 200700000
  373. #define CPU_PCLOCK_RATE_110 180600000
  374. #define CPU_PCLOCK_RATE_101 164200000
  375. #define CPU_PCLOCK_RATE_100 150500000
  376. #define CPU_PCLOCK_RATE_011 129000000
  377. #define CPU_PCLOCK_RATE_010 100400000
  378. #define CPU_PCLOCK_RATE_001  90300000
  379. #define CPU_PCLOCK_RATE_000  78500000
  380. /* Miscellaneous */
  381. #define NUM_4122_TTY 2 /* SIU + DSIU */
  382. #ifdef __cplusplus
  383. }
  384. #endif
  385. #endif /* __INCnvr4122h */