Lines Matching +full:0 +full:x610
11 #define VIDCON0 0x00
16 #define VIDCON0_ENVID_F (1 << 0)
19 #define VIDOUTCON0 0x4
21 #define VIDOUTCON0_DUAL_MASK (0x3 << 24)
22 #define VIDOUTCON0_DUAL_ON (0x3 << 24)
23 #define VIDOUTCON0_DISP_IF_1_ON (0x2 << 24)
24 #define VIDOUTCON0_DISP_IF_0_ON (0x1 << 24)
25 #define VIDOUTCON0_DUAL_OFF (0x0 << 24)
27 #define VIDOUTCON0_IF_MASK (0x1 << 23)
28 #define VIDOUTCON0_RGBIF (0x0 << 23)
29 #define VIDOUTCON0_I80IF (0x1 << 23)
32 #define VIDCON3 0x8
35 #define VIDCON4 0xC
36 #define VIDCON4_FIFOCNT_START_EN (1 << 0)
39 #define VCLKCON0 0x10
41 #define VCLKCON0_VCLKFREE (1 << 0)
44 #define VCLKCON1 0x14
45 #define VCLKCON1_CLKVAL_NUM_VCLK(val) (((val) & 0xff) << 0)
46 #define VCLKCON2 0x18
49 #define SHADOWCON 0x30
54 #define WINCON(_win) (0x50 + ((_win) * 4))
56 #define WINCONx_BUFSTATUS (0x3 << 30)
57 #define WINCONx_BUFSEL_MASK (0x3 << 28)
59 #define WINCONx_TRIPLE_BUF_MODE (0x1 << 18)
60 #define WINCONx_DOUBLE_BUF_MODE (0x0 << 18)
61 #define WINCONx_BURSTLEN_16WORD (0x0 << 11)
62 #define WINCONx_BURSTLEN_8WORD (0x1 << 11)
63 #define WINCONx_BURSTLEN_MASK (0x1 << 11)
65 #define WINCONx_BLD_PLANE (0 << 8)
69 #define WINCONx_BPPMODE_MASK (0xf << 2)
71 #define WINCONx_BPPMODE_16BPP_565 (0x8 << 2)
72 #define WINCONx_BPPMODE_24BPP_BGRx (0x7 << 2)
73 #define WINCONx_BPPMODE_24BPP_RGBx (0x6 << 2)
74 #define WINCONx_BPPMODE_24BPP_xBGR (0x5 << 2)
75 #define WINCONx_BPPMODE_24BPP_xRGB (0x4 << 2)
76 #define WINCONx_BPPMODE_32BPP_BGRA (0x3 << 2)
77 #define WINCONx_BPPMODE_32BPP_RGBA (0x2 << 2)
78 #define WINCONx_BPPMODE_32BPP_ABGR (0x1 << 2)
79 #define WINCONx_BPPMODE_32BPP_ARGB (0x0 << 2)
81 #define WINCONx_ENWIN (1 << 0)
89 #define VIDOSD_H(_x) (0x80 + ((_x) * 4))
92 #define VIDW_BUF_START(_win) (0x80 + ((_win) * 0x10))
93 #define VIDW_BUF_START1(_win) (0x84 + ((_win) * 0x10))
94 #define VIDW_BUF_START2(_win) (0x88 + ((_win) * 0x10))
96 #define VIDW_WHOLE_X(_win) (0x0130 + ((_win) * 8))
97 #define VIDW_WHOLE_Y(_win) (0x0134 + ((_win) * 8))
98 #define VIDW_OFFSET_X(_win) (0x0170 + ((_win) * 8))
99 #define VIDW_OFFSET_Y(_win) (0x0174 + ((_win) * 8))
100 #define VIDW_BLKOFFSET(_win) (0x01B0 + ((_win) * 4))
101 #define VIDW_BLKSIZE(win) (0x0200 + ((_win) * 4))
104 #define VIDINTCON2 0x228
107 #define VIDINTCON1_INTEXTRA0_EN (1 << 0)
110 #define VIDINTCON3 0x22C
113 #define VIDINTCON1_INTEXTRA0_PEND (1 << 0)
116 #define VIDOSD_BASE 0x230
118 #define OSD_STRIDE 0x20
121 ((_win) * OSD_STRIDE) + 0x00)
123 ((_win) * OSD_STRIDE) + 0x04)
125 ((_win) * OSD_STRIDE) + 0x08)
127 ((_win) * OSD_STRIDE) + 0x0C)
129 ((_win) * OSD_STRIDE) + 0x10)
131 #define VIDOSDxA_TOPLEFT_X_MASK (0x1fff << 13)
133 #define VIDOSDxA_TOPLEFT_X_LIMIT 0x1fff
134 #define VIDOSDxA_TOPLEFT_X(_x) (((_x) & 0x1fff) << 13)
136 #define VIDOSDxA_TOPLEFT_Y_MASK (0x1fff << 0)
137 #define VIDOSDxA_TOPLEFT_Y_SHIFT 0
138 #define VIDOSDxA_TOPLEFT_Y_LIMIT 0x1fff
139 #define VIDOSDxA_TOPLEFT_Y(_x) (((_x) & 0x1fff) << 0)
141 #define VIDOSDxB_BOTRIGHT_X_MASK (0x1fff << 13)
143 #define VIDOSDxB_BOTRIGHT_X_LIMIT 0x1fff
144 #define VIDOSDxB_BOTRIGHT_X(_x) (((_x) & 0x1fff) << 13)
146 #define VIDOSDxB_BOTRIGHT_Y_MASK (0x1fff << 0)
147 #define VIDOSDxB_BOTRIGHT_Y_SHIFT 0
148 #define VIDOSDxB_BOTRIGHT_Y_LIMIT 0x1fff
149 #define VIDOSDxB_BOTRIGHT_Y(_x) (((_x) & 0x1fff) << 0)
151 #define VIDOSDxC_ALPHA0_R_F(_x) (((_x) & 0xFF) << 16)
152 #define VIDOSDxC_ALPHA0_G_F(_x) (((_x) & 0xFF) << 8)
153 #define VIDOSDxC_ALPHA0_B_F(_x) (((_x) & 0xFF) << 0)
155 #define VIDOSDxD_ALPHA1_R_F(_x) (((_x) & 0xFF) << 16)
156 #define VIDOSDxD_ALPHA1_G_F(_x) (((_x) & 0xFF) << 8)
157 #define VIDOSDxD_ALPHA1_B_F(_x) (((_x) & 0xFF) >> 0)
160 #define WINxMAP(_win) (0x340 + ((_win) * 4))
163 #define WINxMAP_MAP_COLOUR_MASK (0xffffff << 0)
164 #define WINxMAP_MAP_COLOUR_SHIFT 0
165 #define WINxMAP_MAP_COLOUR_LIMIT 0xffffff
166 #define WINxMAP_MAP_COLOUR(_x) ((_x) << 0)
169 #define WKEYCON 0x370
171 #define WKEYCON0 0x00
172 #define WKEYCON1 0x04
176 #define WxKEYCON0_COMPKEY_MASK (0xffffff << 0)
177 #define WxKEYCON0_COMPKEY_SHIFT 0
178 #define WxKEYCON0_COMPKEY_LIMIT 0xffffff
179 #define WxKEYCON0_COMPKEY(_x) ((_x) << 0)
180 #define WxKEYCON1_COLVAL_MASK (0xffffff << 0)
181 #define WxKEYCON1_COLVAL_SHIFT 0
182 #define WxKEYCON1_COLVAL_LIMIT 0xffffff
183 #define WxKEYCON1_COLVAL(_x) ((_x) << 0)
191 #define WxKEYALPHA(_win) (0x3A0 + (((_win) - 1) * 0x4))
195 #define Wx_KEYALPHA_B_F_SHIFT 0
198 #define BLENDE(_win) (0x03C0 + ((_win) * 4))
199 #define BLENDE_COEF_ZERO 0x0
200 #define BLENDE_COEF_ONE 0x1
201 #define BLENDE_COEF_ALPHA_A 0x2
202 #define BLENDE_COEF_ONE_MINUS_ALPHA_A 0x3
203 #define BLENDE_COEF_ALPHA_B 0x4
204 #define BLENDE_COEF_ONE_MINUS_ALPHA_B 0x5
205 #define BLENDE_COEF_ALPHA0 0x6
206 #define BLENDE_COEF_A 0xA
207 #define BLENDE_COEF_ONE_MINUS_A 0xB
208 #define BLENDE_COEF_B 0xC
209 #define BLENDE_COEF_ONE_MINUS_B 0xD
213 #define BLENDE_A_FUNC(_v) ((_v) << 0)
216 #define BLENDCON 0x3D8
217 #define BLENDCON_NEW_MASK (1 << 0)
218 #define BLENDCON_NEW_8BIT_ALPHA_VALUE (1 << 0)
219 #define BLENDCON_NEW_4BIT_ALPHA_VALUE (0 << 0)
222 #define VIDINTCON0 0x500
224 #define VIDINTCON0_WAKEUP_MASK (0x3f << 26)
228 #define VIDINTCON0_FRAMESEL0_MASK (0x3 << 15)
229 #define VIDINTCON0_FRAMESEL0_BACKPORCH (0x0 << 15)
230 #define VIDINTCON0_FRAMESEL0_VSYNC (0x1 << 15)
231 #define VIDINTCON0_FRAMESEL0_ACTIVE (0x2 << 15)
232 #define VIDINTCON0_FRAMESEL0_FRONTPORCH (0x3 << 15)
236 #define VIDINTCON0_FIFOLEVEL_MASK (0x7 << 3)
238 #define VIDINTCON0_FIFOLEVEL_EMPTY (0x0 << 3)
239 #define VIDINTCON0_FIFOLEVEL_TO25PC (0x1 << 3)
240 #define VIDINTCON0_FIFOLEVEL_TO50PC (0x2 << 3)
241 #define VIDINTCON0_FIFOLEVEL_FULL (0x4 << 3)
246 #define VIDINTCON0_INT_ENABLE (1 << 0)
249 #define VIDINTCON1 0x504
254 #define VIDINTCON1_INT_FIFO (1 << 0)
257 #define VIDCON1(_x) (0x0600 + ((_x) * 0x50))
258 #define VIDCON1_LINECNT_GET(_v) (((_v) >> 17) & 0x1fff)
259 #define VIDCON1_VCLK_MASK (0x3 << 9)
260 #define VIDCON1_VCLK_HOLD (0x0 << 9)
261 #define VIDCON1_VCLK_RUN (0x1 << 9)
262 #define VIDCON1_VCLK_RUN_VDEN_DISABLE (0x3 << 9)
263 #define VIDCON1_RGB_ORDER_O_MASK (0x7 << 4)
264 #define VIDCON1_RGB_ORDER_O_RGB (0x0 << 4)
265 #define VIDCON1_RGB_ORDER_O_GBR (0x1 << 4)
266 #define VIDCON1_RGB_ORDER_O_BRG (0x2 << 4)
267 #define VIDCON1_RGB_ORDER_O_BGR (0x4 << 4)
268 #define VIDCON1_RGB_ORDER_O_RBG (0x5 << 4)
269 #define VIDCON1_RGB_ORDER_O_GRB (0x6 << 4)
272 #define VIDTCON0 0x610
274 #define VIDTCON0_VBPD_MASK (0xffff << 16)
276 #define VIDTCON0_VBPD_LIMIT 0xffff
279 #define VIDTCON0_VFPD_MASK (0xffff << 0)
280 #define VIDTCON0_VFPD_SHIFT 0
281 #define VIDTCON0_VFPD_LIMIT 0xffff
282 #define VIDTCON0_VFPD(_x) ((_x) << 0)
285 #define VIDTCON1 0x614
287 #define VIDTCON1_VSPW_MASK (0xffff << 16)
289 #define VIDTCON1_VSPW_LIMIT 0xffff
293 #define VIDTCON2 0x618
295 #define VIDTCON2_HBPD_MASK (0xffff << 16)
297 #define VIDTCON2_HBPD_LIMIT 0xffff
300 #define VIDTCON2_HFPD_MASK (0xffff << 0)
301 #define VIDTCON2_HFPD_SHIFT 0
302 #define VIDTCON2_HFPD_LIMIT 0xffff
303 #define VIDTCON2_HFPD(_x) ((_x) << 0)
306 #define VIDTCON3 0x61C
308 #define VIDTCON3_HSPW_MASK (0xffff << 16)
310 #define VIDTCON3_HSPW_LIMIT 0xffff
314 #define VIDTCON4 0x620
316 #define VIDTCON4_LINEVAL_MASK (0xfff << 16)
318 #define VIDTCON4_LINEVAL_LIMIT 0xfff
319 #define VIDTCON4_LINEVAL(_x) (((_x) & 0xfff) << 16)
321 #define VIDTCON4_HOZVAL_MASK (0xfff << 0)
322 #define VIDTCON4_HOZVAL_SHIFT 0
323 #define VIDTCON4_HOZVAL_LIMIT 0xfff
324 #define VIDTCON4_HOZVAL(_x) (((_x) & 0xfff) << 0)
327 #define LINECNT_OP_THRESHOLD 0x630
330 #define CRCCTRL 0x6C8
331 #define CRCCTRL_CRCCLKEN (0x1 << 2)
332 #define CRCCTRL_CRCSTART_F (0x1 << 1)
333 #define CRCCTRL_CRCEN (0x1 << 0)
336 #define DECON_CMU 0x704
338 #define DECON_CMU_ALL_CLKGATE_ENABLE 0x3
339 #define DECON_CMU_SE_CLKGATE_ENABLE (0x1 << 2)
340 #define DECON_CMU_SFR_CLKGATE_ENABLE (0x1 << 1)
341 #define DECON_CMU_MEM_CLKGATE_ENABLE (0x1 << 0)
344 #define DECON_UPDATE 0x710
347 #define DECON_UPDATE_STANDALONE_F (1 << 0)