rcar_du_regs.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514
  1. /*
  2. * rcar_du_regs.h -- R-Car Display Unit Registers Definitions
  3. *
  4. * Copyright (C) 2013 Renesas Electronics Corporation
  5. *
  6. * Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com)
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2
  10. * as published by the Free Software Foundation.
  11. */
  12. #ifndef __RCAR_DU_REGS_H__
  13. #define __RCAR_DU_REGS_H__
  14. #define DU0_REG_OFFSET 0x00000
  15. #define DU1_REG_OFFSET 0x30000
  16. #define DU2_REG_OFFSET 0x40000
  17. /* -----------------------------------------------------------------------------
  18. * Display Control Registers
  19. */
  20. #define DSYSR 0x00000 /* display 1 */
  21. #define DSYSR_ILTS (1 << 29)
  22. #define DSYSR_DSEC (1 << 20)
  23. #define DSYSR_IUPD (1 << 16)
  24. #define DSYSR_DRES (1 << 9)
  25. #define DSYSR_DEN (1 << 8)
  26. #define DSYSR_TVM_MASTER (0 << 6)
  27. #define DSYSR_TVM_SWITCH (1 << 6)
  28. #define DSYSR_TVM_TVSYNC (2 << 6)
  29. #define DSYSR_TVM_MASK (3 << 6)
  30. #define DSYSR_SCM_INT_NONE (0 << 4)
  31. #define DSYSR_SCM_INT_SYNC (2 << 4)
  32. #define DSYSR_SCM_INT_VIDEO (3 << 4)
  33. #define DSYSR_SCM_MASK (3 << 4)
  34. #define DSMR 0x00004
  35. #define DSMR_VSPM (1 << 28)
  36. #define DSMR_ODPM (1 << 27)
  37. #define DSMR_DIPM_DISP (0 << 25)
  38. #define DSMR_DIPM_CSYNC (1 << 25)
  39. #define DSMR_DIPM_DE (3 << 25)
  40. #define DSMR_DIPM_MASK (3 << 25)
  41. #define DSMR_CSPM (1 << 24)
  42. #define DSMR_DIL (1 << 19)
  43. #define DSMR_VSL (1 << 18)
  44. #define DSMR_HSL (1 << 17)
  45. #define DSMR_DDIS (1 << 16)
  46. #define DSMR_CDEL (1 << 15)
  47. #define DSMR_CDEM_CDE (0 << 13)
  48. #define DSMR_CDEM_LOW (2 << 13)
  49. #define DSMR_CDEM_HIGH (3 << 13)
  50. #define DSMR_CDEM_MASK (3 << 13)
  51. #define DSMR_CDED (1 << 12)
  52. #define DSMR_ODEV (1 << 8)
  53. #define DSMR_CSY_VH_OR (0 << 6)
  54. #define DSMR_CSY_333 (2 << 6)
  55. #define DSMR_CSY_222 (3 << 6)
  56. #define DSMR_CSY_MASK (3 << 6)
  57. #define DSSR 0x00008
  58. #define DSSR_VC1FB_DSA0 (0 << 30)
  59. #define DSSR_VC1FB_DSA1 (1 << 30)
  60. #define DSSR_VC1FB_DSA2 (2 << 30)
  61. #define DSSR_VC1FB_INIT (3 << 30)
  62. #define DSSR_VC1FB_MASK (3 << 30)
  63. #define DSSR_VC0FB_DSA0 (0 << 28)
  64. #define DSSR_VC0FB_DSA1 (1 << 28)
  65. #define DSSR_VC0FB_DSA2 (2 << 28)
  66. #define DSSR_VC0FB_INIT (3 << 28)
  67. #define DSSR_VC0FB_MASK (3 << 28)
  68. #define DSSR_DFB(n) (1 << ((n)+15))
  69. #define DSSR_TVR (1 << 15)
  70. #define DSSR_FRM (1 << 14)
  71. #define DSSR_VBK (1 << 11)
  72. #define DSSR_RINT (1 << 9)
  73. #define DSSR_HBK (1 << 8)
  74. #define DSSR_ADC(n) (1 << ((n)-1))
  75. #define DSRCR 0x0000c
  76. #define DSRCR_TVCL (1 << 15)
  77. #define DSRCR_FRCL (1 << 14)
  78. #define DSRCR_VBCL (1 << 11)
  79. #define DSRCR_RICL (1 << 9)
  80. #define DSRCR_HBCL (1 << 8)
  81. #define DSRCR_ADCL(n) (1 << ((n)-1))
  82. #define DSRCR_MASK 0x0000cbff
  83. #define DIER 0x00010
  84. #define DIER_TVE (1 << 15)
  85. #define DIER_FRE (1 << 14)
  86. #define DIER_VBE (1 << 11)
  87. #define DIER_RIE (1 << 9)
  88. #define DIER_HBE (1 << 8)
  89. #define DIER_ADCE(n) (1 << ((n)-1))
  90. #define CPCR 0x00014
  91. #define CPCR_CP4CE (1 << 19)
  92. #define CPCR_CP3CE (1 << 18)
  93. #define CPCR_CP2CE (1 << 17)
  94. #define CPCR_CP1CE (1 << 16)
  95. #define DPPR 0x00018
  96. #define DPPR_DPE(n) (1 << ((n)*4-1))
  97. #define DPPR_DPS(n, p) (((p)-1) << DPPR_DPS_SHIFT(n))
  98. #define DPPR_DPS_SHIFT(n) (((n)-1)*4)
  99. #define DPPR_BPP16 (DPPR_DPE(8) | DPPR_DPS(8, 1)) /* plane1 */
  100. #define DPPR_BPP32_P1 (DPPR_DPE(7) | DPPR_DPS(7, 1))
  101. #define DPPR_BPP32_P2 (DPPR_DPE(8) | DPPR_DPS(8, 2))
  102. #define DPPR_BPP32 (DPPR_BPP32_P1 | DPPR_BPP32_P2) /* plane1 & 2 */
  103. #define DEFR 0x00020
  104. #define DEFR_CODE (0x7773 << 16)
  105. #define DEFR_EXSL (1 << 12)
  106. #define DEFR_EXVL (1 << 11)
  107. #define DEFR_EXUP (1 << 5)
  108. #define DEFR_VCUP (1 << 4)
  109. #define DEFR_DEFE (1 << 0)
  110. #define DAPCR 0x00024
  111. #define DAPCR_CODE (0x7773 << 16)
  112. #define DAPCR_AP2E (1 << 4)
  113. #define DAPCR_AP1E (1 << 0)
  114. #define DCPCR 0x00028
  115. #define DCPCR_CODE (0x7773 << 16)
  116. #define DCPCR_CA2B (1 << 13)
  117. #define DCPCR_CD2F (1 << 12)
  118. #define DCPCR_DC2E (1 << 8)
  119. #define DCPCR_CAB (1 << 5)
  120. #define DCPCR_CDF (1 << 4)
  121. #define DCPCR_DCE (1 << 0)
  122. #define DEFR2 0x00034
  123. #define DEFR2_CODE (0x7775 << 16)
  124. #define DEFR2_DEFE2G (1 << 0)
  125. #define DEFR3 0x00038
  126. #define DEFR3_CODE (0x7776 << 16)
  127. #define DEFR3_EVDA (1 << 14)
  128. #define DEFR3_EVDM_1 (1 << 12)
  129. #define DEFR3_EVDM_2 (2 << 12)
  130. #define DEFR3_EVDM_3 (3 << 12)
  131. #define DEFR3_VMSM2_EMA (1 << 6)
  132. #define DEFR3_VMSM1_ENA (1 << 4)
  133. #define DEFR3_DEFE3 (1 << 0)
  134. #define DEFR4 0x0003c
  135. #define DEFR4_CODE (0x7777 << 16)
  136. #define DEFR4_LRUO (1 << 5)
  137. #define DEFR4_SPCE (1 << 4)
  138. #define DVCSR 0x000d0
  139. #define DVCSR_VCnFB2_DSA0(n) (0 << ((n)*2+16))
  140. #define DVCSR_VCnFB2_DSA1(n) (1 << ((n)*2+16))
  141. #define DVCSR_VCnFB2_DSA2(n) (2 << ((n)*2+16))
  142. #define DVCSR_VCnFB2_INIT(n) (3 << ((n)*2+16))
  143. #define DVCSR_VCnFB2_MASK(n) (3 << ((n)*2+16))
  144. #define DVCSR_VCnFB_DSA0(n) (0 << ((n)*2))
  145. #define DVCSR_VCnFB_DSA1(n) (1 << ((n)*2))
  146. #define DVCSR_VCnFB_DSA2(n) (2 << ((n)*2))
  147. #define DVCSR_VCnFB_INIT(n) (3 << ((n)*2))
  148. #define DVCSR_VCnFB_MASK(n) (3 << ((n)*2))
  149. #define DEFR5 0x000e0
  150. #define DEFR5_CODE (0x66 << 24)
  151. #define DEFR5_YCRGB2_DIS (0 << 14)
  152. #define DEFR5_YCRGB2_PRI1 (1 << 14)
  153. #define DEFR5_YCRGB2_PRI2 (2 << 14)
  154. #define DEFR5_YCRGB2_PRI3 (3 << 14)
  155. #define DEFR5_YCRGB2_MASK (3 << 14)
  156. #define DEFR5_YCRGB1_DIS (0 << 12)
  157. #define DEFR5_YCRGB1_PRI1 (1 << 12)
  158. #define DEFR5_YCRGB1_PRI2 (2 << 12)
  159. #define DEFR5_YCRGB1_PRI3 (3 << 12)
  160. #define DEFR5_YCRGB1_MASK (3 << 12)
  161. #define DEFR5_DEFE5 (1 << 0)
  162. #define DDLTR 0x000e4
  163. #define DDLTR_CODE (0x7766 << 16)
  164. #define DDLTR_DLAR2 (1 << 6)
  165. #define DDLTR_DLAY2 (1 << 5)
  166. #define DDLTR_DLAY1 (1 << 1)
  167. #define DEFR6 0x000e8
  168. #define DEFR6_CODE (0x7778 << 16)
  169. #define DEFR6_ODPM22_D2SMR (0 << 10)
  170. #define DEFR6_ODPM22_DISP (2 << 10)
  171. #define DEFR6_ODPM22_CDE (3 << 10)
  172. #define DEFR6_ODPM22_MASK (3 << 10)
  173. #define DEFR6_ODPM12_DSMR (0 << 8)
  174. #define DEFR6_ODPM12_DISP (2 << 8)
  175. #define DEFR6_ODPM12_CDE (3 << 8)
  176. #define DEFR6_ODPM12_MASK (3 << 8)
  177. #define DEFR6_TCNE2 (1 << 6)
  178. #define DEFR6_MLOS1 (1 << 2)
  179. #define DEFR6_DEFAULT (DEFR6_CODE | DEFR6_TCNE2)
  180. /* -----------------------------------------------------------------------------
  181. * R8A7790-only Control Registers
  182. */
  183. #define DD1SSR 0x20008
  184. #define DD1SSR_TVR (1 << 15)
  185. #define DD1SSR_FRM (1 << 14)
  186. #define DD1SSR_BUF (1 << 12)
  187. #define DD1SSR_VBK (1 << 11)
  188. #define DD1SSR_RINT (1 << 9)
  189. #define DD1SSR_HBK (1 << 8)
  190. #define DD1SSR_ADC(n) (1 << ((n)-1))
  191. #define DD1SRCR 0x2000c
  192. #define DD1SRCR_TVR (1 << 15)
  193. #define DD1SRCR_FRM (1 << 14)
  194. #define DD1SRCR_BUF (1 << 12)
  195. #define DD1SRCR_VBK (1 << 11)
  196. #define DD1SRCR_RINT (1 << 9)
  197. #define DD1SRCR_HBK (1 << 8)
  198. #define DD1SRCR_ADC(n) (1 << ((n)-1))
  199. #define DD1IER 0x20010
  200. #define DD1IER_TVR (1 << 15)
  201. #define DD1IER_FRM (1 << 14)
  202. #define DD1IER_BUF (1 << 12)
  203. #define DD1IER_VBK (1 << 11)
  204. #define DD1IER_RINT (1 << 9)
  205. #define DD1IER_HBK (1 << 8)
  206. #define DD1IER_ADC(n) (1 << ((n)-1))
  207. #define DEFR8 0x20020
  208. #define DEFR8_CODE (0x7790 << 16)
  209. #define DEFR8_VSCS (1 << 6)
  210. #define DEFR8_DRGBS_DU(n) ((n) << 4)
  211. #define DEFR8_DRGBS_MASK (3 << 4)
  212. #define DEFR8_DEFE8 (1 << 0)
  213. #define DOFLR 0x20024
  214. #define DOFLR_CODE (0x7790 << 16)
  215. #define DOFLR_HSYCFL1 (1 << 13)
  216. #define DOFLR_VSYCFL1 (1 << 12)
  217. #define DOFLR_ODDFL1 (1 << 11)
  218. #define DOFLR_DISPFL1 (1 << 10)
  219. #define DOFLR_CDEFL1 (1 << 9)
  220. #define DOFLR_RGBFL1 (1 << 8)
  221. #define DOFLR_HSYCFL0 (1 << 5)
  222. #define DOFLR_VSYCFL0 (1 << 4)
  223. #define DOFLR_ODDFL0 (1 << 3)
  224. #define DOFLR_DISPFL0 (1 << 2)
  225. #define DOFLR_CDEFL0 (1 << 1)
  226. #define DOFLR_RGBFL0 (1 << 0)
  227. #define DIDSR 0x20028
  228. #define DIDSR_CODE (0x7790 << 16)
  229. #define DIDSR_LCDS_DCLKIN(n) (0 << (8 + (n) * 2))
  230. #define DIDSR_LCDS_LVDS0(n) (2 << (8 + (n) * 2))
  231. #define DIDSR_LCDS_LVDS1(n) (3 << (8 + (n) * 2))
  232. #define DIDSR_LCDS_MASK(n) (3 << (8 + (n) * 2))
  233. #define DIDSR_PDCS_CLK(n, clk) (clk << ((n) * 2))
  234. #define DIDSR_PDCS_MASK(n) (3 << ((n) * 2))
  235. /* -----------------------------------------------------------------------------
  236. * Display Timing Generation Registers
  237. */
  238. #define HDSR 0x00040
  239. #define HDER 0x00044
  240. #define VDSR 0x00048
  241. #define VDER 0x0004c
  242. #define HCR 0x00050
  243. #define HSWR 0x00054
  244. #define VCR 0x00058
  245. #define VSPR 0x0005c
  246. #define EQWR 0x00060
  247. #define SPWR 0x00064
  248. #define CLAMPSR 0x00070
  249. #define CLAMPWR 0x00074
  250. #define DESR 0x00078
  251. #define DEWR 0x0007c
  252. /* -----------------------------------------------------------------------------
  253. * Display Attribute Registers
  254. */
  255. #define CP1TR 0x00080
  256. #define CP2TR 0x00084
  257. #define CP3TR 0x00088
  258. #define CP4TR 0x0008c
  259. #define DOOR 0x00090
  260. #define DOOR_RGB(r, g, b) (((r) << 18) | ((g) << 10) | ((b) << 2))
  261. #define CDER 0x00094
  262. #define CDER_RGB(r, g, b) (((r) << 18) | ((g) << 10) | ((b) << 2))
  263. #define BPOR 0x00098
  264. #define BPOR_RGB(r, g, b) (((r) << 18) | ((g) << 10) | ((b) << 2))
  265. #define RINTOFSR 0x0009c
  266. #define DSHPR 0x000c8
  267. #define DSHPR_CODE (0x7776 << 16)
  268. #define DSHPR_PRIH (0xa << 4)
  269. #define DSHPR_PRIL_BPP16 (0x8 << 0)
  270. #define DSHPR_PRIL_BPP32 (0x9 << 0)
  271. /* -----------------------------------------------------------------------------
  272. * Display Plane Registers
  273. */
  274. #define PLANE_OFF 0x00100
  275. #define PnMR 0x00100 /* plane 1 */
  276. #define PnMR_VISL_VIN0 (0 << 26) /* use Video Input 0 */
  277. #define PnMR_VISL_VIN1 (1 << 26) /* use Video Input 1 */
  278. #define PnMR_VISL_VIN2 (2 << 26) /* use Video Input 2 */
  279. #define PnMR_VISL_VIN3 (3 << 26) /* use Video Input 3 */
  280. #define PnMR_YCDF_YUYV (1 << 20) /* YUYV format */
  281. #define PnMR_TC_R (0 << 17) /* Tranparent color is PnTC1R */
  282. #define PnMR_TC_CP (1 << 17) /* Tranparent color is color palette */
  283. #define PnMR_WAE (1 << 16) /* Wrap around Enable */
  284. #define PnMR_SPIM_TP (0 << 12) /* Transparent Color */
  285. #define PnMR_SPIM_ALP (1 << 12) /* Alpha Blending */
  286. #define PnMR_SPIM_EOR (2 << 12) /* EOR */
  287. #define PnMR_SPIM_TP_OFF (1 << 14) /* No Transparent Color */
  288. #define PnMR_CPSL_CP1 (0 << 8) /* Color Palette selected 1 */
  289. #define PnMR_CPSL_CP2 (1 << 8) /* Color Palette selected 2 */
  290. #define PnMR_CPSL_CP3 (2 << 8) /* Color Palette selected 3 */
  291. #define PnMR_CPSL_CP4 (3 << 8) /* Color Palette selected 4 */
  292. #define PnMR_DC (1 << 7) /* Display Area Change */
  293. #define PnMR_BM_MD (0 << 4) /* Manual Display Change Mode */
  294. #define PnMR_BM_AR (1 << 4) /* Auto Rendering Mode */
  295. #define PnMR_BM_AD (2 << 4) /* Auto Display Change Mode */
  296. #define PnMR_BM_VC (3 << 4) /* Video Capture Mode */
  297. #define PnMR_DDDF_8BPP (0 << 0) /* 8bit */
  298. #define PnMR_DDDF_16BPP (1 << 0) /* 16bit or 32bit */
  299. #define PnMR_DDDF_ARGB (2 << 0) /* ARGB */
  300. #define PnMR_DDDF_YC (3 << 0) /* YC */
  301. #define PnMR_DDDF_MASK (3 << 0)
  302. #define PnMWR 0x00104
  303. #define PnALPHAR 0x00108
  304. #define PnALPHAR_ABIT_1 (0 << 12)
  305. #define PnALPHAR_ABIT_0 (1 << 12)
  306. #define PnALPHAR_ABIT_X (2 << 12)
  307. #define PnDSXR 0x00110
  308. #define PnDSYR 0x00114
  309. #define PnDPXR 0x00118
  310. #define PnDPYR 0x0011c
  311. #define PnDSA0R 0x00120
  312. #define PnDSA1R 0x00124
  313. #define PnDSA2R 0x00128
  314. #define PnDSA_MASK 0xfffffff0
  315. #define PnSPXR 0x00130
  316. #define PnSPYR 0x00134
  317. #define PnWASPR 0x00138
  318. #define PnWAMWR 0x0013c
  319. #define PnBTR 0x00140
  320. #define PnTC1R 0x00144
  321. #define PnTC2R 0x00148
  322. #define PnTC3R 0x0014c
  323. #define PnTC3R_CODE (0x66 << 24)
  324. #define PnMLR 0x00150
  325. #define PnSWAPR 0x00180
  326. #define PnSWAPR_DIGN (1 << 4)
  327. #define PnSWAPR_SPQW (1 << 3)
  328. #define PnSWAPR_SPLW (1 << 2)
  329. #define PnSWAPR_SPWD (1 << 1)
  330. #define PnSWAPR_SPBY (1 << 0)
  331. #define PnDDCR 0x00184
  332. #define PnDDCR_CODE (0x7775 << 16)
  333. #define PnDDCR_LRGB1 (1 << 11)
  334. #define PnDDCR_LRGB0 (1 << 10)
  335. #define PnDDCR2 0x00188
  336. #define PnDDCR2_CODE (0x7776 << 16)
  337. #define PnDDCR2_NV21 (1 << 5)
  338. #define PnDDCR2_Y420 (1 << 4)
  339. #define PnDDCR2_DIVU (1 << 1)
  340. #define PnDDCR2_DIVY (1 << 0)
  341. #define PnDDCR4 0x00190
  342. #define PnDDCR4_CODE (0x7766 << 16)
  343. #define PnDDCR4_SDFS_RGB (0 << 4)
  344. #define PnDDCR4_SDFS_YC (5 << 4)
  345. #define PnDDCR4_SDFS_MASK (7 << 4)
  346. #define PnDDCR4_EDF_NONE (0 << 0)
  347. #define PnDDCR4_EDF_ARGB8888 (1 << 0)
  348. #define PnDDCR4_EDF_RGB888 (2 << 0)
  349. #define PnDDCR4_EDF_RGB666 (3 << 0)
  350. #define PnDDCR4_EDF_MASK (7 << 0)
  351. #define APnMR 0x0a100
  352. #define APnMR_WAE (1 << 16) /* Wrap around Enable */
  353. #define APnMR_DC (1 << 7) /* Display Area Change */
  354. #define APnMR_BM_MD (0 << 4) /* Manual Display Change Mode */
  355. #define APnMR_BM_AD (2 << 4) /* Auto Display Change Mode */
  356. #define APnMWR 0x0a104
  357. #define APnDSXR 0x0a110
  358. #define APnDSYR 0x0a114
  359. #define APnDPXR 0x0a118
  360. #define APnDPYR 0x0a11c
  361. #define APnDSA0R 0x0a120
  362. #define APnDSA1R 0x0a124
  363. #define APnDSA2R 0x0a128
  364. #define APnSPXR 0x0a130
  365. #define APnSPYR 0x0a134
  366. #define APnWASPR 0x0a138
  367. #define APnWAMWR 0x0a13c
  368. #define APnBTR 0x0a140
  369. #define APnMLR 0x0a150
  370. #define APnSWAPR 0x0a180
  371. /* -----------------------------------------------------------------------------
  372. * Display Capture Registers
  373. */
  374. #define DCMR 0x0c100
  375. #define DCMWR 0x0c104
  376. #define DCSAR 0x0c120
  377. #define DCMLR 0x0c150
  378. /* -----------------------------------------------------------------------------
  379. * Color Palette Registers
  380. */
  381. #define CP1_000R 0x01000
  382. #define CP1_255R 0x013fc
  383. #define CP2_000R 0x02000
  384. #define CP2_255R 0x023fc
  385. #define CP3_000R 0x03000
  386. #define CP3_255R 0x033fc
  387. #define CP4_000R 0x04000
  388. #define CP4_255R 0x043fc
  389. /* -----------------------------------------------------------------------------
  390. * External Synchronization Control Registers
  391. */
  392. #define ESCR 0x10000
  393. #define ESCR2 0x31000
  394. #define ESCR_DCLKOINV (1 << 25)
  395. #define ESCR_DCLKSEL_DCLKIN (0 << 20)
  396. #define ESCR_DCLKSEL_CLKS (1 << 20)
  397. #define ESCR_DCLKSEL_MASK (1 << 20)
  398. #define ESCR_DCLKDIS (1 << 16)
  399. #define ESCR_SYNCSEL_OFF (0 << 8)
  400. #define ESCR_SYNCSEL_EXVSYNC (2 << 8)
  401. #define ESCR_SYNCSEL_EXHSYNC (3 << 8)
  402. #define ESCR_FRQSEL_MASK (0x3f << 0)
  403. #define OTAR 0x10004
  404. #define OTAR2 0x31004
  405. /* -----------------------------------------------------------------------------
  406. * Dual Display Output Control Registers
  407. */
  408. #define DORCR 0x11000
  409. #define DORCR_PG2T (1 << 30)
  410. #define DORCR_DK2S (1 << 28)
  411. #define DORCR_PG2D_DS1 (0 << 24)
  412. #define DORCR_PG2D_DS2 (1 << 24)
  413. #define DORCR_PG2D_FIX0 (2 << 24)
  414. #define DORCR_PG2D_DOOR (3 << 24)
  415. #define DORCR_PG2D_MASK (3 << 24)
  416. #define DORCR_DR1D (1 << 21)
  417. #define DORCR_PG1D_DS1 (0 << 16)
  418. #define DORCR_PG1D_DS2 (1 << 16)
  419. #define DORCR_PG1D_FIX0 (2 << 16)
  420. #define DORCR_PG1D_DOOR (3 << 16)
  421. #define DORCR_PG1D_MASK (3 << 16)
  422. #define DORCR_RGPV (1 << 4)
  423. #define DORCR_DPRS (1 << 0)
  424. #define DPTSR 0x11004
  425. #define DPTSR_PnDK(n) (1 << ((n) + 16))
  426. #define DPTSR_PnTS(n) (1 << (n))
  427. #define DAPTSR 0x11008
  428. #define DAPTSR_APnDK(n) (1 << ((n) + 16))
  429. #define DAPTSR_APnTS(n) (1 << (n))
  430. #define DS1PR 0x11020
  431. #define DS2PR 0x11024
  432. /* -----------------------------------------------------------------------------
  433. * YC-RGB Conversion Coefficient Registers
  434. */
  435. #define YNCR 0x11080
  436. #define YNOR 0x11084
  437. #define CRNOR 0x11088
  438. #define CBNOR 0x1108c
  439. #define RCRCR 0x11090
  440. #define GCRCR 0x11094
  441. #define GCBCR 0x11098
  442. #define BCBCR 0x1109c
  443. #endif /* __RCAR_DU_REGS_H__ */