Merge tag 'block-5.11-2021-01-10' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / gpu / drm / msm / disp / mdp4 / mdp4.xml.h
blobf1d1de578e4c74f1ebb1e9af02235cb632e7bd9b
1 #ifndef MDP4_XML
2 #define MDP4_XML
4 /* Autogenerated file, DO NOT EDIT manually!
6 This file was generated by the rules-ng-ng headergen tool in this git repository:
7 http://github.com/freedreno/envytools/
8 git clone https://github.com/freedreno/envytools.git
10 The rules-ng-ng source files this header was generated from are:
11 - /home/robclark/src/envytools/rnndb/msm.xml ( 676 bytes, from 2020-07-23 21:58:14)
12 - /home/robclark/src/envytools/rnndb/freedreno_copyright.xml ( 1572 bytes, from 2020-07-23 21:58:14)
13 - /home/robclark/src/envytools/rnndb/mdp/mdp4.xml ( 20915 bytes, from 2020-07-23 21:58:14)
14 - /home/robclark/src/envytools/rnndb/mdp/mdp_common.xml ( 2849 bytes, from 2020-07-23 21:58:14)
15 - /home/robclark/src/envytools/rnndb/mdp/mdp5.xml ( 37411 bytes, from 2020-07-23 21:58:14)
16 - /home/robclark/src/envytools/rnndb/dsi/dsi.xml ( 42301 bytes, from 2020-07-23 21:58:14)
17 - /home/robclark/src/envytools/rnndb/dsi/sfpb.xml ( 602 bytes, from 2020-07-23 21:58:14)
18 - /home/robclark/src/envytools/rnndb/dsi/mmss_cc.xml ( 1686 bytes, from 2020-07-23 21:58:14)
19 - /home/robclark/src/envytools/rnndb/hdmi/qfprom.xml ( 600 bytes, from 2020-07-23 21:58:14)
20 - /home/robclark/src/envytools/rnndb/hdmi/hdmi.xml ( 41874 bytes, from 2020-07-23 21:58:14)
21 - /home/robclark/src/envytools/rnndb/edp/edp.xml ( 10416 bytes, from 2020-07-23 21:58:14)
23 Copyright (C) 2013-2020 by the following authors:
24 - Rob Clark <robdclark@gmail.com> (robclark)
25 - Ilia Mirkin <imirkin@alum.mit.edu> (imirkin)
27 Permission is hereby granted, free of charge, to any person obtaining
28 a copy of this software and associated documentation files (the
29 "Software"), to deal in the Software without restriction, including
30 without limitation the rights to use, copy, modify, merge, publish,
31 distribute, sublicense, and/or sell copies of the Software, and to
32 permit persons to whom the Software is furnished to do so, subject to
33 the following conditions:
35 The above copyright notice and this permission notice (including the
36 next paragraph) shall be included in all copies or substantial
37 portions of the Software.
39 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
40 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
41 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
42 IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE
43 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
44 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
45 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
49 enum mdp4_pipe {
50 VG1 = 0,
51 VG2 = 1,
52 RGB1 = 2,
53 RGB2 = 3,
54 RGB3 = 4,
55 VG3 = 5,
56 VG4 = 6,
59 enum mdp4_mixer {
60 MIXER0 = 0,
61 MIXER1 = 1,
62 MIXER2 = 2,
65 enum mdp4_intf {
66 INTF_LCDC_DTV = 0,
67 INTF_DSI_VIDEO = 1,
68 INTF_DSI_CMD = 2,
69 INTF_EBI2_TV = 3,
72 enum mdp4_cursor_format {
73 CURSOR_ARGB = 1,
74 CURSOR_XRGB = 2,
77 enum mdp4_frame_format {
78 FRAME_LINEAR = 0,
79 FRAME_TILE_ARGB_4X4 = 1,
80 FRAME_TILE_YCBCR_420 = 2,
83 enum mdp4_scale_unit {
84 SCALE_FIR = 0,
85 SCALE_MN_PHASE = 1,
86 SCALE_PIXEL_RPT = 2,
89 enum mdp4_dma {
90 DMA_P = 0,
91 DMA_S = 1,
92 DMA_E = 2,
95 #define MDP4_IRQ_OVERLAY0_DONE 0x00000001
96 #define MDP4_IRQ_OVERLAY1_DONE 0x00000002
97 #define MDP4_IRQ_DMA_S_DONE 0x00000004
98 #define MDP4_IRQ_DMA_E_DONE 0x00000008
99 #define MDP4_IRQ_DMA_P_DONE 0x00000010
100 #define MDP4_IRQ_VG1_HISTOGRAM 0x00000020
101 #define MDP4_IRQ_VG2_HISTOGRAM 0x00000040
102 #define MDP4_IRQ_PRIMARY_VSYNC 0x00000080
103 #define MDP4_IRQ_PRIMARY_INTF_UDERRUN 0x00000100
104 #define MDP4_IRQ_EXTERNAL_VSYNC 0x00000200
105 #define MDP4_IRQ_EXTERNAL_INTF_UDERRUN 0x00000400
106 #define MDP4_IRQ_PRIMARY_RDPTR 0x00000800
107 #define MDP4_IRQ_DMA_P_HISTOGRAM 0x00020000
108 #define MDP4_IRQ_DMA_S_HISTOGRAM 0x04000000
109 #define MDP4_IRQ_OVERLAY2_DONE 0x40000000
110 #define REG_MDP4_VERSION 0x00000000
111 #define MDP4_VERSION_MINOR__MASK 0x00ff0000
112 #define MDP4_VERSION_MINOR__SHIFT 16
113 static inline uint32_t MDP4_VERSION_MINOR(uint32_t val)
115 return ((val) << MDP4_VERSION_MINOR__SHIFT) & MDP4_VERSION_MINOR__MASK;
117 #define MDP4_VERSION_MAJOR__MASK 0xff000000
118 #define MDP4_VERSION_MAJOR__SHIFT 24
119 static inline uint32_t MDP4_VERSION_MAJOR(uint32_t val)
121 return ((val) << MDP4_VERSION_MAJOR__SHIFT) & MDP4_VERSION_MAJOR__MASK;
124 #define REG_MDP4_OVLP0_KICK 0x00000004
126 #define REG_MDP4_OVLP1_KICK 0x00000008
128 #define REG_MDP4_OVLP2_KICK 0x000000d0
130 #define REG_MDP4_DMA_P_KICK 0x0000000c
132 #define REG_MDP4_DMA_S_KICK 0x00000010
134 #define REG_MDP4_DMA_E_KICK 0x00000014
136 #define REG_MDP4_DISP_STATUS 0x00000018
138 #define REG_MDP4_DISP_INTF_SEL 0x00000038
139 #define MDP4_DISP_INTF_SEL_PRIM__MASK 0x00000003
140 #define MDP4_DISP_INTF_SEL_PRIM__SHIFT 0
141 static inline uint32_t MDP4_DISP_INTF_SEL_PRIM(enum mdp4_intf val)
143 return ((val) << MDP4_DISP_INTF_SEL_PRIM__SHIFT) & MDP4_DISP_INTF_SEL_PRIM__MASK;
145 #define MDP4_DISP_INTF_SEL_SEC__MASK 0x0000000c
146 #define MDP4_DISP_INTF_SEL_SEC__SHIFT 2
147 static inline uint32_t MDP4_DISP_INTF_SEL_SEC(enum mdp4_intf val)
149 return ((val) << MDP4_DISP_INTF_SEL_SEC__SHIFT) & MDP4_DISP_INTF_SEL_SEC__MASK;
151 #define MDP4_DISP_INTF_SEL_EXT__MASK 0x00000030
152 #define MDP4_DISP_INTF_SEL_EXT__SHIFT 4
153 static inline uint32_t MDP4_DISP_INTF_SEL_EXT(enum mdp4_intf val)
155 return ((val) << MDP4_DISP_INTF_SEL_EXT__SHIFT) & MDP4_DISP_INTF_SEL_EXT__MASK;
157 #define MDP4_DISP_INTF_SEL_DSI_VIDEO 0x00000040
158 #define MDP4_DISP_INTF_SEL_DSI_CMD 0x00000080
160 #define REG_MDP4_RESET_STATUS 0x0000003c
162 #define REG_MDP4_READ_CNFG 0x0000004c
164 #define REG_MDP4_INTR_ENABLE 0x00000050
166 #define REG_MDP4_INTR_STATUS 0x00000054
168 #define REG_MDP4_INTR_CLEAR 0x00000058
170 #define REG_MDP4_EBI2_LCD0 0x00000060
172 #define REG_MDP4_EBI2_LCD1 0x00000064
174 #define REG_MDP4_PORTMAP_MODE 0x00000070
176 #define REG_MDP4_CS_CONTROLLER0 0x000000c0
178 #define REG_MDP4_CS_CONTROLLER1 0x000000c4
180 #define REG_MDP4_LAYERMIXER2_IN_CFG 0x000100f0
181 #define MDP4_LAYERMIXER2_IN_CFG_PIPE0__MASK 0x00000007
182 #define MDP4_LAYERMIXER2_IN_CFG_PIPE0__SHIFT 0
183 static inline uint32_t MDP4_LAYERMIXER2_IN_CFG_PIPE0(enum mdp_mixer_stage_id val)
185 return ((val) << MDP4_LAYERMIXER2_IN_CFG_PIPE0__SHIFT) & MDP4_LAYERMIXER2_IN_CFG_PIPE0__MASK;
187 #define MDP4_LAYERMIXER2_IN_CFG_PIPE0_MIXER1 0x00000008
188 #define MDP4_LAYERMIXER2_IN_CFG_PIPE1__MASK 0x00000070
189 #define MDP4_LAYERMIXER2_IN_CFG_PIPE1__SHIFT 4
190 static inline uint32_t MDP4_LAYERMIXER2_IN_CFG_PIPE1(enum mdp_mixer_stage_id val)
192 return ((val) << MDP4_LAYERMIXER2_IN_CFG_PIPE1__SHIFT) & MDP4_LAYERMIXER2_IN_CFG_PIPE1__MASK;
194 #define MDP4_LAYERMIXER2_IN_CFG_PIPE1_MIXER1 0x00000080
195 #define MDP4_LAYERMIXER2_IN_CFG_PIPE2__MASK 0x00000700
196 #define MDP4_LAYERMIXER2_IN_CFG_PIPE2__SHIFT 8
197 static inline uint32_t MDP4_LAYERMIXER2_IN_CFG_PIPE2(enum mdp_mixer_stage_id val)
199 return ((val) << MDP4_LAYERMIXER2_IN_CFG_PIPE2__SHIFT) & MDP4_LAYERMIXER2_IN_CFG_PIPE2__MASK;
201 #define MDP4_LAYERMIXER2_IN_CFG_PIPE2_MIXER1 0x00000800
202 #define MDP4_LAYERMIXER2_IN_CFG_PIPE3__MASK 0x00007000
203 #define MDP4_LAYERMIXER2_IN_CFG_PIPE3__SHIFT 12
204 static inline uint32_t MDP4_LAYERMIXER2_IN_CFG_PIPE3(enum mdp_mixer_stage_id val)
206 return ((val) << MDP4_LAYERMIXER2_IN_CFG_PIPE3__SHIFT) & MDP4_LAYERMIXER2_IN_CFG_PIPE3__MASK;
208 #define MDP4_LAYERMIXER2_IN_CFG_PIPE3_MIXER1 0x00008000
209 #define MDP4_LAYERMIXER2_IN_CFG_PIPE4__MASK 0x00070000
210 #define MDP4_LAYERMIXER2_IN_CFG_PIPE4__SHIFT 16
211 static inline uint32_t MDP4_LAYERMIXER2_IN_CFG_PIPE4(enum mdp_mixer_stage_id val)
213 return ((val) << MDP4_LAYERMIXER2_IN_CFG_PIPE4__SHIFT) & MDP4_LAYERMIXER2_IN_CFG_PIPE4__MASK;
215 #define MDP4_LAYERMIXER2_IN_CFG_PIPE4_MIXER1 0x00080000
216 #define MDP4_LAYERMIXER2_IN_CFG_PIPE5__MASK 0x00700000
217 #define MDP4_LAYERMIXER2_IN_CFG_PIPE5__SHIFT 20
218 static inline uint32_t MDP4_LAYERMIXER2_IN_CFG_PIPE5(enum mdp_mixer_stage_id val)
220 return ((val) << MDP4_LAYERMIXER2_IN_CFG_PIPE5__SHIFT) & MDP4_LAYERMIXER2_IN_CFG_PIPE5__MASK;
222 #define MDP4_LAYERMIXER2_IN_CFG_PIPE5_MIXER1 0x00800000
223 #define MDP4_LAYERMIXER2_IN_CFG_PIPE6__MASK 0x07000000
224 #define MDP4_LAYERMIXER2_IN_CFG_PIPE6__SHIFT 24
225 static inline uint32_t MDP4_LAYERMIXER2_IN_CFG_PIPE6(enum mdp_mixer_stage_id val)
227 return ((val) << MDP4_LAYERMIXER2_IN_CFG_PIPE6__SHIFT) & MDP4_LAYERMIXER2_IN_CFG_PIPE6__MASK;
229 #define MDP4_LAYERMIXER2_IN_CFG_PIPE6_MIXER1 0x08000000
230 #define MDP4_LAYERMIXER2_IN_CFG_PIPE7__MASK 0x70000000
231 #define MDP4_LAYERMIXER2_IN_CFG_PIPE7__SHIFT 28
232 static inline uint32_t MDP4_LAYERMIXER2_IN_CFG_PIPE7(enum mdp_mixer_stage_id val)
234 return ((val) << MDP4_LAYERMIXER2_IN_CFG_PIPE7__SHIFT) & MDP4_LAYERMIXER2_IN_CFG_PIPE7__MASK;
236 #define MDP4_LAYERMIXER2_IN_CFG_PIPE7_MIXER1 0x80000000
238 #define REG_MDP4_LAYERMIXER_IN_CFG_UPDATE_METHOD 0x000100fc
240 #define REG_MDP4_LAYERMIXER_IN_CFG 0x00010100
241 #define MDP4_LAYERMIXER_IN_CFG_PIPE0__MASK 0x00000007
242 #define MDP4_LAYERMIXER_IN_CFG_PIPE0__SHIFT 0
243 static inline uint32_t MDP4_LAYERMIXER_IN_CFG_PIPE0(enum mdp_mixer_stage_id val)
245 return ((val) << MDP4_LAYERMIXER_IN_CFG_PIPE0__SHIFT) & MDP4_LAYERMIXER_IN_CFG_PIPE0__MASK;
247 #define MDP4_LAYERMIXER_IN_CFG_PIPE0_MIXER1 0x00000008
248 #define MDP4_LAYERMIXER_IN_CFG_PIPE1__MASK 0x00000070
249 #define MDP4_LAYERMIXER_IN_CFG_PIPE1__SHIFT 4
250 static inline uint32_t MDP4_LAYERMIXER_IN_CFG_PIPE1(enum mdp_mixer_stage_id val)
252 return ((val) << MDP4_LAYERMIXER_IN_CFG_PIPE1__SHIFT) & MDP4_LAYERMIXER_IN_CFG_PIPE1__MASK;
254 #define MDP4_LAYERMIXER_IN_CFG_PIPE1_MIXER1 0x00000080
255 #define MDP4_LAYERMIXER_IN_CFG_PIPE2__MASK 0x00000700
256 #define MDP4_LAYERMIXER_IN_CFG_PIPE2__SHIFT 8
257 static inline uint32_t MDP4_LAYERMIXER_IN_CFG_PIPE2(enum mdp_mixer_stage_id val)
259 return ((val) << MDP4_LAYERMIXER_IN_CFG_PIPE2__SHIFT) & MDP4_LAYERMIXER_IN_CFG_PIPE2__MASK;
261 #define MDP4_LAYERMIXER_IN_CFG_PIPE2_MIXER1 0x00000800
262 #define MDP4_LAYERMIXER_IN_CFG_PIPE3__MASK 0x00007000
263 #define MDP4_LAYERMIXER_IN_CFG_PIPE3__SHIFT 12
264 static inline uint32_t MDP4_LAYERMIXER_IN_CFG_PIPE3(enum mdp_mixer_stage_id val)
266 return ((val) << MDP4_LAYERMIXER_IN_CFG_PIPE3__SHIFT) & MDP4_LAYERMIXER_IN_CFG_PIPE3__MASK;
268 #define MDP4_LAYERMIXER_IN_CFG_PIPE3_MIXER1 0x00008000
269 #define MDP4_LAYERMIXER_IN_CFG_PIPE4__MASK 0x00070000
270 #define MDP4_LAYERMIXER_IN_CFG_PIPE4__SHIFT 16
271 static inline uint32_t MDP4_LAYERMIXER_IN_CFG_PIPE4(enum mdp_mixer_stage_id val)
273 return ((val) << MDP4_LAYERMIXER_IN_CFG_PIPE4__SHIFT) & MDP4_LAYERMIXER_IN_CFG_PIPE4__MASK;
275 #define MDP4_LAYERMIXER_IN_CFG_PIPE4_MIXER1 0x00080000
276 #define MDP4_LAYERMIXER_IN_CFG_PIPE5__MASK 0x00700000
277 #define MDP4_LAYERMIXER_IN_CFG_PIPE5__SHIFT 20
278 static inline uint32_t MDP4_LAYERMIXER_IN_CFG_PIPE5(enum mdp_mixer_stage_id val)
280 return ((val) << MDP4_LAYERMIXER_IN_CFG_PIPE5__SHIFT) & MDP4_LAYERMIXER_IN_CFG_PIPE5__MASK;
282 #define MDP4_LAYERMIXER_IN_CFG_PIPE5_MIXER1 0x00800000
283 #define MDP4_LAYERMIXER_IN_CFG_PIPE6__MASK 0x07000000
284 #define MDP4_LAYERMIXER_IN_CFG_PIPE6__SHIFT 24
285 static inline uint32_t MDP4_LAYERMIXER_IN_CFG_PIPE6(enum mdp_mixer_stage_id val)
287 return ((val) << MDP4_LAYERMIXER_IN_CFG_PIPE6__SHIFT) & MDP4_LAYERMIXER_IN_CFG_PIPE6__MASK;
289 #define MDP4_LAYERMIXER_IN_CFG_PIPE6_MIXER1 0x08000000
290 #define MDP4_LAYERMIXER_IN_CFG_PIPE7__MASK 0x70000000
291 #define MDP4_LAYERMIXER_IN_CFG_PIPE7__SHIFT 28
292 static inline uint32_t MDP4_LAYERMIXER_IN_CFG_PIPE7(enum mdp_mixer_stage_id val)
294 return ((val) << MDP4_LAYERMIXER_IN_CFG_PIPE7__SHIFT) & MDP4_LAYERMIXER_IN_CFG_PIPE7__MASK;
296 #define MDP4_LAYERMIXER_IN_CFG_PIPE7_MIXER1 0x80000000
298 #define REG_MDP4_VG2_SRC_FORMAT 0x00030050
300 #define REG_MDP4_VG2_CONST_COLOR 0x00031008
302 #define REG_MDP4_OVERLAY_FLUSH 0x00018000
303 #define MDP4_OVERLAY_FLUSH_OVLP0 0x00000001
304 #define MDP4_OVERLAY_FLUSH_OVLP1 0x00000002
305 #define MDP4_OVERLAY_FLUSH_VG1 0x00000004
306 #define MDP4_OVERLAY_FLUSH_VG2 0x00000008
307 #define MDP4_OVERLAY_FLUSH_RGB1 0x00000010
308 #define MDP4_OVERLAY_FLUSH_RGB2 0x00000020
310 static inline uint32_t __offset_OVLP(uint32_t idx)
312 switch (idx) {
313 case 0: return 0x00010000;
314 case 1: return 0x00018000;
315 case 2: return 0x00088000;
316 default: return INVALID_IDX(idx);
319 static inline uint32_t REG_MDP4_OVLP(uint32_t i0) { return 0x00000000 + __offset_OVLP(i0); }
321 static inline uint32_t REG_MDP4_OVLP_CFG(uint32_t i0) { return 0x00000004 + __offset_OVLP(i0); }
323 static inline uint32_t REG_MDP4_OVLP_SIZE(uint32_t i0) { return 0x00000008 + __offset_OVLP(i0); }
324 #define MDP4_OVLP_SIZE_HEIGHT__MASK 0xffff0000
325 #define MDP4_OVLP_SIZE_HEIGHT__SHIFT 16
326 static inline uint32_t MDP4_OVLP_SIZE_HEIGHT(uint32_t val)
328 return ((val) << MDP4_OVLP_SIZE_HEIGHT__SHIFT) & MDP4_OVLP_SIZE_HEIGHT__MASK;
330 #define MDP4_OVLP_SIZE_WIDTH__MASK 0x0000ffff
331 #define MDP4_OVLP_SIZE_WIDTH__SHIFT 0
332 static inline uint32_t MDP4_OVLP_SIZE_WIDTH(uint32_t val)
334 return ((val) << MDP4_OVLP_SIZE_WIDTH__SHIFT) & MDP4_OVLP_SIZE_WIDTH__MASK;
337 static inline uint32_t REG_MDP4_OVLP_BASE(uint32_t i0) { return 0x0000000c + __offset_OVLP(i0); }
339 static inline uint32_t REG_MDP4_OVLP_STRIDE(uint32_t i0) { return 0x00000010 + __offset_OVLP(i0); }
341 static inline uint32_t REG_MDP4_OVLP_OPMODE(uint32_t i0) { return 0x00000014 + __offset_OVLP(i0); }
343 static inline uint32_t __offset_STAGE(uint32_t idx)
345 switch (idx) {
346 case 0: return 0x00000104;
347 case 1: return 0x00000124;
348 case 2: return 0x00000144;
349 case 3: return 0x00000160;
350 default: return INVALID_IDX(idx);
353 static inline uint32_t REG_MDP4_OVLP_STAGE(uint32_t i0, uint32_t i1) { return 0x00000000 + __offset_OVLP(i0) + __offset_STAGE(i1); }
355 static inline uint32_t REG_MDP4_OVLP_STAGE_OP(uint32_t i0, uint32_t i1) { return 0x00000000 + __offset_OVLP(i0) + __offset_STAGE(i1); }
356 #define MDP4_OVLP_STAGE_OP_FG_ALPHA__MASK 0x00000003
357 #define MDP4_OVLP_STAGE_OP_FG_ALPHA__SHIFT 0
358 static inline uint32_t MDP4_OVLP_STAGE_OP_FG_ALPHA(enum mdp_alpha_type val)
360 return ((val) << MDP4_OVLP_STAGE_OP_FG_ALPHA__SHIFT) & MDP4_OVLP_STAGE_OP_FG_ALPHA__MASK;
362 #define MDP4_OVLP_STAGE_OP_FG_INV_ALPHA 0x00000004
363 #define MDP4_OVLP_STAGE_OP_FG_MOD_ALPHA 0x00000008
364 #define MDP4_OVLP_STAGE_OP_BG_ALPHA__MASK 0x00000030
365 #define MDP4_OVLP_STAGE_OP_BG_ALPHA__SHIFT 4
366 static inline uint32_t MDP4_OVLP_STAGE_OP_BG_ALPHA(enum mdp_alpha_type val)
368 return ((val) << MDP4_OVLP_STAGE_OP_BG_ALPHA__SHIFT) & MDP4_OVLP_STAGE_OP_BG_ALPHA__MASK;
370 #define MDP4_OVLP_STAGE_OP_BG_INV_ALPHA 0x00000040
371 #define MDP4_OVLP_STAGE_OP_BG_MOD_ALPHA 0x00000080
372 #define MDP4_OVLP_STAGE_OP_FG_TRANSP 0x00000100
373 #define MDP4_OVLP_STAGE_OP_BG_TRANSP 0x00000200
375 static inline uint32_t REG_MDP4_OVLP_STAGE_FG_ALPHA(uint32_t i0, uint32_t i1) { return 0x00000004 + __offset_OVLP(i0) + __offset_STAGE(i1); }
377 static inline uint32_t REG_MDP4_OVLP_STAGE_BG_ALPHA(uint32_t i0, uint32_t i1) { return 0x00000008 + __offset_OVLP(i0) + __offset_STAGE(i1); }
379 static inline uint32_t REG_MDP4_OVLP_STAGE_TRANSP_LOW0(uint32_t i0, uint32_t i1) { return 0x0000000c + __offset_OVLP(i0) + __offset_STAGE(i1); }
381 static inline uint32_t REG_MDP4_OVLP_STAGE_TRANSP_LOW1(uint32_t i0, uint32_t i1) { return 0x00000010 + __offset_OVLP(i0) + __offset_STAGE(i1); }
383 static inline uint32_t REG_MDP4_OVLP_STAGE_TRANSP_HIGH0(uint32_t i0, uint32_t i1) { return 0x00000014 + __offset_OVLP(i0) + __offset_STAGE(i1); }
385 static inline uint32_t REG_MDP4_OVLP_STAGE_TRANSP_HIGH1(uint32_t i0, uint32_t i1) { return 0x00000018 + __offset_OVLP(i0) + __offset_STAGE(i1); }
387 static inline uint32_t __offset_STAGE_CO3(uint32_t idx)
389 switch (idx) {
390 case 0: return 0x00001004;
391 case 1: return 0x00001404;
392 case 2: return 0x00001804;
393 case 3: return 0x00001b84;
394 default: return INVALID_IDX(idx);
397 static inline uint32_t REG_MDP4_OVLP_STAGE_CO3(uint32_t i0, uint32_t i1) { return 0x00000000 + __offset_OVLP(i0) + __offset_STAGE_CO3(i1); }
399 static inline uint32_t REG_MDP4_OVLP_STAGE_CO3_SEL(uint32_t i0, uint32_t i1) { return 0x00000000 + __offset_OVLP(i0) + __offset_STAGE_CO3(i1); }
400 #define MDP4_OVLP_STAGE_CO3_SEL_FG_ALPHA 0x00000001
402 static inline uint32_t REG_MDP4_OVLP_TRANSP_LOW0(uint32_t i0) { return 0x00000180 + __offset_OVLP(i0); }
404 static inline uint32_t REG_MDP4_OVLP_TRANSP_LOW1(uint32_t i0) { return 0x00000184 + __offset_OVLP(i0); }
406 static inline uint32_t REG_MDP4_OVLP_TRANSP_HIGH0(uint32_t i0) { return 0x00000188 + __offset_OVLP(i0); }
408 static inline uint32_t REG_MDP4_OVLP_TRANSP_HIGH1(uint32_t i0) { return 0x0000018c + __offset_OVLP(i0); }
410 static inline uint32_t REG_MDP4_OVLP_CSC_CONFIG(uint32_t i0) { return 0x00000200 + __offset_OVLP(i0); }
412 static inline uint32_t REG_MDP4_OVLP_CSC(uint32_t i0) { return 0x00002000 + __offset_OVLP(i0); }
415 static inline uint32_t REG_MDP4_OVLP_CSC_MV(uint32_t i0, uint32_t i1) { return 0x00002400 + __offset_OVLP(i0) + 0x4*i1; }
417 static inline uint32_t REG_MDP4_OVLP_CSC_MV_VAL(uint32_t i0, uint32_t i1) { return 0x00002400 + __offset_OVLP(i0) + 0x4*i1; }
419 static inline uint32_t REG_MDP4_OVLP_CSC_PRE_BV(uint32_t i0, uint32_t i1) { return 0x00002500 + __offset_OVLP(i0) + 0x4*i1; }
421 static inline uint32_t REG_MDP4_OVLP_CSC_PRE_BV_VAL(uint32_t i0, uint32_t i1) { return 0x00002500 + __offset_OVLP(i0) + 0x4*i1; }
423 static inline uint32_t REG_MDP4_OVLP_CSC_POST_BV(uint32_t i0, uint32_t i1) { return 0x00002580 + __offset_OVLP(i0) + 0x4*i1; }
425 static inline uint32_t REG_MDP4_OVLP_CSC_POST_BV_VAL(uint32_t i0, uint32_t i1) { return 0x00002580 + __offset_OVLP(i0) + 0x4*i1; }
427 static inline uint32_t REG_MDP4_OVLP_CSC_PRE_LV(uint32_t i0, uint32_t i1) { return 0x00002600 + __offset_OVLP(i0) + 0x4*i1; }
429 static inline uint32_t REG_MDP4_OVLP_CSC_PRE_LV_VAL(uint32_t i0, uint32_t i1) { return 0x00002600 + __offset_OVLP(i0) + 0x4*i1; }
431 static inline uint32_t REG_MDP4_OVLP_CSC_POST_LV(uint32_t i0, uint32_t i1) { return 0x00002680 + __offset_OVLP(i0) + 0x4*i1; }
433 static inline uint32_t REG_MDP4_OVLP_CSC_POST_LV_VAL(uint32_t i0, uint32_t i1) { return 0x00002680 + __offset_OVLP(i0) + 0x4*i1; }
435 #define REG_MDP4_DMA_P_OP_MODE 0x00090070
437 static inline uint32_t REG_MDP4_LUTN(uint32_t i0) { return 0x00094800 + 0x400*i0; }
439 static inline uint32_t REG_MDP4_LUTN_LUT(uint32_t i0, uint32_t i1) { return 0x00094800 + 0x400*i0 + 0x4*i1; }
441 static inline uint32_t REG_MDP4_LUTN_LUT_VAL(uint32_t i0, uint32_t i1) { return 0x00094800 + 0x400*i0 + 0x4*i1; }
443 #define REG_MDP4_DMA_S_OP_MODE 0x000a0028
445 static inline uint32_t REG_MDP4_DMA_E_QUANT(uint32_t i0) { return 0x000b0070 + 0x4*i0; }
447 static inline uint32_t __offset_DMA(enum mdp4_dma idx)
449 switch (idx) {
450 case DMA_P: return 0x00090000;
451 case DMA_S: return 0x000a0000;
452 case DMA_E: return 0x000b0000;
453 default: return INVALID_IDX(idx);
456 static inline uint32_t REG_MDP4_DMA(enum mdp4_dma i0) { return 0x00000000 + __offset_DMA(i0); }
458 static inline uint32_t REG_MDP4_DMA_CONFIG(enum mdp4_dma i0) { return 0x00000000 + __offset_DMA(i0); }
459 #define MDP4_DMA_CONFIG_G_BPC__MASK 0x00000003
460 #define MDP4_DMA_CONFIG_G_BPC__SHIFT 0
461 static inline uint32_t MDP4_DMA_CONFIG_G_BPC(enum mdp_bpc val)
463 return ((val) << MDP4_DMA_CONFIG_G_BPC__SHIFT) & MDP4_DMA_CONFIG_G_BPC__MASK;
465 #define MDP4_DMA_CONFIG_B_BPC__MASK 0x0000000c
466 #define MDP4_DMA_CONFIG_B_BPC__SHIFT 2
467 static inline uint32_t MDP4_DMA_CONFIG_B_BPC(enum mdp_bpc val)
469 return ((val) << MDP4_DMA_CONFIG_B_BPC__SHIFT) & MDP4_DMA_CONFIG_B_BPC__MASK;
471 #define MDP4_DMA_CONFIG_R_BPC__MASK 0x00000030
472 #define MDP4_DMA_CONFIG_R_BPC__SHIFT 4
473 static inline uint32_t MDP4_DMA_CONFIG_R_BPC(enum mdp_bpc val)
475 return ((val) << MDP4_DMA_CONFIG_R_BPC__SHIFT) & MDP4_DMA_CONFIG_R_BPC__MASK;
477 #define MDP4_DMA_CONFIG_PACK_ALIGN_MSB 0x00000080
478 #define MDP4_DMA_CONFIG_PACK__MASK 0x0000ff00
479 #define MDP4_DMA_CONFIG_PACK__SHIFT 8
480 static inline uint32_t MDP4_DMA_CONFIG_PACK(uint32_t val)
482 return ((val) << MDP4_DMA_CONFIG_PACK__SHIFT) & MDP4_DMA_CONFIG_PACK__MASK;
484 #define MDP4_DMA_CONFIG_DEFLKR_EN 0x01000000
485 #define MDP4_DMA_CONFIG_DITHER_EN 0x01000000
487 static inline uint32_t REG_MDP4_DMA_SRC_SIZE(enum mdp4_dma i0) { return 0x00000004 + __offset_DMA(i0); }
488 #define MDP4_DMA_SRC_SIZE_HEIGHT__MASK 0xffff0000
489 #define MDP4_DMA_SRC_SIZE_HEIGHT__SHIFT 16
490 static inline uint32_t MDP4_DMA_SRC_SIZE_HEIGHT(uint32_t val)
492 return ((val) << MDP4_DMA_SRC_SIZE_HEIGHT__SHIFT) & MDP4_DMA_SRC_SIZE_HEIGHT__MASK;
494 #define MDP4_DMA_SRC_SIZE_WIDTH__MASK 0x0000ffff
495 #define MDP4_DMA_SRC_SIZE_WIDTH__SHIFT 0
496 static inline uint32_t MDP4_DMA_SRC_SIZE_WIDTH(uint32_t val)
498 return ((val) << MDP4_DMA_SRC_SIZE_WIDTH__SHIFT) & MDP4_DMA_SRC_SIZE_WIDTH__MASK;
501 static inline uint32_t REG_MDP4_DMA_SRC_BASE(enum mdp4_dma i0) { return 0x00000008 + __offset_DMA(i0); }
503 static inline uint32_t REG_MDP4_DMA_SRC_STRIDE(enum mdp4_dma i0) { return 0x0000000c + __offset_DMA(i0); }
505 static inline uint32_t REG_MDP4_DMA_DST_SIZE(enum mdp4_dma i0) { return 0x00000010 + __offset_DMA(i0); }
506 #define MDP4_DMA_DST_SIZE_HEIGHT__MASK 0xffff0000
507 #define MDP4_DMA_DST_SIZE_HEIGHT__SHIFT 16
508 static inline uint32_t MDP4_DMA_DST_SIZE_HEIGHT(uint32_t val)
510 return ((val) << MDP4_DMA_DST_SIZE_HEIGHT__SHIFT) & MDP4_DMA_DST_SIZE_HEIGHT__MASK;
512 #define MDP4_DMA_DST_SIZE_WIDTH__MASK 0x0000ffff
513 #define MDP4_DMA_DST_SIZE_WIDTH__SHIFT 0
514 static inline uint32_t MDP4_DMA_DST_SIZE_WIDTH(uint32_t val)
516 return ((val) << MDP4_DMA_DST_SIZE_WIDTH__SHIFT) & MDP4_DMA_DST_SIZE_WIDTH__MASK;
519 static inline uint32_t REG_MDP4_DMA_CURSOR_SIZE(enum mdp4_dma i0) { return 0x00000044 + __offset_DMA(i0); }
520 #define MDP4_DMA_CURSOR_SIZE_WIDTH__MASK 0x0000007f
521 #define MDP4_DMA_CURSOR_SIZE_WIDTH__SHIFT 0
522 static inline uint32_t MDP4_DMA_CURSOR_SIZE_WIDTH(uint32_t val)
524 return ((val) << MDP4_DMA_CURSOR_SIZE_WIDTH__SHIFT) & MDP4_DMA_CURSOR_SIZE_WIDTH__MASK;
526 #define MDP4_DMA_CURSOR_SIZE_HEIGHT__MASK 0x007f0000
527 #define MDP4_DMA_CURSOR_SIZE_HEIGHT__SHIFT 16
528 static inline uint32_t MDP4_DMA_CURSOR_SIZE_HEIGHT(uint32_t val)
530 return ((val) << MDP4_DMA_CURSOR_SIZE_HEIGHT__SHIFT) & MDP4_DMA_CURSOR_SIZE_HEIGHT__MASK;
533 static inline uint32_t REG_MDP4_DMA_CURSOR_BASE(enum mdp4_dma i0) { return 0x00000048 + __offset_DMA(i0); }
535 static inline uint32_t REG_MDP4_DMA_CURSOR_POS(enum mdp4_dma i0) { return 0x0000004c + __offset_DMA(i0); }
536 #define MDP4_DMA_CURSOR_POS_X__MASK 0x0000ffff
537 #define MDP4_DMA_CURSOR_POS_X__SHIFT 0
538 static inline uint32_t MDP4_DMA_CURSOR_POS_X(uint32_t val)
540 return ((val) << MDP4_DMA_CURSOR_POS_X__SHIFT) & MDP4_DMA_CURSOR_POS_X__MASK;
542 #define MDP4_DMA_CURSOR_POS_Y__MASK 0xffff0000
543 #define MDP4_DMA_CURSOR_POS_Y__SHIFT 16
544 static inline uint32_t MDP4_DMA_CURSOR_POS_Y(uint32_t val)
546 return ((val) << MDP4_DMA_CURSOR_POS_Y__SHIFT) & MDP4_DMA_CURSOR_POS_Y__MASK;
549 static inline uint32_t REG_MDP4_DMA_CURSOR_BLEND_CONFIG(enum mdp4_dma i0) { return 0x00000060 + __offset_DMA(i0); }
550 #define MDP4_DMA_CURSOR_BLEND_CONFIG_CURSOR_EN 0x00000001
551 #define MDP4_DMA_CURSOR_BLEND_CONFIG_FORMAT__MASK 0x00000006
552 #define MDP4_DMA_CURSOR_BLEND_CONFIG_FORMAT__SHIFT 1
553 static inline uint32_t MDP4_DMA_CURSOR_BLEND_CONFIG_FORMAT(enum mdp4_cursor_format val)
555 return ((val) << MDP4_DMA_CURSOR_BLEND_CONFIG_FORMAT__SHIFT) & MDP4_DMA_CURSOR_BLEND_CONFIG_FORMAT__MASK;
557 #define MDP4_DMA_CURSOR_BLEND_CONFIG_TRANSP_EN 0x00000008
559 static inline uint32_t REG_MDP4_DMA_CURSOR_BLEND_PARAM(enum mdp4_dma i0) { return 0x00000064 + __offset_DMA(i0); }
561 static inline uint32_t REG_MDP4_DMA_BLEND_TRANS_LOW(enum mdp4_dma i0) { return 0x00000068 + __offset_DMA(i0); }
563 static inline uint32_t REG_MDP4_DMA_BLEND_TRANS_HIGH(enum mdp4_dma i0) { return 0x0000006c + __offset_DMA(i0); }
565 static inline uint32_t REG_MDP4_DMA_FETCH_CONFIG(enum mdp4_dma i0) { return 0x00001004 + __offset_DMA(i0); }
567 static inline uint32_t REG_MDP4_DMA_CSC(enum mdp4_dma i0) { return 0x00003000 + __offset_DMA(i0); }
570 static inline uint32_t REG_MDP4_DMA_CSC_MV(enum mdp4_dma i0, uint32_t i1) { return 0x00003400 + __offset_DMA(i0) + 0x4*i1; }
572 static inline uint32_t REG_MDP4_DMA_CSC_MV_VAL(enum mdp4_dma i0, uint32_t i1) { return 0x00003400 + __offset_DMA(i0) + 0x4*i1; }
574 static inline uint32_t REG_MDP4_DMA_CSC_PRE_BV(enum mdp4_dma i0, uint32_t i1) { return 0x00003500 + __offset_DMA(i0) + 0x4*i1; }
576 static inline uint32_t REG_MDP4_DMA_CSC_PRE_BV_VAL(enum mdp4_dma i0, uint32_t i1) { return 0x00003500 + __offset_DMA(i0) + 0x4*i1; }
578 static inline uint32_t REG_MDP4_DMA_CSC_POST_BV(enum mdp4_dma i0, uint32_t i1) { return 0x00003580 + __offset_DMA(i0) + 0x4*i1; }
580 static inline uint32_t REG_MDP4_DMA_CSC_POST_BV_VAL(enum mdp4_dma i0, uint32_t i1) { return 0x00003580 + __offset_DMA(i0) + 0x4*i1; }
582 static inline uint32_t REG_MDP4_DMA_CSC_PRE_LV(enum mdp4_dma i0, uint32_t i1) { return 0x00003600 + __offset_DMA(i0) + 0x4*i1; }
584 static inline uint32_t REG_MDP4_DMA_CSC_PRE_LV_VAL(enum mdp4_dma i0, uint32_t i1) { return 0x00003600 + __offset_DMA(i0) + 0x4*i1; }
586 static inline uint32_t REG_MDP4_DMA_CSC_POST_LV(enum mdp4_dma i0, uint32_t i1) { return 0x00003680 + __offset_DMA(i0) + 0x4*i1; }
588 static inline uint32_t REG_MDP4_DMA_CSC_POST_LV_VAL(enum mdp4_dma i0, uint32_t i1) { return 0x00003680 + __offset_DMA(i0) + 0x4*i1; }
590 static inline uint32_t REG_MDP4_PIPE(enum mdp4_pipe i0) { return 0x00020000 + 0x10000*i0; }
592 static inline uint32_t REG_MDP4_PIPE_SRC_SIZE(enum mdp4_pipe i0) { return 0x00020000 + 0x10000*i0; }
593 #define MDP4_PIPE_SRC_SIZE_HEIGHT__MASK 0xffff0000
594 #define MDP4_PIPE_SRC_SIZE_HEIGHT__SHIFT 16
595 static inline uint32_t MDP4_PIPE_SRC_SIZE_HEIGHT(uint32_t val)
597 return ((val) << MDP4_PIPE_SRC_SIZE_HEIGHT__SHIFT) & MDP4_PIPE_SRC_SIZE_HEIGHT__MASK;
599 #define MDP4_PIPE_SRC_SIZE_WIDTH__MASK 0x0000ffff
600 #define MDP4_PIPE_SRC_SIZE_WIDTH__SHIFT 0
601 static inline uint32_t MDP4_PIPE_SRC_SIZE_WIDTH(uint32_t val)
603 return ((val) << MDP4_PIPE_SRC_SIZE_WIDTH__SHIFT) & MDP4_PIPE_SRC_SIZE_WIDTH__MASK;
606 static inline uint32_t REG_MDP4_PIPE_SRC_XY(enum mdp4_pipe i0) { return 0x00020004 + 0x10000*i0; }
607 #define MDP4_PIPE_SRC_XY_Y__MASK 0xffff0000
608 #define MDP4_PIPE_SRC_XY_Y__SHIFT 16
609 static inline uint32_t MDP4_PIPE_SRC_XY_Y(uint32_t val)
611 return ((val) << MDP4_PIPE_SRC_XY_Y__SHIFT) & MDP4_PIPE_SRC_XY_Y__MASK;
613 #define MDP4_PIPE_SRC_XY_X__MASK 0x0000ffff
614 #define MDP4_PIPE_SRC_XY_X__SHIFT 0
615 static inline uint32_t MDP4_PIPE_SRC_XY_X(uint32_t val)
617 return ((val) << MDP4_PIPE_SRC_XY_X__SHIFT) & MDP4_PIPE_SRC_XY_X__MASK;
620 static inline uint32_t REG_MDP4_PIPE_DST_SIZE(enum mdp4_pipe i0) { return 0x00020008 + 0x10000*i0; }
621 #define MDP4_PIPE_DST_SIZE_HEIGHT__MASK 0xffff0000
622 #define MDP4_PIPE_DST_SIZE_HEIGHT__SHIFT 16
623 static inline uint32_t MDP4_PIPE_DST_SIZE_HEIGHT(uint32_t val)
625 return ((val) << MDP4_PIPE_DST_SIZE_HEIGHT__SHIFT) & MDP4_PIPE_DST_SIZE_HEIGHT__MASK;
627 #define MDP4_PIPE_DST_SIZE_WIDTH__MASK 0x0000ffff
628 #define MDP4_PIPE_DST_SIZE_WIDTH__SHIFT 0
629 static inline uint32_t MDP4_PIPE_DST_SIZE_WIDTH(uint32_t val)
631 return ((val) << MDP4_PIPE_DST_SIZE_WIDTH__SHIFT) & MDP4_PIPE_DST_SIZE_WIDTH__MASK;
634 static inline uint32_t REG_MDP4_PIPE_DST_XY(enum mdp4_pipe i0) { return 0x0002000c + 0x10000*i0; }
635 #define MDP4_PIPE_DST_XY_Y__MASK 0xffff0000
636 #define MDP4_PIPE_DST_XY_Y__SHIFT 16
637 static inline uint32_t MDP4_PIPE_DST_XY_Y(uint32_t val)
639 return ((val) << MDP4_PIPE_DST_XY_Y__SHIFT) & MDP4_PIPE_DST_XY_Y__MASK;
641 #define MDP4_PIPE_DST_XY_X__MASK 0x0000ffff
642 #define MDP4_PIPE_DST_XY_X__SHIFT 0
643 static inline uint32_t MDP4_PIPE_DST_XY_X(uint32_t val)
645 return ((val) << MDP4_PIPE_DST_XY_X__SHIFT) & MDP4_PIPE_DST_XY_X__MASK;
648 static inline uint32_t REG_MDP4_PIPE_SRCP0_BASE(enum mdp4_pipe i0) { return 0x00020010 + 0x10000*i0; }
650 static inline uint32_t REG_MDP4_PIPE_SRCP1_BASE(enum mdp4_pipe i0) { return 0x00020014 + 0x10000*i0; }
652 static inline uint32_t REG_MDP4_PIPE_SRCP2_BASE(enum mdp4_pipe i0) { return 0x00020018 + 0x10000*i0; }
654 static inline uint32_t REG_MDP4_PIPE_SRCP3_BASE(enum mdp4_pipe i0) { return 0x0002001c + 0x10000*i0; }
656 static inline uint32_t REG_MDP4_PIPE_SRC_STRIDE_A(enum mdp4_pipe i0) { return 0x00020040 + 0x10000*i0; }
657 #define MDP4_PIPE_SRC_STRIDE_A_P0__MASK 0x0000ffff
658 #define MDP4_PIPE_SRC_STRIDE_A_P0__SHIFT 0
659 static inline uint32_t MDP4_PIPE_SRC_STRIDE_A_P0(uint32_t val)
661 return ((val) << MDP4_PIPE_SRC_STRIDE_A_P0__SHIFT) & MDP4_PIPE_SRC_STRIDE_A_P0__MASK;
663 #define MDP4_PIPE_SRC_STRIDE_A_P1__MASK 0xffff0000
664 #define MDP4_PIPE_SRC_STRIDE_A_P1__SHIFT 16
665 static inline uint32_t MDP4_PIPE_SRC_STRIDE_A_P1(uint32_t val)
667 return ((val) << MDP4_PIPE_SRC_STRIDE_A_P1__SHIFT) & MDP4_PIPE_SRC_STRIDE_A_P1__MASK;
670 static inline uint32_t REG_MDP4_PIPE_SRC_STRIDE_B(enum mdp4_pipe i0) { return 0x00020044 + 0x10000*i0; }
671 #define MDP4_PIPE_SRC_STRIDE_B_P2__MASK 0x0000ffff
672 #define MDP4_PIPE_SRC_STRIDE_B_P2__SHIFT 0
673 static inline uint32_t MDP4_PIPE_SRC_STRIDE_B_P2(uint32_t val)
675 return ((val) << MDP4_PIPE_SRC_STRIDE_B_P2__SHIFT) & MDP4_PIPE_SRC_STRIDE_B_P2__MASK;
677 #define MDP4_PIPE_SRC_STRIDE_B_P3__MASK 0xffff0000
678 #define MDP4_PIPE_SRC_STRIDE_B_P3__SHIFT 16
679 static inline uint32_t MDP4_PIPE_SRC_STRIDE_B_P3(uint32_t val)
681 return ((val) << MDP4_PIPE_SRC_STRIDE_B_P3__SHIFT) & MDP4_PIPE_SRC_STRIDE_B_P3__MASK;
684 static inline uint32_t REG_MDP4_PIPE_SSTILE_FRAME_SIZE(enum mdp4_pipe i0) { return 0x00020048 + 0x10000*i0; }
685 #define MDP4_PIPE_SSTILE_FRAME_SIZE_HEIGHT__MASK 0xffff0000
686 #define MDP4_PIPE_SSTILE_FRAME_SIZE_HEIGHT__SHIFT 16
687 static inline uint32_t MDP4_PIPE_SSTILE_FRAME_SIZE_HEIGHT(uint32_t val)
689 return ((val) << MDP4_PIPE_SSTILE_FRAME_SIZE_HEIGHT__SHIFT) & MDP4_PIPE_SSTILE_FRAME_SIZE_HEIGHT__MASK;
691 #define MDP4_PIPE_SSTILE_FRAME_SIZE_WIDTH__MASK 0x0000ffff
692 #define MDP4_PIPE_SSTILE_FRAME_SIZE_WIDTH__SHIFT 0
693 static inline uint32_t MDP4_PIPE_SSTILE_FRAME_SIZE_WIDTH(uint32_t val)
695 return ((val) << MDP4_PIPE_SSTILE_FRAME_SIZE_WIDTH__SHIFT) & MDP4_PIPE_SSTILE_FRAME_SIZE_WIDTH__MASK;
698 static inline uint32_t REG_MDP4_PIPE_SRC_FORMAT(enum mdp4_pipe i0) { return 0x00020050 + 0x10000*i0; }
699 #define MDP4_PIPE_SRC_FORMAT_G_BPC__MASK 0x00000003
700 #define MDP4_PIPE_SRC_FORMAT_G_BPC__SHIFT 0
701 static inline uint32_t MDP4_PIPE_SRC_FORMAT_G_BPC(enum mdp_bpc val)
703 return ((val) << MDP4_PIPE_SRC_FORMAT_G_BPC__SHIFT) & MDP4_PIPE_SRC_FORMAT_G_BPC__MASK;
705 #define MDP4_PIPE_SRC_FORMAT_B_BPC__MASK 0x0000000c
706 #define MDP4_PIPE_SRC_FORMAT_B_BPC__SHIFT 2
707 static inline uint32_t MDP4_PIPE_SRC_FORMAT_B_BPC(enum mdp_bpc val)
709 return ((val) << MDP4_PIPE_SRC_FORMAT_B_BPC__SHIFT) & MDP4_PIPE_SRC_FORMAT_B_BPC__MASK;
711 #define MDP4_PIPE_SRC_FORMAT_R_BPC__MASK 0x00000030
712 #define MDP4_PIPE_SRC_FORMAT_R_BPC__SHIFT 4
713 static inline uint32_t MDP4_PIPE_SRC_FORMAT_R_BPC(enum mdp_bpc val)
715 return ((val) << MDP4_PIPE_SRC_FORMAT_R_BPC__SHIFT) & MDP4_PIPE_SRC_FORMAT_R_BPC__MASK;
717 #define MDP4_PIPE_SRC_FORMAT_A_BPC__MASK 0x000000c0
718 #define MDP4_PIPE_SRC_FORMAT_A_BPC__SHIFT 6
719 static inline uint32_t MDP4_PIPE_SRC_FORMAT_A_BPC(enum mdp_bpc_alpha val)
721 return ((val) << MDP4_PIPE_SRC_FORMAT_A_BPC__SHIFT) & MDP4_PIPE_SRC_FORMAT_A_BPC__MASK;
723 #define MDP4_PIPE_SRC_FORMAT_ALPHA_ENABLE 0x00000100
724 #define MDP4_PIPE_SRC_FORMAT_CPP__MASK 0x00000600
725 #define MDP4_PIPE_SRC_FORMAT_CPP__SHIFT 9
726 static inline uint32_t MDP4_PIPE_SRC_FORMAT_CPP(uint32_t val)
728 return ((val) << MDP4_PIPE_SRC_FORMAT_CPP__SHIFT) & MDP4_PIPE_SRC_FORMAT_CPP__MASK;
730 #define MDP4_PIPE_SRC_FORMAT_ROTATED_90 0x00001000
731 #define MDP4_PIPE_SRC_FORMAT_UNPACK_COUNT__MASK 0x00006000
732 #define MDP4_PIPE_SRC_FORMAT_UNPACK_COUNT__SHIFT 13
733 static inline uint32_t MDP4_PIPE_SRC_FORMAT_UNPACK_COUNT(uint32_t val)
735 return ((val) << MDP4_PIPE_SRC_FORMAT_UNPACK_COUNT__SHIFT) & MDP4_PIPE_SRC_FORMAT_UNPACK_COUNT__MASK;
737 #define MDP4_PIPE_SRC_FORMAT_UNPACK_TIGHT 0x00020000
738 #define MDP4_PIPE_SRC_FORMAT_UNPACK_ALIGN_MSB 0x00040000
739 #define MDP4_PIPE_SRC_FORMAT_FETCH_PLANES__MASK 0x00180000
740 #define MDP4_PIPE_SRC_FORMAT_FETCH_PLANES__SHIFT 19
741 static inline uint32_t MDP4_PIPE_SRC_FORMAT_FETCH_PLANES(uint32_t val)
743 return ((val) << MDP4_PIPE_SRC_FORMAT_FETCH_PLANES__SHIFT) & MDP4_PIPE_SRC_FORMAT_FETCH_PLANES__MASK;
745 #define MDP4_PIPE_SRC_FORMAT_SOLID_FILL 0x00400000
746 #define MDP4_PIPE_SRC_FORMAT_CHROMA_SAMP__MASK 0x0c000000
747 #define MDP4_PIPE_SRC_FORMAT_CHROMA_SAMP__SHIFT 26
748 static inline uint32_t MDP4_PIPE_SRC_FORMAT_CHROMA_SAMP(enum mdp_chroma_samp_type val)
750 return ((val) << MDP4_PIPE_SRC_FORMAT_CHROMA_SAMP__SHIFT) & MDP4_PIPE_SRC_FORMAT_CHROMA_SAMP__MASK;
752 #define MDP4_PIPE_SRC_FORMAT_FRAME_FORMAT__MASK 0x60000000
753 #define MDP4_PIPE_SRC_FORMAT_FRAME_FORMAT__SHIFT 29
754 static inline uint32_t MDP4_PIPE_SRC_FORMAT_FRAME_FORMAT(enum mdp4_frame_format val)
756 return ((val) << MDP4_PIPE_SRC_FORMAT_FRAME_FORMAT__SHIFT) & MDP4_PIPE_SRC_FORMAT_FRAME_FORMAT__MASK;
759 static inline uint32_t REG_MDP4_PIPE_SRC_UNPACK(enum mdp4_pipe i0) { return 0x00020054 + 0x10000*i0; }
760 #define MDP4_PIPE_SRC_UNPACK_ELEM0__MASK 0x000000ff
761 #define MDP4_PIPE_SRC_UNPACK_ELEM0__SHIFT 0
762 static inline uint32_t MDP4_PIPE_SRC_UNPACK_ELEM0(uint32_t val)
764 return ((val) << MDP4_PIPE_SRC_UNPACK_ELEM0__SHIFT) & MDP4_PIPE_SRC_UNPACK_ELEM0__MASK;
766 #define MDP4_PIPE_SRC_UNPACK_ELEM1__MASK 0x0000ff00
767 #define MDP4_PIPE_SRC_UNPACK_ELEM1__SHIFT 8
768 static inline uint32_t MDP4_PIPE_SRC_UNPACK_ELEM1(uint32_t val)
770 return ((val) << MDP4_PIPE_SRC_UNPACK_ELEM1__SHIFT) & MDP4_PIPE_SRC_UNPACK_ELEM1__MASK;
772 #define MDP4_PIPE_SRC_UNPACK_ELEM2__MASK 0x00ff0000
773 #define MDP4_PIPE_SRC_UNPACK_ELEM2__SHIFT 16
774 static inline uint32_t MDP4_PIPE_SRC_UNPACK_ELEM2(uint32_t val)
776 return ((val) << MDP4_PIPE_SRC_UNPACK_ELEM2__SHIFT) & MDP4_PIPE_SRC_UNPACK_ELEM2__MASK;
778 #define MDP4_PIPE_SRC_UNPACK_ELEM3__MASK 0xff000000
779 #define MDP4_PIPE_SRC_UNPACK_ELEM3__SHIFT 24
780 static inline uint32_t MDP4_PIPE_SRC_UNPACK_ELEM3(uint32_t val)
782 return ((val) << MDP4_PIPE_SRC_UNPACK_ELEM3__SHIFT) & MDP4_PIPE_SRC_UNPACK_ELEM3__MASK;
785 static inline uint32_t REG_MDP4_PIPE_OP_MODE(enum mdp4_pipe i0) { return 0x00020058 + 0x10000*i0; }
786 #define MDP4_PIPE_OP_MODE_SCALEX_EN 0x00000001
787 #define MDP4_PIPE_OP_MODE_SCALEY_EN 0x00000002
788 #define MDP4_PIPE_OP_MODE_SCALEX_UNIT_SEL__MASK 0x0000000c
789 #define MDP4_PIPE_OP_MODE_SCALEX_UNIT_SEL__SHIFT 2
790 static inline uint32_t MDP4_PIPE_OP_MODE_SCALEX_UNIT_SEL(enum mdp4_scale_unit val)
792 return ((val) << MDP4_PIPE_OP_MODE_SCALEX_UNIT_SEL__SHIFT) & MDP4_PIPE_OP_MODE_SCALEX_UNIT_SEL__MASK;
794 #define MDP4_PIPE_OP_MODE_SCALEY_UNIT_SEL__MASK 0x00000030
795 #define MDP4_PIPE_OP_MODE_SCALEY_UNIT_SEL__SHIFT 4
796 static inline uint32_t MDP4_PIPE_OP_MODE_SCALEY_UNIT_SEL(enum mdp4_scale_unit val)
798 return ((val) << MDP4_PIPE_OP_MODE_SCALEY_UNIT_SEL__SHIFT) & MDP4_PIPE_OP_MODE_SCALEY_UNIT_SEL__MASK;
800 #define MDP4_PIPE_OP_MODE_SRC_YCBCR 0x00000200
801 #define MDP4_PIPE_OP_MODE_DST_YCBCR 0x00000400
802 #define MDP4_PIPE_OP_MODE_CSC_EN 0x00000800
803 #define MDP4_PIPE_OP_MODE_FLIP_LR 0x00002000
804 #define MDP4_PIPE_OP_MODE_FLIP_UD 0x00004000
805 #define MDP4_PIPE_OP_MODE_DITHER_EN 0x00008000
806 #define MDP4_PIPE_OP_MODE_IGC_LUT_EN 0x00010000
807 #define MDP4_PIPE_OP_MODE_DEINT_EN 0x00040000
808 #define MDP4_PIPE_OP_MODE_DEINT_ODD_REF 0x00080000
810 static inline uint32_t REG_MDP4_PIPE_PHASEX_STEP(enum mdp4_pipe i0) { return 0x0002005c + 0x10000*i0; }
812 static inline uint32_t REG_MDP4_PIPE_PHASEY_STEP(enum mdp4_pipe i0) { return 0x00020060 + 0x10000*i0; }
814 static inline uint32_t REG_MDP4_PIPE_FETCH_CONFIG(enum mdp4_pipe i0) { return 0x00021004 + 0x10000*i0; }
816 static inline uint32_t REG_MDP4_PIPE_SOLID_COLOR(enum mdp4_pipe i0) { return 0x00021008 + 0x10000*i0; }
818 static inline uint32_t REG_MDP4_PIPE_CSC(enum mdp4_pipe i0) { return 0x00024000 + 0x10000*i0; }
821 static inline uint32_t REG_MDP4_PIPE_CSC_MV(enum mdp4_pipe i0, uint32_t i1) { return 0x00024400 + 0x10000*i0 + 0x4*i1; }
823 static inline uint32_t REG_MDP4_PIPE_CSC_MV_VAL(enum mdp4_pipe i0, uint32_t i1) { return 0x00024400 + 0x10000*i0 + 0x4*i1; }
825 static inline uint32_t REG_MDP4_PIPE_CSC_PRE_BV(enum mdp4_pipe i0, uint32_t i1) { return 0x00024500 + 0x10000*i0 + 0x4*i1; }
827 static inline uint32_t REG_MDP4_PIPE_CSC_PRE_BV_VAL(enum mdp4_pipe i0, uint32_t i1) { return 0x00024500 + 0x10000*i0 + 0x4*i1; }
829 static inline uint32_t REG_MDP4_PIPE_CSC_POST_BV(enum mdp4_pipe i0, uint32_t i1) { return 0x00024580 + 0x10000*i0 + 0x4*i1; }
831 static inline uint32_t REG_MDP4_PIPE_CSC_POST_BV_VAL(enum mdp4_pipe i0, uint32_t i1) { return 0x00024580 + 0x10000*i0 + 0x4*i1; }
833 static inline uint32_t REG_MDP4_PIPE_CSC_PRE_LV(enum mdp4_pipe i0, uint32_t i1) { return 0x00024600 + 0x10000*i0 + 0x4*i1; }
835 static inline uint32_t REG_MDP4_PIPE_CSC_PRE_LV_VAL(enum mdp4_pipe i0, uint32_t i1) { return 0x00024600 + 0x10000*i0 + 0x4*i1; }
837 static inline uint32_t REG_MDP4_PIPE_CSC_POST_LV(enum mdp4_pipe i0, uint32_t i1) { return 0x00024680 + 0x10000*i0 + 0x4*i1; }
839 static inline uint32_t REG_MDP4_PIPE_CSC_POST_LV_VAL(enum mdp4_pipe i0, uint32_t i1) { return 0x00024680 + 0x10000*i0 + 0x4*i1; }
841 #define REG_MDP4_LCDC 0x000c0000
843 #define REG_MDP4_LCDC_ENABLE 0x000c0000
845 #define REG_MDP4_LCDC_HSYNC_CTRL 0x000c0004
846 #define MDP4_LCDC_HSYNC_CTRL_PULSEW__MASK 0x0000ffff
847 #define MDP4_LCDC_HSYNC_CTRL_PULSEW__SHIFT 0
848 static inline uint32_t MDP4_LCDC_HSYNC_CTRL_PULSEW(uint32_t val)
850 return ((val) << MDP4_LCDC_HSYNC_CTRL_PULSEW__SHIFT) & MDP4_LCDC_HSYNC_CTRL_PULSEW__MASK;
852 #define MDP4_LCDC_HSYNC_CTRL_PERIOD__MASK 0xffff0000
853 #define MDP4_LCDC_HSYNC_CTRL_PERIOD__SHIFT 16
854 static inline uint32_t MDP4_LCDC_HSYNC_CTRL_PERIOD(uint32_t val)
856 return ((val) << MDP4_LCDC_HSYNC_CTRL_PERIOD__SHIFT) & MDP4_LCDC_HSYNC_CTRL_PERIOD__MASK;
859 #define REG_MDP4_LCDC_VSYNC_PERIOD 0x000c0008
861 #define REG_MDP4_LCDC_VSYNC_LEN 0x000c000c
863 #define REG_MDP4_LCDC_DISPLAY_HCTRL 0x000c0010
864 #define MDP4_LCDC_DISPLAY_HCTRL_START__MASK 0x0000ffff
865 #define MDP4_LCDC_DISPLAY_HCTRL_START__SHIFT 0
866 static inline uint32_t MDP4_LCDC_DISPLAY_HCTRL_START(uint32_t val)
868 return ((val) << MDP4_LCDC_DISPLAY_HCTRL_START__SHIFT) & MDP4_LCDC_DISPLAY_HCTRL_START__MASK;
870 #define MDP4_LCDC_DISPLAY_HCTRL_END__MASK 0xffff0000
871 #define MDP4_LCDC_DISPLAY_HCTRL_END__SHIFT 16
872 static inline uint32_t MDP4_LCDC_DISPLAY_HCTRL_END(uint32_t val)
874 return ((val) << MDP4_LCDC_DISPLAY_HCTRL_END__SHIFT) & MDP4_LCDC_DISPLAY_HCTRL_END__MASK;
877 #define REG_MDP4_LCDC_DISPLAY_VSTART 0x000c0014
879 #define REG_MDP4_LCDC_DISPLAY_VEND 0x000c0018
881 #define REG_MDP4_LCDC_ACTIVE_HCTL 0x000c001c
882 #define MDP4_LCDC_ACTIVE_HCTL_START__MASK 0x00007fff
883 #define MDP4_LCDC_ACTIVE_HCTL_START__SHIFT 0
884 static inline uint32_t MDP4_LCDC_ACTIVE_HCTL_START(uint32_t val)
886 return ((val) << MDP4_LCDC_ACTIVE_HCTL_START__SHIFT) & MDP4_LCDC_ACTIVE_HCTL_START__MASK;
888 #define MDP4_LCDC_ACTIVE_HCTL_END__MASK 0x7fff0000
889 #define MDP4_LCDC_ACTIVE_HCTL_END__SHIFT 16
890 static inline uint32_t MDP4_LCDC_ACTIVE_HCTL_END(uint32_t val)
892 return ((val) << MDP4_LCDC_ACTIVE_HCTL_END__SHIFT) & MDP4_LCDC_ACTIVE_HCTL_END__MASK;
894 #define MDP4_LCDC_ACTIVE_HCTL_ACTIVE_START_X 0x80000000
896 #define REG_MDP4_LCDC_ACTIVE_VSTART 0x000c0020
898 #define REG_MDP4_LCDC_ACTIVE_VEND 0x000c0024
900 #define REG_MDP4_LCDC_BORDER_CLR 0x000c0028
902 #define REG_MDP4_LCDC_UNDERFLOW_CLR 0x000c002c
903 #define MDP4_LCDC_UNDERFLOW_CLR_COLOR__MASK 0x00ffffff
904 #define MDP4_LCDC_UNDERFLOW_CLR_COLOR__SHIFT 0
905 static inline uint32_t MDP4_LCDC_UNDERFLOW_CLR_COLOR(uint32_t val)
907 return ((val) << MDP4_LCDC_UNDERFLOW_CLR_COLOR__SHIFT) & MDP4_LCDC_UNDERFLOW_CLR_COLOR__MASK;
909 #define MDP4_LCDC_UNDERFLOW_CLR_ENABLE_RECOVERY 0x80000000
911 #define REG_MDP4_LCDC_HSYNC_SKEW 0x000c0030
913 #define REG_MDP4_LCDC_TEST_CNTL 0x000c0034
915 #define REG_MDP4_LCDC_CTRL_POLARITY 0x000c0038
916 #define MDP4_LCDC_CTRL_POLARITY_HSYNC_LOW 0x00000001
917 #define MDP4_LCDC_CTRL_POLARITY_VSYNC_LOW 0x00000002
918 #define MDP4_LCDC_CTRL_POLARITY_DATA_EN_LOW 0x00000004
920 #define REG_MDP4_LCDC_LVDS_INTF_CTL 0x000c2000
921 #define MDP4_LCDC_LVDS_INTF_CTL_MODE_SEL 0x00000004
922 #define MDP4_LCDC_LVDS_INTF_CTL_RGB_OUT 0x00000008
923 #define MDP4_LCDC_LVDS_INTF_CTL_CH_SWAP 0x00000010
924 #define MDP4_LCDC_LVDS_INTF_CTL_CH1_RES_BIT 0x00000020
925 #define MDP4_LCDC_LVDS_INTF_CTL_CH2_RES_BIT 0x00000040
926 #define MDP4_LCDC_LVDS_INTF_CTL_ENABLE 0x00000080
927 #define MDP4_LCDC_LVDS_INTF_CTL_CH1_DATA_LANE0_EN 0x00000100
928 #define MDP4_LCDC_LVDS_INTF_CTL_CH1_DATA_LANE1_EN 0x00000200
929 #define MDP4_LCDC_LVDS_INTF_CTL_CH1_DATA_LANE2_EN 0x00000400
930 #define MDP4_LCDC_LVDS_INTF_CTL_CH1_DATA_LANE3_EN 0x00000800
931 #define MDP4_LCDC_LVDS_INTF_CTL_CH2_DATA_LANE0_EN 0x00001000
932 #define MDP4_LCDC_LVDS_INTF_CTL_CH2_DATA_LANE1_EN 0x00002000
933 #define MDP4_LCDC_LVDS_INTF_CTL_CH2_DATA_LANE2_EN 0x00004000
934 #define MDP4_LCDC_LVDS_INTF_CTL_CH2_DATA_LANE3_EN 0x00008000
935 #define MDP4_LCDC_LVDS_INTF_CTL_CH1_CLK_LANE_EN 0x00010000
936 #define MDP4_LCDC_LVDS_INTF_CTL_CH2_CLK_LANE_EN 0x00020000
938 static inline uint32_t REG_MDP4_LCDC_LVDS_MUX_CTL(uint32_t i0) { return 0x000c2014 + 0x8*i0; }
940 static inline uint32_t REG_MDP4_LCDC_LVDS_MUX_CTL_3_TO_0(uint32_t i0) { return 0x000c2014 + 0x8*i0; }
941 #define MDP4_LCDC_LVDS_MUX_CTL_3_TO_0_BIT0__MASK 0x000000ff
942 #define MDP4_LCDC_LVDS_MUX_CTL_3_TO_0_BIT0__SHIFT 0
943 static inline uint32_t MDP4_LCDC_LVDS_MUX_CTL_3_TO_0_BIT0(uint32_t val)
945 return ((val) << MDP4_LCDC_LVDS_MUX_CTL_3_TO_0_BIT0__SHIFT) & MDP4_LCDC_LVDS_MUX_CTL_3_TO_0_BIT0__MASK;
947 #define MDP4_LCDC_LVDS_MUX_CTL_3_TO_0_BIT1__MASK 0x0000ff00
948 #define MDP4_LCDC_LVDS_MUX_CTL_3_TO_0_BIT1__SHIFT 8
949 static inline uint32_t MDP4_LCDC_LVDS_MUX_CTL_3_TO_0_BIT1(uint32_t val)
951 return ((val) << MDP4_LCDC_LVDS_MUX_CTL_3_TO_0_BIT1__SHIFT) & MDP4_LCDC_LVDS_MUX_CTL_3_TO_0_BIT1__MASK;
953 #define MDP4_LCDC_LVDS_MUX_CTL_3_TO_0_BIT2__MASK 0x00ff0000
954 #define MDP4_LCDC_LVDS_MUX_CTL_3_TO_0_BIT2__SHIFT 16
955 static inline uint32_t MDP4_LCDC_LVDS_MUX_CTL_3_TO_0_BIT2(uint32_t val)
957 return ((val) << MDP4_LCDC_LVDS_MUX_CTL_3_TO_0_BIT2__SHIFT) & MDP4_LCDC_LVDS_MUX_CTL_3_TO_0_BIT2__MASK;
959 #define MDP4_LCDC_LVDS_MUX_CTL_3_TO_0_BIT3__MASK 0xff000000
960 #define MDP4_LCDC_LVDS_MUX_CTL_3_TO_0_BIT3__SHIFT 24
961 static inline uint32_t MDP4_LCDC_LVDS_MUX_CTL_3_TO_0_BIT3(uint32_t val)
963 return ((val) << MDP4_LCDC_LVDS_MUX_CTL_3_TO_0_BIT3__SHIFT) & MDP4_LCDC_LVDS_MUX_CTL_3_TO_0_BIT3__MASK;
966 static inline uint32_t REG_MDP4_LCDC_LVDS_MUX_CTL_6_TO_4(uint32_t i0) { return 0x000c2018 + 0x8*i0; }
967 #define MDP4_LCDC_LVDS_MUX_CTL_6_TO_4_BIT4__MASK 0x000000ff
968 #define MDP4_LCDC_LVDS_MUX_CTL_6_TO_4_BIT4__SHIFT 0
969 static inline uint32_t MDP4_LCDC_LVDS_MUX_CTL_6_TO_4_BIT4(uint32_t val)
971 return ((val) << MDP4_LCDC_LVDS_MUX_CTL_6_TO_4_BIT4__SHIFT) & MDP4_LCDC_LVDS_MUX_CTL_6_TO_4_BIT4__MASK;
973 #define MDP4_LCDC_LVDS_MUX_CTL_6_TO_4_BIT5__MASK 0x0000ff00
974 #define MDP4_LCDC_LVDS_MUX_CTL_6_TO_4_BIT5__SHIFT 8
975 static inline uint32_t MDP4_LCDC_LVDS_MUX_CTL_6_TO_4_BIT5(uint32_t val)
977 return ((val) << MDP4_LCDC_LVDS_MUX_CTL_6_TO_4_BIT5__SHIFT) & MDP4_LCDC_LVDS_MUX_CTL_6_TO_4_BIT5__MASK;
979 #define MDP4_LCDC_LVDS_MUX_CTL_6_TO_4_BIT6__MASK 0x00ff0000
980 #define MDP4_LCDC_LVDS_MUX_CTL_6_TO_4_BIT6__SHIFT 16
981 static inline uint32_t MDP4_LCDC_LVDS_MUX_CTL_6_TO_4_BIT6(uint32_t val)
983 return ((val) << MDP4_LCDC_LVDS_MUX_CTL_6_TO_4_BIT6__SHIFT) & MDP4_LCDC_LVDS_MUX_CTL_6_TO_4_BIT6__MASK;
986 #define REG_MDP4_LCDC_LVDS_PHY_RESET 0x000c2034
988 #define REG_MDP4_LVDS_PHY_PLL_CTRL_0 0x000c3000
990 #define REG_MDP4_LVDS_PHY_PLL_CTRL_1 0x000c3004
992 #define REG_MDP4_LVDS_PHY_PLL_CTRL_2 0x000c3008
994 #define REG_MDP4_LVDS_PHY_PLL_CTRL_3 0x000c300c
996 #define REG_MDP4_LVDS_PHY_PLL_CTRL_5 0x000c3014
998 #define REG_MDP4_LVDS_PHY_PLL_CTRL_6 0x000c3018
1000 #define REG_MDP4_LVDS_PHY_PLL_CTRL_7 0x000c301c
1002 #define REG_MDP4_LVDS_PHY_PLL_CTRL_8 0x000c3020
1004 #define REG_MDP4_LVDS_PHY_PLL_CTRL_9 0x000c3024
1006 #define REG_MDP4_LVDS_PHY_PLL_LOCKED 0x000c3080
1008 #define REG_MDP4_LVDS_PHY_CFG2 0x000c3108
1010 #define REG_MDP4_LVDS_PHY_CFG0 0x000c3100
1011 #define MDP4_LVDS_PHY_CFG0_SERIALIZATION_ENBLE 0x00000010
1012 #define MDP4_LVDS_PHY_CFG0_CHANNEL0 0x00000040
1013 #define MDP4_LVDS_PHY_CFG0_CHANNEL1 0x00000080
1015 #define REG_MDP4_DTV 0x000d0000
1017 #define REG_MDP4_DTV_ENABLE 0x000d0000
1019 #define REG_MDP4_DTV_HSYNC_CTRL 0x000d0004
1020 #define MDP4_DTV_HSYNC_CTRL_PULSEW__MASK 0x0000ffff
1021 #define MDP4_DTV_HSYNC_CTRL_PULSEW__SHIFT 0
1022 static inline uint32_t MDP4_DTV_HSYNC_CTRL_PULSEW(uint32_t val)
1024 return ((val) << MDP4_DTV_HSYNC_CTRL_PULSEW__SHIFT) & MDP4_DTV_HSYNC_CTRL_PULSEW__MASK;
1026 #define MDP4_DTV_HSYNC_CTRL_PERIOD__MASK 0xffff0000
1027 #define MDP4_DTV_HSYNC_CTRL_PERIOD__SHIFT 16
1028 static inline uint32_t MDP4_DTV_HSYNC_CTRL_PERIOD(uint32_t val)
1030 return ((val) << MDP4_DTV_HSYNC_CTRL_PERIOD__SHIFT) & MDP4_DTV_HSYNC_CTRL_PERIOD__MASK;
1033 #define REG_MDP4_DTV_VSYNC_PERIOD 0x000d0008
1035 #define REG_MDP4_DTV_VSYNC_LEN 0x000d000c
1037 #define REG_MDP4_DTV_DISPLAY_HCTRL 0x000d0018
1038 #define MDP4_DTV_DISPLAY_HCTRL_START__MASK 0x0000ffff
1039 #define MDP4_DTV_DISPLAY_HCTRL_START__SHIFT 0
1040 static inline uint32_t MDP4_DTV_DISPLAY_HCTRL_START(uint32_t val)
1042 return ((val) << MDP4_DTV_DISPLAY_HCTRL_START__SHIFT) & MDP4_DTV_DISPLAY_HCTRL_START__MASK;
1044 #define MDP4_DTV_DISPLAY_HCTRL_END__MASK 0xffff0000
1045 #define MDP4_DTV_DISPLAY_HCTRL_END__SHIFT 16
1046 static inline uint32_t MDP4_DTV_DISPLAY_HCTRL_END(uint32_t val)
1048 return ((val) << MDP4_DTV_DISPLAY_HCTRL_END__SHIFT) & MDP4_DTV_DISPLAY_HCTRL_END__MASK;
1051 #define REG_MDP4_DTV_DISPLAY_VSTART 0x000d001c
1053 #define REG_MDP4_DTV_DISPLAY_VEND 0x000d0020
1055 #define REG_MDP4_DTV_ACTIVE_HCTL 0x000d002c
1056 #define MDP4_DTV_ACTIVE_HCTL_START__MASK 0x00007fff
1057 #define MDP4_DTV_ACTIVE_HCTL_START__SHIFT 0
1058 static inline uint32_t MDP4_DTV_ACTIVE_HCTL_START(uint32_t val)
1060 return ((val) << MDP4_DTV_ACTIVE_HCTL_START__SHIFT) & MDP4_DTV_ACTIVE_HCTL_START__MASK;
1062 #define MDP4_DTV_ACTIVE_HCTL_END__MASK 0x7fff0000
1063 #define MDP4_DTV_ACTIVE_HCTL_END__SHIFT 16
1064 static inline uint32_t MDP4_DTV_ACTIVE_HCTL_END(uint32_t val)
1066 return ((val) << MDP4_DTV_ACTIVE_HCTL_END__SHIFT) & MDP4_DTV_ACTIVE_HCTL_END__MASK;
1068 #define MDP4_DTV_ACTIVE_HCTL_ACTIVE_START_X 0x80000000
1070 #define REG_MDP4_DTV_ACTIVE_VSTART 0x000d0030
1072 #define REG_MDP4_DTV_ACTIVE_VEND 0x000d0038
1074 #define REG_MDP4_DTV_BORDER_CLR 0x000d0040
1076 #define REG_MDP4_DTV_UNDERFLOW_CLR 0x000d0044
1077 #define MDP4_DTV_UNDERFLOW_CLR_COLOR__MASK 0x00ffffff
1078 #define MDP4_DTV_UNDERFLOW_CLR_COLOR__SHIFT 0
1079 static inline uint32_t MDP4_DTV_UNDERFLOW_CLR_COLOR(uint32_t val)
1081 return ((val) << MDP4_DTV_UNDERFLOW_CLR_COLOR__SHIFT) & MDP4_DTV_UNDERFLOW_CLR_COLOR__MASK;
1083 #define MDP4_DTV_UNDERFLOW_CLR_ENABLE_RECOVERY 0x80000000
1085 #define REG_MDP4_DTV_HSYNC_SKEW 0x000d0048
1087 #define REG_MDP4_DTV_TEST_CNTL 0x000d004c
1089 #define REG_MDP4_DTV_CTRL_POLARITY 0x000d0050
1090 #define MDP4_DTV_CTRL_POLARITY_HSYNC_LOW 0x00000001
1091 #define MDP4_DTV_CTRL_POLARITY_VSYNC_LOW 0x00000002
1092 #define MDP4_DTV_CTRL_POLARITY_DATA_EN_LOW 0x00000004
1094 #define REG_MDP4_DSI 0x000e0000
1096 #define REG_MDP4_DSI_ENABLE 0x000e0000
1098 #define REG_MDP4_DSI_HSYNC_CTRL 0x000e0004
1099 #define MDP4_DSI_HSYNC_CTRL_PULSEW__MASK 0x0000ffff
1100 #define MDP4_DSI_HSYNC_CTRL_PULSEW__SHIFT 0
1101 static inline uint32_t MDP4_DSI_HSYNC_CTRL_PULSEW(uint32_t val)
1103 return ((val) << MDP4_DSI_HSYNC_CTRL_PULSEW__SHIFT) & MDP4_DSI_HSYNC_CTRL_PULSEW__MASK;
1105 #define MDP4_DSI_HSYNC_CTRL_PERIOD__MASK 0xffff0000
1106 #define MDP4_DSI_HSYNC_CTRL_PERIOD__SHIFT 16
1107 static inline uint32_t MDP4_DSI_HSYNC_CTRL_PERIOD(uint32_t val)
1109 return ((val) << MDP4_DSI_HSYNC_CTRL_PERIOD__SHIFT) & MDP4_DSI_HSYNC_CTRL_PERIOD__MASK;
1112 #define REG_MDP4_DSI_VSYNC_PERIOD 0x000e0008
1114 #define REG_MDP4_DSI_VSYNC_LEN 0x000e000c
1116 #define REG_MDP4_DSI_DISPLAY_HCTRL 0x000e0010
1117 #define MDP4_DSI_DISPLAY_HCTRL_START__MASK 0x0000ffff
1118 #define MDP4_DSI_DISPLAY_HCTRL_START__SHIFT 0
1119 static inline uint32_t MDP4_DSI_DISPLAY_HCTRL_START(uint32_t val)
1121 return ((val) << MDP4_DSI_DISPLAY_HCTRL_START__SHIFT) & MDP4_DSI_DISPLAY_HCTRL_START__MASK;
1123 #define MDP4_DSI_DISPLAY_HCTRL_END__MASK 0xffff0000
1124 #define MDP4_DSI_DISPLAY_HCTRL_END__SHIFT 16
1125 static inline uint32_t MDP4_DSI_DISPLAY_HCTRL_END(uint32_t val)
1127 return ((val) << MDP4_DSI_DISPLAY_HCTRL_END__SHIFT) & MDP4_DSI_DISPLAY_HCTRL_END__MASK;
1130 #define REG_MDP4_DSI_DISPLAY_VSTART 0x000e0014
1132 #define REG_MDP4_DSI_DISPLAY_VEND 0x000e0018
1134 #define REG_MDP4_DSI_ACTIVE_HCTL 0x000e001c
1135 #define MDP4_DSI_ACTIVE_HCTL_START__MASK 0x00007fff
1136 #define MDP4_DSI_ACTIVE_HCTL_START__SHIFT 0
1137 static inline uint32_t MDP4_DSI_ACTIVE_HCTL_START(uint32_t val)
1139 return ((val) << MDP4_DSI_ACTIVE_HCTL_START__SHIFT) & MDP4_DSI_ACTIVE_HCTL_START__MASK;
1141 #define MDP4_DSI_ACTIVE_HCTL_END__MASK 0x7fff0000
1142 #define MDP4_DSI_ACTIVE_HCTL_END__SHIFT 16
1143 static inline uint32_t MDP4_DSI_ACTIVE_HCTL_END(uint32_t val)
1145 return ((val) << MDP4_DSI_ACTIVE_HCTL_END__SHIFT) & MDP4_DSI_ACTIVE_HCTL_END__MASK;
1147 #define MDP4_DSI_ACTIVE_HCTL_ACTIVE_START_X 0x80000000
1149 #define REG_MDP4_DSI_ACTIVE_VSTART 0x000e0020
1151 #define REG_MDP4_DSI_ACTIVE_VEND 0x000e0024
1153 #define REG_MDP4_DSI_BORDER_CLR 0x000e0028
1155 #define REG_MDP4_DSI_UNDERFLOW_CLR 0x000e002c
1156 #define MDP4_DSI_UNDERFLOW_CLR_COLOR__MASK 0x00ffffff
1157 #define MDP4_DSI_UNDERFLOW_CLR_COLOR__SHIFT 0
1158 static inline uint32_t MDP4_DSI_UNDERFLOW_CLR_COLOR(uint32_t val)
1160 return ((val) << MDP4_DSI_UNDERFLOW_CLR_COLOR__SHIFT) & MDP4_DSI_UNDERFLOW_CLR_COLOR__MASK;
1162 #define MDP4_DSI_UNDERFLOW_CLR_ENABLE_RECOVERY 0x80000000
1164 #define REG_MDP4_DSI_HSYNC_SKEW 0x000e0030
1166 #define REG_MDP4_DSI_TEST_CNTL 0x000e0034
1168 #define REG_MDP4_DSI_CTRL_POLARITY 0x000e0038
1169 #define MDP4_DSI_CTRL_POLARITY_HSYNC_LOW 0x00000001
1170 #define MDP4_DSI_CTRL_POLARITY_VSYNC_LOW 0x00000002
1171 #define MDP4_DSI_CTRL_POLARITY_DATA_EN_LOW 0x00000004
1174 #endif /* MDP4_XML */