PM / sleep: Asynchronous threads for suspend_noirq
[linux/fpc-iii.git] / drivers / gpu / drm / msm / hdmi / hdmi.xml.h
blobe2636582cfd753bc2443659ee615db428530e2dc
1 #ifndef HDMI_XML
2 #define HDMI_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/freedreno/envytools/rnndb/msm.xml ( 647 bytes, from 2013-11-30 14:45:35)
12 - /home/robclark/src/freedreno/envytools/rnndb/freedreno_copyright.xml ( 1453 bytes, from 2013-03-31 16:51:27)
13 - /home/robclark/src/freedreno/envytools/rnndb/mdp/mdp4.xml ( 17996 bytes, from 2013-12-01 19:10:31)
14 - /home/robclark/src/freedreno/envytools/rnndb/mdp/mdp_common.xml ( 1615 bytes, from 2013-11-30 15:00:52)
15 - /home/robclark/src/freedreno/envytools/rnndb/mdp/mdp5.xml ( 22517 bytes, from 2013-12-03 20:59:13)
16 - /home/robclark/src/freedreno/envytools/rnndb/dsi/dsi.xml ( 11712 bytes, from 2013-08-17 17:13:43)
17 - /home/robclark/src/freedreno/envytools/rnndb/dsi/sfpb.xml ( 344 bytes, from 2013-08-11 19:26:32)
18 - /home/robclark/src/freedreno/envytools/rnndb/dsi/mmss_cc.xml ( 1544 bytes, from 2013-08-16 19:17:05)
19 - /home/robclark/src/freedreno/envytools/rnndb/hdmi/qfprom.xml ( 600 bytes, from 2013-07-05 19:21:12)
20 - /home/robclark/src/freedreno/envytools/rnndb/hdmi/hdmi.xml ( 20932 bytes, from 2013-12-01 15:13:04)
22 Copyright (C) 2013 by the following authors:
23 - Rob Clark <robdclark@gmail.com> (robclark)
25 Permission is hereby granted, free of charge, to any person obtaining
26 a copy of this software and associated documentation files (the
27 "Software"), to deal in the Software without restriction, including
28 without limitation the rights to use, copy, modify, merge, publish,
29 distribute, sublicense, and/or sell copies of the Software, and to
30 permit persons to whom the Software is furnished to do so, subject to
31 the following conditions:
33 The above copyright notice and this permission notice (including the
34 next paragraph) shall be included in all copies or substantial
35 portions of the Software.
37 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
38 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
39 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
40 IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE
41 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
42 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
43 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
47 enum hdmi_hdcp_key_state {
48 NO_KEYS = 0,
49 NOT_CHECKED = 1,
50 CHECKING = 2,
51 KEYS_VALID = 3,
52 AKSV_INVALID = 4,
53 CHECKSUM_MISMATCH = 5,
56 enum hdmi_ddc_read_write {
57 DDC_WRITE = 0,
58 DDC_READ = 1,
61 enum hdmi_acr_cts {
62 ACR_NONE = 0,
63 ACR_32 = 1,
64 ACR_44 = 2,
65 ACR_48 = 3,
68 #define REG_HDMI_CTRL 0x00000000
69 #define HDMI_CTRL_ENABLE 0x00000001
70 #define HDMI_CTRL_HDMI 0x00000002
71 #define HDMI_CTRL_ENCRYPTED 0x00000004
73 #define REG_HDMI_AUDIO_PKT_CTRL1 0x00000020
74 #define HDMI_AUDIO_PKT_CTRL1_AUDIO_SAMPLE_SEND 0x00000001
76 #define REG_HDMI_ACR_PKT_CTRL 0x00000024
77 #define HDMI_ACR_PKT_CTRL_CONT 0x00000001
78 #define HDMI_ACR_PKT_CTRL_SEND 0x00000002
79 #define HDMI_ACR_PKT_CTRL_SELECT__MASK 0x00000030
80 #define HDMI_ACR_PKT_CTRL_SELECT__SHIFT 4
81 static inline uint32_t HDMI_ACR_PKT_CTRL_SELECT(enum hdmi_acr_cts val)
83 return ((val) << HDMI_ACR_PKT_CTRL_SELECT__SHIFT) & HDMI_ACR_PKT_CTRL_SELECT__MASK;
85 #define HDMI_ACR_PKT_CTRL_SOURCE 0x00000100
86 #define HDMI_ACR_PKT_CTRL_N_MULTIPLIER__MASK 0x00070000
87 #define HDMI_ACR_PKT_CTRL_N_MULTIPLIER__SHIFT 16
88 static inline uint32_t HDMI_ACR_PKT_CTRL_N_MULTIPLIER(uint32_t val)
90 return ((val) << HDMI_ACR_PKT_CTRL_N_MULTIPLIER__SHIFT) & HDMI_ACR_PKT_CTRL_N_MULTIPLIER__MASK;
92 #define HDMI_ACR_PKT_CTRL_AUDIO_PRIORITY 0x80000000
94 #define REG_HDMI_VBI_PKT_CTRL 0x00000028
95 #define HDMI_VBI_PKT_CTRL_GC_ENABLE 0x00000010
96 #define HDMI_VBI_PKT_CTRL_GC_EVERY_FRAME 0x00000020
97 #define HDMI_VBI_PKT_CTRL_ISRC_SEND 0x00000100
98 #define HDMI_VBI_PKT_CTRL_ISRC_CONTINUOUS 0x00000200
99 #define HDMI_VBI_PKT_CTRL_ACP_SEND 0x00001000
100 #define HDMI_VBI_PKT_CTRL_ACP_SRC_SW 0x00002000
102 #define REG_HDMI_INFOFRAME_CTRL0 0x0000002c
103 #define HDMI_INFOFRAME_CTRL0_AVI_SEND 0x00000001
104 #define HDMI_INFOFRAME_CTRL0_AVI_CONT 0x00000002
105 #define HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SEND 0x00000010
106 #define HDMI_INFOFRAME_CTRL0_AUDIO_INFO_CONT 0x00000020
107 #define HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SOURCE 0x00000040
108 #define HDMI_INFOFRAME_CTRL0_AUDIO_INFO_UPDATE 0x00000080
110 #define REG_HDMI_GEN_PKT_CTRL 0x00000034
111 #define HDMI_GEN_PKT_CTRL_GENERIC0_SEND 0x00000001
112 #define HDMI_GEN_PKT_CTRL_GENERIC0_CONT 0x00000002
113 #define HDMI_GEN_PKT_CTRL_GENERIC0_UPDATE__MASK 0x0000000c
114 #define HDMI_GEN_PKT_CTRL_GENERIC0_UPDATE__SHIFT 2
115 static inline uint32_t HDMI_GEN_PKT_CTRL_GENERIC0_UPDATE(uint32_t val)
117 return ((val) << HDMI_GEN_PKT_CTRL_GENERIC0_UPDATE__SHIFT) & HDMI_GEN_PKT_CTRL_GENERIC0_UPDATE__MASK;
119 #define HDMI_GEN_PKT_CTRL_GENERIC1_SEND 0x00000010
120 #define HDMI_GEN_PKT_CTRL_GENERIC1_CONT 0x00000020
121 #define HDMI_GEN_PKT_CTRL_GENERIC0_LINE__MASK 0x003f0000
122 #define HDMI_GEN_PKT_CTRL_GENERIC0_LINE__SHIFT 16
123 static inline uint32_t HDMI_GEN_PKT_CTRL_GENERIC0_LINE(uint32_t val)
125 return ((val) << HDMI_GEN_PKT_CTRL_GENERIC0_LINE__SHIFT) & HDMI_GEN_PKT_CTRL_GENERIC0_LINE__MASK;
127 #define HDMI_GEN_PKT_CTRL_GENERIC1_LINE__MASK 0x3f000000
128 #define HDMI_GEN_PKT_CTRL_GENERIC1_LINE__SHIFT 24
129 static inline uint32_t HDMI_GEN_PKT_CTRL_GENERIC1_LINE(uint32_t val)
131 return ((val) << HDMI_GEN_PKT_CTRL_GENERIC1_LINE__SHIFT) & HDMI_GEN_PKT_CTRL_GENERIC1_LINE__MASK;
134 #define REG_HDMI_GC 0x00000040
135 #define HDMI_GC_MUTE 0x00000001
137 #define REG_HDMI_AUDIO_PKT_CTRL2 0x00000044
138 #define HDMI_AUDIO_PKT_CTRL2_OVERRIDE 0x00000001
139 #define HDMI_AUDIO_PKT_CTRL2_LAYOUT 0x00000002
141 static inline uint32_t REG_HDMI_AVI_INFO(uint32_t i0) { return 0x0000006c + 0x4*i0; }
143 #define REG_HDMI_GENERIC0_HDR 0x00000084
145 static inline uint32_t REG_HDMI_GENERIC0(uint32_t i0) { return 0x00000088 + 0x4*i0; }
147 #define REG_HDMI_GENERIC1_HDR 0x000000a4
149 static inline uint32_t REG_HDMI_GENERIC1(uint32_t i0) { return 0x000000a8 + 0x4*i0; }
151 static inline uint32_t REG_HDMI_ACR(uint32_t i0) { return 0x000000c4 + 0x8*i0; }
153 static inline uint32_t REG_HDMI_ACR_0(uint32_t i0) { return 0x000000c4 + 0x8*i0; }
154 #define HDMI_ACR_0_CTS__MASK 0xfffff000
155 #define HDMI_ACR_0_CTS__SHIFT 12
156 static inline uint32_t HDMI_ACR_0_CTS(uint32_t val)
158 return ((val) << HDMI_ACR_0_CTS__SHIFT) & HDMI_ACR_0_CTS__MASK;
161 static inline uint32_t REG_HDMI_ACR_1(uint32_t i0) { return 0x000000c8 + 0x8*i0; }
162 #define HDMI_ACR_1_N__MASK 0xffffffff
163 #define HDMI_ACR_1_N__SHIFT 0
164 static inline uint32_t HDMI_ACR_1_N(uint32_t val)
166 return ((val) << HDMI_ACR_1_N__SHIFT) & HDMI_ACR_1_N__MASK;
169 #define REG_HDMI_AUDIO_INFO0 0x000000e4
170 #define HDMI_AUDIO_INFO0_CHECKSUM__MASK 0x000000ff
171 #define HDMI_AUDIO_INFO0_CHECKSUM__SHIFT 0
172 static inline uint32_t HDMI_AUDIO_INFO0_CHECKSUM(uint32_t val)
174 return ((val) << HDMI_AUDIO_INFO0_CHECKSUM__SHIFT) & HDMI_AUDIO_INFO0_CHECKSUM__MASK;
176 #define HDMI_AUDIO_INFO0_CC__MASK 0x00000700
177 #define HDMI_AUDIO_INFO0_CC__SHIFT 8
178 static inline uint32_t HDMI_AUDIO_INFO0_CC(uint32_t val)
180 return ((val) << HDMI_AUDIO_INFO0_CC__SHIFT) & HDMI_AUDIO_INFO0_CC__MASK;
183 #define REG_HDMI_AUDIO_INFO1 0x000000e8
184 #define HDMI_AUDIO_INFO1_CA__MASK 0x000000ff
185 #define HDMI_AUDIO_INFO1_CA__SHIFT 0
186 static inline uint32_t HDMI_AUDIO_INFO1_CA(uint32_t val)
188 return ((val) << HDMI_AUDIO_INFO1_CA__SHIFT) & HDMI_AUDIO_INFO1_CA__MASK;
190 #define HDMI_AUDIO_INFO1_LSV__MASK 0x00007800
191 #define HDMI_AUDIO_INFO1_LSV__SHIFT 11
192 static inline uint32_t HDMI_AUDIO_INFO1_LSV(uint32_t val)
194 return ((val) << HDMI_AUDIO_INFO1_LSV__SHIFT) & HDMI_AUDIO_INFO1_LSV__MASK;
196 #define HDMI_AUDIO_INFO1_DM_INH 0x00008000
198 #define REG_HDMI_HDCP_CTRL 0x00000110
199 #define HDMI_HDCP_CTRL_ENABLE 0x00000001
200 #define HDMI_HDCP_CTRL_ENCRYPTION_ENABLE 0x00000100
202 #define REG_HDMI_HDCP_INT_CTRL 0x00000118
204 #define REG_HDMI_HDCP_LINK0_STATUS 0x0000011c
205 #define HDMI_HDCP_LINK0_STATUS_AN_0_READY 0x00000100
206 #define HDMI_HDCP_LINK0_STATUS_AN_1_READY 0x00000200
207 #define HDMI_HDCP_LINK0_STATUS_KEY_STATE__MASK 0x70000000
208 #define HDMI_HDCP_LINK0_STATUS_KEY_STATE__SHIFT 28
209 static inline uint32_t HDMI_HDCP_LINK0_STATUS_KEY_STATE(enum hdmi_hdcp_key_state val)
211 return ((val) << HDMI_HDCP_LINK0_STATUS_KEY_STATE__SHIFT) & HDMI_HDCP_LINK0_STATUS_KEY_STATE__MASK;
214 #define REG_HDMI_HDCP_RESET 0x00000130
215 #define HDMI_HDCP_RESET_LINK0_DEAUTHENTICATE 0x00000001
217 #define REG_HDMI_VENSPEC_INFO0 0x0000016c
219 #define REG_HDMI_VENSPEC_INFO1 0x00000170
221 #define REG_HDMI_VENSPEC_INFO2 0x00000174
223 #define REG_HDMI_VENSPEC_INFO3 0x00000178
225 #define REG_HDMI_VENSPEC_INFO4 0x0000017c
227 #define REG_HDMI_VENSPEC_INFO5 0x00000180
229 #define REG_HDMI_VENSPEC_INFO6 0x00000184
231 #define REG_HDMI_AUDIO_CFG 0x000001d0
232 #define HDMI_AUDIO_CFG_ENGINE_ENABLE 0x00000001
233 #define HDMI_AUDIO_CFG_FIFO_WATERMARK__MASK 0x000000f0
234 #define HDMI_AUDIO_CFG_FIFO_WATERMARK__SHIFT 4
235 static inline uint32_t HDMI_AUDIO_CFG_FIFO_WATERMARK(uint32_t val)
237 return ((val) << HDMI_AUDIO_CFG_FIFO_WATERMARK__SHIFT) & HDMI_AUDIO_CFG_FIFO_WATERMARK__MASK;
240 #define REG_HDMI_USEC_REFTIMER 0x00000208
242 #define REG_HDMI_DDC_CTRL 0x0000020c
243 #define HDMI_DDC_CTRL_GO 0x00000001
244 #define HDMI_DDC_CTRL_SOFT_RESET 0x00000002
245 #define HDMI_DDC_CTRL_SEND_RESET 0x00000004
246 #define HDMI_DDC_CTRL_SW_STATUS_RESET 0x00000008
247 #define HDMI_DDC_CTRL_TRANSACTION_CNT__MASK 0x00300000
248 #define HDMI_DDC_CTRL_TRANSACTION_CNT__SHIFT 20
249 static inline uint32_t HDMI_DDC_CTRL_TRANSACTION_CNT(uint32_t val)
251 return ((val) << HDMI_DDC_CTRL_TRANSACTION_CNT__SHIFT) & HDMI_DDC_CTRL_TRANSACTION_CNT__MASK;
254 #define REG_HDMI_DDC_ARBITRATION 0x00000210
255 #define HDMI_DDC_ARBITRATION_HW_ARBITRATION 0x00000010
257 #define REG_HDMI_DDC_INT_CTRL 0x00000214
258 #define HDMI_DDC_INT_CTRL_SW_DONE_INT 0x00000001
259 #define HDMI_DDC_INT_CTRL_SW_DONE_ACK 0x00000002
260 #define HDMI_DDC_INT_CTRL_SW_DONE_MASK 0x00000004
262 #define REG_HDMI_DDC_SW_STATUS 0x00000218
263 #define HDMI_DDC_SW_STATUS_NACK0 0x00001000
264 #define HDMI_DDC_SW_STATUS_NACK1 0x00002000
265 #define HDMI_DDC_SW_STATUS_NACK2 0x00004000
266 #define HDMI_DDC_SW_STATUS_NACK3 0x00008000
268 #define REG_HDMI_DDC_HW_STATUS 0x0000021c
270 #define REG_HDMI_DDC_SPEED 0x00000220
271 #define HDMI_DDC_SPEED_THRESHOLD__MASK 0x00000003
272 #define HDMI_DDC_SPEED_THRESHOLD__SHIFT 0
273 static inline uint32_t HDMI_DDC_SPEED_THRESHOLD(uint32_t val)
275 return ((val) << HDMI_DDC_SPEED_THRESHOLD__SHIFT) & HDMI_DDC_SPEED_THRESHOLD__MASK;
277 #define HDMI_DDC_SPEED_PRESCALE__MASK 0xffff0000
278 #define HDMI_DDC_SPEED_PRESCALE__SHIFT 16
279 static inline uint32_t HDMI_DDC_SPEED_PRESCALE(uint32_t val)
281 return ((val) << HDMI_DDC_SPEED_PRESCALE__SHIFT) & HDMI_DDC_SPEED_PRESCALE__MASK;
284 #define REG_HDMI_DDC_SETUP 0x00000224
285 #define HDMI_DDC_SETUP_TIMEOUT__MASK 0xff000000
286 #define HDMI_DDC_SETUP_TIMEOUT__SHIFT 24
287 static inline uint32_t HDMI_DDC_SETUP_TIMEOUT(uint32_t val)
289 return ((val) << HDMI_DDC_SETUP_TIMEOUT__SHIFT) & HDMI_DDC_SETUP_TIMEOUT__MASK;
292 static inline uint32_t REG_HDMI_I2C_TRANSACTION(uint32_t i0) { return 0x00000228 + 0x4*i0; }
294 static inline uint32_t REG_HDMI_I2C_TRANSACTION_REG(uint32_t i0) { return 0x00000228 + 0x4*i0; }
295 #define HDMI_I2C_TRANSACTION_REG_RW__MASK 0x00000001
296 #define HDMI_I2C_TRANSACTION_REG_RW__SHIFT 0
297 static inline uint32_t HDMI_I2C_TRANSACTION_REG_RW(enum hdmi_ddc_read_write val)
299 return ((val) << HDMI_I2C_TRANSACTION_REG_RW__SHIFT) & HDMI_I2C_TRANSACTION_REG_RW__MASK;
301 #define HDMI_I2C_TRANSACTION_REG_STOP_ON_NACK 0x00000100
302 #define HDMI_I2C_TRANSACTION_REG_START 0x00001000
303 #define HDMI_I2C_TRANSACTION_REG_STOP 0x00002000
304 #define HDMI_I2C_TRANSACTION_REG_CNT__MASK 0x00ff0000
305 #define HDMI_I2C_TRANSACTION_REG_CNT__SHIFT 16
306 static inline uint32_t HDMI_I2C_TRANSACTION_REG_CNT(uint32_t val)
308 return ((val) << HDMI_I2C_TRANSACTION_REG_CNT__SHIFT) & HDMI_I2C_TRANSACTION_REG_CNT__MASK;
311 #define REG_HDMI_DDC_DATA 0x00000238
312 #define HDMI_DDC_DATA_DATA_RW__MASK 0x00000001
313 #define HDMI_DDC_DATA_DATA_RW__SHIFT 0
314 static inline uint32_t HDMI_DDC_DATA_DATA_RW(enum hdmi_ddc_read_write val)
316 return ((val) << HDMI_DDC_DATA_DATA_RW__SHIFT) & HDMI_DDC_DATA_DATA_RW__MASK;
318 #define HDMI_DDC_DATA_DATA__MASK 0x0000ff00
319 #define HDMI_DDC_DATA_DATA__SHIFT 8
320 static inline uint32_t HDMI_DDC_DATA_DATA(uint32_t val)
322 return ((val) << HDMI_DDC_DATA_DATA__SHIFT) & HDMI_DDC_DATA_DATA__MASK;
324 #define HDMI_DDC_DATA_INDEX__MASK 0x00ff0000
325 #define HDMI_DDC_DATA_INDEX__SHIFT 16
326 static inline uint32_t HDMI_DDC_DATA_INDEX(uint32_t val)
328 return ((val) << HDMI_DDC_DATA_INDEX__SHIFT) & HDMI_DDC_DATA_INDEX__MASK;
330 #define HDMI_DDC_DATA_INDEX_WRITE 0x80000000
332 #define REG_HDMI_HPD_INT_STATUS 0x00000250
333 #define HDMI_HPD_INT_STATUS_INT 0x00000001
334 #define HDMI_HPD_INT_STATUS_CABLE_DETECTED 0x00000002
336 #define REG_HDMI_HPD_INT_CTRL 0x00000254
337 #define HDMI_HPD_INT_CTRL_INT_ACK 0x00000001
338 #define HDMI_HPD_INT_CTRL_INT_CONNECT 0x00000002
339 #define HDMI_HPD_INT_CTRL_INT_EN 0x00000004
340 #define HDMI_HPD_INT_CTRL_RX_INT_ACK 0x00000010
341 #define HDMI_HPD_INT_CTRL_RX_INT_EN 0x00000020
342 #define HDMI_HPD_INT_CTRL_RCV_PLUGIN_DET_MASK 0x00000200
344 #define REG_HDMI_HPD_CTRL 0x00000258
345 #define HDMI_HPD_CTRL_TIMEOUT__MASK 0x00001fff
346 #define HDMI_HPD_CTRL_TIMEOUT__SHIFT 0
347 static inline uint32_t HDMI_HPD_CTRL_TIMEOUT(uint32_t val)
349 return ((val) << HDMI_HPD_CTRL_TIMEOUT__SHIFT) & HDMI_HPD_CTRL_TIMEOUT__MASK;
351 #define HDMI_HPD_CTRL_ENABLE 0x10000000
353 #define REG_HDMI_DDC_REF 0x0000027c
354 #define HDMI_DDC_REF_REFTIMER_ENABLE 0x00010000
355 #define HDMI_DDC_REF_REFTIMER__MASK 0x0000ffff
356 #define HDMI_DDC_REF_REFTIMER__SHIFT 0
357 static inline uint32_t HDMI_DDC_REF_REFTIMER(uint32_t val)
359 return ((val) << HDMI_DDC_REF_REFTIMER__SHIFT) & HDMI_DDC_REF_REFTIMER__MASK;
362 #define REG_HDMI_CEC_STATUS 0x00000298
364 #define REG_HDMI_CEC_INT 0x0000029c
366 #define REG_HDMI_CEC_ADDR 0x000002a0
368 #define REG_HDMI_CEC_TIME 0x000002a4
370 #define REG_HDMI_CEC_REFTIMER 0x000002a8
372 #define REG_HDMI_CEC_RD_DATA 0x000002ac
374 #define REG_HDMI_CEC_RD_FILTER 0x000002b0
376 #define REG_HDMI_ACTIVE_HSYNC 0x000002b4
377 #define HDMI_ACTIVE_HSYNC_START__MASK 0x00000fff
378 #define HDMI_ACTIVE_HSYNC_START__SHIFT 0
379 static inline uint32_t HDMI_ACTIVE_HSYNC_START(uint32_t val)
381 return ((val) << HDMI_ACTIVE_HSYNC_START__SHIFT) & HDMI_ACTIVE_HSYNC_START__MASK;
383 #define HDMI_ACTIVE_HSYNC_END__MASK 0x0fff0000
384 #define HDMI_ACTIVE_HSYNC_END__SHIFT 16
385 static inline uint32_t HDMI_ACTIVE_HSYNC_END(uint32_t val)
387 return ((val) << HDMI_ACTIVE_HSYNC_END__SHIFT) & HDMI_ACTIVE_HSYNC_END__MASK;
390 #define REG_HDMI_ACTIVE_VSYNC 0x000002b8
391 #define HDMI_ACTIVE_VSYNC_START__MASK 0x00000fff
392 #define HDMI_ACTIVE_VSYNC_START__SHIFT 0
393 static inline uint32_t HDMI_ACTIVE_VSYNC_START(uint32_t val)
395 return ((val) << HDMI_ACTIVE_VSYNC_START__SHIFT) & HDMI_ACTIVE_VSYNC_START__MASK;
397 #define HDMI_ACTIVE_VSYNC_END__MASK 0x0fff0000
398 #define HDMI_ACTIVE_VSYNC_END__SHIFT 16
399 static inline uint32_t HDMI_ACTIVE_VSYNC_END(uint32_t val)
401 return ((val) << HDMI_ACTIVE_VSYNC_END__SHIFT) & HDMI_ACTIVE_VSYNC_END__MASK;
404 #define REG_HDMI_VSYNC_ACTIVE_F2 0x000002bc
405 #define HDMI_VSYNC_ACTIVE_F2_START__MASK 0x00000fff
406 #define HDMI_VSYNC_ACTIVE_F2_START__SHIFT 0
407 static inline uint32_t HDMI_VSYNC_ACTIVE_F2_START(uint32_t val)
409 return ((val) << HDMI_VSYNC_ACTIVE_F2_START__SHIFT) & HDMI_VSYNC_ACTIVE_F2_START__MASK;
411 #define HDMI_VSYNC_ACTIVE_F2_END__MASK 0x0fff0000
412 #define HDMI_VSYNC_ACTIVE_F2_END__SHIFT 16
413 static inline uint32_t HDMI_VSYNC_ACTIVE_F2_END(uint32_t val)
415 return ((val) << HDMI_VSYNC_ACTIVE_F2_END__SHIFT) & HDMI_VSYNC_ACTIVE_F2_END__MASK;
418 #define REG_HDMI_TOTAL 0x000002c0
419 #define HDMI_TOTAL_H_TOTAL__MASK 0x00000fff
420 #define HDMI_TOTAL_H_TOTAL__SHIFT 0
421 static inline uint32_t HDMI_TOTAL_H_TOTAL(uint32_t val)
423 return ((val) << HDMI_TOTAL_H_TOTAL__SHIFT) & HDMI_TOTAL_H_TOTAL__MASK;
425 #define HDMI_TOTAL_V_TOTAL__MASK 0x0fff0000
426 #define HDMI_TOTAL_V_TOTAL__SHIFT 16
427 static inline uint32_t HDMI_TOTAL_V_TOTAL(uint32_t val)
429 return ((val) << HDMI_TOTAL_V_TOTAL__SHIFT) & HDMI_TOTAL_V_TOTAL__MASK;
432 #define REG_HDMI_VSYNC_TOTAL_F2 0x000002c4
433 #define HDMI_VSYNC_TOTAL_F2_V_TOTAL__MASK 0x00000fff
434 #define HDMI_VSYNC_TOTAL_F2_V_TOTAL__SHIFT 0
435 static inline uint32_t HDMI_VSYNC_TOTAL_F2_V_TOTAL(uint32_t val)
437 return ((val) << HDMI_VSYNC_TOTAL_F2_V_TOTAL__SHIFT) & HDMI_VSYNC_TOTAL_F2_V_TOTAL__MASK;
440 #define REG_HDMI_FRAME_CTRL 0x000002c8
441 #define HDMI_FRAME_CTRL_RGB_MUX_SEL_BGR 0x00001000
442 #define HDMI_FRAME_CTRL_VSYNC_LOW 0x10000000
443 #define HDMI_FRAME_CTRL_HSYNC_LOW 0x20000000
444 #define HDMI_FRAME_CTRL_INTERLACED_EN 0x80000000
446 #define REG_HDMI_AUD_INT 0x000002cc
447 #define HDMI_AUD_INT_AUD_FIFO_URUN_INT 0x00000001
448 #define HDMI_AUD_INT_AUD_FIFO_URAN_MASK 0x00000002
449 #define HDMI_AUD_INT_AUD_SAM_DROP_INT 0x00000004
450 #define HDMI_AUD_INT_AUD_SAM_DROP_MASK 0x00000008
452 #define REG_HDMI_PHY_CTRL 0x000002d4
453 #define HDMI_PHY_CTRL_SW_RESET_PLL 0x00000001
454 #define HDMI_PHY_CTRL_SW_RESET_PLL_LOW 0x00000002
455 #define HDMI_PHY_CTRL_SW_RESET 0x00000004
456 #define HDMI_PHY_CTRL_SW_RESET_LOW 0x00000008
458 #define REG_HDMI_CEC_WR_RANGE 0x000002dc
460 #define REG_HDMI_CEC_RD_RANGE 0x000002e0
462 #define REG_HDMI_VERSION 0x000002e4
464 #define REG_HDMI_CEC_COMPL_CTL 0x00000360
466 #define REG_HDMI_CEC_RD_START_RANGE 0x00000364
468 #define REG_HDMI_CEC_RD_TOTAL_RANGE 0x00000368
470 #define REG_HDMI_CEC_RD_ERR_RESP_LO 0x0000036c
472 #define REG_HDMI_CEC_WR_CHECK_CONFIG 0x00000370
474 #define REG_HDMI_8x60_PHY_REG0 0x00000300
475 #define HDMI_8x60_PHY_REG0_DESER_DEL_CTRL__MASK 0x0000001c
476 #define HDMI_8x60_PHY_REG0_DESER_DEL_CTRL__SHIFT 2
477 static inline uint32_t HDMI_8x60_PHY_REG0_DESER_DEL_CTRL(uint32_t val)
479 return ((val) << HDMI_8x60_PHY_REG0_DESER_DEL_CTRL__SHIFT) & HDMI_8x60_PHY_REG0_DESER_DEL_CTRL__MASK;
482 #define REG_HDMI_8x60_PHY_REG1 0x00000304
483 #define HDMI_8x60_PHY_REG1_DTEST_MUX_SEL__MASK 0x000000f0
484 #define HDMI_8x60_PHY_REG1_DTEST_MUX_SEL__SHIFT 4
485 static inline uint32_t HDMI_8x60_PHY_REG1_DTEST_MUX_SEL(uint32_t val)
487 return ((val) << HDMI_8x60_PHY_REG1_DTEST_MUX_SEL__SHIFT) & HDMI_8x60_PHY_REG1_DTEST_MUX_SEL__MASK;
489 #define HDMI_8x60_PHY_REG1_OUTVOL_SWING_CTRL__MASK 0x0000000f
490 #define HDMI_8x60_PHY_REG1_OUTVOL_SWING_CTRL__SHIFT 0
491 static inline uint32_t HDMI_8x60_PHY_REG1_OUTVOL_SWING_CTRL(uint32_t val)
493 return ((val) << HDMI_8x60_PHY_REG1_OUTVOL_SWING_CTRL__SHIFT) & HDMI_8x60_PHY_REG1_OUTVOL_SWING_CTRL__MASK;
496 #define REG_HDMI_8x60_PHY_REG2 0x00000308
497 #define HDMI_8x60_PHY_REG2_PD_DESER 0x00000001
498 #define HDMI_8x60_PHY_REG2_PD_DRIVE_1 0x00000002
499 #define HDMI_8x60_PHY_REG2_PD_DRIVE_2 0x00000004
500 #define HDMI_8x60_PHY_REG2_PD_DRIVE_3 0x00000008
501 #define HDMI_8x60_PHY_REG2_PD_DRIVE_4 0x00000010
502 #define HDMI_8x60_PHY_REG2_PD_PLL 0x00000020
503 #define HDMI_8x60_PHY_REG2_PD_PWRGEN 0x00000040
504 #define HDMI_8x60_PHY_REG2_RCV_SENSE_EN 0x00000080
506 #define REG_HDMI_8x60_PHY_REG3 0x0000030c
507 #define HDMI_8x60_PHY_REG3_PLL_ENABLE 0x00000001
509 #define REG_HDMI_8x60_PHY_REG4 0x00000310
511 #define REG_HDMI_8x60_PHY_REG5 0x00000314
513 #define REG_HDMI_8x60_PHY_REG6 0x00000318
515 #define REG_HDMI_8x60_PHY_REG7 0x0000031c
517 #define REG_HDMI_8x60_PHY_REG8 0x00000320
519 #define REG_HDMI_8x60_PHY_REG9 0x00000324
521 #define REG_HDMI_8x60_PHY_REG10 0x00000328
523 #define REG_HDMI_8x60_PHY_REG11 0x0000032c
525 #define REG_HDMI_8x60_PHY_REG12 0x00000330
526 #define HDMI_8x60_PHY_REG12_RETIMING_EN 0x00000001
527 #define HDMI_8x60_PHY_REG12_PLL_LOCK_DETECT_EN 0x00000002
528 #define HDMI_8x60_PHY_REG12_FORCE_LOCK 0x00000010
530 #define REG_HDMI_8960_PHY_REG0 0x00000400
532 #define REG_HDMI_8960_PHY_REG1 0x00000404
534 #define REG_HDMI_8960_PHY_REG2 0x00000408
536 #define REG_HDMI_8960_PHY_REG3 0x0000040c
538 #define REG_HDMI_8960_PHY_REG4 0x00000410
540 #define REG_HDMI_8960_PHY_REG5 0x00000414
542 #define REG_HDMI_8960_PHY_REG6 0x00000418
544 #define REG_HDMI_8960_PHY_REG7 0x0000041c
546 #define REG_HDMI_8960_PHY_REG8 0x00000420
548 #define REG_HDMI_8960_PHY_REG9 0x00000424
550 #define REG_HDMI_8960_PHY_REG10 0x00000428
552 #define REG_HDMI_8960_PHY_REG11 0x0000042c
554 #define REG_HDMI_8960_PHY_REG12 0x00000430
556 #define REG_HDMI_8x74_ANA_CFG0 0x00000000
558 #define REG_HDMI_8x74_ANA_CFG1 0x00000004
560 #define REG_HDMI_8x74_PD_CTRL0 0x00000010
562 #define REG_HDMI_8x74_PD_CTRL1 0x00000014
564 #define REG_HDMI_8x74_BIST_CFG0 0x00000034
566 #define REG_HDMI_8x74_BIST_PATN0 0x0000003c
568 #define REG_HDMI_8x74_BIST_PATN1 0x00000040
570 #define REG_HDMI_8x74_BIST_PATN2 0x00000044
572 #define REG_HDMI_8x74_BIST_PATN3 0x00000048
575 #endif /* HDMI_XML */