1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Copyright (C) 2015 Amlogic, Inc. All rights reserved.
6 #ifndef __MESON_REGISTERS_H
7 #define __MESON_REGISTERS_H
11 /* Shift all registers by 2 */
12 #define _REG(reg) ((reg) << 2)
14 #define writel_bits_relaxed(mask, val, addr) \
15 writel_relaxed((readl_relaxed(addr) & ~(mask)) | ((val) & (mask)), addr)
18 #define VPP2_DUMMY_DATA 0x1900
19 #define VPP2_LINE_IN_LENGTH 0x1901
20 #define VPP2_PIC_IN_HEIGHT 0x1902
21 #define VPP2_SCALE_COEF_IDX 0x1903
22 #define VPP2_SCALE_COEF 0x1904
23 #define VPP2_VSC_REGION12_STARTP 0x1905
24 #define VPP2_VSC_REGION34_STARTP 0x1906
25 #define VPP2_VSC_REGION4_ENDP 0x1907
26 #define VPP2_VSC_START_PHASE_STEP 0x1908
27 #define VPP2_VSC_REGION0_PHASE_SLOPE 0x1909
28 #define VPP2_VSC_REGION1_PHASE_SLOPE 0x190a
29 #define VPP2_VSC_REGION3_PHASE_SLOPE 0x190b
30 #define VPP2_VSC_REGION4_PHASE_SLOPE 0x190c
31 #define VPP2_VSC_PHASE_CTRL 0x190d
32 #define VPP2_VSC_INI_PHASE 0x190e
33 #define VPP2_HSC_REGION12_STARTP 0x1910
34 #define VPP2_HSC_REGION34_STARTP 0x1911
35 #define VPP2_HSC_REGION4_ENDP 0x1912
36 #define VPP2_HSC_START_PHASE_STEP 0x1913
37 #define VPP2_HSC_REGION0_PHASE_SLOPE 0x1914
38 #define VPP2_HSC_REGION1_PHASE_SLOPE 0x1915
39 #define VPP2_HSC_REGION3_PHASE_SLOPE 0x1916
40 #define VPP2_HSC_REGION4_PHASE_SLOPE 0x1917
41 #define VPP2_HSC_PHASE_CTRL 0x1918
42 #define VPP2_SC_MISC 0x1919
43 #define VPP2_PREBLEND_VD1_H_START_END 0x191a
44 #define VPP2_PREBLEND_VD1_V_START_END 0x191b
45 #define VPP2_POSTBLEND_VD1_H_START_END 0x191c
46 #define VPP2_POSTBLEND_VD1_V_START_END 0x191d
47 #define VPP2_PREBLEND_H_SIZE 0x1920
48 #define VPP2_POSTBLEND_H_SIZE 0x1921
49 #define VPP2_HOLD_LINES 0x1922
50 #define VPP2_BLEND_ONECOLOR_CTRL 0x1923
51 #define VPP2_PREBLEND_CURRENT_XY 0x1924
52 #define VPP2_POSTBLEND_CURRENT_XY 0x1925
53 #define VPP2_MISC 0x1926
54 #define VPP2_OFIFO_SIZE 0x1927
55 #define VPP2_FIFO_STATUS 0x1928
56 #define VPP2_SMOKE_CTRL 0x1929
57 #define VPP2_SMOKE1_VAL 0x192a
58 #define VPP2_SMOKE2_VAL 0x192b
59 #define VPP2_SMOKE1_H_START_END 0x192d
60 #define VPP2_SMOKE1_V_START_END 0x192e
61 #define VPP2_SMOKE2_H_START_END 0x192f
62 #define VPP2_SMOKE2_V_START_END 0x1930
63 #define VPP2_SCO_FIFO_CTRL 0x1933
64 #define VPP2_HSC_PHASE_CTRL1 0x1934
65 #define VPP2_HSC_INI_PAT_CTRL 0x1935
66 #define VPP2_VADJ_CTRL 0x1940
67 #define VPP2_VADJ1_Y 0x1941
68 #define VPP2_VADJ1_MA_MB 0x1942
69 #define VPP2_VADJ1_MC_MD 0x1943
70 #define VPP2_VADJ2_Y 0x1944
71 #define VPP2_VADJ2_MA_MB 0x1945
72 #define VPP2_VADJ2_MC_MD 0x1946
73 #define VPP2_MATRIX_PROBE_COLOR 0x195c
74 #define VPP2_MATRIX_HL_COLOR 0x195d
75 #define VPP2_MATRIX_PROBE_POS 0x195e
76 #define VPP2_MATRIX_CTRL 0x195f
77 #define VPP2_MATRIX_COEF00_01 0x1960
78 #define VPP2_MATRIX_COEF02_10 0x1961
79 #define VPP2_MATRIX_COEF11_12 0x1962
80 #define VPP2_MATRIX_COEF20_21 0x1963
81 #define VPP2_MATRIX_COEF22 0x1964
82 #define VPP2_MATRIX_OFFSET0_1 0x1965
83 #define VPP2_MATRIX_OFFSET2 0x1966
84 #define VPP2_MATRIX_PRE_OFFSET0_1 0x1967
85 #define VPP2_MATRIX_PRE_OFFSET2 0x1968
86 #define VPP2_DUMMY_DATA1 0x1969
87 #define VPP2_GAINOFF_CTRL0 0x196a
88 #define VPP2_GAINOFF_CTRL1 0x196b
89 #define VPP2_GAINOFF_CTRL2 0x196c
90 #define VPP2_GAINOFF_CTRL3 0x196d
91 #define VPP2_GAINOFF_CTRL4 0x196e
92 #define VPP2_CHROMA_ADDR_PORT 0x1970
93 #define VPP2_CHROMA_DATA_PORT 0x1971
94 #define VPP2_GCLK_CTRL0 0x1972
95 #define VPP2_GCLK_CTRL1 0x1973
96 #define VPP2_SC_GCLK_CTRL 0x1974
97 #define VPP2_MISC1 0x1976
98 #define VPP2_DNLP_CTRL_00 0x1981
99 #define VPP2_DNLP_CTRL_01 0x1982
100 #define VPP2_DNLP_CTRL_02 0x1983
101 #define VPP2_DNLP_CTRL_03 0x1984
102 #define VPP2_DNLP_CTRL_04 0x1985
103 #define VPP2_DNLP_CTRL_05 0x1986
104 #define VPP2_DNLP_CTRL_06 0x1987
105 #define VPP2_DNLP_CTRL_07 0x1988
106 #define VPP2_DNLP_CTRL_08 0x1989
107 #define VPP2_DNLP_CTRL_09 0x198a
108 #define VPP2_DNLP_CTRL_10 0x198b
109 #define VPP2_DNLP_CTRL_11 0x198c
110 #define VPP2_DNLP_CTRL_12 0x198d
111 #define VPP2_DNLP_CTRL_13 0x198e
112 #define VPP2_DNLP_CTRL_14 0x198f
113 #define VPP2_DNLP_CTRL_15 0x1990
114 #define VPP2_VE_ENABLE_CTRL 0x19a1
115 #define VPP2_VE_DEMO_LEFT_TOP_SCREEN_WIDTH 0x19a2
116 #define VPP2_VE_DEMO_CENTER_BAR 0x19a3
117 #define VPP2_VE_H_V_SIZE 0x19a4
118 #define VPP2_VDO_MEAS_CTRL 0x19a8
119 #define VPP2_VDO_MEAS_VS_COUNT_HI 0x19a9
120 #define VPP2_VDO_MEAS_VS_COUNT_LO 0x19aa
121 #define VPP2_OSD_VSC_PHASE_STEP 0x19c0
122 #define VPP2_OSD_VSC_INI_PHASE 0x19c1
123 #define VPP2_OSD_VSC_CTRL0 0x19c2
124 #define VPP2_OSD_HSC_PHASE_STEP 0x19c3
125 #define VPP2_OSD_HSC_INI_PHASE 0x19c4
126 #define VPP2_OSD_HSC_CTRL0 0x19c5
127 #define VPP2_OSD_HSC_INI_PAT_CTRL 0x19c6
128 #define VPP2_OSD_SC_DUMMY_DATA 0x19c7
129 #define VPP2_OSD_SC_CTRL0 0x19c8
130 #define VPP2_OSD_SCI_WH_M1 0x19c9
131 #define VPP2_OSD_SCO_H_START_END 0x19ca
132 #define VPP2_OSD_SCO_V_START_END 0x19cb
133 #define VPP2_OSD_SCALE_COEF_IDX 0x19cc
134 #define VPP2_OSD_SCALE_COEF 0x19cd
135 #define VPP2_INT_LINE_NUM 0x19ce
138 #define VIU_ADDR_START 0x1a00
139 #define VIU_ADDR_END 0x1aff
140 #define VIU_SW_RESET 0x1a01
141 #define VIU_SW_RESET_OSD1_AFBCD BIT(31)
142 #define VIU_SW_RESET_G12A_OSD1_AFBCD BIT(21)
143 #define VIU_SW_RESET_G12A_AFBC_ARB BIT(19)
144 #define VIU_SW_RESET_OSD1 BIT(0)
145 #define VIU_MISC_CTRL0 0x1a06
146 #define VIU_CTRL0_VD1_AFBC_MASK 0x170000
147 #define VIU_CTRL0_AFBC_TO_VD1 BIT(20)
148 #define VIU_MISC_CTRL1 0x1a07
149 #define MALI_AFBC_MISC GENMASK(15, 8)
150 #define D2D3_INTF_LENGTH 0x1a08
151 #define D2D3_INTF_CTRL0 0x1a09
152 #define VD1_AFBCD0_MISC_CTRL 0x1a0a
153 #define VD1_AXI_SEL_AFBC (1 << 12)
154 #define AFBC_VD1_SEL (1 << 10)
155 #define VD2_AFBCD1_MISC_CTRL 0x1a0b
156 #define VIU_OSD1_CTRL_STAT 0x1a10
157 #define VIU_OSD1_OSD_BLK_ENABLE BIT(0)
158 #define VIU_OSD1_OSD_MEM_MODE_LINEAR BIT(2)
159 #define VIU_OSD1_POSTBLD_SRC_VD1 (1 << 8)
160 #define VIU_OSD1_POSTBLD_SRC_VD2 (2 << 8)
161 #define VIU_OSD1_POSTBLD_SRC_OSD1 (3 << 8)
162 #define VIU_OSD1_POSTBLD_SRC_OSD2 (4 << 8)
163 #define VIU_OSD1_OSD_ENABLE BIT(21)
164 #define VIU_OSD1_CFG_SYN_EN BIT(31)
165 #define VIU_OSD1_CTRL_STAT2 0x1a2d
166 #define VIU_OSD1_COLOR_ADDR 0x1a11
167 #define VIU_OSD1_COLOR 0x1a12
168 #define VIU_OSD1_TCOLOR_AG0 0x1a17
169 #define VIU_OSD1_TCOLOR_AG1 0x1a18
170 #define VIU_OSD1_TCOLOR_AG2 0x1a19
171 #define VIU_OSD1_TCOLOR_AG3 0x1a1a
172 #define VIU_OSD1_BLK0_CFG_W0 0x1a1b
173 #define VIU_OSD1_BLK1_CFG_W0 0x1a1f
174 #define VIU_OSD1_BLK2_CFG_W0 0x1a23
175 #define VIU_OSD1_BLK3_CFG_W0 0x1a27
176 #define VIU_OSD1_BLK0_CFG_W1 0x1a1c
177 #define VIU_OSD1_BLK1_CFG_W1 0x1a20
178 #define VIU_OSD1_BLK2_CFG_W1 0x1a24
179 #define VIU_OSD1_BLK3_CFG_W1 0x1a28
180 #define VIU_OSD1_BLK0_CFG_W2 0x1a1d
181 #define VIU_OSD1_BLK1_CFG_W2 0x1a21
182 #define VIU_OSD1_BLK2_CFG_W2 0x1a25
183 #define VIU_OSD1_BLK3_CFG_W2 0x1a29
184 #define VIU_OSD1_BLK0_CFG_W3 0x1a1e
185 #define VIU_OSD1_BLK1_CFG_W3 0x1a22
186 #define VIU_OSD1_BLK2_CFG_W3 0x1a26
187 #define VIU_OSD1_BLK3_CFG_W3 0x1a2a
188 #define VIU_OSD1_BLK0_CFG_W4 0x1a13
189 #define VIU_OSD1_BLK1_CFG_W4 0x1a14
190 #define VIU_OSD1_BLK2_CFG_W4 0x1a15
191 #define VIU_OSD1_BLK3_CFG_W4 0x1a16
192 #define VIU_OSD1_FIFO_CTRL_STAT 0x1a2b
193 #define VIU_OSD1_TEST_RDDATA 0x1a2c
194 #define VIU_OSD1_PROT_CTRL 0x1a2e
195 #define VIU_OSD1_MALI_UNPACK_CTRL 0x1a2f
196 #define VIU_OSD1_MALI_UNPACK_EN BIT(31)
197 #define VIU_OSD1_MALI_AFBCD_R_REORDER GENMASK(15, 12)
198 #define VIU_OSD1_MALI_AFBCD_G_REORDER GENMASK(11, 8)
199 #define VIU_OSD1_MALI_AFBCD_B_REORDER GENMASK(7, 4)
200 #define VIU_OSD1_MALI_AFBCD_A_REORDER GENMASK(3, 0)
201 #define VIU_OSD1_MALI_REORDER_R 1
202 #define VIU_OSD1_MALI_REORDER_G 2
203 #define VIU_OSD1_MALI_REORDER_B 3
204 #define VIU_OSD1_MALI_REORDER_A 4
205 #define VIU_OSD2_CTRL_STAT 0x1a30
206 #define VIU_OSD2_CTRL_STAT2 0x1a4d
207 #define VIU_OSD2_COLOR_ADDR 0x1a31
208 #define VIU_OSD2_COLOR 0x1a32
209 #define VIU_OSD2_HL1_H_START_END 0x1a33
210 #define VIU_OSD2_HL1_V_START_END 0x1a34
211 #define VIU_OSD2_HL2_H_START_END 0x1a35
212 #define VIU_OSD2_HL2_V_START_END 0x1a36
213 #define VIU_OSD2_TCOLOR_AG0 0x1a37
214 #define VIU_OSD2_TCOLOR_AG1 0x1a38
215 #define VIU_OSD2_TCOLOR_AG2 0x1a39
216 #define VIU_OSD2_TCOLOR_AG3 0x1a3a
217 #define VIU_OSD2_BLK0_CFG_W0 0x1a3b
218 #define VIU_OSD2_BLK1_CFG_W0 0x1a3f
219 #define VIU_OSD2_BLK2_CFG_W0 0x1a43
220 #define VIU_OSD2_BLK3_CFG_W0 0x1a47
221 #define VIU_OSD2_BLK0_CFG_W1 0x1a3c
222 #define VIU_OSD2_BLK1_CFG_W1 0x1a40
223 #define VIU_OSD2_BLK2_CFG_W1 0x1a44
224 #define VIU_OSD2_BLK3_CFG_W1 0x1a48
225 #define VIU_OSD2_BLK0_CFG_W2 0x1a3d
226 #define VIU_OSD2_BLK1_CFG_W2 0x1a41
227 #define VIU_OSD2_BLK2_CFG_W2 0x1a45
228 #define VIU_OSD2_BLK3_CFG_W2 0x1a49
229 #define VIU_OSD2_BLK0_CFG_W3 0x1a3e
230 #define VIU_OSD2_BLK1_CFG_W3 0x1a42
231 #define VIU_OSD2_BLK2_CFG_W3 0x1a46
232 #define VIU_OSD2_BLK3_CFG_W3 0x1a4a
233 #define VIU_OSD2_BLK0_CFG_W4 0x1a64
234 #define VIU_OSD2_BLK1_CFG_W4 0x1a65
235 #define VIU_OSD2_BLK2_CFG_W4 0x1a66
236 #define VIU_OSD2_BLK3_CFG_W4 0x1a67
237 #define VIU_OSD2_FIFO_CTRL_STAT 0x1a4b
238 #define VIU_OSD2_TEST_RDDATA 0x1a4c
239 #define VIU_OSD2_PROT_CTRL 0x1a4e
240 #define VIU_OSD2_MALI_UNPACK_CTRL 0x1abd
241 #define VIU_OSD2_DIMM_CTRL 0x1acf
243 #define VIU_OSD3_CTRL_STAT 0x3d80
244 #define VIU_OSD3_CTRL_STAT2 0x3d81
245 #define VIU_OSD3_COLOR_ADDR 0x3d82
246 #define VIU_OSD3_COLOR 0x3d83
247 #define VIU_OSD3_TCOLOR_AG0 0x3d84
248 #define VIU_OSD3_TCOLOR_AG1 0x3d85
249 #define VIU_OSD3_TCOLOR_AG2 0x3d86
250 #define VIU_OSD3_TCOLOR_AG3 0x3d87
251 #define VIU_OSD3_BLK0_CFG_W0 0x3d88
252 #define VIU_OSD3_BLK0_CFG_W1 0x3d8c
253 #define VIU_OSD3_BLK0_CFG_W2 0x3d90
254 #define VIU_OSD3_BLK0_CFG_W3 0x3d94
255 #define VIU_OSD3_BLK0_CFG_W4 0x3d98
256 #define VIU_OSD3_BLK1_CFG_W4 0x3d99
257 #define VIU_OSD3_BLK2_CFG_W4 0x3d9a
258 #define VIU_OSD3_FIFO_CTRL_STAT 0x3d9c
259 #define VIU_OSD3_TEST_RDDATA 0x3d9d
260 #define VIU_OSD3_PROT_CTRL 0x3d9e
261 #define VIU_OSD3_MALI_UNPACK_CTRL 0x3d9f
262 #define VIU_OSD3_DIMM_CTRL 0x3da0
264 #define VIU_OSD_DDR_PRIORITY_URGENT BIT(0)
265 #define VIU_OSD_HOLD_FIFO_LINES(lines) ((lines & 0x1f) << 5)
266 #define VIU_OSD_FIFO_DEPTH_VAL(val) ((val & 0x7f) << 12)
267 #define VIU_OSD_WORDS_PER_BURST(words) (((words & 0x4) >> 1) << 22)
268 #define VIU_OSD_FIFO_LIMITS(size) ((size & 0xf) << 24)
269 #define VIU_OSD_BURST_LENGTH_24 (0x0 << 31 | 0x0 << 10)
270 #define VIU_OSD_BURST_LENGTH_32 (0x0 << 31 | 0x1 << 10)
271 #define VIU_OSD_BURST_LENGTH_48 (0x0 << 31 | 0x2 << 10)
272 #define VIU_OSD_BURST_LENGTH_64 (0x0 << 31 | 0x3 << 10)
273 #define VIU_OSD_BURST_LENGTH_96 (0x1 << 31 | 0x0 << 10)
274 #define VIU_OSD_BURST_LENGTH_128 (0x1 << 31 | 0x1 << 10)
276 #define VD1_IF0_GEN_REG 0x1a50
277 #define VD1_IF0_CANVAS0 0x1a51
278 #define VD1_IF0_CANVAS1 0x1a52
279 #define VD1_IF0_LUMA_X0 0x1a53
280 #define VD1_IF0_LUMA_Y0 0x1a54
281 #define VD1_IF0_CHROMA_X0 0x1a55
282 #define VD1_IF0_CHROMA_Y0 0x1a56
283 #define VD1_IF0_LUMA_X1 0x1a57
284 #define VD1_IF0_LUMA_Y1 0x1a58
285 #define VD1_IF0_CHROMA_X1 0x1a59
286 #define VD1_IF0_CHROMA_Y1 0x1a5a
287 #define VD1_IF0_RPT_LOOP 0x1a5b
288 #define VD1_IF0_LUMA0_RPT_PAT 0x1a5c
289 #define VD1_IF0_CHROMA0_RPT_PAT 0x1a5d
290 #define VD1_IF0_LUMA1_RPT_PAT 0x1a5e
291 #define VD1_IF0_CHROMA1_RPT_PAT 0x1a5f
292 #define VD1_IF0_LUMA_PSEL 0x1a60
293 #define VD1_IF0_CHROMA_PSEL 0x1a61
294 #define VD1_IF0_DUMMY_PIXEL 0x1a62
295 #define VD1_IF0_LUMA_FIFO_SIZE 0x1a63
296 #define VD1_IF0_RANGE_MAP_Y 0x1a6a
297 #define VD1_IF0_RANGE_MAP_CB 0x1a6b
298 #define VD1_IF0_RANGE_MAP_CR 0x1a6c
299 #define VD1_IF0_GEN_REG2 0x1a6d
300 #define VD1_IF0_PROT_CNTL 0x1a6e
301 #define VIU_VD1_FMT_CTRL 0x1a68
302 #define VIU_VD1_FMT_W 0x1a69
303 #define VD2_IF0_GEN_REG 0x1a70
304 #define VD2_IF0_CANVAS0 0x1a71
305 #define VD2_IF0_CANVAS1 0x1a72
306 #define VD2_IF0_LUMA_X0 0x1a73
307 #define VD2_IF0_LUMA_Y0 0x1a74
308 #define VD2_IF0_CHROMA_X0 0x1a75
309 #define VD2_IF0_CHROMA_Y0 0x1a76
310 #define VD2_IF0_LUMA_X1 0x1a77
311 #define VD2_IF0_LUMA_Y1 0x1a78
312 #define VD2_IF0_CHROMA_X1 0x1a79
313 #define VD2_IF0_CHROMA_Y1 0x1a7a
314 #define VD2_IF0_RPT_LOOP 0x1a7b
315 #define VD2_IF0_LUMA0_RPT_PAT 0x1a7c
316 #define VD2_IF0_CHROMA0_RPT_PAT 0x1a7d
317 #define VD2_IF0_LUMA1_RPT_PAT 0x1a7e
318 #define VD2_IF0_CHROMA1_RPT_PAT 0x1a7f
319 #define VD2_IF0_LUMA_PSEL 0x1a80
320 #define VD2_IF0_CHROMA_PSEL 0x1a81
321 #define VD2_IF0_DUMMY_PIXEL 0x1a82
322 #define VD2_IF0_LUMA_FIFO_SIZE 0x1a83
323 #define VD2_IF0_RANGE_MAP_Y 0x1a8a
324 #define VD2_IF0_RANGE_MAP_CB 0x1a8b
325 #define VD2_IF0_RANGE_MAP_CR 0x1a8c
326 #define VD2_IF0_GEN_REG2 0x1a8d
327 #define VD2_IF0_PROT_CNTL 0x1a8e
328 #define VIU_VD2_FMT_CTRL 0x1a88
329 #define VIU_VD2_FMT_W 0x1a89
331 /* VIU Matrix Registers */
332 #define VIU_OSD1_MATRIX_CTRL 0x1a90
333 #define VIU_OSD1_MATRIX_COEF00_01 0x1a91
334 #define VIU_OSD1_MATRIX_COEF02_10 0x1a92
335 #define VIU_OSD1_MATRIX_COEF11_12 0x1a93
336 #define VIU_OSD1_MATRIX_COEF20_21 0x1a94
337 #define VIU_OSD1_MATRIX_COLMOD_COEF42 0x1a95
338 #define VIU_OSD1_MATRIX_OFFSET0_1 0x1a96
339 #define VIU_OSD1_MATRIX_OFFSET2 0x1a97
340 #define VIU_OSD1_MATRIX_PRE_OFFSET0_1 0x1a98
341 #define VIU_OSD1_MATRIX_PRE_OFFSET2 0x1a99
342 #define VIU_OSD1_MATRIX_COEF22_30 0x1a9d
343 #define VIU_OSD1_MATRIX_COEF31_32 0x1a9e
344 #define VIU_OSD1_MATRIX_COEF40_41 0x1a9f
345 #define VD1_IF0_GEN_REG3 0x1aa7
347 #define VIU_OSD_BLENDO_H_START_END 0x1aa9
348 #define VIU_OSD_BLENDO_V_START_END 0x1aaa
349 #define VIU_OSD_BLEND_GEN_CTRL0 0x1aab
350 #define VIU_OSD_BLEND_GEN_CTRL1 0x1aac
351 #define VIU_OSD_BLEND_DUMMY_DATA 0x1aad
352 #define VIU_OSD_BLEND_CURRENT_XY 0x1aae
354 #define VIU_OSD2_MATRIX_CTRL 0x1ab0
355 #define VIU_OSD2_MATRIX_COEF00_01 0x1ab1
356 #define VIU_OSD2_MATRIX_COEF02_10 0x1ab2
357 #define VIU_OSD2_MATRIX_COEF11_12 0x1ab3
358 #define VIU_OSD2_MATRIX_COEF20_21 0x1ab4
359 #define VIU_OSD2_MATRIX_COEF22 0x1ab5
360 #define VIU_OSD2_MATRIX_OFFSET0_1 0x1ab6
361 #define VIU_OSD2_MATRIX_OFFSET2 0x1ab7
362 #define VIU_OSD2_MATRIX_PRE_OFFSET0_1 0x1ab8
363 #define VIU_OSD2_MATRIX_PRE_OFFSET2 0x1ab9
364 #define VIU_OSD2_MATRIX_PROBE_COLOR 0x1aba
365 #define VIU_OSD2_MATRIX_HL_COLOR 0x1abb
366 #define VIU_OSD2_MATRIX_PROBE_POS 0x1abc
367 #define VIU_OSD1_EOTF_CTL 0x1ad4
368 #define VIU_OSD1_EOTF_COEF00_01 0x1ad5
369 #define VIU_OSD1_EOTF_COEF02_10 0x1ad6
370 #define VIU_OSD1_EOTF_COEF11_12 0x1ad7
371 #define VIU_OSD1_EOTF_COEF20_21 0x1ad8
372 #define VIU_OSD1_EOTF_COEF22_RS 0x1ad9
373 #define VIU_OSD1_EOTF_LUT_ADDR_PORT 0x1ada
374 #define VIU_OSD1_EOTF_LUT_DATA_PORT 0x1adb
375 #define VIU_OSD1_OETF_CTL 0x1adc
376 #define VIU_OSD1_OETF_LUT_ADDR_PORT 0x1add
377 #define VIU_OSD1_OETF_LUT_DATA_PORT 0x1ade
378 #define AFBC_ENABLE 0x1ae0
379 #define AFBC_MODE 0x1ae1
380 #define AFBC_SIZE_IN 0x1ae2
381 #define AFBC_DEC_DEF_COLOR 0x1ae3
382 #define AFBC_CONV_CTRL 0x1ae4
383 #define AFBC_LBUF_DEPTH 0x1ae5
384 #define AFBC_HEAD_BADDR 0x1ae6
385 #define AFBC_BODY_BADDR 0x1ae7
386 #define AFBC_SIZE_OUT 0x1ae8
387 #define AFBC_OUT_YSCOPE 0x1ae9
388 #define AFBC_STAT 0x1aea
389 #define AFBC_VD_CFMT_CTRL 0x1aeb
390 #define AFBC_VD_CFMT_W 0x1aec
391 #define AFBC_MIF_HOR_SCOPE 0x1aed
392 #define AFBC_MIF_VER_SCOPE 0x1aee
393 #define AFBC_PIXEL_HOR_SCOPE 0x1aef
394 #define AFBC_PIXEL_VER_SCOPE 0x1af0
395 #define AFBC_VD_CFMT_H 0x1af1
398 #define VPP_DUMMY_DATA 0x1d00
399 #define VPP_LINE_IN_LENGTH 0x1d01
400 #define VPP_PIC_IN_HEIGHT 0x1d02
401 #define VPP_SCALE_COEF_IDX 0x1d03
402 #define VPP_SCALE_HORIZONTAL_COEF BIT(8)
403 #define VPP_SCALE_COEF 0x1d04
404 #define VPP_VSC_REGION12_STARTP 0x1d05
405 #define VPP_VSC_REGION34_STARTP 0x1d06
406 #define VPP_VSC_REGION4_ENDP 0x1d07
407 #define VPP_VSC_START_PHASE_STEP 0x1d08
408 #define VPP_VSC_REGION0_PHASE_SLOPE 0x1d09
409 #define VPP_VSC_REGION1_PHASE_SLOPE 0x1d0a
410 #define VPP_VSC_REGION3_PHASE_SLOPE 0x1d0b
411 #define VPP_VSC_REGION4_PHASE_SLOPE 0x1d0c
412 #define VPP_VSC_PHASE_CTRL 0x1d0d
413 #define VPP_VSC_INI_PHASE 0x1d0e
414 #define VPP_HSC_REGION12_STARTP 0x1d10
415 #define VPP_HSC_REGION34_STARTP 0x1d11
416 #define VPP_HSC_REGION4_ENDP 0x1d12
417 #define VPP_HSC_START_PHASE_STEP 0x1d13
418 #define VPP_HSC_REGION0_PHASE_SLOPE 0x1d14
419 #define VPP_HSC_REGION1_PHASE_SLOPE 0x1d15
420 #define VPP_HSC_REGION3_PHASE_SLOPE 0x1d16
421 #define VPP_HSC_REGION4_PHASE_SLOPE 0x1d17
422 #define VPP_HSC_PHASE_CTRL 0x1d18
423 #define VPP_SC_MISC 0x1d19
424 #define VPP_SC_VD_EN_ENABLE BIT(15)
425 #define VPP_SC_TOP_EN_ENABLE BIT(16)
426 #define VPP_SC_HSC_EN_ENABLE BIT(17)
427 #define VPP_SC_VSC_EN_ENABLE BIT(18)
428 #define VPP_VSC_BANK_LENGTH(length) (length & 0x7)
429 #define VPP_HSC_BANK_LENGTH(length) ((length & 0x7) << 8)
430 #define VPP_PREBLEND_VD1_H_START_END 0x1d1a
431 #define VPP_PREBLEND_VD1_V_START_END 0x1d1b
432 #define VPP_POSTBLEND_VD1_H_START_END 0x1d1c
433 #define VPP_POSTBLEND_VD1_V_START_END 0x1d1d
434 #define VPP_BLEND_VD2_H_START_END 0x1d1e
435 #define VPP_BLEND_VD2_V_START_END 0x1d1f
436 #define VPP_PREBLEND_H_SIZE 0x1d20
437 #define VPP_POSTBLEND_H_SIZE 0x1d21
438 #define VPP_HOLD_LINES 0x1d22
439 #define VPP_POSTBLEND_HOLD_LINES(lines) (lines & 0xf)
440 #define VPP_PREBLEND_HOLD_LINES(lines) ((lines & 0xf) << 8)
441 #define VPP_BLEND_ONECOLOR_CTRL 0x1d23
442 #define VPP_PREBLEND_CURRENT_XY 0x1d24
443 #define VPP_POSTBLEND_CURRENT_XY 0x1d25
444 #define VPP_MISC 0x1d26
445 #define VPP_PREBLEND_ENABLE BIT(6)
446 #define VPP_POSTBLEND_ENABLE BIT(7)
447 #define VPP_OSD2_ALPHA_PREMULT BIT(8)
448 #define VPP_OSD1_ALPHA_PREMULT BIT(9)
449 #define VPP_VD1_POSTBLEND BIT(10)
450 #define VPP_VD2_POSTBLEND BIT(11)
451 #define VPP_OSD1_POSTBLEND BIT(12)
452 #define VPP_OSD2_POSTBLEND BIT(13)
453 #define VPP_VD1_PREBLEND BIT(14)
454 #define VPP_VD2_PREBLEND BIT(15)
455 #define VPP_OSD1_PREBLEND BIT(16)
456 #define VPP_OSD2_PREBLEND BIT(17)
457 #define VPP_COLOR_MNG_ENABLE BIT(28)
458 #define VPP_OFIFO_SIZE 0x1d27
459 #define VPP_OFIFO_SIZE_MASK GENMASK(13, 0)
460 #define VPP_OFIFO_SIZE_DEFAULT (0xfff << 20 | 0x1000)
461 #define VPP_FIFO_STATUS 0x1d28
462 #define VPP_SMOKE_CTRL 0x1d29
463 #define VPP_SMOKE1_VAL 0x1d2a
464 #define VPP_SMOKE2_VAL 0x1d2b
465 #define VPP_SMOKE3_VAL 0x1d2c
466 #define VPP_SMOKE1_H_START_END 0x1d2d
467 #define VPP_SMOKE1_V_START_END 0x1d2e
468 #define VPP_SMOKE2_H_START_END 0x1d2f
469 #define VPP_SMOKE2_V_START_END 0x1d30
470 #define VPP_SMOKE3_H_START_END 0x1d31
471 #define VPP_SMOKE3_V_START_END 0x1d32
472 #define VPP_SCO_FIFO_CTRL 0x1d33
473 #define VPP_HSC_PHASE_CTRL1 0x1d34
474 #define VPP_HSC_INI_PAT_CTRL 0x1d35
475 #define VPP_VADJ_CTRL 0x1d40
476 #define VPP_MINUS_BLACK_LVL_VADJ1_ENABLE BIT(1)
478 #define VPP_VADJ1_Y 0x1d41
479 #define VPP_VADJ1_MA_MB 0x1d42
480 #define VPP_VADJ1_MC_MD 0x1d43
481 #define VPP_VADJ2_Y 0x1d44
482 #define VPP_VADJ2_MA_MB 0x1d45
483 #define VPP_VADJ2_MC_MD 0x1d46
484 #define VPP_HSHARP_CTRL 0x1d50
485 #define VPP_HSHARP_LUMA_THRESH01 0x1d51
486 #define VPP_HSHARP_LUMA_THRESH23 0x1d52
487 #define VPP_HSHARP_CHROMA_THRESH01 0x1d53
488 #define VPP_HSHARP_CHROMA_THRESH23 0x1d54
489 #define VPP_HSHARP_LUMA_GAIN 0x1d55
490 #define VPP_HSHARP_CHROMA_GAIN 0x1d56
491 #define VPP_MATRIX_PROBE_COLOR 0x1d5c
492 #define VPP_MATRIX_HL_COLOR 0x1d5d
493 #define VPP_MATRIX_PROBE_POS 0x1d5e
494 #define VPP_MATRIX_CTRL 0x1d5f
495 #define VPP_MATRIX_COEF00_01 0x1d60
496 #define VPP_MATRIX_COEF02_10 0x1d61
497 #define VPP_MATRIX_COEF11_12 0x1d62
498 #define VPP_MATRIX_COEF20_21 0x1d63
499 #define VPP_MATRIX_COEF22 0x1d64
500 #define VPP_MATRIX_OFFSET0_1 0x1d65
501 #define VPP_MATRIX_OFFSET2 0x1d66
502 #define VPP_MATRIX_PRE_OFFSET0_1 0x1d67
503 #define VPP_MATRIX_PRE_OFFSET2 0x1d68
504 #define VPP_DUMMY_DATA1 0x1d69
505 #define VPP_GAINOFF_CTRL0 0x1d6a
506 #define VPP_GAINOFF_CTRL1 0x1d6b
507 #define VPP_GAINOFF_CTRL2 0x1d6c
508 #define VPP_GAINOFF_CTRL3 0x1d6d
509 #define VPP_GAINOFF_CTRL4 0x1d6e
510 #define VPP_CHROMA_ADDR_PORT 0x1d70
511 #define VPP_CHROMA_DATA_PORT 0x1d71
512 #define VPP_GCLK_CTRL0 0x1d72
513 #define VPP_GCLK_CTRL1 0x1d73
514 #define VPP_SC_GCLK_CTRL 0x1d74
515 #define VPP_MISC1 0x1d76
516 #define VPP_BLACKEXT_CTRL 0x1d80
517 #define VPP_DNLP_CTRL_00 0x1d81
518 #define VPP_DNLP_CTRL_01 0x1d82
519 #define VPP_DNLP_CTRL_02 0x1d83
520 #define VPP_DNLP_CTRL_03 0x1d84
521 #define VPP_DNLP_CTRL_04 0x1d85
522 #define VPP_DNLP_CTRL_05 0x1d86
523 #define VPP_DNLP_CTRL_06 0x1d87
524 #define VPP_DNLP_CTRL_07 0x1d88
525 #define VPP_DNLP_CTRL_08 0x1d89
526 #define VPP_DNLP_CTRL_09 0x1d8a
527 #define VPP_DNLP_CTRL_10 0x1d8b
528 #define VPP_DNLP_CTRL_11 0x1d8c
529 #define VPP_DNLP_CTRL_12 0x1d8d
530 #define VPP_DNLP_CTRL_13 0x1d8e
531 #define VPP_DNLP_CTRL_14 0x1d8f
532 #define VPP_DNLP_CTRL_15 0x1d90
533 #define VPP_PEAKING_HGAIN 0x1d91
534 #define VPP_PEAKING_VGAIN 0x1d92
535 #define VPP_PEAKING_NLP_1 0x1d93
536 #define VPP_DOLBY_CTRL 0x1d93
537 #define VPP_PPS_DUMMY_DATA_MODE (1 << 17)
538 #define VPP_PEAKING_NLP_2 0x1d94
539 #define VPP_PEAKING_NLP_3 0x1d95
540 #define VPP_PEAKING_NLP_4 0x1d96
541 #define VPP_PEAKING_NLP_5 0x1d97
542 #define VPP_SHARP_LIMIT 0x1d98
543 #define VPP_VLTI_CTRL 0x1d99
544 #define VPP_HLTI_CTRL 0x1d9a
545 #define VPP_CTI_CTRL 0x1d9b
546 #define VPP_BLUE_STRETCH_1 0x1d9c
547 #define VPP_BLUE_STRETCH_2 0x1d9d
548 #define VPP_BLUE_STRETCH_3 0x1d9e
549 #define VPP_CCORING_CTRL 0x1da0
550 #define VPP_VE_ENABLE_CTRL 0x1da1
551 #define VPP_VE_DEMO_LEFT_TOP_SCREEN_WIDTH 0x1da2
552 #define VPP_VE_DEMO_CENTER_BAR 0x1da3
553 #define VPP_VE_H_V_SIZE 0x1da4
554 #define VPP_VDO_MEAS_CTRL 0x1da8
555 #define VPP_VDO_MEAS_VS_COUNT_HI 0x1da9
556 #define VPP_VDO_MEAS_VS_COUNT_LO 0x1daa
557 #define VPP_INPUT_CTRL 0x1dab
558 #define VPP_CTI_CTRL2 0x1dac
559 #define VPP_PEAKING_SAT_THD1 0x1dad
560 #define VPP_PEAKING_SAT_THD2 0x1dae
561 #define VPP_PEAKING_SAT_THD3 0x1daf
562 #define VPP_PEAKING_SAT_THD4 0x1db0
563 #define VPP_PEAKING_SAT_THD5 0x1db1
564 #define VPP_PEAKING_SAT_THD6 0x1db2
565 #define VPP_PEAKING_SAT_THD7 0x1db3
566 #define VPP_PEAKING_SAT_THD8 0x1db4
567 #define VPP_PEAKING_SAT_THD9 0x1db5
568 #define VPP_PEAKING_GAIN_ADD1 0x1db6
569 #define VPP_PEAKING_GAIN_ADD2 0x1db7
570 #define VPP_PEAKING_DNLP 0x1db8
571 #define VPP_SHARP_DEMO_WIN_CTRL1 0x1db9
572 #define VPP_SHARP_DEMO_WIN_CTRL2 0x1dba
573 #define VPP_FRONT_HLTI_CTRL 0x1dbb
574 #define VPP_FRONT_CTI_CTRL 0x1dbc
575 #define VPP_FRONT_CTI_CTRL2 0x1dbd
576 #define VPP_OSD_VSC_PHASE_STEP 0x1dc0
577 #define VPP_OSD_VSC_INI_PHASE 0x1dc1
578 #define VPP_OSD_VSC_CTRL0 0x1dc2
579 #define VPP_OSD_HSC_PHASE_STEP 0x1dc3
580 #define VPP_OSD_HSC_INI_PHASE 0x1dc4
581 #define VPP_OSD_HSC_CTRL0 0x1dc5
582 #define VPP_OSD_HSC_INI_PAT_CTRL 0x1dc6
583 #define VPP_OSD_SC_DUMMY_DATA 0x1dc7
584 #define VPP_OSD_SC_CTRL0 0x1dc8
585 #define VPP_OSD_SCI_WH_M1 0x1dc9
586 #define VPP_OSD_SCO_H_START_END 0x1dca
587 #define VPP_OSD_SCO_V_START_END 0x1dcb
588 #define VPP_OSD_SCALE_COEF_IDX 0x1dcc
589 #define VPP_OSD_SCALE_COEF 0x1dcd
590 #define VPP_INT_LINE_NUM 0x1dce
592 #define VPP_WRAP_OSD1_MATRIX_COEF00_01 0x3d60
593 #define VPP_WRAP_OSD1_MATRIX_COEF02_10 0x3d61
594 #define VPP_WRAP_OSD1_MATRIX_COEF11_12 0x3d62
595 #define VPP_WRAP_OSD1_MATRIX_COEF20_21 0x3d63
596 #define VPP_WRAP_OSD1_MATRIX_COEF22 0x3d64
597 #define VPP_WRAP_OSD1_MATRIX_COEF13_14 0x3d65
598 #define VPP_WRAP_OSD1_MATRIX_COEF23_24 0x3d66
599 #define VPP_WRAP_OSD1_MATRIX_COEF15_25 0x3d67
600 #define VPP_WRAP_OSD1_MATRIX_CLIP 0x3d68
601 #define VPP_WRAP_OSD1_MATRIX_OFFSET0_1 0x3d69
602 #define VPP_WRAP_OSD1_MATRIX_OFFSET2 0x3d6a
603 #define VPP_WRAP_OSD1_MATRIX_PRE_OFFSET0_1 0x3d6b
604 #define VPP_WRAP_OSD1_MATRIX_PRE_OFFSET2 0x3d6c
605 #define VPP_WRAP_OSD1_MATRIX_EN_CTRL 0x3d6d
607 #define VPP_WRAP_OSD2_MATRIX_COEF00_01 0x3d70
608 #define VPP_WRAP_OSD2_MATRIX_COEF02_10 0x3d71
609 #define VPP_WRAP_OSD2_MATRIX_COEF11_12 0x3d72
610 #define VPP_WRAP_OSD2_MATRIX_COEF20_21 0x3d73
611 #define VPP_WRAP_OSD2_MATRIX_COEF22 0x3d74
612 #define VPP_WRAP_OSD2_MATRIX_COEF13_14 0x3d75
613 #define VPP_WRAP_OSD2_MATRIX_COEF23_24 0x3d76
614 #define VPP_WRAP_OSD2_MATRIX_COEF15_25 0x3d77
615 #define VPP_WRAP_OSD2_MATRIX_CLIP 0x3d78
616 #define VPP_WRAP_OSD2_MATRIX_OFFSET0_1 0x3d79
617 #define VPP_WRAP_OSD2_MATRIX_OFFSET2 0x3d7a
618 #define VPP_WRAP_OSD2_MATRIX_PRE_OFFSET0_1 0x3d7b
619 #define VPP_WRAP_OSD2_MATRIX_PRE_OFFSET2 0x3d7c
620 #define VPP_WRAP_OSD2_MATRIX_EN_CTRL 0x3d7d
622 #define VPP_WRAP_OSD3_MATRIX_COEF00_01 0x3db0
623 #define VPP_WRAP_OSD3_MATRIX_COEF02_10 0x3db1
624 #define VPP_WRAP_OSD3_MATRIX_COEF11_12 0x3db2
625 #define VPP_WRAP_OSD3_MATRIX_COEF20_21 0x3db3
626 #define VPP_WRAP_OSD3_MATRIX_COEF22 0x3db4
627 #define VPP_WRAP_OSD3_MATRIX_COEF13_14 0x3db5
628 #define VPP_WRAP_OSD3_MATRIX_COEF23_24 0x3db6
629 #define VPP_WRAP_OSD3_MATRIX_COEF15_25 0x3db7
630 #define VPP_WRAP_OSD3_MATRIX_CLIP 0x3db8
631 #define VPP_WRAP_OSD3_MATRIX_OFFSET0_1 0x3db9
632 #define VPP_WRAP_OSD3_MATRIX_OFFSET2 0x3dba
633 #define VPP_WRAP_OSD3_MATRIX_PRE_OFFSET0_1 0x3dbb
634 #define VPP_WRAP_OSD3_MATRIX_PRE_OFFSET2 0x3dbc
635 #define VPP_WRAP_OSD3_MATRIX_EN_CTRL 0x3dbd
638 #define OSD2_VSC_PHASE_STEP 0x3d00
639 #define OSD2_VSC_INI_PHASE 0x3d01
640 #define OSD2_VSC_CTRL0 0x3d02
641 #define OSD2_HSC_PHASE_STEP 0x3d03
642 #define OSD2_HSC_INI_PHASE 0x3d04
643 #define OSD2_HSC_CTRL0 0x3d05
644 #define OSD2_HSC_INI_PAT_CTRL 0x3d06
645 #define OSD2_SC_DUMMY_DATA 0x3d07
646 #define OSD2_SC_CTRL0 0x3d08
647 #define OSD2_SCI_WH_M1 0x3d09
648 #define OSD2_SCO_H_START_END 0x3d0a
649 #define OSD2_SCO_V_START_END 0x3d0b
650 #define OSD2_SCALE_COEF_IDX 0x3d18
651 #define OSD2_SCALE_COEF 0x3d19
654 #define OSD34_SCALE_COEF_IDX 0x3d1e
655 #define OSD34_SCALE_COEF 0x3d1f
656 #define OSD34_VSC_PHASE_STEP 0x3d20
657 #define OSD34_VSC_INI_PHASE 0x3d21
658 #define OSD34_VSC_CTRL0 0x3d22
659 #define OSD34_HSC_PHASE_STEP 0x3d23
660 #define OSD34_HSC_INI_PHASE 0x3d24
661 #define OSD34_HSC_CTRL0 0x3d25
662 #define OSD34_HSC_INI_PAT_CTRL 0x3d26
663 #define OSD34_SC_DUMMY_DATA 0x3d27
664 #define OSD34_SC_CTRL0 0x3d28
665 #define OSD34_SCI_WH_M1 0x3d29
666 #define OSD34_SCO_H_START_END 0x3d2a
667 #define OSD34_SCO_V_START_END 0x3d2b
670 #define VIU2_ADDR_START 0x1e00
671 #define VIU2_ADDR_END 0x1eff
672 #define VIU2_SW_RESET 0x1e01
673 #define VIU2_OSD1_CTRL_STAT 0x1e10
674 #define VIU2_OSD1_CTRL_STAT2 0x1e2d
675 #define VIU2_OSD1_COLOR_ADDR 0x1e11
676 #define VIU2_OSD1_COLOR 0x1e12
677 #define VIU2_OSD1_TCOLOR_AG0 0x1e17
678 #define VIU2_OSD1_TCOLOR_AG1 0x1e18
679 #define VIU2_OSD1_TCOLOR_AG2 0x1e19
680 #define VIU2_OSD1_TCOLOR_AG3 0x1e1a
681 #define VIU2_OSD1_BLK0_CFG_W0 0x1e1b
682 #define VIU2_OSD1_BLK1_CFG_W0 0x1e1f
683 #define VIU2_OSD1_BLK2_CFG_W0 0x1e23
684 #define VIU2_OSD1_BLK3_CFG_W0 0x1e27
685 #define VIU2_OSD1_BLK0_CFG_W1 0x1e1c
686 #define VIU2_OSD1_BLK1_CFG_W1 0x1e20
687 #define VIU2_OSD1_BLK2_CFG_W1 0x1e24
688 #define VIU2_OSD1_BLK3_CFG_W1 0x1e28
689 #define VIU2_OSD1_BLK0_CFG_W2 0x1e1d
690 #define VIU2_OSD1_BLK1_CFG_W2 0x1e21
691 #define VIU2_OSD1_BLK2_CFG_W2 0x1e25
692 #define VIU2_OSD1_BLK3_CFG_W2 0x1e29
693 #define VIU2_OSD1_BLK0_CFG_W3 0x1e1e
694 #define VIU2_OSD1_BLK1_CFG_W3 0x1e22
695 #define VIU2_OSD1_BLK2_CFG_W3 0x1e26
696 #define VIU2_OSD1_BLK3_CFG_W3 0x1e2a
697 #define VIU2_OSD1_BLK0_CFG_W4 0x1e13
698 #define VIU2_OSD1_BLK1_CFG_W4 0x1e14
699 #define VIU2_OSD1_BLK2_CFG_W4 0x1e15
700 #define VIU2_OSD1_BLK3_CFG_W4 0x1e16
701 #define VIU2_OSD1_FIFO_CTRL_STAT 0x1e2b
702 #define VIU2_OSD1_TEST_RDDATA 0x1e2c
703 #define VIU2_OSD1_PROT_CTRL 0x1e2e
704 #define VIU2_OSD2_CTRL_STAT 0x1e30
705 #define VIU2_OSD2_CTRL_STAT2 0x1e4d
706 #define VIU2_OSD2_COLOR_ADDR 0x1e31
707 #define VIU2_OSD2_COLOR 0x1e32
708 #define VIU2_OSD2_HL1_H_START_END 0x1e33
709 #define VIU2_OSD2_HL1_V_START_END 0x1e34
710 #define VIU2_OSD2_HL2_H_START_END 0x1e35
711 #define VIU2_OSD2_HL2_V_START_END 0x1e36
712 #define VIU2_OSD2_TCOLOR_AG0 0x1e37
713 #define VIU2_OSD2_TCOLOR_AG1 0x1e38
714 #define VIU2_OSD2_TCOLOR_AG2 0x1e39
715 #define VIU2_OSD2_TCOLOR_AG3 0x1e3a
716 #define VIU2_OSD2_BLK0_CFG_W0 0x1e3b
717 #define VIU2_OSD2_BLK1_CFG_W0 0x1e3f
718 #define VIU2_OSD2_BLK2_CFG_W0 0x1e43
719 #define VIU2_OSD2_BLK3_CFG_W0 0x1e47
720 #define VIU2_OSD2_BLK0_CFG_W1 0x1e3c
721 #define VIU2_OSD2_BLK1_CFG_W1 0x1e40
722 #define VIU2_OSD2_BLK2_CFG_W1 0x1e44
723 #define VIU2_OSD2_BLK3_CFG_W1 0x1e48
724 #define VIU2_OSD2_BLK0_CFG_W2 0x1e3d
725 #define VIU2_OSD2_BLK1_CFG_W2 0x1e41
726 #define VIU2_OSD2_BLK2_CFG_W2 0x1e45
727 #define VIU2_OSD2_BLK3_CFG_W2 0x1e49
728 #define VIU2_OSD2_BLK0_CFG_W3 0x1e3e
729 #define VIU2_OSD2_BLK1_CFG_W3 0x1e42
730 #define VIU2_OSD2_BLK2_CFG_W3 0x1e46
731 #define VIU2_OSD2_BLK3_CFG_W3 0x1e4a
732 #define VIU2_OSD2_BLK0_CFG_W4 0x1e64
733 #define VIU2_OSD2_BLK1_CFG_W4 0x1e65
734 #define VIU2_OSD2_BLK2_CFG_W4 0x1e66
735 #define VIU2_OSD2_BLK3_CFG_W4 0x1e67
736 #define VIU2_OSD2_FIFO_CTRL_STAT 0x1e4b
737 #define VIU2_OSD2_TEST_RDDATA 0x1e4c
738 #define VIU2_OSD2_PROT_CTRL 0x1e4e
739 #define VIU2_VD1_IF0_GEN_REG 0x1e50
740 #define VIU2_VD1_IF0_CANVAS0 0x1e51
741 #define VIU2_VD1_IF0_CANVAS1 0x1e52
742 #define VIU2_VD1_IF0_LUMA_X0 0x1e53
743 #define VIU2_VD1_IF0_LUMA_Y0 0x1e54
744 #define VIU2_VD1_IF0_CHROMA_X0 0x1e55
745 #define VIU2_VD1_IF0_CHROMA_Y0 0x1e56
746 #define VIU2_VD1_IF0_LUMA_X1 0x1e57
747 #define VIU2_VD1_IF0_LUMA_Y1 0x1e58
748 #define VIU2_VD1_IF0_CHROMA_X1 0x1e59
749 #define VIU2_VD1_IF0_CHROMA_Y1 0x1e5a
750 #define VIU2_VD1_IF0_RPT_LOOP 0x1e5b
751 #define VIU2_VD1_IF0_LUMA0_RPT_PAT 0x1e5c
752 #define VIU2_VD1_IF0_CHROMA0_RPT_PAT 0x1e5d
753 #define VIU2_VD1_IF0_LUMA1_RPT_PAT 0x1e5e
754 #define VIU2_VD1_IF0_CHROMA1_RPT_PAT 0x1e5f
755 #define VIU2_VD1_IF0_LUMA_PSEL 0x1e60
756 #define VIU2_VD1_IF0_CHROMA_PSEL 0x1e61
757 #define VIU2_VD1_IF0_DUMMY_PIXEL 0x1e62
758 #define VIU2_VD1_IF0_LUMA_FIFO_SIZE 0x1e63
759 #define VIU2_VD1_IF0_RANGE_MAP_Y 0x1e6a
760 #define VIU2_VD1_IF0_RANGE_MAP_CB 0x1e6b
761 #define VIU2_VD1_IF0_RANGE_MAP_CR 0x1e6c
762 #define VIU2_VD1_IF0_GEN_REG2 0x1e6d
763 #define VIU2_VD1_IF0_PROT_CNTL 0x1e6e
764 #define VIU2_VD1_FMT_CTRL 0x1e68
765 #define VIU2_VD1_FMT_W 0x1e69
768 #define ENCP_VFIFO2VD_CTL 0x1b58
769 #define ENCP_VFIFO2VD_PIXEL_START 0x1b59
770 #define ENCP_VFIFO2VD_PIXEL_END 0x1b5a
771 #define ENCP_VFIFO2VD_LINE_TOP_START 0x1b5b
772 #define ENCP_VFIFO2VD_LINE_TOP_END 0x1b5c
773 #define ENCP_VFIFO2VD_LINE_BOT_START 0x1b5d
774 #define ENCP_VFIFO2VD_LINE_BOT_END 0x1b5e
775 #define VENC_SYNC_ROUTE 0x1b60
776 #define VENC_VIDEO_EXSRC 0x1b61
777 #define VENC_DVI_SETTING 0x1b62
778 #define VENC_C656_CTRL 0x1b63
779 #define VENC_UPSAMPLE_CTRL0 0x1b64
780 #define VENC_UPSAMPLE_CTRL1 0x1b65
781 #define VENC_UPSAMPLE_CTRL2 0x1b66
782 #define VENC_UPSAMPLE_CTRL_F0_2_CLK_RATIO BIT(0)
783 #define VENC_UPSAMPLE_CTRL_F1_EN BIT(5)
784 #define VENC_UPSAMPLE_CTRL_F1_UPSAMPLE_EN BIT(6)
785 #define VENC_UPSAMPLE_CTRL_INTERLACE_HIGH_LUMA (0x0 << 12)
786 #define VENC_UPSAMPLE_CTRL_CVBS (0x1 << 12)
787 #define VENC_UPSAMPLE_CTRL_S_VIDEO_LUMA (0x2 << 12)
788 #define VENC_UPSAMPLE_CTRL_S_VIDEO_CHROMA (0x3 << 12)
789 #define VENC_UPSAMPLE_CTRL_INTERLACE_PB (0x4 << 12)
790 #define VENC_UPSAMPLE_CTRL_INTERLACE_PR (0x5 << 12)
791 #define VENC_UPSAMPLE_CTRL_INTERLACE_R (0x6 << 12)
792 #define VENC_UPSAMPLE_CTRL_INTERLACE_G (0x7 << 12)
793 #define VENC_UPSAMPLE_CTRL_INTERLACE_B (0x8 << 12)
794 #define VENC_UPSAMPLE_CTRL_PROGRESSIVE_Y (0x9 << 12)
795 #define VENC_UPSAMPLE_CTRL_PROGRESSIVE_PB (0xa << 12)
796 #define VENC_UPSAMPLE_CTRL_PROGRESSIVE_PR (0xb << 12)
797 #define VENC_UPSAMPLE_CTRL_PROGRESSIVE_R (0xc << 12)
798 #define VENC_UPSAMPLE_CTRL_PROGRESSIVE_G (0xd << 12)
799 #define VENC_UPSAMPLE_CTRL_PROGRESSIVE_B (0xe << 12)
800 #define VENC_UPSAMPLE_CTRL_VDAC_TEST_VALUE (0xf << 12)
801 #define TCON_INVERT_CTL 0x1b67
802 #define VENC_VIDEO_PROG_MODE 0x1b68
803 #define VENC_ENCI_LINE 0x1b69
804 #define VENC_ENCI_PIXEL 0x1b6a
805 #define VENC_ENCP_LINE 0x1b6b
806 #define VENC_ENCP_PIXEL 0x1b6c
807 #define VENC_STATA 0x1b6d
808 #define VENC_INTCTRL 0x1b6e
809 #define VENC_INTCTRL_ENCI_LNRST_INT_EN BIT(1)
810 #define VENC_INTFLAG 0x1b6f
811 #define VENC_VIDEO_TST_EN 0x1b70
812 #define VENC_VIDEO_TST_MDSEL 0x1b71
813 #define VENC_VIDEO_TST_Y 0x1b72
814 #define VENC_VIDEO_TST_CB 0x1b73
815 #define VENC_VIDEO_TST_CR 0x1b74
816 #define VENC_VIDEO_TST_CLRBAR_STRT 0x1b75
817 #define VENC_VIDEO_TST_CLRBAR_WIDTH 0x1b76
818 #define VENC_VIDEO_TST_VDCNT_STSET 0x1b77
819 #define VENC_VDAC_DACSEL0 0x1b78
820 #define VENC_VDAC_SEL_ATV_DMD BIT(5)
821 #define VENC_VDAC_DACSEL1 0x1b79
822 #define VENC_VDAC_DACSEL2 0x1b7a
823 #define VENC_VDAC_DACSEL3 0x1b7b
824 #define VENC_VDAC_DACSEL4 0x1b7c
825 #define VENC_VDAC_DACSEL5 0x1b7d
826 #define VENC_VDAC_SETTING 0x1b7e
827 #define VENC_VDAC_TST_VAL 0x1b7f
828 #define VENC_VDAC_DAC0_GAINCTRL 0x1bf0
829 #define VENC_VDAC_DAC0_OFFSET 0x1bf1
830 #define VENC_VDAC_DAC1_GAINCTRL 0x1bf2
831 #define VENC_VDAC_DAC1_OFFSET 0x1bf3
832 #define VENC_VDAC_DAC2_GAINCTRL 0x1bf4
833 #define VENC_VDAC_DAC2_OFFSET 0x1bf5
834 #define VENC_VDAC_DAC3_GAINCTRL 0x1bf6
835 #define VENC_VDAC_DAC3_OFFSET 0x1bf7
836 #define VENC_VDAC_DAC4_GAINCTRL 0x1bf8
837 #define VENC_VDAC_DAC4_OFFSET 0x1bf9
838 #define VENC_VDAC_DAC5_GAINCTRL 0x1bfa
839 #define VENC_VDAC_DAC5_OFFSET 0x1bfb
840 #define VENC_VDAC_FIFO_CTRL 0x1bfc
841 #define VENC_VDAC_FIFO_EN_ENCI_ENABLE BIT(13)
842 #define ENCL_TCON_INVERT_CTL 0x1bfd
843 #define ENCP_VIDEO_EN 0x1b80
844 #define ENCP_VIDEO_SYNC_MODE 0x1b81
845 #define ENCP_MACV_EN 0x1b82
846 #define ENCP_VIDEO_Y_SCL 0x1b83
847 #define ENCP_VIDEO_PB_SCL 0x1b84
848 #define ENCP_VIDEO_PR_SCL 0x1b85
849 #define ENCP_VIDEO_SYNC_SCL 0x1b86
850 #define ENCP_VIDEO_MACV_SCL 0x1b87
851 #define ENCP_VIDEO_Y_OFFST 0x1b88
852 #define ENCP_VIDEO_PB_OFFST 0x1b89
853 #define ENCP_VIDEO_PR_OFFST 0x1b8a
854 #define ENCP_VIDEO_SYNC_OFFST 0x1b8b
855 #define ENCP_VIDEO_MACV_OFFST 0x1b8c
856 #define ENCP_VIDEO_MODE 0x1b8d
857 #define ENCP_VIDEO_MODE_DE_V_HIGH BIT(14)
858 #define ENCP_VIDEO_MODE_ADV 0x1b8e
859 #define ENCP_DBG_PX_RST 0x1b90
860 #define ENCP_DBG_LN_RST 0x1b91
861 #define ENCP_DBG_PX_INT 0x1b92
862 #define ENCP_DBG_LN_INT 0x1b93
863 #define ENCP_VIDEO_YFP1_HTIME 0x1b94
864 #define ENCP_VIDEO_YFP2_HTIME 0x1b95
865 #define ENCP_VIDEO_YC_DLY 0x1b96
866 #define ENCP_VIDEO_MAX_PXCNT 0x1b97
867 #define ENCP_VIDEO_HSPULS_BEGIN 0x1b98
868 #define ENCP_VIDEO_HSPULS_END 0x1b99
869 #define ENCP_VIDEO_HSPULS_SWITCH 0x1b9a
870 #define ENCP_VIDEO_VSPULS_BEGIN 0x1b9b
871 #define ENCP_VIDEO_VSPULS_END 0x1b9c
872 #define ENCP_VIDEO_VSPULS_BLINE 0x1b9d
873 #define ENCP_VIDEO_VSPULS_ELINE 0x1b9e
874 #define ENCP_VIDEO_EQPULS_BEGIN 0x1b9f
875 #define ENCP_VIDEO_EQPULS_END 0x1ba0
876 #define ENCP_VIDEO_EQPULS_BLINE 0x1ba1
877 #define ENCP_VIDEO_EQPULS_ELINE 0x1ba2
878 #define ENCP_VIDEO_HAVON_END 0x1ba3
879 #define ENCP_VIDEO_HAVON_BEGIN 0x1ba4
880 #define ENCP_VIDEO_VAVON_ELINE 0x1baf
881 #define ENCP_VIDEO_VAVON_BLINE 0x1ba6
882 #define ENCP_VIDEO_HSO_BEGIN 0x1ba7
883 #define ENCP_VIDEO_HSO_END 0x1ba8
884 #define ENCP_VIDEO_VSO_BEGIN 0x1ba9
885 #define ENCP_VIDEO_VSO_END 0x1baa
886 #define ENCP_VIDEO_VSO_BLINE 0x1bab
887 #define ENCP_VIDEO_VSO_ELINE 0x1bac
888 #define ENCP_VIDEO_SYNC_WAVE_CURVE 0x1bad
889 #define ENCP_VIDEO_MAX_LNCNT 0x1bae
890 #define ENCP_VIDEO_SY_VAL 0x1bb0
891 #define ENCP_VIDEO_SY2_VAL 0x1bb1
892 #define ENCP_VIDEO_BLANKY_VAL 0x1bb2
893 #define ENCP_VIDEO_BLANKPB_VAL 0x1bb3
894 #define ENCP_VIDEO_BLANKPR_VAL 0x1bb4
895 #define ENCP_VIDEO_HOFFST 0x1bb5
896 #define ENCP_VIDEO_VOFFST 0x1bb6
897 #define ENCP_VIDEO_RGB_CTRL 0x1bb7
898 #define ENCP_VIDEO_FILT_CTRL 0x1bb8
899 #define ENCP_VIDEO_OFLD_VPEQ_OFST 0x1bb9
900 #define ENCP_VIDEO_OFLD_VOAV_OFST 0x1bba
901 #define ENCP_VIDEO_MATRIX_CB 0x1bbb
902 #define ENCP_VIDEO_MATRIX_CR 0x1bbc
903 #define ENCP_VIDEO_RGBIN_CTRL 0x1bbd
904 #define ENCP_MACV_BLANKY_VAL 0x1bc0
905 #define ENCP_MACV_MAXY_VAL 0x1bc1
906 #define ENCP_MACV_1ST_PSSYNC_STRT 0x1bc2
907 #define ENCP_MACV_PSSYNC_STRT 0x1bc3
908 #define ENCP_MACV_AGC_STRT 0x1bc4
909 #define ENCP_MACV_AGC_END 0x1bc5
910 #define ENCP_MACV_WAVE_END 0x1bc6
911 #define ENCP_MACV_STRTLINE 0x1bc7
912 #define ENCP_MACV_ENDLINE 0x1bc8
913 #define ENCP_MACV_TS_CNT_MAX_L 0x1bc9
914 #define ENCP_MACV_TS_CNT_MAX_H 0x1bca
915 #define ENCP_MACV_TIME_DOWN 0x1bcb
916 #define ENCP_MACV_TIME_LO 0x1bcc
917 #define ENCP_MACV_TIME_UP 0x1bcd
918 #define ENCP_MACV_TIME_RST 0x1bce
919 #define ENCP_VBI_CTRL 0x1bd0
920 #define ENCP_VBI_SETTING 0x1bd1
921 #define ENCP_VBI_BEGIN 0x1bd2
922 #define ENCP_VBI_WIDTH 0x1bd3
923 #define ENCP_VBI_HVAL 0x1bd4
924 #define ENCP_VBI_DATA0 0x1bd5
925 #define ENCP_VBI_DATA1 0x1bd6
926 #define C656_HS_ST 0x1be0
927 #define C656_HS_ED 0x1be1
928 #define C656_VS_LNST_E 0x1be2
929 #define C656_VS_LNST_O 0x1be3
930 #define C656_VS_LNED_E 0x1be4
931 #define C656_VS_LNED_O 0x1be5
932 #define C656_FS_LNST 0x1be6
933 #define C656_FS_LNED 0x1be7
934 #define ENCI_VIDEO_MODE 0x1b00
935 #define ENCI_VIDEO_MODE_ADV 0x1b01
936 #define ENCI_VIDEO_MODE_ADV_DMXMD(val) (val & 0x3)
937 #define ENCI_VIDEO_MODE_ADV_VBICTL_LINE_17_22 BIT(2)
938 #define ENCI_VIDEO_MODE_ADV_YBW_MEDIUM (0 << 4)
939 #define ENCI_VIDEO_MODE_ADV_YBW_LOW (0x1 << 4)
940 #define ENCI_VIDEO_MODE_ADV_YBW_HIGH (0x2 << 4)
941 #define ENCI_VIDEO_FSC_ADJ 0x1b02
942 #define ENCI_VIDEO_BRIGHT 0x1b03
943 #define ENCI_VIDEO_CONT 0x1b04
944 #define ENCI_VIDEO_SAT 0x1b05
945 #define ENCI_VIDEO_HUE 0x1b06
946 #define ENCI_VIDEO_SCH 0x1b07
947 #define ENCI_SYNC_MODE 0x1b08
948 #define ENCI_SYNC_CTRL 0x1b09
949 #define ENCI_SYNC_HSO_BEGIN 0x1b0a
950 #define ENCI_SYNC_HSO_END 0x1b0b
951 #define ENCI_SYNC_VSO_EVN 0x1b0c
952 #define ENCI_SYNC_VSO_ODD 0x1b0d
953 #define ENCI_SYNC_VSO_EVNLN 0x1b0e
954 #define ENCI_SYNC_VSO_ODDLN 0x1b0f
955 #define ENCI_SYNC_HOFFST 0x1b10
956 #define ENCI_SYNC_VOFFST 0x1b11
957 #define ENCI_SYNC_ADJ 0x1b12
958 #define ENCI_RGB_SETTING 0x1b13
959 #define ENCI_DE_H_BEGIN 0x1b16
960 #define ENCI_DE_H_END 0x1b17
961 #define ENCI_DE_V_BEGIN_EVEN 0x1b18
962 #define ENCI_DE_V_END_EVEN 0x1b19
963 #define ENCI_DE_V_BEGIN_ODD 0x1b1a
964 #define ENCI_DE_V_END_ODD 0x1b1b
965 #define ENCI_VBI_SETTING 0x1b20
966 #define ENCI_VBI_CCDT_EVN 0x1b21
967 #define ENCI_VBI_CCDT_ODD 0x1b22
968 #define ENCI_VBI_CC525_LN 0x1b23
969 #define ENCI_VBI_CC625_LN 0x1b24
970 #define ENCI_VBI_WSSDT 0x1b25
971 #define ENCI_VBI_WSS_LN 0x1b26
972 #define ENCI_VBI_CGMSDT_L 0x1b27
973 #define ENCI_VBI_CGMSDT_H 0x1b28
974 #define ENCI_VBI_CGMS_LN 0x1b29
975 #define ENCI_VBI_TTX_HTIME 0x1b2a
976 #define ENCI_VBI_TTX_LN 0x1b2b
977 #define ENCI_VBI_TTXDT0 0x1b2c
978 #define ENCI_VBI_TTXDT1 0x1b2d
979 #define ENCI_VBI_TTXDT2 0x1b2e
980 #define ENCI_VBI_TTXDT3 0x1b2f
981 #define ENCI_MACV_N0 0x1b30
982 #define ENCI_MACV_N1 0x1b31
983 #define ENCI_MACV_N2 0x1b32
984 #define ENCI_MACV_N3 0x1b33
985 #define ENCI_MACV_N4 0x1b34
986 #define ENCI_MACV_N5 0x1b35
987 #define ENCI_MACV_N6 0x1b36
988 #define ENCI_MACV_N7 0x1b37
989 #define ENCI_MACV_N8 0x1b38
990 #define ENCI_MACV_N9 0x1b39
991 #define ENCI_MACV_N10 0x1b3a
992 #define ENCI_MACV_N11 0x1b3b
993 #define ENCI_MACV_N12 0x1b3c
994 #define ENCI_MACV_N13 0x1b3d
995 #define ENCI_MACV_N14 0x1b3e
996 #define ENCI_MACV_N15 0x1b3f
997 #define ENCI_MACV_N16 0x1b40
998 #define ENCI_MACV_N17 0x1b41
999 #define ENCI_MACV_N18 0x1b42
1000 #define ENCI_MACV_N19 0x1b43
1001 #define ENCI_MACV_N20 0x1b44
1002 #define ENCI_MACV_N21 0x1b45
1003 #define ENCI_MACV_N22 0x1b46
1004 #define ENCI_DBG_PX_RST 0x1b48
1005 #define ENCI_DBG_FLDLN_RST 0x1b49
1006 #define ENCI_DBG_PX_INT 0x1b4a
1007 #define ENCI_DBG_FLDLN_INT 0x1b4b
1008 #define ENCI_DBG_MAXPX 0x1b4c
1009 #define ENCI_DBG_MAXLN 0x1b4d
1010 #define ENCI_MACV_MAX_AMP 0x1b50
1011 #define ENCI_MACV_MAX_AMP_ENABLE_CHANGE BIT(15)
1012 #define ENCI_MACV_MAX_AMP_VAL(val) (val & 0x83ff)
1013 #define ENCI_MACV_PULSE_LO 0x1b51
1014 #define ENCI_MACV_PULSE_HI 0x1b52
1015 #define ENCI_MACV_BKP_MAX 0x1b53
1016 #define ENCI_CFILT_CTRL 0x1b54
1017 #define ENCI_CFILT_CMPT_SEL_HIGH BIT(1)
1018 #define ENCI_CFILT7 0x1b55
1019 #define ENCI_YC_DELAY 0x1b56
1020 #define ENCI_VIDEO_EN 0x1b57
1021 #define ENCI_VIDEO_EN_ENABLE BIT(0)
1022 #define ENCI_DVI_HSO_BEGIN 0x1c00
1023 #define ENCI_DVI_HSO_END 0x1c01
1024 #define ENCI_DVI_VSO_BLINE_EVN 0x1c02
1025 #define ENCI_DVI_VSO_BLINE_ODD 0x1c03
1026 #define ENCI_DVI_VSO_ELINE_EVN 0x1c04
1027 #define ENCI_DVI_VSO_ELINE_ODD 0x1c05
1028 #define ENCI_DVI_VSO_BEGIN_EVN 0x1c06
1029 #define ENCI_DVI_VSO_BEGIN_ODD 0x1c07
1030 #define ENCI_DVI_VSO_END_EVN 0x1c08
1031 #define ENCI_DVI_VSO_END_ODD 0x1c09
1032 #define ENCI_CFILT_CTRL2 0x1c0a
1033 #define ENCI_CFILT_CMPT_CR_DLY(delay) (delay & 0xf)
1034 #define ENCI_CFILT_CMPT_CB_DLY(delay) ((delay & 0xf) << 4)
1035 #define ENCI_CFILT_CVBS_CR_DLY(delay) ((delay & 0xf) << 8)
1036 #define ENCI_CFILT_CVBS_CB_DLY(delay) ((delay & 0xf) << 12)
1037 #define ENCI_DACSEL_0 0x1c0b
1038 #define ENCI_DACSEL_1 0x1c0c
1039 #define ENCP_DACSEL_0 0x1c0d
1040 #define ENCP_DACSEL_1 0x1c0e
1041 #define ENCP_MAX_LINE_SWITCH_POINT 0x1c0f
1042 #define ENCI_TST_EN 0x1c10
1043 #define ENCI_TST_MDSEL 0x1c11
1044 #define ENCI_TST_Y 0x1c12
1045 #define ENCI_TST_CB 0x1c13
1046 #define ENCI_TST_CR 0x1c14
1047 #define ENCI_TST_CLRBAR_STRT 0x1c15
1048 #define ENCI_TST_CLRBAR_WIDTH 0x1c16
1049 #define ENCI_TST_VDCNT_STSET 0x1c17
1050 #define ENCI_VFIFO2VD_CTL 0x1c18
1051 #define ENCI_VFIFO2VD_CTL_ENABLE BIT(0)
1052 #define ENCI_VFIFO2VD_CTL_VD_SEL(val) ((val & 0xff) << 8)
1053 #define ENCI_VFIFO2VD_PIXEL_START 0x1c19
1054 #define ENCI_VFIFO2VD_PIXEL_END 0x1c1a
1055 #define ENCI_VFIFO2VD_LINE_TOP_START 0x1c1b
1056 #define ENCI_VFIFO2VD_LINE_TOP_END 0x1c1c
1057 #define ENCI_VFIFO2VD_LINE_BOT_START 0x1c1d
1058 #define ENCI_VFIFO2VD_LINE_BOT_END 0x1c1e
1059 #define ENCI_VFIFO2VD_CTL2 0x1c1f
1060 #define ENCT_VFIFO2VD_CTL 0x1c20
1061 #define ENCT_VFIFO2VD_PIXEL_START 0x1c21
1062 #define ENCT_VFIFO2VD_PIXEL_END 0x1c22
1063 #define ENCT_VFIFO2VD_LINE_TOP_START 0x1c23
1064 #define ENCT_VFIFO2VD_LINE_TOP_END 0x1c24
1065 #define ENCT_VFIFO2VD_LINE_BOT_START 0x1c25
1066 #define ENCT_VFIFO2VD_LINE_BOT_END 0x1c26
1067 #define ENCT_VFIFO2VD_CTL2 0x1c27
1068 #define ENCT_TST_EN 0x1c28
1069 #define ENCT_TST_MDSEL 0x1c29
1070 #define ENCT_TST_Y 0x1c2a
1071 #define ENCT_TST_CB 0x1c2b
1072 #define ENCT_TST_CR 0x1c2c
1073 #define ENCT_TST_CLRBAR_STRT 0x1c2d
1074 #define ENCT_TST_CLRBAR_WIDTH 0x1c2e
1075 #define ENCT_TST_VDCNT_STSET 0x1c2f
1076 #define ENCP_DVI_HSO_BEGIN 0x1c30
1077 #define ENCP_DVI_HSO_END 0x1c31
1078 #define ENCP_DVI_VSO_BLINE_EVN 0x1c32
1079 #define ENCP_DVI_VSO_BLINE_ODD 0x1c33
1080 #define ENCP_DVI_VSO_ELINE_EVN 0x1c34
1081 #define ENCP_DVI_VSO_ELINE_ODD 0x1c35
1082 #define ENCP_DVI_VSO_BEGIN_EVN 0x1c36
1083 #define ENCP_DVI_VSO_BEGIN_ODD 0x1c37
1084 #define ENCP_DVI_VSO_END_EVN 0x1c38
1085 #define ENCP_DVI_VSO_END_ODD 0x1c39
1086 #define ENCP_DE_H_BEGIN 0x1c3a
1087 #define ENCP_DE_H_END 0x1c3b
1088 #define ENCP_DE_V_BEGIN_EVEN 0x1c3c
1089 #define ENCP_DE_V_END_EVEN 0x1c3d
1090 #define ENCP_DE_V_BEGIN_ODD 0x1c3e
1091 #define ENCP_DE_V_END_ODD 0x1c3f
1092 #define ENCI_SYNC_LINE_LENGTH 0x1c40
1093 #define ENCI_SYNC_PIXEL_EN 0x1c41
1094 #define ENCI_SYNC_TO_LINE_EN 0x1c42
1095 #define ENCI_SYNC_TO_PIXEL 0x1c43
1096 #define ENCP_SYNC_LINE_LENGTH 0x1c44
1097 #define ENCP_SYNC_PIXEL_EN 0x1c45
1098 #define ENCP_SYNC_TO_LINE_EN 0x1c46
1099 #define ENCP_SYNC_TO_PIXEL 0x1c47
1100 #define ENCT_SYNC_LINE_LENGTH 0x1c48
1101 #define ENCT_SYNC_PIXEL_EN 0x1c49
1102 #define ENCT_SYNC_TO_LINE_EN 0x1c4a
1103 #define ENCT_SYNC_TO_PIXEL 0x1c4b
1104 #define ENCL_SYNC_LINE_LENGTH 0x1c4c
1105 #define ENCL_SYNC_PIXEL_EN 0x1c4d
1106 #define ENCL_SYNC_TO_LINE_EN 0x1c4e
1107 #define ENCL_SYNC_TO_PIXEL 0x1c4f
1108 #define ENCP_VFIFO2VD_CTL2 0x1c50
1109 #define VENC_DVI_SETTING_MORE 0x1c51
1110 #define VENC_VDAC_DAC4_FILT_CTRL0 0x1c54
1111 #define VENC_VDAC_DAC4_FILT_CTRL1 0x1c55
1112 #define VENC_VDAC_DAC5_FILT_CTRL0 0x1c56
1113 #define VENC_VDAC_DAC5_FILT_CTRL1 0x1c57
1114 #define VENC_VDAC_DAC0_FILT_CTRL0 0x1c58
1115 #define VENC_VDAC_DAC0_FILT_CTRL0_EN BIT(0)
1116 #define VENC_VDAC_DAC0_FILT_CTRL1 0x1c59
1117 #define VENC_VDAC_DAC1_FILT_CTRL0 0x1c5a
1118 #define VENC_VDAC_DAC1_FILT_CTRL1 0x1c5b
1119 #define VENC_VDAC_DAC2_FILT_CTRL0 0x1c5c
1120 #define VENC_VDAC_DAC2_FILT_CTRL1 0x1c5d
1121 #define VENC_VDAC_DAC3_FILT_CTRL0 0x1c5e
1122 #define VENC_VDAC_DAC3_FILT_CTRL1 0x1c5f
1123 #define ENCT_VIDEO_EN 0x1c60
1124 #define ENCT_VIDEO_Y_SCL 0x1c61
1125 #define ENCT_VIDEO_PB_SCL 0x1c62
1126 #define ENCT_VIDEO_PR_SCL 0x1c63
1127 #define ENCT_VIDEO_Y_OFFST 0x1c64
1128 #define ENCT_VIDEO_PB_OFFST 0x1c65
1129 #define ENCT_VIDEO_PR_OFFST 0x1c66
1130 #define ENCT_VIDEO_MODE 0x1c67
1131 #define ENCT_VIDEO_MODE_ADV 0x1c68
1132 #define ENCT_DBG_PX_RST 0x1c69
1133 #define ENCT_DBG_LN_RST 0x1c6a
1134 #define ENCT_DBG_PX_INT 0x1c6b
1135 #define ENCT_DBG_LN_INT 0x1c6c
1136 #define ENCT_VIDEO_YFP1_HTIME 0x1c6d
1137 #define ENCT_VIDEO_YFP2_HTIME 0x1c6e
1138 #define ENCT_VIDEO_YC_DLY 0x1c6f
1139 #define ENCT_VIDEO_MAX_PXCNT 0x1c70
1140 #define ENCT_VIDEO_HAVON_END 0x1c71
1141 #define ENCT_VIDEO_HAVON_BEGIN 0x1c72
1142 #define ENCT_VIDEO_VAVON_ELINE 0x1c73
1143 #define ENCT_VIDEO_VAVON_BLINE 0x1c74
1144 #define ENCT_VIDEO_HSO_BEGIN 0x1c75
1145 #define ENCT_VIDEO_HSO_END 0x1c76
1146 #define ENCT_VIDEO_VSO_BEGIN 0x1c77
1147 #define ENCT_VIDEO_VSO_END 0x1c78
1148 #define ENCT_VIDEO_VSO_BLINE 0x1c79
1149 #define ENCT_VIDEO_VSO_ELINE 0x1c7a
1150 #define ENCT_VIDEO_MAX_LNCNT 0x1c7b
1151 #define ENCT_VIDEO_BLANKY_VAL 0x1c7c
1152 #define ENCT_VIDEO_BLANKPB_VAL 0x1c7d
1153 #define ENCT_VIDEO_BLANKPR_VAL 0x1c7e
1154 #define ENCT_VIDEO_HOFFST 0x1c7f
1155 #define ENCT_VIDEO_VOFFST 0x1c80
1156 #define ENCT_VIDEO_RGB_CTRL 0x1c81
1157 #define ENCT_VIDEO_FILT_CTRL 0x1c82
1158 #define ENCT_VIDEO_OFLD_VPEQ_OFST 0x1c83
1159 #define ENCT_VIDEO_OFLD_VOAV_OFST 0x1c84
1160 #define ENCT_VIDEO_MATRIX_CB 0x1c85
1161 #define ENCT_VIDEO_MATRIX_CR 0x1c86
1162 #define ENCT_VIDEO_RGBIN_CTRL 0x1c87
1163 #define ENCT_MAX_LINE_SWITCH_POINT 0x1c88
1164 #define ENCT_DACSEL_0 0x1c89
1165 #define ENCT_DACSEL_1 0x1c8a
1166 #define ENCL_VFIFO2VD_CTL 0x1c90
1167 #define ENCL_VFIFO2VD_PIXEL_START 0x1c91
1168 #define ENCL_VFIFO2VD_PIXEL_END 0x1c92
1169 #define ENCL_VFIFO2VD_LINE_TOP_START 0x1c93
1170 #define ENCL_VFIFO2VD_LINE_TOP_END 0x1c94
1171 #define ENCL_VFIFO2VD_LINE_BOT_START 0x1c95
1172 #define ENCL_VFIFO2VD_LINE_BOT_END 0x1c96
1173 #define ENCL_VFIFO2VD_CTL2 0x1c97
1174 #define ENCL_TST_EN 0x1c98
1175 #define ENCL_TST_MDSEL 0x1c99
1176 #define ENCL_TST_Y 0x1c9a
1177 #define ENCL_TST_CB 0x1c9b
1178 #define ENCL_TST_CR 0x1c9c
1179 #define ENCL_TST_CLRBAR_STRT 0x1c9d
1180 #define ENCL_TST_CLRBAR_WIDTH 0x1c9e
1181 #define ENCL_TST_VDCNT_STSET 0x1c9f
1182 #define ENCL_VIDEO_EN 0x1ca0
1183 #define ENCL_VIDEO_Y_SCL 0x1ca1
1184 #define ENCL_VIDEO_PB_SCL 0x1ca2
1185 #define ENCL_VIDEO_PR_SCL 0x1ca3
1186 #define ENCL_VIDEO_Y_OFFST 0x1ca4
1187 #define ENCL_VIDEO_PB_OFFST 0x1ca5
1188 #define ENCL_VIDEO_PR_OFFST 0x1ca6
1189 #define ENCL_VIDEO_MODE 0x1ca7
1190 #define ENCL_VIDEO_MODE_ADV 0x1ca8
1191 #define ENCL_DBG_PX_RST 0x1ca9
1192 #define ENCL_DBG_LN_RST 0x1caa
1193 #define ENCL_DBG_PX_INT 0x1cab
1194 #define ENCL_DBG_LN_INT 0x1cac
1195 #define ENCL_VIDEO_YFP1_HTIME 0x1cad
1196 #define ENCL_VIDEO_YFP2_HTIME 0x1cae
1197 #define ENCL_VIDEO_YC_DLY 0x1caf
1198 #define ENCL_VIDEO_MAX_PXCNT 0x1cb0
1199 #define ENCL_VIDEO_HAVON_END 0x1cb1
1200 #define ENCL_VIDEO_HAVON_BEGIN 0x1cb2
1201 #define ENCL_VIDEO_VAVON_ELINE 0x1cb3
1202 #define ENCL_VIDEO_VAVON_BLINE 0x1cb4
1203 #define ENCL_VIDEO_HSO_BEGIN 0x1cb5
1204 #define ENCL_VIDEO_HSO_END 0x1cb6
1205 #define ENCL_VIDEO_VSO_BEGIN 0x1cb7
1206 #define ENCL_VIDEO_VSO_END 0x1cb8
1207 #define ENCL_VIDEO_VSO_BLINE 0x1cb9
1208 #define ENCL_VIDEO_VSO_ELINE 0x1cba
1209 #define ENCL_VIDEO_MAX_LNCNT 0x1cbb
1210 #define ENCL_VIDEO_BLANKY_VAL 0x1cbc
1211 #define ENCL_VIDEO_BLANKPB_VAL 0x1cbd
1212 #define ENCL_VIDEO_BLANKPR_VAL 0x1cbe
1213 #define ENCL_VIDEO_HOFFST 0x1cbf
1214 #define ENCL_VIDEO_VOFFST 0x1cc0
1215 #define ENCL_VIDEO_RGB_CTRL 0x1cc1
1216 #define ENCL_VIDEO_FILT_CTRL 0x1cc2
1217 #define ENCL_VIDEO_OFLD_VPEQ_OFST 0x1cc3
1218 #define ENCL_VIDEO_OFLD_VOAV_OFST 0x1cc4
1219 #define ENCL_VIDEO_MATRIX_CB 0x1cc5
1220 #define ENCL_VIDEO_MATRIX_CR 0x1cc6
1221 #define ENCL_VIDEO_RGBIN_CTRL 0x1cc7
1222 #define ENCL_MAX_LINE_SWITCH_POINT 0x1cc8
1223 #define ENCL_DACSEL_0 0x1cc9
1224 #define ENCL_DACSEL_1 0x1cca
1225 #define RDMA_AHB_START_ADDR_MAN 0x1100
1226 #define RDMA_AHB_END_ADDR_MAN 0x1101
1227 #define RDMA_AHB_START_ADDR_1 0x1102
1228 #define RDMA_AHB_END_ADDR_1 0x1103
1229 #define RDMA_AHB_START_ADDR_2 0x1104
1230 #define RDMA_AHB_END_ADDR_2 0x1105
1231 #define RDMA_AHB_START_ADDR_3 0x1106
1232 #define RDMA_AHB_END_ADDR_3 0x1107
1233 #define RDMA_AHB_START_ADDR_4 0x1108
1234 #define RDMA_AHB_END_ADDR_4 0x1109
1235 #define RDMA_AHB_START_ADDR_5 0x110a
1236 #define RDMA_AHB_END_ADDR_5 0x110b
1237 #define RDMA_AHB_START_ADDR_6 0x110c
1238 #define RDMA_AHB_END_ADDR_6 0x110d
1239 #define RDMA_AHB_START_ADDR_7 0x110e
1240 #define RDMA_AHB_END_ADDR_7 0x110f
1241 #define RDMA_ACCESS_AUTO 0x1110
1242 #define RDMA_ACCESS_TRIGGER_CHAN3 GENMASK(31, 24)
1243 #define RDMA_ACCESS_TRIGGER_CHAN2 GENMASK(23, 16)
1244 #define RDMA_ACCESS_TRIGGER_CHAN1 GENMASK(15, 8)
1245 #define RDMA_ACCESS_TRIGGER_STOP 0
1246 #define RDMA_ACCESS_TRIGGER_VSYNC 1
1247 #define RDMA_ACCESS_TRIGGER_LINE 32
1248 #define RDMA_ACCESS_RW_FLAG_CHAN3 BIT(7)
1249 #define RDMA_ACCESS_RW_FLAG_CHAN2 BIT(6)
1250 #define RDMA_ACCESS_RW_FLAG_CHAN1 BIT(5)
1251 #define RDMA_ACCESS_ADDR_INC_CHAN3 BIT(3)
1252 #define RDMA_ACCESS_ADDR_INC_CHAN2 BIT(2)
1253 #define RDMA_ACCESS_ADDR_INC_CHAN1 BIT(1)
1254 #define RDMA_ACCESS_AUTO2 0x1111
1255 #define RDMA_ACCESS_RW_FLAG_CHAN7 BIT(7)
1256 #define RDMA_ACCESS_RW_FLAG_CHAN6 BIT(6)
1257 #define RDMA_ACCESS_RW_FLAG_CHAN5 BIT(5)
1258 #define RDMA_ACCESS_RW_FLAG_CHAN4 BIT(4)
1259 #define RDMA_ACCESS_ADDR_INC_CHAN7 BIT(3)
1260 #define RDMA_ACCESS_ADDR_INC_CHAN6 BIT(2)
1261 #define RDMA_ACCESS_ADDR_INC_CHAN5 BIT(1)
1262 #define RDMA_ACCESS_ADDR_INC_CHAN4 BIT(0)
1263 #define RDMA_ACCESS_AUTO3 0x1112
1264 #define RDMA_ACCESS_TRIGGER_CHAN7 GENMASK(31, 24)
1265 #define RDMA_ACCESS_TRIGGER_CHAN6 GENMASK(23, 16)
1266 #define RDMA_ACCESS_TRIGGER_CHAN5 GENMASK(15, 8)
1267 #define RDMA_ACCESS_TRIGGER_CHAN4 GENMASK(7, 0)
1268 #define RDMA_ACCESS_MAN 0x1113
1269 #define RDMA_ACCESS_MAN_RW_FLAG BIT(2)
1270 #define RDMA_ACCESS_MAN_ADDR_INC BIT(1)
1271 #define RDMA_ACCESS_MAN_START BIT(0)
1272 #define RDMA_CTRL 0x1114
1273 #define RDMA_IRQ_CLEAR_CHAN7 BIT(31)
1274 #define RDMA_IRQ_CLEAR_CHAN6 BIT(30)
1275 #define RDMA_IRQ_CLEAR_CHAN5 BIT(29)
1276 #define RDMA_IRQ_CLEAR_CHAN4 BIT(28)
1277 #define RDMA_IRQ_CLEAR_CHAN3 BIT(27)
1278 #define RDMA_IRQ_CLEAR_CHAN2 BIT(26)
1279 #define RDMA_IRQ_CLEAR_CHAN1 BIT(25)
1280 #define RDMA_IRQ_CLEAR_CHAN_MAN BIT(24)
1281 #define RDMA_DEFAULT_CONFIG (BIT(7) | BIT(6))
1282 #define RDMA_CTRL_AHB_WR_BURST GENMASK(5, 4)
1283 #define RDMA_CTRL_AHB_RD_BURST GENMASK(3, 2)
1284 #define RDMA_CTRL_SW_RESET BIT(1)
1285 #define RDMA_CTRL_FREE_CLK_EN BIT(0)
1286 #define RDMA_STATUS 0x1115
1287 #define RDMA_IRQ_STAT_CHAN7 BIT(31)
1288 #define RDMA_IRQ_STAT_CHAN6 BIT(30)
1289 #define RDMA_IRQ_STAT_CHAN5 BIT(29)
1290 #define RDMA_IRQ_STAT_CHAN4 BIT(28)
1291 #define RDMA_IRQ_STAT_CHAN3 BIT(27)
1292 #define RDMA_IRQ_STAT_CHAN2 BIT(26)
1293 #define RDMA_IRQ_STAT_CHAN1 BIT(25)
1294 #define RDMA_IRQ_STAT_CHAN_MAN BIT(24)
1295 #define RDMA_STATUS2 0x1116
1296 #define RDMA_STATUS3 0x1117
1297 #define L_GAMMA_CNTL_PORT 0x1400
1298 #define L_GAMMA_DATA_PORT 0x1401
1299 #define L_GAMMA_ADDR_PORT 0x1402
1300 #define L_GAMMA_VCOM_HSWITCH_ADDR 0x1403
1301 #define L_RGB_BASE_ADDR 0x1405
1302 #define L_RGB_COEFF_ADDR 0x1406
1303 #define L_POL_CNTL_ADDR 0x1407
1304 #define L_DITH_CNTL_ADDR 0x1408
1305 #define L_GAMMA_PROBE_CTRL 0x1409
1306 #define L_GAMMA_PROBE_COLOR_L 0x140a
1307 #define L_GAMMA_PROBE_COLOR_H 0x140b
1308 #define L_GAMMA_PROBE_HL_COLOR 0x140c
1309 #define L_GAMMA_PROBE_POS_X 0x140d
1310 #define L_GAMMA_PROBE_POS_Y 0x140e
1311 #define L_STH1_HS_ADDR 0x1410
1312 #define L_STH1_HE_ADDR 0x1411
1313 #define L_STH1_VS_ADDR 0x1412
1314 #define L_STH1_VE_ADDR 0x1413
1315 #define L_STH2_HS_ADDR 0x1414
1316 #define L_STH2_HE_ADDR 0x1415
1317 #define L_STH2_VS_ADDR 0x1416
1318 #define L_STH2_VE_ADDR 0x1417
1319 #define L_OEH_HS_ADDR 0x1418
1320 #define L_OEH_HE_ADDR 0x1419
1321 #define L_OEH_VS_ADDR 0x141a
1322 #define L_OEH_VE_ADDR 0x141b
1323 #define L_VCOM_HSWITCH_ADDR 0x141c
1324 #define L_VCOM_VS_ADDR 0x141d
1325 #define L_VCOM_VE_ADDR 0x141e
1326 #define L_CPV1_HS_ADDR 0x141f
1327 #define L_CPV1_HE_ADDR 0x1420
1328 #define L_CPV1_VS_ADDR 0x1421
1329 #define L_CPV1_VE_ADDR 0x1422
1330 #define L_CPV2_HS_ADDR 0x1423
1331 #define L_CPV2_HE_ADDR 0x1424
1332 #define L_CPV2_VS_ADDR 0x1425
1333 #define L_CPV2_VE_ADDR 0x1426
1334 #define L_STV1_HS_ADDR 0x1427
1335 #define L_STV1_HE_ADDR 0x1428
1336 #define L_STV1_VS_ADDR 0x1429
1337 #define L_STV1_VE_ADDR 0x142a
1338 #define L_STV2_HS_ADDR 0x142b
1339 #define L_STV2_HE_ADDR 0x142c
1340 #define L_STV2_VS_ADDR 0x142d
1341 #define L_STV2_VE_ADDR 0x142e
1342 #define L_OEV1_HS_ADDR 0x142f
1343 #define L_OEV1_HE_ADDR 0x1430
1344 #define L_OEV1_VS_ADDR 0x1431
1345 #define L_OEV1_VE_ADDR 0x1432
1346 #define L_OEV2_HS_ADDR 0x1433
1347 #define L_OEV2_HE_ADDR 0x1434
1348 #define L_OEV2_VS_ADDR 0x1435
1349 #define L_OEV2_VE_ADDR 0x1436
1350 #define L_OEV3_HS_ADDR 0x1437
1351 #define L_OEV3_HE_ADDR 0x1438
1352 #define L_OEV3_VS_ADDR 0x1439
1353 #define L_OEV3_VE_ADDR 0x143a
1354 #define L_LCD_PWR_ADDR 0x143b
1355 #define L_LCD_PWM0_LO_ADDR 0x143c
1356 #define L_LCD_PWM0_HI_ADDR 0x143d
1357 #define L_LCD_PWM1_LO_ADDR 0x143e
1358 #define L_LCD_PWM1_HI_ADDR 0x143f
1359 #define L_INV_CNT_ADDR 0x1440
1360 #define L_TCON_MISC_SEL_ADDR 0x1441
1361 #define L_DUAL_PORT_CNTL_ADDR 0x1442
1362 #define MLVDS_CLK_CTL1_HI 0x1443
1363 #define MLVDS_CLK_CTL1_LO 0x1444
1364 #define L_TCON_DOUBLE_CTL 0x1449
1365 #define L_TCON_PATTERN_HI 0x144a
1366 #define L_TCON_PATTERN_LO 0x144b
1367 #define LDIM_BL_ADDR_PORT 0x144e
1368 #define LDIM_BL_DATA_PORT 0x144f
1369 #define L_DE_HS_ADDR 0x1451
1370 #define L_DE_HE_ADDR 0x1452
1371 #define L_DE_VS_ADDR 0x1453
1372 #define L_DE_VE_ADDR 0x1454
1373 #define L_HSYNC_HS_ADDR 0x1455
1374 #define L_HSYNC_HE_ADDR 0x1456
1375 #define L_HSYNC_VS_ADDR 0x1457
1376 #define L_HSYNC_VE_ADDR 0x1458
1377 #define L_VSYNC_HS_ADDR 0x1459
1378 #define L_VSYNC_HE_ADDR 0x145a
1379 #define L_VSYNC_VS_ADDR 0x145b
1380 #define L_VSYNC_VE_ADDR 0x145c
1381 #define L_LCD_MCU_CTL 0x145d
1382 #define DUAL_MLVDS_CTL 0x1460
1383 #define DUAL_MLVDS_LINE_START 0x1461
1384 #define DUAL_MLVDS_LINE_END 0x1462
1385 #define DUAL_MLVDS_PIXEL_W_START_L 0x1463
1386 #define DUAL_MLVDS_PIXEL_W_END_L 0x1464
1387 #define DUAL_MLVDS_PIXEL_W_START_R 0x1465
1388 #define DUAL_MLVDS_PIXEL_W_END_R 0x1466
1389 #define DUAL_MLVDS_PIXEL_R_START_L 0x1467
1390 #define DUAL_MLVDS_PIXEL_R_CNT_L 0x1468
1391 #define DUAL_MLVDS_PIXEL_R_START_R 0x1469
1392 #define DUAL_MLVDS_PIXEL_R_CNT_R 0x146a
1393 #define V_INVERSION_PIXEL 0x1470
1394 #define V_INVERSION_LINE 0x1471
1395 #define V_INVERSION_CONTROL 0x1472
1396 #define MLVDS2_CONTROL 0x1474
1397 #define MLVDS2_CONFIG_HI 0x1475
1398 #define MLVDS2_CONFIG_LO 0x1476
1399 #define MLVDS2_DUAL_GATE_WR_START 0x1477
1400 #define MLVDS2_DUAL_GATE_WR_END 0x1478
1401 #define MLVDS2_DUAL_GATE_RD_START 0x1479
1402 #define MLVDS2_DUAL_GATE_RD_END 0x147a
1403 #define MLVDS2_SECOND_RESET_CTL 0x147b
1404 #define MLVDS2_DUAL_GATE_CTL_HI 0x147c
1405 #define MLVDS2_DUAL_GATE_CTL_LO 0x147d
1406 #define MLVDS2_RESET_CONFIG_HI 0x147e
1407 #define MLVDS2_RESET_CONFIG_LO 0x147f
1408 #define GAMMA_CNTL_PORT 0x1480
1409 #define GAMMA_DATA_PORT 0x1481
1410 #define GAMMA_ADDR_PORT 0x1482
1411 #define GAMMA_VCOM_HSWITCH_ADDR 0x1483
1412 #define RGB_BASE_ADDR 0x1485
1413 #define RGB_COEFF_ADDR 0x1486
1414 #define POL_CNTL_ADDR 0x1487
1415 #define DITH_CNTL_ADDR 0x1488
1416 #define GAMMA_PROBE_CTRL 0x1489
1417 #define GAMMA_PROBE_COLOR_L 0x148a
1418 #define GAMMA_PROBE_COLOR_H 0x148b
1419 #define GAMMA_PROBE_HL_COLOR 0x148c
1420 #define GAMMA_PROBE_POS_X 0x148d
1421 #define GAMMA_PROBE_POS_Y 0x148e
1422 #define STH1_HS_ADDR 0x1490
1423 #define STH1_HE_ADDR 0x1491
1424 #define STH1_VS_ADDR 0x1492
1425 #define STH1_VE_ADDR 0x1493
1426 #define STH2_HS_ADDR 0x1494
1427 #define STH2_HE_ADDR 0x1495
1428 #define STH2_VS_ADDR 0x1496
1429 #define STH2_VE_ADDR 0x1497
1430 #define OEH_HS_ADDR 0x1498
1431 #define OEH_HE_ADDR 0x1499
1432 #define OEH_VS_ADDR 0x149a
1433 #define OEH_VE_ADDR 0x149b
1434 #define VCOM_HSWITCH_ADDR 0x149c
1435 #define VCOM_VS_ADDR 0x149d
1436 #define VCOM_VE_ADDR 0x149e
1437 #define CPV1_HS_ADDR 0x149f
1438 #define CPV1_HE_ADDR 0x14a0
1439 #define CPV1_VS_ADDR 0x14a1
1440 #define CPV1_VE_ADDR 0x14a2
1441 #define CPV2_HS_ADDR 0x14a3
1442 #define CPV2_HE_ADDR 0x14a4
1443 #define CPV2_VS_ADDR 0x14a5
1444 #define CPV2_VE_ADDR 0x14a6
1445 #define STV1_HS_ADDR 0x14a7
1446 #define STV1_HE_ADDR 0x14a8
1447 #define STV1_VS_ADDR 0x14a9
1448 #define STV1_VE_ADDR 0x14aa
1449 #define STV2_HS_ADDR 0x14ab
1450 #define STV2_HE_ADDR 0x14ac
1451 #define STV2_VS_ADDR 0x14ad
1452 #define STV2_VE_ADDR 0x14ae
1453 #define OEV1_HS_ADDR 0x14af
1454 #define OEV1_HE_ADDR 0x14b0
1455 #define OEV1_VS_ADDR 0x14b1
1456 #define OEV1_VE_ADDR 0x14b2
1457 #define OEV2_HS_ADDR 0x14b3
1458 #define OEV2_HE_ADDR 0x14b4
1459 #define OEV2_VS_ADDR 0x14b5
1460 #define OEV2_VE_ADDR 0x14b6
1461 #define OEV3_HS_ADDR 0x14b7
1462 #define OEV3_HE_ADDR 0x14b8
1463 #define OEV3_VS_ADDR 0x14b9
1464 #define OEV3_VE_ADDR 0x14ba
1465 #define LCD_PWR_ADDR 0x14bb
1466 #define LCD_PWM0_LO_ADDR 0x14bc
1467 #define LCD_PWM0_HI_ADDR 0x14bd
1468 #define LCD_PWM1_LO_ADDR 0x14be
1469 #define LCD_PWM1_HI_ADDR 0x14bf
1470 #define INV_CNT_ADDR 0x14c0
1471 #define TCON_MISC_SEL_ADDR 0x14c1
1472 #define DUAL_PORT_CNTL_ADDR 0x14c2
1473 #define MLVDS_CONTROL 0x14c3
1474 #define MLVDS_RESET_PATTERN_HI 0x14c4
1475 #define MLVDS_RESET_PATTERN_LO 0x14c5
1476 #define MLVDS_RESET_PATTERN_EXT 0x14c6
1477 #define MLVDS_CONFIG_HI 0x14c7
1478 #define MLVDS_CONFIG_LO 0x14c8
1479 #define TCON_DOUBLE_CTL 0x14c9
1480 #define TCON_PATTERN_HI 0x14ca
1481 #define TCON_PATTERN_LO 0x14cb
1482 #define TCON_CONTROL_HI 0x14cc
1483 #define TCON_CONTROL_LO 0x14cd
1484 #define LVDS_BLANK_DATA_HI 0x14ce
1485 #define LVDS_BLANK_DATA_LO 0x14cf
1486 #define LVDS_PACK_CNTL_ADDR 0x14d0
1487 #define DE_HS_ADDR 0x14d1
1488 #define DE_HE_ADDR 0x14d2
1489 #define DE_VS_ADDR 0x14d3
1490 #define DE_VE_ADDR 0x14d4
1491 #define HSYNC_HS_ADDR 0x14d5
1492 #define HSYNC_HE_ADDR 0x14d6
1493 #define HSYNC_VS_ADDR 0x14d7
1494 #define HSYNC_VE_ADDR 0x14d8
1495 #define VSYNC_HS_ADDR 0x14d9
1496 #define VSYNC_HE_ADDR 0x14da
1497 #define VSYNC_VS_ADDR 0x14db
1498 #define VSYNC_VE_ADDR 0x14dc
1499 #define LCD_MCU_CTL 0x14dd
1500 #define LCD_MCU_DATA_0 0x14de
1501 #define LCD_MCU_DATA_1 0x14df
1502 #define LVDS_GEN_CNTL 0x14e0
1503 #define LVDS_PHY_CNTL0 0x14e1
1504 #define LVDS_PHY_CNTL1 0x14e2
1505 #define LVDS_PHY_CNTL2 0x14e3
1506 #define LVDS_PHY_CNTL3 0x14e4
1507 #define LVDS_PHY_CNTL4 0x14e5
1508 #define LVDS_PHY_CNTL5 0x14e6
1509 #define LVDS_SRG_TEST 0x14e8
1510 #define LVDS_BIST_MUX0 0x14e9
1511 #define LVDS_BIST_MUX1 0x14ea
1512 #define LVDS_BIST_FIXED0 0x14eb
1513 #define LVDS_BIST_FIXED1 0x14ec
1514 #define LVDS_BIST_CNTL0 0x14ed
1515 #define LVDS_CLKB_CLKA 0x14ee
1516 #define LVDS_PHY_CLK_CNTL 0x14ef
1517 #define LVDS_SER_EN 0x14f0
1518 #define LVDS_PHY_CNTL6 0x14f1
1519 #define LVDS_PHY_CNTL7 0x14f2
1520 #define LVDS_PHY_CNTL8 0x14f3
1521 #define MLVDS_CLK_CTL0_HI 0x14f4
1522 #define MLVDS_CLK_CTL0_LO 0x14f5
1523 #define MLVDS_DUAL_GATE_WR_START 0x14f6
1524 #define MLVDS_DUAL_GATE_WR_END 0x14f7
1525 #define MLVDS_DUAL_GATE_RD_START 0x14f8
1526 #define MLVDS_DUAL_GATE_RD_END 0x14f9
1527 #define MLVDS_SECOND_RESET_CTL 0x14fa
1528 #define MLVDS_DUAL_GATE_CTL_HI 0x14fb
1529 #define MLVDS_DUAL_GATE_CTL_LO 0x14fc
1530 #define MLVDS_RESET_CONFIG_HI 0x14fd
1531 #define MLVDS_RESET_CONFIG_LO 0x14fe
1532 #define VPU_OSD1_MMC_CTRL 0x2701
1533 #define VPU_OSD2_MMC_CTRL 0x2702
1534 #define VPU_VD1_MMC_CTRL 0x2703
1535 #define VPU_VD2_MMC_CTRL 0x2704
1536 #define VPU_DI_IF1_MMC_CTRL 0x2705
1537 #define VPU_DI_MEM_MMC_CTRL 0x2706
1538 #define VPU_DI_INP_MMC_CTRL 0x2707
1539 #define VPU_DI_MTNRD_MMC_CTRL 0x2708
1540 #define VPU_DI_CHAN2_MMC_CTRL 0x2709
1541 #define VPU_DI_MTNWR_MMC_CTRL 0x270a
1542 #define VPU_DI_NRWR_MMC_CTRL 0x270b
1543 #define VPU_DI_DIWR_MMC_CTRL 0x270c
1544 #define VPU_VDIN0_MMC_CTRL 0x270d
1545 #define VPU_VDIN1_MMC_CTRL 0x270e
1546 #define VPU_BT656_MMC_CTRL 0x270f
1547 #define VPU_TVD3D_MMC_CTRL 0x2710
1548 #define VPU_TVDVBI_MMC_CTRL 0x2711
1549 #define VPU_TVDVBI_VSLATCH_ADDR 0x2712
1550 #define VPU_TVDVBI_WRRSP_ADDR 0x2713
1551 #define VPU_VDIN_PRE_ARB_CTRL 0x2714
1552 #define VPU_VDISP_PRE_ARB_CTRL 0x2715
1553 #define VPU_VPUARB2_PRE_ARB_CTRL 0x2716
1554 #define VPU_OSD3_MMC_CTRL 0x2717
1555 #define VPU_OSD4_MMC_CTRL 0x2718
1556 #define VPU_VD3_MMC_CTRL 0x2719
1557 #define VPU_VIU_VENC_MUX_CTRL 0x271a
1558 #define VIU1_SEL_VENC_MASK 0x3
1559 #define VIU1_SEL_VENC_ENCL 0
1560 #define VIU1_SEL_VENC_ENCI 1
1561 #define VIU1_SEL_VENC_ENCP 2
1562 #define VIU1_SEL_VENC_ENCT 3
1563 #define VIU2_SEL_VENC_MASK 0xc
1564 #define VIU2_SEL_VENC_ENCL 0
1565 #define VIU2_SEL_VENC_ENCI (1 << 2)
1566 #define VIU2_SEL_VENC_ENCP (2 << 2)
1567 #define VIU2_SEL_VENC_ENCT (3 << 2)
1568 #define VPU_HDMI_SETTING 0x271b
1569 #define VPU_HDMI_ENCI_DATA_TO_HDMI BIT(0)
1570 #define VPU_HDMI_ENCP_DATA_TO_HDMI BIT(1)
1571 #define VPU_HDMI_INV_HSYNC BIT(2)
1572 #define VPU_HDMI_INV_VSYNC BIT(3)
1573 #define VPU_HDMI_OUTPUT_CRYCB (0 << 5)
1574 #define VPU_HDMI_OUTPUT_YCBCR (1 << 5)
1575 #define VPU_HDMI_OUTPUT_YCRCB (2 << 5)
1576 #define VPU_HDMI_OUTPUT_CBCRY (3 << 5)
1577 #define VPU_HDMI_OUTPUT_CBYCR (4 << 5)
1578 #define VPU_HDMI_OUTPUT_CRCBY (5 << 5)
1579 #define VPU_HDMI_WR_RATE(rate) (((rate & 0x1f) - 1) << 8)
1580 #define VPU_HDMI_RD_RATE(rate) (((rate & 0x1f) - 1) << 12)
1581 #define ENCI_INFO_READ 0x271c
1582 #define ENCP_INFO_READ 0x271d
1583 #define ENCT_INFO_READ 0x271e
1584 #define ENCL_INFO_READ 0x271f
1585 #define VPU_SW_RESET 0x2720
1586 #define VPU_D2D3_MMC_CTRL 0x2721
1587 #define VPU_CONT_MMC_CTRL 0x2722
1588 #define VPU_CLK_GATE 0x2723
1589 #define VPU_RDMA_MMC_CTRL 0x2724
1590 #define VPU_MEM_PD_REG0 0x2725
1591 #define VPU_MEM_PD_REG1 0x2726
1592 #define VPU_HDMI_DATA_OVR 0x2727
1593 #define VPU_PROT1_MMC_CTRL 0x2728
1594 #define VPU_PROT2_MMC_CTRL 0x2729
1595 #define VPU_PROT3_MMC_CTRL 0x272a
1596 #define VPU_ARB4_V1_MMC_CTRL 0x272b
1597 #define VPU_ARB4_V2_MMC_CTRL 0x272c
1598 #define VPU_VPU_PWM_V0 0x2730
1599 #define VPU_VPU_PWM_V1 0x2731
1600 #define VPU_VPU_PWM_V2 0x2732
1601 #define VPU_VPU_PWM_V3 0x2733
1602 #define VPU_VPU_PWM_H0 0x2734
1603 #define VPU_VPU_PWM_H1 0x2735
1604 #define VPU_VPU_PWM_H2 0x2736
1605 #define VPU_VPU_PWM_H3 0x2737
1606 #define VPU_MISC_CTRL 0x2740
1607 #define VPU_ISP_GCLK_CTRL0 0x2741
1608 #define VPU_ISP_GCLK_CTRL1 0x2742
1609 #define VPU_HDMI_FMT_CTRL 0x2743
1610 #define VPU_VDIN_ASYNC_HOLD_CTRL 0x2743
1611 #define VPU_VDISP_ASYNC_HOLD_CTRL 0x2744
1612 #define VPU_VPUARB2_ASYNC_HOLD_CTRL 0x2745
1614 #define VPU_PROT1_CLK_GATE 0x2750
1615 #define VPU_PROT1_GEN_CNTL 0x2751
1616 #define VPU_PROT1_X_START_END 0x2752
1617 #define VPU_PROT1_Y_START_END 0x2753
1618 #define VPU_PROT1_Y_LEN_STEP 0x2754
1619 #define VPU_PROT1_RPT_LOOP 0x2755
1620 #define VPU_PROT1_RPT_PAT 0x2756
1621 #define VPU_PROT1_DDR 0x2757
1622 #define VPU_PROT1_RBUF_ROOM 0x2758
1623 #define VPU_PROT1_STAT_0 0x2759
1624 #define VPU_PROT1_STAT_1 0x275a
1625 #define VPU_PROT1_STAT_2 0x275b
1626 #define VPU_PROT1_REQ_ONOFF 0x275c
1627 #define VPU_PROT2_CLK_GATE 0x2760
1628 #define VPU_PROT2_GEN_CNTL 0x2761
1629 #define VPU_PROT2_X_START_END 0x2762
1630 #define VPU_PROT2_Y_START_END 0x2763
1631 #define VPU_PROT2_Y_LEN_STEP 0x2764
1632 #define VPU_PROT2_RPT_LOOP 0x2765
1633 #define VPU_PROT2_RPT_PAT 0x2766
1634 #define VPU_PROT2_DDR 0x2767
1635 #define VPU_PROT2_RBUF_ROOM 0x2768
1636 #define VPU_PROT2_STAT_0 0x2769
1637 #define VPU_PROT2_STAT_1 0x276a
1638 #define VPU_PROT2_STAT_2 0x276b
1639 #define VPU_PROT2_REQ_ONOFF 0x276c
1640 #define VPU_PROT3_CLK_GATE 0x2770
1641 #define VPU_PROT3_GEN_CNTL 0x2771
1642 #define VPU_PROT3_X_START_END 0x2772
1643 #define VPU_PROT3_Y_START_END 0x2773
1644 #define VPU_PROT3_Y_LEN_STEP 0x2774
1645 #define VPU_PROT3_RPT_LOOP 0x2775
1646 #define VPU_PROT3_RPT_PAT 0x2776
1647 #define VPU_PROT3_DDR 0x2777
1648 #define VPU_PROT3_RBUF_ROOM 0x2778
1649 #define VPU_PROT3_STAT_0 0x2779
1650 #define VPU_PROT3_STAT_1 0x277a
1651 #define VPU_PROT3_STAT_2 0x277b
1652 #define VPU_PROT3_REQ_ONOFF 0x277c
1653 #define VPU_RDARB_MODE_L1C1 0x2790
1654 #define VPU_RDARB_MODE_L1C2 0x2799
1655 #define VPU_RDARB_MODE_L2C1 0x279d
1656 #define VPU_WRARB_MODE_L2C1 0x27a2
1657 #define VPU_RDARB_SLAVE_TO_MASTER_PORT(dc, port) (port << (16 + dc))
1659 /* osd super scale */
1660 #define OSDSR_HV_SIZEIN 0x3130
1661 #define OSDSR_CTRL_MODE 0x3131
1662 #define OSDSR_ABIC_HCOEF 0x3132
1663 #define OSDSR_YBIC_HCOEF 0x3133
1664 #define OSDSR_CBIC_HCOEF 0x3134
1665 #define OSDSR_ABIC_VCOEF 0x3135
1666 #define OSDSR_YBIC_VCOEF 0x3136
1667 #define OSDSR_CBIC_VCOEF 0x3137
1668 #define OSDSR_VAR_PARA 0x3138
1669 #define OSDSR_CONST_PARA 0x3139
1670 #define OSDSR_RKE_EXTWIN 0x313a
1671 #define OSDSR_UK_GRAD2DDIAG_TH_RATE 0x313b
1672 #define OSDSR_UK_GRAD2DDIAG_LIMIT 0x313c
1673 #define OSDSR_UK_GRAD2DADJA_TH_RATE 0x313d
1674 #define OSDSR_UK_GRAD2DADJA_LIMIT 0x313e
1675 #define OSDSR_UK_BST_GAIN 0x313f
1676 #define OSDSR_HVBLEND_TH 0x3140
1677 #define OSDSR_DEMO_WIND_TB 0x3141
1678 #define OSDSR_DEMO_WIND_LR 0x3142
1679 #define OSDSR_INT_BLANK_NUM 0x3143
1680 #define OSDSR_FRM_END_STAT 0x3144
1681 #define OSDSR_ABIC_HCOEF0 0x3145
1682 #define OSDSR_YBIC_HCOEF0 0x3146
1683 #define OSDSR_CBIC_HCOEF0 0x3147
1684 #define OSDSR_ABIC_VCOEF0 0x3148
1685 #define OSDSR_YBIC_VCOEF0 0x3149
1686 #define OSDSR_CBIC_VCOEF0 0x314a
1688 /* osd afbcd on gxtvbb */
1689 #define OSD1_AFBCD_ENABLE 0x31a0
1690 #define OSD1_AFBCD_ID_FIFO_THRD GENMASK(15, 9)
1691 #define OSD1_AFBCD_DEC_ENABLE BIT(8)
1692 #define OSD1_AFBCD_FRM_START BIT(0)
1693 #define OSD1_AFBCD_MODE 0x31a1
1694 #define OSD1_AFBCD_SOFT_RESET BIT(31)
1695 #define OSD1_AFBCD_AXI_REORDER_MODE BIT(28)
1696 #define OSD1_AFBCD_MIF_URGENT GENMASK(25, 24)
1697 #define OSD1_AFBCD_HOLD_LINE_NUM GENMASK(22, 16)
1698 #define OSD1_AFBCD_RGBA_EXCHAN_CTRL GENMASK(15, 8)
1699 #define OSD1_AFBCD_HREG_BLOCK_SPLIT BIT(6)
1700 #define OSD1_AFBCD_HREG_HALF_BLOCK BIT(5)
1701 #define OSD1_AFBCD_HREG_PIXEL_PACKING_FMT GENMASK(4, 0)
1702 #define OSD1_AFBCD_SIZE_IN 0x31a2
1703 #define OSD1_AFBCD_HREG_VSIZE_IN GENMASK(31, 16)
1704 #define OSD1_AFBCD_HREG_HSIZE_IN GENMASK(15, 0)
1705 #define OSD1_AFBCD_HDR_PTR 0x31a3
1706 #define OSD1_AFBCD_FRAME_PTR 0x31a4
1707 #define OSD1_AFBCD_CHROMA_PTR 0x31a5
1708 #define OSD1_AFBCD_CONV_CTRL 0x31a6
1709 #define OSD1_AFBCD_CONV_LBUF_LEN GENMASK(15, 0)
1710 #define OSD1_AFBCD_STATUS 0x31a8
1711 #define OSD1_AFBCD_PIXEL_HSCOPE 0x31a9
1712 #define OSD1_AFBCD_DEC_PIXEL_BGN_H GENMASK(31, 16)
1713 #define OSD1_AFBCD_DEC_PIXEL_END_H GENMASK(15, 0)
1714 #define OSD1_AFBCD_PIXEL_VSCOPE 0x31aa
1715 #define OSD1_AFBCD_DEC_PIXEL_BGN_V GENMASK(31, 16)
1716 #define OSD1_AFBCD_DEC_PIXEL_END_V GENMASK(15, 0)
1718 /* add for gxm and 962e dv core2 */
1719 #define DOLBY_CORE2A_SWAP_CTRL1 0x3434
1720 #define DOLBY_CORE2A_SWAP_CTRL2 0x3435
1722 /* osd afbc on g12a */
1723 #define VPU_MAFBC_BLOCK_ID 0x3a00
1724 #define VPU_MAFBC_IRQ_RAW_STATUS 0x3a01
1725 #define VPU_MAFBC_IRQ_CLEAR 0x3a02
1726 #define VPU_MAFBC_IRQ_MASK 0x3a03
1727 #define VPU_MAFBC_IRQ_STATUS 0x3a04
1728 #define VPU_MAFBC_IRQ_SECURE_ID_ERROR BIT(5)
1729 #define VPU_MAFBC_IRQ_AXI_ERROR BIT(4)
1730 #define VPU_MAFBC_IRQ_DETILING_ERROR BIT(3)
1731 #define VPU_MAFBC_IRQ_DECODE_ERROR BIT(2)
1732 #define VPU_MAFBC_IRQ_CONFIGURATION_SWAPPED BIT(1)
1733 #define VPU_MAFBC_IRQ_SURFACES_COMPLETED BIT(0)
1734 #define VPU_MAFBC_COMMAND 0x3a05
1735 #define VPU_MAFBC_PENDING_SWAP BIT(1)
1736 #define VPU_MAFBC_DIRECT_SWAP BIT(0)
1737 #define VPU_MAFBC_STATUS 0x3a06
1738 #define VPU_MAFBC_ERROR BIT(2)
1739 #define VPU_MAFBC_SWAPPING BIT(1)
1740 #define VPU_MAFBC_ACTIVE BIT(0)
1741 #define VPU_MAFBC_SURFACE_CFG 0x3a07
1742 #define VPU_MAFBC_CONTINUOUS_DECODING_ENABLE BIT(16)
1743 #define VPU_MAFBC_S3_ENABLE BIT(3)
1744 #define VPU_MAFBC_S2_ENABLE BIT(2)
1745 #define VPU_MAFBC_S1_ENABLE BIT(1)
1746 #define VPU_MAFBC_S0_ENABLE BIT(0)
1747 #define VPU_MAFBC_HEADER_BUF_ADDR_LOW_S0 0x3a10
1748 #define VPU_MAFBC_HEADER_BUF_ADDR_HIGH_S0 0x3a11
1749 #define VPU_MAFBC_FORMAT_SPECIFIER_S0 0x3a12
1750 #define VPU_MAFBC_PAYLOAD_LIMIT_EN BIT(19)
1751 #define VPU_MAFBC_TILED_HEADER_EN BIT(18)
1752 #define VPU_MAFBC_SUPER_BLOCK_ASPECT GENMASK(17, 16)
1753 #define VPU_MAFBC_BLOCK_SPLIT BIT(9)
1754 #define VPU_MAFBC_YUV_TRANSFORM BIT(8)
1755 #define VPU_MAFBC_PIXEL_FORMAT GENMASK(3, 0)
1756 #define VPU_MAFBC_BUFFER_WIDTH_S0 0x3a13
1757 #define VPU_MAFBC_BUFFER_HEIGHT_S0 0x3a14
1758 #define VPU_MAFBC_BOUNDING_BOX_X_START_S0 0x3a15
1759 #define VPU_MAFBC_BOUNDING_BOX_X_END_S0 0x3a16
1760 #define VPU_MAFBC_BOUNDING_BOX_Y_START_S0 0x3a17
1761 #define VPU_MAFBC_BOUNDING_BOX_Y_END_S0 0x3a18
1762 #define VPU_MAFBC_OUTPUT_BUF_ADDR_LOW_S0 0x3a19
1763 #define VPU_MAFBC_OUTPUT_BUF_ADDR_HIGH_S0 0x3a1a
1764 #define VPU_MAFBC_OUTPUT_BUF_STRIDE_S0 0x3a1b
1765 #define VPU_MAFBC_PREFETCH_CFG_S0 0x3a1c
1766 #define VPU_MAFBC_PREFETCH_READ_DIRECTION_Y BIT(1)
1767 #define VPU_MAFBC_PREFETCH_READ_DIRECTION_X BIT(0)
1769 #define VPU_MAFBC_HEADER_BUF_ADDR_LOW_S1 0x3a30
1770 #define VPU_MAFBC_HEADER_BUF_ADDR_HIGH_S1 0x3a31
1771 #define VPU_MAFBC_FORMAT_SPECIFIER_S1 0x3a32
1772 #define VPU_MAFBC_BUFFER_WIDTH_S1 0x3a33
1773 #define VPU_MAFBC_BUFFER_HEIGHT_S1 0x3a34
1774 #define VPU_MAFBC_BOUNDING_BOX_X_START_S1 0x3a35
1775 #define VPU_MAFBC_BOUNDING_BOX_X_END_S1 0x3a36
1776 #define VPU_MAFBC_BOUNDING_BOX_Y_START_S1 0x3a37
1777 #define VPU_MAFBC_BOUNDING_BOX_Y_END_S1 0x3a38
1778 #define VPU_MAFBC_OUTPUT_BUF_ADDR_LOW_S1 0x3a39
1779 #define VPU_MAFBC_OUTPUT_BUF_ADDR_HIGH_S1 0x3a3a
1780 #define VPU_MAFBC_OUTPUT_BUF_STRIDE_S1 0x3a3b
1781 #define VPU_MAFBC_PREFETCH_CFG_S1 0x3a3c
1783 #define VPU_MAFBC_HEADER_BUF_ADDR_LOW_S2 0x3a50
1784 #define VPU_MAFBC_HEADER_BUF_ADDR_HIGH_S2 0x3a51
1785 #define VPU_MAFBC_FORMAT_SPECIFIER_S2 0x3a52
1786 #define VPU_MAFBC_BUFFER_WIDTH_S2 0x3a53
1787 #define VPU_MAFBC_BUFFER_HEIGHT_S2 0x3a54
1788 #define VPU_MAFBC_BOUNDING_BOX_X_START_S2 0x3a55
1789 #define VPU_MAFBC_BOUNDING_BOX_X_END_S2 0x3a56
1790 #define VPU_MAFBC_BOUNDING_BOX_Y_START_S2 0x3a57
1791 #define VPU_MAFBC_BOUNDING_BOX_Y_END_S2 0x3a58
1792 #define VPU_MAFBC_OUTPUT_BUF_ADDR_LOW_S2 0x3a59
1793 #define VPU_MAFBC_OUTPUT_BUF_ADDR_HIGH_S2 0x3a5a
1794 #define VPU_MAFBC_OUTPUT_BUF_STRIDE_S2 0x3a5b
1795 #define VPU_MAFBC_PREFETCH_CFG_S2 0x3a5c
1797 #define VPU_MAFBC_HEADER_BUF_ADDR_LOW_S3 0x3a70
1798 #define VPU_MAFBC_HEADER_BUF_ADDR_HIGH_S3 0x3a71
1799 #define VPU_MAFBC_FORMAT_SPECIFIER_S3 0x3a72
1800 #define VPU_MAFBC_BUFFER_WIDTH_S3 0x3a73
1801 #define VPU_MAFBC_BUFFER_HEIGHT_S3 0x3a74
1802 #define VPU_MAFBC_BOUNDING_BOX_X_START_S3 0x3a75
1803 #define VPU_MAFBC_BOUNDING_BOX_X_END_S3 0x3a76
1804 #define VPU_MAFBC_BOUNDING_BOX_Y_START_S3 0x3a77
1805 #define VPU_MAFBC_BOUNDING_BOX_Y_END_S3 0x3a78
1806 #define VPU_MAFBC_OUTPUT_BUF_ADDR_LOW_S3 0x3a79
1807 #define VPU_MAFBC_OUTPUT_BUF_ADDR_HIGH_S3 0x3a7a
1808 #define VPU_MAFBC_OUTPUT_BUF_STRIDE_S3 0x3a7b
1809 #define VPU_MAFBC_PREFETCH_CFG_S3 0x3a7c
1811 #define DOLBY_PATH_CTRL 0x1a0c
1812 #define DOLBY_BYPASS_EN(val) (val & 0xf)
1813 #define OSD_PATH_MISC_CTRL 0x1a0e
1814 #define OSD_PATH_OSD_AXI_SEL_OSD1_AFBCD BIT(4)
1815 #define OSD_PATH_OSD_AXI_SEL_OSD2_AFBCD BIT(5)
1816 #define OSD_PATH_OSD_AXI_SEL_OSD3_AFBCD BIT(6)
1817 #define MALI_AFBCD_TOP_CTRL 0x1a0f
1818 #define MALI_AFBCD_MANUAL_RESET BIT(23)
1820 #define VIU_OSD_BLEND_CTRL 0x39b0
1821 #define VIU_OSD_BLEND_REORDER(dest, src) ((src) << (dest * 4))
1822 #define VIU_OSD_BLEND_DIN_EN(bits) ((bits & 0xf) << 20)
1823 #define VIU_OSD_BLEND1_DIN3_BYPASS_TO_DOUT1 BIT(24)
1824 #define VIU_OSD_BLEND1_DOUT_BYPASS_TO_BLEND2 BIT(25)
1825 #define VIU_OSD_BLEND_DIN0_BYPASS_TO_DOUT0 BIT(26)
1826 #define VIU_OSD_BLEND_BLEN2_PREMULT_EN(input) ((input & 0x3) << 27)
1827 #define VIU_OSD_BLEND_HOLD_LINES(lines) ((lines & 0x7) << 29)
1828 #define VIU_OSD_BLEND_CTRL1 0x39c0
1829 #define VIU_OSD_BLEND_DIN0_SCOPE_H 0x39b1
1830 #define VIU_OSD_BLEND_DIN0_SCOPE_V 0x39b2
1831 #define VIU_OSD_BLEND_DIN1_SCOPE_H 0x39b3
1832 #define VIU_OSD_BLEND_DIN1_SCOPE_V 0x39b4
1833 #define VIU_OSD_BLEND_DIN2_SCOPE_H 0x39b5
1834 #define VIU_OSD_BLEND_DIN2_SCOPE_V 0x39b6
1835 #define VIU_OSD_BLEND_DIN3_SCOPE_H 0x39b7
1836 #define VIU_OSD_BLEND_DIN3_SCOPE_V 0x39b8
1837 #define VIU_OSD_BLEND_DUMMY_DATA0 0x39b9
1838 #define VIU_OSD_BLEND_DUMMY_ALPHA 0x39ba
1839 #define VIU_OSD_BLEND_BLEND0_SIZE 0x39bb
1840 #define VIU_OSD_BLEND_BLEND1_SIZE 0x39bc
1841 #define VIU_OSD_BLEND_RO_CURRENT_XY 0x39bf
1843 #define VPP_OUT_H_V_SIZE 0x1da5
1845 #define VPP_VD2_HDR_IN_SIZE 0x1df0
1846 #define VPP_OSD1_IN_SIZE 0x1df1
1847 #define VPP_GCLK_CTRL2 0x1df2
1848 #define VD2_PPS_DUMMY_DATA 0x1df4
1849 #define VPP_OSD1_BLD_H_SCOPE 0x1df5
1850 #define VPP_OSD1_BLD_V_SCOPE 0x1df6
1851 #define VPP_OSD2_BLD_H_SCOPE 0x1df7
1852 #define VPP_OSD2_BLD_V_SCOPE 0x1df8
1853 #define VPP_WRBAK_CTRL 0x1df9
1854 #define VPP_SLEEP_CTRL 0x1dfa
1855 #define VD1_BLEND_SRC_CTRL 0x1dfb
1856 #define VD2_BLEND_SRC_CTRL 0x1dfc
1857 #define VD_BLEND_PREBLD_SRC_VD1 (1 << 0)
1858 #define VD_BLEND_PREBLD_SRC_VD2 (2 << 0)
1859 #define VD_BLEND_PREBLD_SRC_OSD1 (3 << 0)
1860 #define VD_BLEND_PREBLD_SRC_OSD2 (4 << 0)
1861 #define VD_BLEND_PREBLD_PREMULT_EN BIT(4)
1862 #define VD_BLEND_POSTBLD_SRC_VD1 (1 << 8)
1863 #define VD_BLEND_POSTBLD_SRC_VD2 (2 << 8)
1864 #define VD_BLEND_POSTBLD_SRC_OSD1 (3 << 8)
1865 #define VD_BLEND_POSTBLD_SRC_OSD2 (4 << 8)
1866 #define VD_BLEND_POSTBLD_PREMULT_EN BIT(16)
1867 #define OSD1_BLEND_SRC_CTRL 0x1dfd
1868 #define OSD2_BLEND_SRC_CTRL 0x1dfe
1869 #define OSD_BLEND_POSTBLD_SRC_VD1 (1 << 8)
1870 #define OSD_BLEND_POSTBLD_SRC_VD2 (2 << 8)
1871 #define OSD_BLEND_POSTBLD_SRC_OSD1 (3 << 8)
1872 #define OSD_BLEND_POSTBLD_SRC_OSD2 (4 << 8)
1873 #define OSD_BLEND_PATH_SEL_ENABLE BIT(20)
1875 #define VPP_POST_BLEND_BLEND_DUMMY_DATA 0x3968
1876 #define VPP_POST_BLEND_DUMMY_ALPHA 0x3969
1877 #define VPP_RDARB_MODE 0x3978
1878 #define VPP_RDARB_REQEN_SLV 0x3979
1880 #endif /* __MESON_REGISTERS_H */