regs.h 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. #ifndef __REGS_2700G_
  2. #define __REGS_2700G_
  3. /* extern unsigned long virt_base_2700; */
  4. /* #define __REG_2700G(x) (*(volatile unsigned long*)((x)+virt_base_2700)) */
  5. #define __REG_2700G(x) ((x)+virt_base_2700)
  6. /* System Configuration Registers (0x0000_0000 0x0000_0010) */
  7. #define SYSCFG __REG_2700G(0x00000000)
  8. #define PFBASE __REG_2700G(0x00000004)
  9. #define PFCEIL __REG_2700G(0x00000008)
  10. #define POLLFLAG __REG_2700G(0x0000000c)
  11. #define SYSRST __REG_2700G(0x00000010)
  12. /* Interrupt Control Registers (0x0000_0014 0x0000_002F) */
  13. #define NINTPW __REG_2700G(0x00000014)
  14. #define MINTENABLE __REG_2700G(0x00000018)
  15. #define MINTSTAT __REG_2700G(0x0000001c)
  16. #define SINTENABLE __REG_2700G(0x00000020)
  17. #define SINTSTAT __REG_2700G(0x00000024)
  18. #define SINTCLR __REG_2700G(0x00000028)
  19. /* Clock Control Registers (0x0000_002C 0x0000_005F) */
  20. #define SYSCLKSRC __REG_2700G(0x0000002c)
  21. #define PIXCLKSRC __REG_2700G(0x00000030)
  22. #define CLKSLEEP __REG_2700G(0x00000034)
  23. #define COREPLL __REG_2700G(0x00000038)
  24. #define DISPPLL __REG_2700G(0x0000003c)
  25. #define PLLSTAT __REG_2700G(0x00000040)
  26. #define VOVRCLK __REG_2700G(0x00000044)
  27. #define PIXCLK __REG_2700G(0x00000048)
  28. #define MEMCLK __REG_2700G(0x0000004c)
  29. #define M24CLK __REG_2700G(0x00000050)
  30. #define MBXCLK __REG_2700G(0x00000054)
  31. #define SDCLK __REG_2700G(0x00000058)
  32. #define PIXCLKDIV __REG_2700G(0x0000005c)
  33. /* LCD Port Control Register (0x0000_0060 0x0000_006F) */
  34. #define LCD_CONFIG __REG_2700G(0x00000060)
  35. /* On-Die Frame Buffer Registers (0x0000_0064 0x0000_006B) */
  36. #define ODFBPWR __REG_2700G(0x00000064)
  37. #define ODFBSTAT __REG_2700G(0x00000068)
  38. /* GPIO Registers (0x0000_006C 0x0000_007F) */
  39. #define GPIOCGF __REG_2700G(0x0000006c)
  40. #define GPIOHI __REG_2700G(0x00000070)
  41. #define GPIOLO __REG_2700G(0x00000074)
  42. #define GPIOSTAT __REG_2700G(0x00000078)
  43. /* Pulse Width Modulator (PWM) Registers (0x0000_0200 0x0000_02FF) */
  44. #define PWMRST __REG_2700G(0x00000200)
  45. #define PWMCFG __REG_2700G(0x00000204)
  46. #define PWM0DIV __REG_2700G(0x00000210)
  47. #define PWM0DUTY __REG_2700G(0x00000214)
  48. #define PWM0PER __REG_2700G(0x00000218)
  49. #define PWM1DIV __REG_2700G(0x00000220)
  50. #define PWM1DUTY __REG_2700G(0x00000224)
  51. #define PWM1PER __REG_2700G(0x00000228)
  52. /* Identification (ID) Registers (0x0000_0300 0x0000_0FFF) */
  53. #define ID __REG_2700G(0x00000FF0)
  54. /* Local Memory (SDRAM) Interface Registers (0x0000_1000 0x0000_1FFF) */
  55. #define LMRST __REG_2700G(0x00001000)
  56. #define LMCFG __REG_2700G(0x00001004)
  57. #define LMPWR __REG_2700G(0x00001008)
  58. #define LMPWRSTAT __REG_2700G(0x0000100c)
  59. #define LMCEMR __REG_2700G(0x00001010)
  60. #define LMTYPE __REG_2700G(0x00001014)
  61. #define LMTIM __REG_2700G(0x00001018)
  62. #define LMREFRESH __REG_2700G(0x0000101c)
  63. #define LMPROTMIN __REG_2700G(0x00001020)
  64. #define LMPROTMAX __REG_2700G(0x00001024)
  65. #define LMPROTCFG __REG_2700G(0x00001028)
  66. #define LMPROTERR __REG_2700G(0x0000102c)
  67. /* Plane Controller Registers (0x0000_2000 0x0000_2FFF) */
  68. #define GSCTRL __REG_2700G(0x00002000)
  69. #define VSCTRL __REG_2700G(0x00002004)
  70. #define GBBASE __REG_2700G(0x00002020)
  71. #define VBBASE __REG_2700G(0x00002024)
  72. #define GDRCTRL __REG_2700G(0x00002040)
  73. #define VCMSK __REG_2700G(0x00002044)
  74. #define GSCADR __REG_2700G(0x00002060)
  75. #define VSCADR __REG_2700G(0x00002064)
  76. #define VUBASE __REG_2700G(0x00002084)
  77. #define VVBASE __REG_2700G(0x000020a4)
  78. #define GSADR __REG_2700G(0x000020c0)
  79. #define VSADR __REG_2700G(0x000020c4)
  80. #define HCCTRL __REG_2700G(0x00002100)
  81. #define HCSIZE __REG_2700G(0x00002110)
  82. #define HCPOS __REG_2700G(0x00002120)
  83. #define HCBADR __REG_2700G(0x00002130)
  84. #define HCCKMSK __REG_2700G(0x00002140)
  85. #define GPLUT __REG_2700G(0x00002150)
  86. #define DSCTRL __REG_2700G(0x00002154)
  87. #define DHT01 __REG_2700G(0x00002158)
  88. #define DHT02 __REG_2700G(0x0000215c)
  89. #define DHT03 __REG_2700G(0x00002160)
  90. #define DVT01 __REG_2700G(0x00002164)
  91. #define DVT02 __REG_2700G(0x00002168)
  92. #define DVT03 __REG_2700G(0x0000216c)
  93. #define DBCOL __REG_2700G(0x00002170)
  94. #define BGCOLOR __REG_2700G(0x00002174)
  95. #define DINTRS __REG_2700G(0x00002178)
  96. #define DINTRE __REG_2700G(0x0000217c)
  97. #define DINTRCNT __REG_2700G(0x00002180)
  98. #define DSIG __REG_2700G(0x00002184)
  99. #define DMCTRL __REG_2700G(0x00002188)
  100. #define CLIPCTRL __REG_2700G(0x0000218c)
  101. #define SPOCTRL __REG_2700G(0x00002190)
  102. #define SVCTRL __REG_2700G(0x00002194)
  103. /* 0x0000_2198 */
  104. /* 0x0000_21A8 VSCOEFF[0:4] Video Scalar Vertical Coefficient [0:4] 4.14.5 */
  105. #define VSCOEFF0 __REG_2700G(0x00002198)
  106. #define VSCOEFF1 __REG_2700G(0x0000219c)
  107. #define VSCOEFF2 __REG_2700G(0x000021a0)
  108. #define VSCOEFF3 __REG_2700G(0x000021a4)
  109. #define VSCOEFF4 __REG_2700G(0x000021a8)
  110. #define SHCTRL __REG_2700G(0x000021b0)
  111. /* 0x0000_21B4 */
  112. /* 0x0000_21D4 HSCOEFF[0:8] Video Scalar Horizontal Coefficient [0:8] 4.14.7 */
  113. #define HSCOEFF0 __REG_2700G(0x000021b4)
  114. #define HSCOEFF1 __REG_2700G(0x000021b8)
  115. #define HSCOEFF2 __REG_2700G(0x000021bc)
  116. #define HSCOEFF3 __REG_2700G(0x000021c0)
  117. #define HSCOEFF4 __REG_2700G(0x000021c4)
  118. #define HSCOEFF5 __REG_2700G(0x000021c8)
  119. #define HSCOEFF6 __REG_2700G(0x000021cc)
  120. #define HSCOEFF7 __REG_2700G(0x000021d0)
  121. #define HSCOEFF8 __REG_2700G(0x000021d4)
  122. #define SSSIZE __REG_2700G(0x000021D8)
  123. /* 0x0000_2200 */
  124. /* 0x0000_2240 VIDGAM[0:16] Video Gamma LUT Index [0:16] 4.15.2 */
  125. #define VIDGAM0 __REG_2700G(0x00002200)
  126. #define VIDGAM1 __REG_2700G(0x00002204)
  127. #define VIDGAM2 __REG_2700G(0x00002208)
  128. #define VIDGAM3 __REG_2700G(0x0000220c)
  129. #define VIDGAM4 __REG_2700G(0x00002210)
  130. #define VIDGAM5 __REG_2700G(0x00002214)
  131. #define VIDGAM6 __REG_2700G(0x00002218)
  132. #define VIDGAM7 __REG_2700G(0x0000221c)
  133. #define VIDGAM8 __REG_2700G(0x00002220)
  134. #define VIDGAM9 __REG_2700G(0x00002224)
  135. #define VIDGAM10 __REG_2700G(0x00002228)
  136. #define VIDGAM11 __REG_2700G(0x0000222c)
  137. #define VIDGAM12 __REG_2700G(0x00002230)
  138. #define VIDGAM13 __REG_2700G(0x00002234)
  139. #define VIDGAM14 __REG_2700G(0x00002238)
  140. #define VIDGAM15 __REG_2700G(0x0000223c)
  141. #define VIDGAM16 __REG_2700G(0x00002240)
  142. /* 0x0000_2250 */
  143. /* 0x0000_2290 GFXGAM[0:16] Graphics Gamma LUT Index [0:16] 4.15.3 */
  144. #define GFXGAM0 __REG_2700G(0x00002250)
  145. #define GFXGAM1 __REG_2700G(0x00002254)
  146. #define GFXGAM2 __REG_2700G(0x00002258)
  147. #define GFXGAM3 __REG_2700G(0x0000225c)
  148. #define GFXGAM4 __REG_2700G(0x00002260)
  149. #define GFXGAM5 __REG_2700G(0x00002264)
  150. #define GFXGAM6 __REG_2700G(0x00002268)
  151. #define GFXGAM7 __REG_2700G(0x0000226c)
  152. #define GFXGAM8 __REG_2700G(0x00002270)
  153. #define GFXGAM9 __REG_2700G(0x00002274)
  154. #define GFXGAM10 __REG_2700G(0x00002278)
  155. #define GFXGAM11 __REG_2700G(0x0000227c)
  156. #define GFXGAM12 __REG_2700G(0x00002280)
  157. #define GFXGAM13 __REG_2700G(0x00002284)
  158. #define GFXGAM14 __REG_2700G(0x00002288)
  159. #define GFXGAM15 __REG_2700G(0x0000228c)
  160. #define GFXGAM16 __REG_2700G(0x00002290)
  161. #define DLSTS __REG_2700G(0x00002300)
  162. #define DLLCTRL __REG_2700G(0x00002304)
  163. #define DVLNUM __REG_2700G(0x00002308)
  164. #define DUCTRL __REG_2700G(0x0000230c)
  165. #define DVECTRL __REG_2700G(0x00002310)
  166. #define DHDET __REG_2700G(0x00002314)
  167. #define DVDET __REG_2700G(0x00002318)
  168. #define DODMSK __REG_2700G(0x0000231c)
  169. #define CSC01 __REG_2700G(0x00002330)
  170. #define CSC02 __REG_2700G(0x00002334)
  171. #define CSC03 __REG_2700G(0x00002338)
  172. #define CSC04 __REG_2700G(0x0000233c)
  173. #define CSC05 __REG_2700G(0x00002340)
  174. #define FB_MEMORY_START __REG_2700G(0x00060000)
  175. #endif /* __REGS_2700G_ */