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 ( 676 bytes, from 2014-12-05 15:34:49)
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 ( 20908 bytes, from 2014-12-08 16:13:00)
14 - /home/robclark/src/freedreno/envytools/rnndb/mdp/mdp_common.xml ( 2357 bytes, from 2014-12-08 16:13:00)
15 - /home/robclark/src/freedreno/envytools/rnndb/mdp/mdp5.xml ( 27208 bytes, from 2015-01-13 23:56:11)
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 ( 1686 bytes, from 2014-10-31 16:48:57)
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 ( 26848 bytes, from 2015-01-13 23:55:57)
21 - /home/robclark/src/freedreno/envytools/rnndb/edp/edp.xml ( 8253 bytes, from 2014-12-08 16:13:00)
23 Copyright (C) 2013-2015 by the following authors:
24 - Rob Clark <robdclark@gmail.com> (robclark)
26 Permission is hereby granted, free of charge, to any person obtaining
27 a copy of this software and associated documentation files (the
28 "Software"), to deal in the Software without restriction, including
29 without limitation the rights to use, copy, modify, merge, publish,
30 distribute, sublicense, and/or sell copies of the Software, and to
31 permit persons to whom the Software is furnished to do so, subject to
32 the following conditions:
34 The above copyright notice and this permission notice (including the
35 next paragraph) shall be included in all copies or substantial
36 portions of the Software.
38 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
39 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
40 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
41 IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE
42 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
43 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
44 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
48 enum hdmi_hdcp_key_state
{
49 HDCP_KEYS_STATE_NO_KEYS
= 0,
50 HDCP_KEYS_STATE_NOT_CHECKED
= 1,
51 HDCP_KEYS_STATE_CHECKING
= 2,
52 HDCP_KEYS_STATE_VALID
= 3,
53 HDCP_KEYS_STATE_AKSV_NOT_VALID
= 4,
54 HDCP_KEYS_STATE_CHKSUM_MISMATCH
= 5,
55 HDCP_KEYS_STATE_PROD_AKSV
= 6,
56 HDCP_KEYS_STATE_RESERVED
= 7,
59 enum hdmi_ddc_read_write
{
71 #define REG_HDMI_CTRL 0x00000000
72 #define HDMI_CTRL_ENABLE 0x00000001
73 #define HDMI_CTRL_HDMI 0x00000002
74 #define HDMI_CTRL_ENCRYPTED 0x00000004
76 #define REG_HDMI_AUDIO_PKT_CTRL1 0x00000020
77 #define HDMI_AUDIO_PKT_CTRL1_AUDIO_SAMPLE_SEND 0x00000001
79 #define REG_HDMI_ACR_PKT_CTRL 0x00000024
80 #define HDMI_ACR_PKT_CTRL_CONT 0x00000001
81 #define HDMI_ACR_PKT_CTRL_SEND 0x00000002
82 #define HDMI_ACR_PKT_CTRL_SELECT__MASK 0x00000030
83 #define HDMI_ACR_PKT_CTRL_SELECT__SHIFT 4
84 static inline uint32_t HDMI_ACR_PKT_CTRL_SELECT(enum hdmi_acr_cts val
)
86 return ((val
) << HDMI_ACR_PKT_CTRL_SELECT__SHIFT
) & HDMI_ACR_PKT_CTRL_SELECT__MASK
;
88 #define HDMI_ACR_PKT_CTRL_SOURCE 0x00000100
89 #define HDMI_ACR_PKT_CTRL_N_MULTIPLIER__MASK 0x00070000
90 #define HDMI_ACR_PKT_CTRL_N_MULTIPLIER__SHIFT 16
91 static inline uint32_t HDMI_ACR_PKT_CTRL_N_MULTIPLIER(uint32_t val
)
93 return ((val
) << HDMI_ACR_PKT_CTRL_N_MULTIPLIER__SHIFT
) & HDMI_ACR_PKT_CTRL_N_MULTIPLIER__MASK
;
95 #define HDMI_ACR_PKT_CTRL_AUDIO_PRIORITY 0x80000000
97 #define REG_HDMI_VBI_PKT_CTRL 0x00000028
98 #define HDMI_VBI_PKT_CTRL_GC_ENABLE 0x00000010
99 #define HDMI_VBI_PKT_CTRL_GC_EVERY_FRAME 0x00000020
100 #define HDMI_VBI_PKT_CTRL_ISRC_SEND 0x00000100
101 #define HDMI_VBI_PKT_CTRL_ISRC_CONTINUOUS 0x00000200
102 #define HDMI_VBI_PKT_CTRL_ACP_SEND 0x00001000
103 #define HDMI_VBI_PKT_CTRL_ACP_SRC_SW 0x00002000
105 #define REG_HDMI_INFOFRAME_CTRL0 0x0000002c
106 #define HDMI_INFOFRAME_CTRL0_AVI_SEND 0x00000001
107 #define HDMI_INFOFRAME_CTRL0_AVI_CONT 0x00000002
108 #define HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SEND 0x00000010
109 #define HDMI_INFOFRAME_CTRL0_AUDIO_INFO_CONT 0x00000020
110 #define HDMI_INFOFRAME_CTRL0_AUDIO_INFO_SOURCE 0x00000040
111 #define HDMI_INFOFRAME_CTRL0_AUDIO_INFO_UPDATE 0x00000080
113 #define REG_HDMI_GEN_PKT_CTRL 0x00000034
114 #define HDMI_GEN_PKT_CTRL_GENERIC0_SEND 0x00000001
115 #define HDMI_GEN_PKT_CTRL_GENERIC0_CONT 0x00000002
116 #define HDMI_GEN_PKT_CTRL_GENERIC0_UPDATE__MASK 0x0000000c
117 #define HDMI_GEN_PKT_CTRL_GENERIC0_UPDATE__SHIFT 2
118 static inline uint32_t HDMI_GEN_PKT_CTRL_GENERIC0_UPDATE(uint32_t val
)
120 return ((val
) << HDMI_GEN_PKT_CTRL_GENERIC0_UPDATE__SHIFT
) & HDMI_GEN_PKT_CTRL_GENERIC0_UPDATE__MASK
;
122 #define HDMI_GEN_PKT_CTRL_GENERIC1_SEND 0x00000010
123 #define HDMI_GEN_PKT_CTRL_GENERIC1_CONT 0x00000020
124 #define HDMI_GEN_PKT_CTRL_GENERIC0_LINE__MASK 0x003f0000
125 #define HDMI_GEN_PKT_CTRL_GENERIC0_LINE__SHIFT 16
126 static inline uint32_t HDMI_GEN_PKT_CTRL_GENERIC0_LINE(uint32_t val
)
128 return ((val
) << HDMI_GEN_PKT_CTRL_GENERIC0_LINE__SHIFT
) & HDMI_GEN_PKT_CTRL_GENERIC0_LINE__MASK
;
130 #define HDMI_GEN_PKT_CTRL_GENERIC1_LINE__MASK 0x3f000000
131 #define HDMI_GEN_PKT_CTRL_GENERIC1_LINE__SHIFT 24
132 static inline uint32_t HDMI_GEN_PKT_CTRL_GENERIC1_LINE(uint32_t val
)
134 return ((val
) << HDMI_GEN_PKT_CTRL_GENERIC1_LINE__SHIFT
) & HDMI_GEN_PKT_CTRL_GENERIC1_LINE__MASK
;
137 #define REG_HDMI_GC 0x00000040
138 #define HDMI_GC_MUTE 0x00000001
140 #define REG_HDMI_AUDIO_PKT_CTRL2 0x00000044
141 #define HDMI_AUDIO_PKT_CTRL2_OVERRIDE 0x00000001
142 #define HDMI_AUDIO_PKT_CTRL2_LAYOUT 0x00000002
144 static inline uint32_t REG_HDMI_AVI_INFO(uint32_t i0
) { return 0x0000006c + 0x4*i0
; }
146 #define REG_HDMI_GENERIC0_HDR 0x00000084
148 static inline uint32_t REG_HDMI_GENERIC0(uint32_t i0
) { return 0x00000088 + 0x4*i0
; }
150 #define REG_HDMI_GENERIC1_HDR 0x000000a4
152 static inline uint32_t REG_HDMI_GENERIC1(uint32_t i0
) { return 0x000000a8 + 0x4*i0
; }
154 static inline uint32_t REG_HDMI_ACR(enum hdmi_acr_cts i0
) { return 0x000000c4 + 0x8*i0
; }
156 static inline uint32_t REG_HDMI_ACR_0(enum hdmi_acr_cts i0
) { return 0x000000c4 + 0x8*i0
; }
157 #define HDMI_ACR_0_CTS__MASK 0xfffff000
158 #define HDMI_ACR_0_CTS__SHIFT 12
159 static inline uint32_t HDMI_ACR_0_CTS(uint32_t val
)
161 return ((val
) << HDMI_ACR_0_CTS__SHIFT
) & HDMI_ACR_0_CTS__MASK
;
164 static inline uint32_t REG_HDMI_ACR_1(enum hdmi_acr_cts i0
) { return 0x000000c8 + 0x8*i0
; }
165 #define HDMI_ACR_1_N__MASK 0xffffffff
166 #define HDMI_ACR_1_N__SHIFT 0
167 static inline uint32_t HDMI_ACR_1_N(uint32_t val
)
169 return ((val
) << HDMI_ACR_1_N__SHIFT
) & HDMI_ACR_1_N__MASK
;
172 #define REG_HDMI_AUDIO_INFO0 0x000000e4
173 #define HDMI_AUDIO_INFO0_CHECKSUM__MASK 0x000000ff
174 #define HDMI_AUDIO_INFO0_CHECKSUM__SHIFT 0
175 static inline uint32_t HDMI_AUDIO_INFO0_CHECKSUM(uint32_t val
)
177 return ((val
) << HDMI_AUDIO_INFO0_CHECKSUM__SHIFT
) & HDMI_AUDIO_INFO0_CHECKSUM__MASK
;
179 #define HDMI_AUDIO_INFO0_CC__MASK 0x00000700
180 #define HDMI_AUDIO_INFO0_CC__SHIFT 8
181 static inline uint32_t HDMI_AUDIO_INFO0_CC(uint32_t val
)
183 return ((val
) << HDMI_AUDIO_INFO0_CC__SHIFT
) & HDMI_AUDIO_INFO0_CC__MASK
;
186 #define REG_HDMI_AUDIO_INFO1 0x000000e8
187 #define HDMI_AUDIO_INFO1_CA__MASK 0x000000ff
188 #define HDMI_AUDIO_INFO1_CA__SHIFT 0
189 static inline uint32_t HDMI_AUDIO_INFO1_CA(uint32_t val
)
191 return ((val
) << HDMI_AUDIO_INFO1_CA__SHIFT
) & HDMI_AUDIO_INFO1_CA__MASK
;
193 #define HDMI_AUDIO_INFO1_LSV__MASK 0x00007800
194 #define HDMI_AUDIO_INFO1_LSV__SHIFT 11
195 static inline uint32_t HDMI_AUDIO_INFO1_LSV(uint32_t val
)
197 return ((val
) << HDMI_AUDIO_INFO1_LSV__SHIFT
) & HDMI_AUDIO_INFO1_LSV__MASK
;
199 #define HDMI_AUDIO_INFO1_DM_INH 0x00008000
201 #define REG_HDMI_HDCP_CTRL 0x00000110
202 #define HDMI_HDCP_CTRL_ENABLE 0x00000001
203 #define HDMI_HDCP_CTRL_ENCRYPTION_ENABLE 0x00000100
205 #define REG_HDMI_HDCP_DEBUG_CTRL 0x00000114
206 #define HDMI_HDCP_DEBUG_CTRL_RNG_CIPHER 0x00000004
208 #define REG_HDMI_HDCP_INT_CTRL 0x00000118
209 #define HDMI_HDCP_INT_CTRL_AUTH_SUCCESS_INT 0x00000001
210 #define HDMI_HDCP_INT_CTRL_AUTH_SUCCESS_ACK 0x00000002
211 #define HDMI_HDCP_INT_CTRL_AUTH_SUCCESS_MASK 0x00000004
212 #define HDMI_HDCP_INT_CTRL_AUTH_FAIL_INT 0x00000010
213 #define HDMI_HDCP_INT_CTRL_AUTH_FAIL_ACK 0x00000020
214 #define HDMI_HDCP_INT_CTRL_AUTH_FAIL_MASK 0x00000040
215 #define HDMI_HDCP_INT_CTRL_AUTH_FAIL_INFO_ACK 0x00000080
216 #define HDMI_HDCP_INT_CTRL_AUTH_XFER_REQ_INT 0x00000100
217 #define HDMI_HDCP_INT_CTRL_AUTH_XFER_REQ_ACK 0x00000200
218 #define HDMI_HDCP_INT_CTRL_AUTH_XFER_REQ_MASK 0x00000400
219 #define HDMI_HDCP_INT_CTRL_AUTH_XFER_DONE_INT 0x00001000
220 #define HDMI_HDCP_INT_CTRL_AUTH_XFER_DONE_ACK 0x00002000
221 #define HDMI_HDCP_INT_CTRL_AUTH_XFER_DONE_MASK 0x00004000
223 #define REG_HDMI_HDCP_LINK0_STATUS 0x0000011c
224 #define HDMI_HDCP_LINK0_STATUS_AN_0_READY 0x00000100
225 #define HDMI_HDCP_LINK0_STATUS_AN_1_READY 0x00000200
226 #define HDMI_HDCP_LINK0_STATUS_RI_MATCHES 0x00001000
227 #define HDMI_HDCP_LINK0_STATUS_V_MATCHES 0x00100000
228 #define HDMI_HDCP_LINK0_STATUS_KEY_STATE__MASK 0x70000000
229 #define HDMI_HDCP_LINK0_STATUS_KEY_STATE__SHIFT 28
230 static inline uint32_t HDMI_HDCP_LINK0_STATUS_KEY_STATE(enum hdmi_hdcp_key_state val
)
232 return ((val
) << HDMI_HDCP_LINK0_STATUS_KEY_STATE__SHIFT
) & HDMI_HDCP_LINK0_STATUS_KEY_STATE__MASK
;
235 #define REG_HDMI_HDCP_DDC_CTRL_0 0x00000120
236 #define HDMI_HDCP_DDC_CTRL_0_DISABLE 0x00000001
238 #define REG_HDMI_HDCP_DDC_CTRL_1 0x00000124
239 #define HDMI_HDCP_DDC_CTRL_1_FAILED_ACK 0x00000001
241 #define REG_HDMI_HDCP_DDC_STATUS 0x00000128
242 #define HDMI_HDCP_DDC_STATUS_XFER_REQ 0x00000010
243 #define HDMI_HDCP_DDC_STATUS_XFER_DONE 0x00000400
244 #define HDMI_HDCP_DDC_STATUS_ABORTED 0x00001000
245 #define HDMI_HDCP_DDC_STATUS_TIMEOUT 0x00002000
246 #define HDMI_HDCP_DDC_STATUS_NACK0 0x00004000
247 #define HDMI_HDCP_DDC_STATUS_NACK1 0x00008000
248 #define HDMI_HDCP_DDC_STATUS_FAILED 0x00010000
250 #define REG_HDMI_HDCP_ENTROPY_CTRL0 0x0000012c
252 #define REG_HDMI_HDCP_ENTROPY_CTRL1 0x0000025c
254 #define REG_HDMI_HDCP_RESET 0x00000130
255 #define HDMI_HDCP_RESET_LINK0_DEAUTHENTICATE 0x00000001
257 #define REG_HDMI_HDCP_RCVPORT_DATA0 0x00000134
259 #define REG_HDMI_HDCP_RCVPORT_DATA1 0x00000138
261 #define REG_HDMI_HDCP_RCVPORT_DATA2_0 0x0000013c
263 #define REG_HDMI_HDCP_RCVPORT_DATA2_1 0x00000140
265 #define REG_HDMI_HDCP_RCVPORT_DATA3 0x00000144
267 #define REG_HDMI_HDCP_RCVPORT_DATA4 0x00000148
269 #define REG_HDMI_HDCP_RCVPORT_DATA5 0x0000014c
271 #define REG_HDMI_HDCP_RCVPORT_DATA6 0x00000150
273 #define REG_HDMI_HDCP_RCVPORT_DATA7 0x00000154
275 #define REG_HDMI_HDCP_RCVPORT_DATA8 0x00000158
277 #define REG_HDMI_HDCP_RCVPORT_DATA9 0x0000015c
279 #define REG_HDMI_HDCP_RCVPORT_DATA10 0x00000160
281 #define REG_HDMI_HDCP_RCVPORT_DATA11 0x00000164
283 #define REG_HDMI_HDCP_RCVPORT_DATA12 0x00000168
285 #define REG_HDMI_VENSPEC_INFO0 0x0000016c
287 #define REG_HDMI_VENSPEC_INFO1 0x00000170
289 #define REG_HDMI_VENSPEC_INFO2 0x00000174
291 #define REG_HDMI_VENSPEC_INFO3 0x00000178
293 #define REG_HDMI_VENSPEC_INFO4 0x0000017c
295 #define REG_HDMI_VENSPEC_INFO5 0x00000180
297 #define REG_HDMI_VENSPEC_INFO6 0x00000184
299 #define REG_HDMI_AUDIO_CFG 0x000001d0
300 #define HDMI_AUDIO_CFG_ENGINE_ENABLE 0x00000001
301 #define HDMI_AUDIO_CFG_FIFO_WATERMARK__MASK 0x000000f0
302 #define HDMI_AUDIO_CFG_FIFO_WATERMARK__SHIFT 4
303 static inline uint32_t HDMI_AUDIO_CFG_FIFO_WATERMARK(uint32_t val
)
305 return ((val
) << HDMI_AUDIO_CFG_FIFO_WATERMARK__SHIFT
) & HDMI_AUDIO_CFG_FIFO_WATERMARK__MASK
;
308 #define REG_HDMI_USEC_REFTIMER 0x00000208
310 #define REG_HDMI_DDC_CTRL 0x0000020c
311 #define HDMI_DDC_CTRL_GO 0x00000001
312 #define HDMI_DDC_CTRL_SOFT_RESET 0x00000002
313 #define HDMI_DDC_CTRL_SEND_RESET 0x00000004
314 #define HDMI_DDC_CTRL_SW_STATUS_RESET 0x00000008
315 #define HDMI_DDC_CTRL_TRANSACTION_CNT__MASK 0x00300000
316 #define HDMI_DDC_CTRL_TRANSACTION_CNT__SHIFT 20
317 static inline uint32_t HDMI_DDC_CTRL_TRANSACTION_CNT(uint32_t val
)
319 return ((val
) << HDMI_DDC_CTRL_TRANSACTION_CNT__SHIFT
) & HDMI_DDC_CTRL_TRANSACTION_CNT__MASK
;
322 #define REG_HDMI_DDC_ARBITRATION 0x00000210
323 #define HDMI_DDC_ARBITRATION_HW_ARBITRATION 0x00000010
325 #define REG_HDMI_DDC_INT_CTRL 0x00000214
326 #define HDMI_DDC_INT_CTRL_SW_DONE_INT 0x00000001
327 #define HDMI_DDC_INT_CTRL_SW_DONE_ACK 0x00000002
328 #define HDMI_DDC_INT_CTRL_SW_DONE_MASK 0x00000004
330 #define REG_HDMI_DDC_SW_STATUS 0x00000218
331 #define HDMI_DDC_SW_STATUS_NACK0 0x00001000
332 #define HDMI_DDC_SW_STATUS_NACK1 0x00002000
333 #define HDMI_DDC_SW_STATUS_NACK2 0x00004000
334 #define HDMI_DDC_SW_STATUS_NACK3 0x00008000
336 #define REG_HDMI_DDC_HW_STATUS 0x0000021c
337 #define HDMI_DDC_HW_STATUS_DONE 0x00000008
339 #define REG_HDMI_DDC_SPEED 0x00000220
340 #define HDMI_DDC_SPEED_THRESHOLD__MASK 0x00000003
341 #define HDMI_DDC_SPEED_THRESHOLD__SHIFT 0
342 static inline uint32_t HDMI_DDC_SPEED_THRESHOLD(uint32_t val
)
344 return ((val
) << HDMI_DDC_SPEED_THRESHOLD__SHIFT
) & HDMI_DDC_SPEED_THRESHOLD__MASK
;
346 #define HDMI_DDC_SPEED_PRESCALE__MASK 0xffff0000
347 #define HDMI_DDC_SPEED_PRESCALE__SHIFT 16
348 static inline uint32_t HDMI_DDC_SPEED_PRESCALE(uint32_t val
)
350 return ((val
) << HDMI_DDC_SPEED_PRESCALE__SHIFT
) & HDMI_DDC_SPEED_PRESCALE__MASK
;
353 #define REG_HDMI_DDC_SETUP 0x00000224
354 #define HDMI_DDC_SETUP_TIMEOUT__MASK 0xff000000
355 #define HDMI_DDC_SETUP_TIMEOUT__SHIFT 24
356 static inline uint32_t HDMI_DDC_SETUP_TIMEOUT(uint32_t val
)
358 return ((val
) << HDMI_DDC_SETUP_TIMEOUT__SHIFT
) & HDMI_DDC_SETUP_TIMEOUT__MASK
;
361 static inline uint32_t REG_HDMI_I2C_TRANSACTION(uint32_t i0
) { return 0x00000228 + 0x4*i0
; }
363 static inline uint32_t REG_HDMI_I2C_TRANSACTION_REG(uint32_t i0
) { return 0x00000228 + 0x4*i0
; }
364 #define HDMI_I2C_TRANSACTION_REG_RW__MASK 0x00000001
365 #define HDMI_I2C_TRANSACTION_REG_RW__SHIFT 0
366 static inline uint32_t HDMI_I2C_TRANSACTION_REG_RW(enum hdmi_ddc_read_write val
)
368 return ((val
) << HDMI_I2C_TRANSACTION_REG_RW__SHIFT
) & HDMI_I2C_TRANSACTION_REG_RW__MASK
;
370 #define HDMI_I2C_TRANSACTION_REG_STOP_ON_NACK 0x00000100
371 #define HDMI_I2C_TRANSACTION_REG_START 0x00001000
372 #define HDMI_I2C_TRANSACTION_REG_STOP 0x00002000
373 #define HDMI_I2C_TRANSACTION_REG_CNT__MASK 0x00ff0000
374 #define HDMI_I2C_TRANSACTION_REG_CNT__SHIFT 16
375 static inline uint32_t HDMI_I2C_TRANSACTION_REG_CNT(uint32_t val
)
377 return ((val
) << HDMI_I2C_TRANSACTION_REG_CNT__SHIFT
) & HDMI_I2C_TRANSACTION_REG_CNT__MASK
;
380 #define REG_HDMI_DDC_DATA 0x00000238
381 #define HDMI_DDC_DATA_DATA_RW__MASK 0x00000001
382 #define HDMI_DDC_DATA_DATA_RW__SHIFT 0
383 static inline uint32_t HDMI_DDC_DATA_DATA_RW(enum hdmi_ddc_read_write val
)
385 return ((val
) << HDMI_DDC_DATA_DATA_RW__SHIFT
) & HDMI_DDC_DATA_DATA_RW__MASK
;
387 #define HDMI_DDC_DATA_DATA__MASK 0x0000ff00
388 #define HDMI_DDC_DATA_DATA__SHIFT 8
389 static inline uint32_t HDMI_DDC_DATA_DATA(uint32_t val
)
391 return ((val
) << HDMI_DDC_DATA_DATA__SHIFT
) & HDMI_DDC_DATA_DATA__MASK
;
393 #define HDMI_DDC_DATA_INDEX__MASK 0x00ff0000
394 #define HDMI_DDC_DATA_INDEX__SHIFT 16
395 static inline uint32_t HDMI_DDC_DATA_INDEX(uint32_t val
)
397 return ((val
) << HDMI_DDC_DATA_INDEX__SHIFT
) & HDMI_DDC_DATA_INDEX__MASK
;
399 #define HDMI_DDC_DATA_INDEX_WRITE 0x80000000
401 #define REG_HDMI_HDCP_SHA_CTRL 0x0000023c
403 #define REG_HDMI_HDCP_SHA_STATUS 0x00000240
404 #define HDMI_HDCP_SHA_STATUS_BLOCK_DONE 0x00000001
405 #define HDMI_HDCP_SHA_STATUS_COMP_DONE 0x00000010
407 #define REG_HDMI_HDCP_SHA_DATA 0x00000244
408 #define HDMI_HDCP_SHA_DATA_DONE 0x00000001
410 #define REG_HDMI_HPD_INT_STATUS 0x00000250
411 #define HDMI_HPD_INT_STATUS_INT 0x00000001
412 #define HDMI_HPD_INT_STATUS_CABLE_DETECTED 0x00000002
414 #define REG_HDMI_HPD_INT_CTRL 0x00000254
415 #define HDMI_HPD_INT_CTRL_INT_ACK 0x00000001
416 #define HDMI_HPD_INT_CTRL_INT_CONNECT 0x00000002
417 #define HDMI_HPD_INT_CTRL_INT_EN 0x00000004
418 #define HDMI_HPD_INT_CTRL_RX_INT_ACK 0x00000010
419 #define HDMI_HPD_INT_CTRL_RX_INT_EN 0x00000020
420 #define HDMI_HPD_INT_CTRL_RCV_PLUGIN_DET_MASK 0x00000200
422 #define REG_HDMI_HPD_CTRL 0x00000258
423 #define HDMI_HPD_CTRL_TIMEOUT__MASK 0x00001fff
424 #define HDMI_HPD_CTRL_TIMEOUT__SHIFT 0
425 static inline uint32_t HDMI_HPD_CTRL_TIMEOUT(uint32_t val
)
427 return ((val
) << HDMI_HPD_CTRL_TIMEOUT__SHIFT
) & HDMI_HPD_CTRL_TIMEOUT__MASK
;
429 #define HDMI_HPD_CTRL_ENABLE 0x10000000
431 #define REG_HDMI_DDC_REF 0x0000027c
432 #define HDMI_DDC_REF_REFTIMER_ENABLE 0x00010000
433 #define HDMI_DDC_REF_REFTIMER__MASK 0x0000ffff
434 #define HDMI_DDC_REF_REFTIMER__SHIFT 0
435 static inline uint32_t HDMI_DDC_REF_REFTIMER(uint32_t val
)
437 return ((val
) << HDMI_DDC_REF_REFTIMER__SHIFT
) & HDMI_DDC_REF_REFTIMER__MASK
;
440 #define REG_HDMI_HDCP_SW_UPPER_AKSV 0x00000284
442 #define REG_HDMI_HDCP_SW_LOWER_AKSV 0x00000288
444 #define REG_HDMI_CEC_STATUS 0x00000298
446 #define REG_HDMI_CEC_INT 0x0000029c
448 #define REG_HDMI_CEC_ADDR 0x000002a0
450 #define REG_HDMI_CEC_TIME 0x000002a4
452 #define REG_HDMI_CEC_REFTIMER 0x000002a8
454 #define REG_HDMI_CEC_RD_DATA 0x000002ac
456 #define REG_HDMI_CEC_RD_FILTER 0x000002b0
458 #define REG_HDMI_ACTIVE_HSYNC 0x000002b4
459 #define HDMI_ACTIVE_HSYNC_START__MASK 0x00000fff
460 #define HDMI_ACTIVE_HSYNC_START__SHIFT 0
461 static inline uint32_t HDMI_ACTIVE_HSYNC_START(uint32_t val
)
463 return ((val
) << HDMI_ACTIVE_HSYNC_START__SHIFT
) & HDMI_ACTIVE_HSYNC_START__MASK
;
465 #define HDMI_ACTIVE_HSYNC_END__MASK 0x0fff0000
466 #define HDMI_ACTIVE_HSYNC_END__SHIFT 16
467 static inline uint32_t HDMI_ACTIVE_HSYNC_END(uint32_t val
)
469 return ((val
) << HDMI_ACTIVE_HSYNC_END__SHIFT
) & HDMI_ACTIVE_HSYNC_END__MASK
;
472 #define REG_HDMI_ACTIVE_VSYNC 0x000002b8
473 #define HDMI_ACTIVE_VSYNC_START__MASK 0x00000fff
474 #define HDMI_ACTIVE_VSYNC_START__SHIFT 0
475 static inline uint32_t HDMI_ACTIVE_VSYNC_START(uint32_t val
)
477 return ((val
) << HDMI_ACTIVE_VSYNC_START__SHIFT
) & HDMI_ACTIVE_VSYNC_START__MASK
;
479 #define HDMI_ACTIVE_VSYNC_END__MASK 0x0fff0000
480 #define HDMI_ACTIVE_VSYNC_END__SHIFT 16
481 static inline uint32_t HDMI_ACTIVE_VSYNC_END(uint32_t val
)
483 return ((val
) << HDMI_ACTIVE_VSYNC_END__SHIFT
) & HDMI_ACTIVE_VSYNC_END__MASK
;
486 #define REG_HDMI_VSYNC_ACTIVE_F2 0x000002bc
487 #define HDMI_VSYNC_ACTIVE_F2_START__MASK 0x00000fff
488 #define HDMI_VSYNC_ACTIVE_F2_START__SHIFT 0
489 static inline uint32_t HDMI_VSYNC_ACTIVE_F2_START(uint32_t val
)
491 return ((val
) << HDMI_VSYNC_ACTIVE_F2_START__SHIFT
) & HDMI_VSYNC_ACTIVE_F2_START__MASK
;
493 #define HDMI_VSYNC_ACTIVE_F2_END__MASK 0x0fff0000
494 #define HDMI_VSYNC_ACTIVE_F2_END__SHIFT 16
495 static inline uint32_t HDMI_VSYNC_ACTIVE_F2_END(uint32_t val
)
497 return ((val
) << HDMI_VSYNC_ACTIVE_F2_END__SHIFT
) & HDMI_VSYNC_ACTIVE_F2_END__MASK
;
500 #define REG_HDMI_TOTAL 0x000002c0
501 #define HDMI_TOTAL_H_TOTAL__MASK 0x00000fff
502 #define HDMI_TOTAL_H_TOTAL__SHIFT 0
503 static inline uint32_t HDMI_TOTAL_H_TOTAL(uint32_t val
)
505 return ((val
) << HDMI_TOTAL_H_TOTAL__SHIFT
) & HDMI_TOTAL_H_TOTAL__MASK
;
507 #define HDMI_TOTAL_V_TOTAL__MASK 0x0fff0000
508 #define HDMI_TOTAL_V_TOTAL__SHIFT 16
509 static inline uint32_t HDMI_TOTAL_V_TOTAL(uint32_t val
)
511 return ((val
) << HDMI_TOTAL_V_TOTAL__SHIFT
) & HDMI_TOTAL_V_TOTAL__MASK
;
514 #define REG_HDMI_VSYNC_TOTAL_F2 0x000002c4
515 #define HDMI_VSYNC_TOTAL_F2_V_TOTAL__MASK 0x00000fff
516 #define HDMI_VSYNC_TOTAL_F2_V_TOTAL__SHIFT 0
517 static inline uint32_t HDMI_VSYNC_TOTAL_F2_V_TOTAL(uint32_t val
)
519 return ((val
) << HDMI_VSYNC_TOTAL_F2_V_TOTAL__SHIFT
) & HDMI_VSYNC_TOTAL_F2_V_TOTAL__MASK
;
522 #define REG_HDMI_FRAME_CTRL 0x000002c8
523 #define HDMI_FRAME_CTRL_RGB_MUX_SEL_BGR 0x00001000
524 #define HDMI_FRAME_CTRL_VSYNC_LOW 0x10000000
525 #define HDMI_FRAME_CTRL_HSYNC_LOW 0x20000000
526 #define HDMI_FRAME_CTRL_INTERLACED_EN 0x80000000
528 #define REG_HDMI_AUD_INT 0x000002cc
529 #define HDMI_AUD_INT_AUD_FIFO_URUN_INT 0x00000001
530 #define HDMI_AUD_INT_AUD_FIFO_URAN_MASK 0x00000002
531 #define HDMI_AUD_INT_AUD_SAM_DROP_INT 0x00000004
532 #define HDMI_AUD_INT_AUD_SAM_DROP_MASK 0x00000008
534 #define REG_HDMI_PHY_CTRL 0x000002d4
535 #define HDMI_PHY_CTRL_SW_RESET_PLL 0x00000001
536 #define HDMI_PHY_CTRL_SW_RESET_PLL_LOW 0x00000002
537 #define HDMI_PHY_CTRL_SW_RESET 0x00000004
538 #define HDMI_PHY_CTRL_SW_RESET_LOW 0x00000008
540 #define REG_HDMI_CEC_WR_RANGE 0x000002dc
542 #define REG_HDMI_CEC_RD_RANGE 0x000002e0
544 #define REG_HDMI_VERSION 0x000002e4
546 #define REG_HDMI_CEC_COMPL_CTL 0x00000360
548 #define REG_HDMI_CEC_RD_START_RANGE 0x00000364
550 #define REG_HDMI_CEC_RD_TOTAL_RANGE 0x00000368
552 #define REG_HDMI_CEC_RD_ERR_RESP_LO 0x0000036c
554 #define REG_HDMI_CEC_WR_CHECK_CONFIG 0x00000370
556 #define REG_HDMI_8x60_PHY_REG0 0x00000300
557 #define HDMI_8x60_PHY_REG0_DESER_DEL_CTRL__MASK 0x0000001c
558 #define HDMI_8x60_PHY_REG0_DESER_DEL_CTRL__SHIFT 2
559 static inline uint32_t HDMI_8x60_PHY_REG0_DESER_DEL_CTRL(uint32_t val
)
561 return ((val
) << HDMI_8x60_PHY_REG0_DESER_DEL_CTRL__SHIFT
) & HDMI_8x60_PHY_REG0_DESER_DEL_CTRL__MASK
;
564 #define REG_HDMI_8x60_PHY_REG1 0x00000304
565 #define HDMI_8x60_PHY_REG1_DTEST_MUX_SEL__MASK 0x000000f0
566 #define HDMI_8x60_PHY_REG1_DTEST_MUX_SEL__SHIFT 4
567 static inline uint32_t HDMI_8x60_PHY_REG1_DTEST_MUX_SEL(uint32_t val
)
569 return ((val
) << HDMI_8x60_PHY_REG1_DTEST_MUX_SEL__SHIFT
) & HDMI_8x60_PHY_REG1_DTEST_MUX_SEL__MASK
;
571 #define HDMI_8x60_PHY_REG1_OUTVOL_SWING_CTRL__MASK 0x0000000f
572 #define HDMI_8x60_PHY_REG1_OUTVOL_SWING_CTRL__SHIFT 0
573 static inline uint32_t HDMI_8x60_PHY_REG1_OUTVOL_SWING_CTRL(uint32_t val
)
575 return ((val
) << HDMI_8x60_PHY_REG1_OUTVOL_SWING_CTRL__SHIFT
) & HDMI_8x60_PHY_REG1_OUTVOL_SWING_CTRL__MASK
;
578 #define REG_HDMI_8x60_PHY_REG2 0x00000308
579 #define HDMI_8x60_PHY_REG2_PD_DESER 0x00000001
580 #define HDMI_8x60_PHY_REG2_PD_DRIVE_1 0x00000002
581 #define HDMI_8x60_PHY_REG2_PD_DRIVE_2 0x00000004
582 #define HDMI_8x60_PHY_REG2_PD_DRIVE_3 0x00000008
583 #define HDMI_8x60_PHY_REG2_PD_DRIVE_4 0x00000010
584 #define HDMI_8x60_PHY_REG2_PD_PLL 0x00000020
585 #define HDMI_8x60_PHY_REG2_PD_PWRGEN 0x00000040
586 #define HDMI_8x60_PHY_REG2_RCV_SENSE_EN 0x00000080
588 #define REG_HDMI_8x60_PHY_REG3 0x0000030c
589 #define HDMI_8x60_PHY_REG3_PLL_ENABLE 0x00000001
591 #define REG_HDMI_8x60_PHY_REG4 0x00000310
593 #define REG_HDMI_8x60_PHY_REG5 0x00000314
595 #define REG_HDMI_8x60_PHY_REG6 0x00000318
597 #define REG_HDMI_8x60_PHY_REG7 0x0000031c
599 #define REG_HDMI_8x60_PHY_REG8 0x00000320
601 #define REG_HDMI_8x60_PHY_REG9 0x00000324
603 #define REG_HDMI_8x60_PHY_REG10 0x00000328
605 #define REG_HDMI_8x60_PHY_REG11 0x0000032c
607 #define REG_HDMI_8x60_PHY_REG12 0x00000330
608 #define HDMI_8x60_PHY_REG12_RETIMING_EN 0x00000001
609 #define HDMI_8x60_PHY_REG12_PLL_LOCK_DETECT_EN 0x00000002
610 #define HDMI_8x60_PHY_REG12_FORCE_LOCK 0x00000010
612 #define REG_HDMI_8960_PHY_REG0 0x00000400
614 #define REG_HDMI_8960_PHY_REG1 0x00000404
616 #define REG_HDMI_8960_PHY_REG2 0x00000408
618 #define REG_HDMI_8960_PHY_REG3 0x0000040c
620 #define REG_HDMI_8960_PHY_REG4 0x00000410
622 #define REG_HDMI_8960_PHY_REG5 0x00000414
624 #define REG_HDMI_8960_PHY_REG6 0x00000418
626 #define REG_HDMI_8960_PHY_REG7 0x0000041c
628 #define REG_HDMI_8960_PHY_REG8 0x00000420
630 #define REG_HDMI_8960_PHY_REG9 0x00000424
632 #define REG_HDMI_8960_PHY_REG10 0x00000428
634 #define REG_HDMI_8960_PHY_REG11 0x0000042c
636 #define REG_HDMI_8960_PHY_REG12 0x00000430
637 #define HDMI_8960_PHY_REG12_SW_RESET 0x00000020
638 #define HDMI_8960_PHY_REG12_PWRDN_B 0x00000080
640 #define REG_HDMI_8960_PHY_REG_BIST_CFG 0x00000434
642 #define REG_HDMI_8960_PHY_DEBUG_BUS_SEL 0x00000438
644 #define REG_HDMI_8960_PHY_REG_MISC0 0x0000043c
646 #define REG_HDMI_8960_PHY_REG13 0x00000440
648 #define REG_HDMI_8960_PHY_REG14 0x00000444
650 #define REG_HDMI_8960_PHY_REG15 0x00000448
652 #define REG_HDMI_8960_PHY_PLL_REFCLK_CFG 0x00000500
654 #define REG_HDMI_8960_PHY_PLL_CHRG_PUMP_CFG 0x00000504
656 #define REG_HDMI_8960_PHY_PLL_LOOP_FLT_CFG0 0x00000508
658 #define REG_HDMI_8960_PHY_PLL_LOOP_FLT_CFG1 0x0000050c
660 #define REG_HDMI_8960_PHY_PLL_IDAC_ADJ_CFG 0x00000510
662 #define REG_HDMI_8960_PHY_PLL_I_VI_KVCO_CFG 0x00000514
664 #define REG_HDMI_8960_PHY_PLL_PWRDN_B 0x00000518
665 #define HDMI_8960_PHY_PLL_PWRDN_B_PD_PLL 0x00000002
666 #define HDMI_8960_PHY_PLL_PWRDN_B_PLL_PWRDN_B 0x00000008
668 #define REG_HDMI_8960_PHY_PLL_SDM_CFG0 0x0000051c
670 #define REG_HDMI_8960_PHY_PLL_SDM_CFG1 0x00000520
672 #define REG_HDMI_8960_PHY_PLL_SDM_CFG2 0x00000524
674 #define REG_HDMI_8960_PHY_PLL_SDM_CFG3 0x00000528
676 #define REG_HDMI_8960_PHY_PLL_SDM_CFG4 0x0000052c
678 #define REG_HDMI_8960_PHY_PLL_SSC_CFG0 0x00000530
680 #define REG_HDMI_8960_PHY_PLL_SSC_CFG1 0x00000534
682 #define REG_HDMI_8960_PHY_PLL_SSC_CFG2 0x00000538
684 #define REG_HDMI_8960_PHY_PLL_SSC_CFG3 0x0000053c
686 #define REG_HDMI_8960_PHY_PLL_LOCKDET_CFG0 0x00000540
688 #define REG_HDMI_8960_PHY_PLL_LOCKDET_CFG1 0x00000544
690 #define REG_HDMI_8960_PHY_PLL_LOCKDET_CFG2 0x00000548
692 #define REG_HDMI_8960_PHY_PLL_VCOCAL_CFG0 0x0000054c
694 #define REG_HDMI_8960_PHY_PLL_VCOCAL_CFG1 0x00000550
696 #define REG_HDMI_8960_PHY_PLL_VCOCAL_CFG2 0x00000554
698 #define REG_HDMI_8960_PHY_PLL_VCOCAL_CFG3 0x00000558
700 #define REG_HDMI_8960_PHY_PLL_VCOCAL_CFG4 0x0000055c
702 #define REG_HDMI_8960_PHY_PLL_VCOCAL_CFG5 0x00000560
704 #define REG_HDMI_8960_PHY_PLL_VCOCAL_CFG6 0x00000564
706 #define REG_HDMI_8960_PHY_PLL_VCOCAL_CFG7 0x00000568
708 #define REG_HDMI_8960_PHY_PLL_DEBUG_SEL 0x0000056c
710 #define REG_HDMI_8960_PHY_PLL_MISC0 0x00000570
712 #define REG_HDMI_8960_PHY_PLL_MISC1 0x00000574
714 #define REG_HDMI_8960_PHY_PLL_MISC2 0x00000578
716 #define REG_HDMI_8960_PHY_PLL_MISC3 0x0000057c
718 #define REG_HDMI_8960_PHY_PLL_MISC4 0x00000580
720 #define REG_HDMI_8960_PHY_PLL_MISC5 0x00000584
722 #define REG_HDMI_8960_PHY_PLL_MISC6 0x00000588
724 #define REG_HDMI_8960_PHY_PLL_DEBUG_BUS0 0x0000058c
726 #define REG_HDMI_8960_PHY_PLL_DEBUG_BUS1 0x00000590
728 #define REG_HDMI_8960_PHY_PLL_DEBUG_BUS2 0x00000594
730 #define REG_HDMI_8960_PHY_PLL_STATUS0 0x00000598
731 #define HDMI_8960_PHY_PLL_STATUS0_PLL_LOCK 0x00000001
733 #define REG_HDMI_8960_PHY_PLL_STATUS1 0x0000059c
735 #define REG_HDMI_8x74_ANA_CFG0 0x00000000
737 #define REG_HDMI_8x74_ANA_CFG1 0x00000004
739 #define REG_HDMI_8x74_PD_CTRL0 0x00000010
741 #define REG_HDMI_8x74_PD_CTRL1 0x00000014
743 #define REG_HDMI_8x74_BIST_CFG0 0x00000034
745 #define REG_HDMI_8x74_BIST_PATN0 0x0000003c
747 #define REG_HDMI_8x74_BIST_PATN1 0x00000040
749 #define REG_HDMI_8x74_BIST_PATN2 0x00000044
751 #define REG_HDMI_8x74_BIST_PATN3 0x00000048
754 #endif /* HDMI_XML */