CHROMIUM: drm/anx7808: Add Aux channel reading.
[cascardo/linux.git] / drivers / gpu / drm / bridge / anx7808regs.h
1 /*
2  * Copyright(c) 2012, Analogix Semiconductor. All rights reserved.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 and
6  * only version 2 as published by the Free Software Foundation.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  */
14
15 #ifndef _SP_TX_REG_DEF_H
16 #define _SP_TX_REG_DEF_H
17
18 #define TX_P0 0x70
19 #define TX_P1 0x7A
20 #define TX_P2 0x72
21
22 #define RX_P0 0x7E
23 #define RX_P1 0x80
24
25 /***************************************************************/
26 /* DEV_ADDR = 0x7e , HDMI port register*/
27 #define HDMI_RX_PORT_SEL_REG 0x7E10
28 #define DDC_EN 0x10
29 #define TMDS_EN 0x01
30
31 #define HDMI_RX_SRST_REG 0x7E11
32 #define VIDEO_RST 0x10
33 #define HDCP_MAN_RST 0x04
34 #define TMDS_RST 0x02
35 #define SW_MAN_RST 0x01
36
37 #define HDMI_RX_SYS_STATUS_REG 0x7E14
38 #define PWR5V 0x08
39 #define TMDS_VSYNC_DET 0x04
40 #define TMDS_CLOCK_DET 0x02
41 #define TMDS_DE_DET 0x01
42
43 #define HDMI_RX_HDMI_STATUS_REG 0x7E15
44 #define DEEP_COLOR_MODE 0x40
45 #define HDMI_AUD_LAYOUT 0x08
46 #define MUTE_STAT 0x04
47 #define HDMI_MODE 0x01
48
49 #define HDMI_RX_HDMI_MUTE_CTRL_REG 0x7E16
50 #define MUTE_POL 0x04
51 #define AUD_MUTE 0x02
52 #define VID_MUTE 0x01
53
54 #define HDMI_RX_SYS_CTRL1_REG 0x7E17
55
56 #define HDMI_RX_SYS_PWDN1_REG 0x7E18
57 #define PWDN_CTRL 0x01
58
59 #define HDMI_RX_AEC_CTRL_REG 0x7E20
60 #define AVC_OE 0x80
61 #define AAC_OE 0x40
62 #define AVC_EN 0x02
63 #define AAC_EN 0x01
64
65 #define HDMI_RX_AEC_EN0_REG 0x7E24
66 #define AEC_EN07 0x80
67 #define AEC_EN06 0x40
68 #define AEC_EN05 0x20
69 #define AEC_EN04 0x10
70 #define AEC_EN03 0x08
71 #define AEC_EN02 0x04
72 #define AEC_EN01 0x02
73 #define AEC_EN00 0x01
74
75 #define HDMI_RX_AEC_EN1_REG 0x7E25
76 #define AEC_EN15 0x80
77 #define AEC_EN14 0x40
78 #define AEC_EN13 0x20
79 #define AEC_EN12 0x10
80 #define AEC_EN11 0x08
81 #define AEC_EN10 0x04
82 #define AEC_EN09 0x02
83 #define AEC_EN08 0x01
84
85 #define HDMI_RX_AEC_EN2_REG 0x7E26
86 #define AEC_EN23 0x80
87 #define AEC_EN22 0x40
88 #define AEC_EN21 0x20
89 #define AEC_EN20 0x10
90 #define AEC_EN19 0x08
91 #define AEC_EN18 0x04
92 #define AEC_EN17 0x02
93 #define AEC_EN16 0x01
94
95 #define HDMI_RX_INT_STATUS1_REG 0x7E31
96 #define HDMI_DVI 0x80
97 #define CKDT_CHANGE 0x40
98 #define SCDT_CHANGE 0x20
99 #define PCLK_CHANGE 0x10
100 #define PLL_UNLOCK 0x08
101 #define CABLE_UNPLUG 0x04
102 #define SET_MUTE 0x02
103 #define SW_INTR 0x01
104
105 #define HDMI_RX_INT_STATUS2_REG 0x7E32
106 #define AUTH_START 0x80
107 #define AUTH_DONE 0x40
108 #define HDCP_ERR 0x20
109 #define ECC_ERR 0x10
110
111 #define HDMI_RX_INT_STATUS3_REG 0x7E33
112 #define AUD_MODE_CHANGE 0x01
113
114 #define HDMI_RX_INT_STATUS4_REG 0x7E34
115 #define VSYNC_DET 0x80
116 #define SYNC_POL_CHANGE 0x40
117 #define V_RES_CHANGE 0x20
118 #define H_RES_CHANGE 0x10
119 #define I_P_CHANGE 0x08
120 #define DP_CHANGE 0x04
121 #define COLOR_DEPTH_CHANGE 0x02
122 #define COLOR_MODE_CHANGE 0x01
123
124 #define HDMI_RX_INT_STATUS5_REG 0x7E35
125 #define VFIFO_OVERFLOW 0x80
126 #define VFIFO_UNDERFLOW 0x40
127 #define CTS_N_ERR 0x08
128 #define NO_AVI 0x02
129 #define AUDIO_RCV 0x01
130
131 #define HDMI_RX_INT_STATUS6_REG 0x7E36
132 #define CTS_RCV 0x80
133 #define NEW_UNR_PKT 0x40
134 #define NEW_MPEG 0x20
135 #define NEW_AUD 0x10
136 #define NEW_SPD 0x08
137 #define NEW_ACP 0x04
138 #define NEW_AVI 0x02
139 #define NEW_CP 0x01
140
141 #define HDMI_RX_INT_STATUS7_REG 0x7E37
142 #define NO_VSI 0x80
143 #define HSYNC_DET 0x20
144 #define NEW_VS 0x10
145 #define NO_ACP 0x08
146 #define REF_CLK_CHG 0x04
147 #define CEC_RX_READY 0x02
148 #define CEC_TX_DONE 0x01
149
150 #define HDMI_RX_PKT_RX_INDU_INT_CTRL 0x7E3F
151 #define NEW_VS_CTRL 0x80
152 #define NEW_UNR 0x40
153 #define NEW_MPEG 0x20
154 #define NEW_AUD 0x10
155 #define NEW_SPD 0x08
156 #define NEW_ACP 0x04
157 #define NEW_AVI 0x02
158 #define HDMI_RX_INT_MASK1_REG 0x7E41
159 #define HDMI_RX_INT_MASK2_REG 0x7E42
160 #define HDMI_RX_INT_MASK3_REG 0x7E43
161 #define HDMI_RX_INT_MASK4_REG 0x7E44
162 #define HDMI_RX_INT_MASK5_REG 0x7E45
163 #define HDMI_RX_INT_MASK6_REG 0x7E46
164 #define HDMI_RX_INT_MASK7_REG 0x7E47
165
166 #define HDMI_RX_TMDS_CTRL_REG2 0x7E51
167 #define HDMI_RX_TMDS_CTRL_REG4 0x7E53
168 #define HDMI_RX_TMDS_CTRL_REG5 0x7E54
169 #define HDMI_RX_TMDS_CTRL_REG6 0x7E55
170 #define TERM_PD 0x01
171 #define HDMI_RX_TMDS_CTRL_REG7 0x7E56
172 #define HDMI_RX_TMDS_CTRL_REG18 0x7E61
173 #define PLL_RESET 0x10
174
175 #define HDMI_RX_TMDS_CTRL_REG19 0x7E62
176 #define HDMI_RX_TMDS_CTRL_REG21 0x7E64
177 #define HDMI_RX_TMDS_CTRL_REG22 0x7E65
178
179 #define HDMI_RX_VIDEO_STATUS_REG1 0x7E70
180 #define COLOR_DEPTH 0xF0
181 #define DEFAULT_PHASE 0x08
182 #define VIDEO_TYPE 0x04
183
184 #define HDMI_RX_HTOTAL_LOW 0x7E71
185 #define HDMI_RX_HTOTAL_HIGH 0x7E72
186 #define HDMI_RX_VTOTAL_LOW 0x7E73
187 #define HDMI_RX_VTOTAL_HIGH 0x7E74
188
189 #define HDMI_RX_HACT_LOW 0x7E75
190 #define HDMI_RX_HACT_HIGH 0x7E76
191 #define HDMI_RX_VACT_LOW 0x7E77
192 #define HDMI_RX_VACT_HIGH 0x7E78
193
194 #define HDMI_RX_V_SYNC_WIDTH 0x7E79
195 #define HDMI_RX_V_BACK_PORCH 0x7E7A
196 #define HDMI_RX_H_FRONT_PORCH_LOW 0x7E7B
197 #define HDMI_RX_H_FRONT_PORCH_HIGH 0x7E7C
198
199 #define HDMI_RX_H_SYNC_WIDTH_LOW 0x7E7D
200 #define HDMI_RX_H_SYNC_WIDTH_HIGH 0x7E7E
201
202 #define HDMI_RX_VID_DATA_RNG_CTRL_REG 0x7E83
203 #define YC_LIMT 0x10
204 #define OUTPUT_LIMIT_EN 0x08
205 #define OUTPUT_LIMIT_RANGE 0x04
206 #define R2Y_INPUT_LIMIT 0x02
207 #define XVYCC_LIMIT 0x01
208
209 #define HDMI_RX_VID_OUTPUT_CTRL3_REG 0x7E86
210
211 #define HDMI_RX_VID_PCLK_CNTR_REG 0x7E8B
212
213 #define HDMI_RX_AUD_IN_CH_STATUS1_REG 0x7EC7
214 #define HDMI_RX_AUD_IN_CH_STATUS4_REG 0x7ECA
215
216 #define HDMI_RX_CEC_CTRL_REG 0x7ED0
217 #define CEC_RX_EN 0x08
218 #define CEC_TX_ST 0x04
219 #define CEC_PIN_SEL 0x02
220 #define CEC_RST 0x01
221
222 #define HDMI_RX_CEC_SPEED_CTRL_REG 0x7ED4
223 #define CEC_SPEED_27M 0x40
224
225 #define HDMI_RX_HDMI_CRITERIA_REG 0x7EE1
226
227 #define HDMI_RX_HDCP_EN_CRITERIA_REG 0x7EE2
228 #define ENC_EN_MODE 0x20
229
230 #define HDMI_RX_CHIP_CTRL_REG 0x7EE3
231 #define MAN_HDMI5V_DET 0x08
232 #define PLLLOCK_CKDT_EN 0x04
233 #define ANALOG_CKDT_EN 0x02
234 #define DIGITAL_CKDT_EN 0x01
235
236 /***************************************************************/
237 /*Register definition of device address 0x80*/
238
239 #define HDMI_RX_HDCP_STATUS_REG 0x803F
240 #define ADV_CIPHER 0x80
241 #define LOAD_KEY_DONE 0x40
242 #define DECRYPT_EN 0x20
243 #define AUTH_EN 0x10
244 #define BKSV_DISABLE 0x02
245 #define CLEAR_RI 0x01
246
247 #define HDMI_RX_SPD_TYPE_REG 0x8040
248 #define HDMI_RX_SPD_VER_REG 0x8041
249 #define HDMI_RX_SPD_LEN_REG 0x8042
250 #define HDMI_RX_SPD_CHKSUM_REG 0x8043
251 #define HDMI_RX_SPD_DATA00_REG 0x8044
252
253 #define HDMI_RX_ACP_HB0_REG 0x8060
254 #define HDMI_RX_ACP_HB1_REG 0x8061
255 #define HDMI_RX_ACP_HB2_REG 0x8062
256 #define HDMI_RX_ACP_DATA00_REG 0x8063
257
258 #define HDMI_RX_AVI_TYPE_REG 0x80A0
259 #define HDMI_RX_AVI_VER_REG 0x80A1
260 #define HDMI_RX_AVI_LEN_REG 0x80A2
261 #define HDMI_RX_AVI_CHKSUM_REG 0x80A3
262 #define HDMI_RX_AVI_DATA00_REG 0x80A4
263
264 #define HDMI_RX_AUDIO_TYPE_REG 0x80C0
265 #define HDMI_RX_AUDIO_VER_REG 0x80C1
266 #define HDMI_RX_AUDIO_LEN_REG 0x80C2
267 #define HDMI_RX_AUDIO_CHKSUM_REG 0x80C3
268 #define HDMI_RX_AUDIO_DATA00_REG 0x80C4
269
270 #define HDMI_RX_MPEG_TYPE_REG 0x80E0
271 #define HDMI_RX_MPEG_VER_REG 0x80E1
272 #define HDMI_RX_MPEG_LEN_REG 0x80E2
273 #define HDMI_RX_MPEG_CHKSUM_REG 0x80E3
274 #define HDMI_RX_MPEG_DATA00_REG 0x80E4
275 #define HDMI_RX_MPEG_DATA03_REG 0x80E7
276 #define HDMI_RX_MPEG_DATA05_REG 0x80E9
277
278 #define HDMI_RX_SPD_INFO_CTRL 0x805F
279 #define HDMI_RX_ACP_INFO_CTRL 0x807F
280
281 #define HDMI_RX_GENERAL_CTRL 0x809F
282 #define SET_AVMUTE 0x01
283 #define CLEAR_AVMUTE 0x10
284
285 #define HDMI_RX_MPEG_VS_CTRL 0x80DF
286 #define HDMI_RX_MPEG_VS_INFO_CTRL 0x80FF
287
288 /***************************************************************/
289 /*Register definition of device address 0x70*/
290 #define SP_TX_HDCP_STATUS 0x7000
291 #define SP_TX_HDCP_AUTH_PASS 0x7002
292
293 #define SP_TX_HDCP_CTRL0_REG 0x7001
294 #define STORE_AN 0x80
295 #define RX_REPEATER 0x40
296 #define RE_AUTH 0x20
297 #define SW_AUTH_OK 0x10
298 #define HARD_AUTH_EN 0x08
299 #define ENC_EN 0x04
300 #define BKSV_SRM_PASS 0x02
301 #define KSVLIST_VLD 0x01
302
303 #define SP_TX_HDCP_CTRL1_REG 0x7002
304 #define AINFO_EN 0x04
305 #define RCV_11_EN 0x02
306 #define HDCP_11_EN 0x01
307
308 #define SP_TX_HDCP_LINK_CHK_FRAME_NUM 0x7003
309 #define SP_TX_HDCP_CTRL2_REG 0x7004
310 #define SP_TX_HDCP_KEY_STATUS 0x701E
311
312 #define SP_TX_VID_BLANK_SET1 0x702C
313 #define SP_TX_VID_BLANK_SET2 0x702D
314 #define SP_TX_VID_BLANK_SET3 0x702E
315
316 #define SP_TX_WAIT_R0_TIME 0x7040
317 #define SP_TX_LINK_CHK_TIMER 0x7041
318 #define SP_TX_WAIT_KSVR_TIME 0x7042
319
320 #define M_VID_0 0x70C0
321 #define M_VID_1 0x70C1
322 #define M_VID_2 0x70C2
323 #define N_VID_0 0x70C3
324 #define N_VID_1 0x70C4
325 #define N_VID_2 0x70C5
326
327 #define SP_TX_SYS_CTRL1_REG 0x7080
328 #define CHIP_AUTH_RESET 0x80
329 #define PD_BYPASS_CHIP_AUTH 0x40
330 #define DET_STA 0x04
331 #define FORCE_DET 0x02
332 #define DET_CTRL 0x01
333
334 #define SP_TX_SYS_CTRL2_REG 0x7081
335 #define CHA_STA 0x04
336 #define FORCE_CHA 0x02
337 #define CHA_CTRL 0x01
338
339 #define SP_TX_SYS_CTRL3_REG 0x7082
340 #define HPD_STATUS 0x40
341 #define F_HPD 0x20
342 #define HPD_CTRL 0x10
343 #define STRM_VALID 0x04
344 #define F_VALID 0x02
345 #define VALID_CTRL 0x01
346
347 #define SP_TX_SYS_CTRL4_REG 0x7083
348 #define ENHANCED_MODE 0x08
349
350 #define SP_TX_VID_CTRL 0x7084
351
352 #define SP_TX_AUD_CTRL 0x7087
353 #define AUD_EN 0x01
354
355 #define I2C_GEN_10US_TIMER0 0x7088
356 #define I2C_GEN_10US_TIMER1 0x7089
357
358 #define SP_TX_PKT_EN_REG 0x7090
359 #define AUD_IF_UP 0x80
360 #define AVI_IF_UD 0x40
361 #define MPEG_IF_UD 0x20
362 #define SPD_IF_UD 0x10
363 #define AUD_IF_EN 0x08
364 #define AVI_IF_EN 0x04
365 #define MPEG_IF_EN 0x02
366 #define SPD_IF_EN 0x01
367
368 #define SP_TX_HDCP_CTRL 0x7092
369 #define AUTO_EN 0x80
370 #define AUTO_START 0x20
371 #define LINK_POLLING 0x02
372
373 #define SP_TX_LINK_BW_SET_REG 0x70A0
374 #define LINK_5P4G 0x14
375 #define LINK_2P7G 0x0A
376 #define LINK_1P62G 0x06
377
378 #define SP_TX_TRAINING_PTN_SET_REG 0x70A2
379 #define SCRAMBLE_DISABLE 0x20
380
381 #define SP_TX_LT_SET_REG 0x70A3
382 #define MAX_PRE_REACH 0x20
383 #define MAX_DRIVE_REACH 0x04
384 #define DRVIE_CURRENT_LEVEL1 0x01
385 #define PRE_EMP_LEVEL1 0x08
386
387 #define SSC_CTRL_REG1 0x70A7
388 #define SPREAD_AMP 0x10
389 #define MODULATION_FREQ 0x01
390
391 #define SP_TX_LT_CTRL_REG 0x70A8
392 #define SP_TX_LT_EN 0x01
393
394 #define SP_TX_DEBUG_REG1 0x70B0
395 #define FORCE_HPD 0x80
396 #define HPD_POLLING_DET 0x40
397 #define HPD_POLLING_EN 0x20
398 #define DEBUG_PLL_LOCK 0x10
399 #define FORCE_PLL_LOCK 0x08
400 #define POLLING_EN 0x02
401
402 #define SP_TX_DP_POLLING_PERIOD 0x70B3
403
404 #define SP_TX_DP_POLLING_CTRL_REG 0x70B4
405 #define AUTO_POLLING_DISABLE 0x01
406
407 #define SP_TX_LINK_DEBUG_REG 0x70B8
408 #define M_VID_DEBUG 0x20
409 #define NEW_PRBS7 0x10
410 #define INSERT_ER 0x02
411 #define PRBS31_EN 0x01
412
413 #define SP_TX_PLL_CTRL_REG 0x70C7
414 #define PLL_RST 0x40
415
416 #define SP_TX_ANALOG_PD_REG 0x70C8
417 #define MACRO_PD 0x20
418 #define AUX_PD 0x10
419 #define CH0_PD 0x01
420
421 #define SP_TX_MISC_CTRL_REG 0x70CD
422 #define EQ_TRAINING_LOOP 0x40
423 #define SP_TX_DOWN_SPREADING_CTRL1 0x70D0
424 #define SP_TX_DOWN_SPREADING_CTRL2 0x70D1
425 #define SP_TX_DOWN_SPREADING_CTRL3 0x70D2
426 #define SSC_D_CTRL 0x40
427 #define FS_CTRL_TH_CTRL 0x20
428
429 #define SP_TX_M_CALCU_CTRL 0x70D9
430 #define M_GEN_CLK_SEL 0x01
431
432 #define SP_TX_EXTRA_ADDR_REG 0x70CE
433 #define I2C_STRETCH_DISABLE 0x80
434 #define I2C_EXTRA_ADDR 0x50
435
436 #define SP_TX_AUX_STATUS 0x70E0
437 #define AUX_BUSY 0x10
438
439 #define SP_TX_BUF_DATA_COUNT_REG 0x70E4
440
441 #define SP_TX_AUX_CTRL_REG 0x70E5
442 #define SP_TX_AUX_ADDR_7_0_REG 0x70E6
443 #define SP_TX_AUX_ADDR_15_8_REG 0x70E7
444 #define SP_TX_AUX_ADDR_19_16_REG 0x70E8
445
446 #define SP_TX_AUX_CTRL_REG2 0x70E9
447 #define ADDR_ONLY_BIT 0x02
448 #define AUX_OP_EN 0x01
449
450 #define SP_TX_3D_VSC_CTRL 0x70EA
451 #define INFO_FRAME_VSC_EN 0x01
452
453 #define SP_TX_VSC_DB1 0x70EB
454
455 #define SP_TX_BUF_DATA_0_REG 0x70F0
456
457 /***************************************************************/
458 /*Register definition of device address 0x72*/
459 #define SP_TX_VND_IDL_REG 0x7200
460 #define SP_TX_VND_IDH_REG 0x7201
461 #define SP_TX_DEV_IDL_REG 0x7202
462 #define SP_TX_DEV_IDH_REG 0x7203
463 #define SP_TX_DEV_REV_REG 0x7204
464
465 #define SP_POWERD_CTRL_REG 0x7205
466 #define REGISTER_PD 0x80
467 #define HDCP_PD 0x20
468 #define AUDIO_PD 0x10
469 #define VIDEO_PD 0x08
470 #define LINK_PD 0x04
471 #define TOTAL_PD 0x02
472
473 #define SP_TX_RST_CTRL_REG 0x7206
474 #define MISC_RST 0x80
475 #define VIDCAP_RST 0x40
476 #define VIDFIF_RST 0x20
477 #define AUDFIF_RST 0x10
478 #define AUDCAP_RST 0x08
479 #define HDCP_RST 0x04
480 #define SW_RST 0x02
481 #define HW_RST 0x01
482
483 #define SP_TX_RST_CTRL2_REG 0x7207
484 #define SSC_RST 0x80
485 #define AUX_RST 0x04
486 #define SERDES_FIFO_RST 0x02
487 #define I2C_REG_RST 0x01
488
489 #define SP_TX_VID_CTRL1_REG 0x7208
490 #define VIDEO_EN 0x80
491 #define VIDEO_MUTE 0x40
492 #define IN_BIT_SEl 0x04
493 #define DDR_CTRL 0x02
494 #define EDGE_CTRL 0x01
495
496 #define SP_TX_VID_CTRL2_REG 0x7209
497 #define IN_BPC_12BIT 0x30
498 #define IN_BPC_10BIT 0x20
499 #define IN_BPC_8BIT 0x10
500
501 #define SP_TX_VID_CTRL3_REG 0x720A
502 #define HPD_OUT 0x40
503
504 #define SP_TX_VID_CTRL5_REG 0x720C
505 #define CSC_STD_SEL 0x80
506 #define RANGE_Y2R 0x20
507 #define CSPACE_Y2R 0x10
508
509 #define SP_TX_VID_CTRL6_REG 0x720D
510 #define VIDEO_PROCESS_EN 0x40
511 #define UP_SAMPLE 0x02
512 #define DOWN_SAMPLE 0x01
513
514 #define SP_TX_TOTAL_LINE_STA_L 0x7224
515 #define SP_TX_TOTAL_LINE_STA_H 0x7225
516 #define SP_TX_ACT_LINE_STA_L 0x7226
517 #define SP_TX_ACT_LINE_STA_H 0x7227
518 #define SP_TX_V_F_PORCH_STA 0x7228
519 #define SP_TX_V_SYNC_STA 0x7229
520 #define SP_TX_V_B_PORCH_STA 0x722A
521 #define SP_TX_TOTAL_PIXEL_STA_L 0x722B
522 #define SP_TX_TOTAL_PIXEL_STA_H 0x722C
523 #define SP_TX_ACT_PIXEL_STA_L 0x722D
524 #define SP_TX_ACT_PIXEL_STA_H 0x722E
525 #define SP_TX_H_F_PORCH_STA_L 0x722F
526 #define SP_TX_H_F_PORCH_STA_H 0x7230
527 #define SP_TX_H_SYNC_STA_L 0x7231
528 #define SP_TX_H_SYNC_STA_H 0x7232
529 #define SP_TX_H_B_PORCH_STA_L 0x7233
530 #define SP_TX_H_B_PORCH_STA_H 0x7234
531
532 #define SP_TX_DP_ADDR_REG1 0x723E
533 #define SP_TX_VID_BIT_CTRL0_REG 0x7240
534 #define SP_TX_VID_BIT_CTRL10_REG 0x724A
535 #define SP_TX_VID_BIT_CTRL20_REG 0x7254
536
537 #define SP_TX_AVI_TYPE 0x7270
538 #define SP_TX_AVI_VER 0x7271
539 #define SP_TX_AVI_LEN 0x7272
540 #define SP_TX_AVI_DB0 0x7273
541
542 #define SP_TX_AUD_TYPE 0x7283
543 #define SP_TX_AUD_VER 0x7284
544 #define SP_TX_AUD_LEN 0x7285
545 #define SP_TX_AUD_DB0 0x7286
546
547 #define SP_TX_SPD_TYPE 0x7291
548 #define SP_TX_SPD_VER 0x7292
549 #define SP_TX_SPD_LEN 0x7293
550 #define SP_TX_SPD_DB0 0x7294
551
552 #define SP_TX_MPEG_TYPE 0x72B0
553 #define SP_TX_MPEG_VER 0x72B1
554 #define SP_TX_MPEG_LEN 0x72B2
555 #define SP_TX_MPEG_DB0 0x72B3
556
557 #define SP_TX_AUD_CH_STATUS_REG1 0x72D0
558
559 #define SP_TX_AUD_CH_NUM_REG5 0x72D5
560 #define CH_NUM_8 0xE0
561 #define AUD_LAYOUT 0x01
562
563 #define SP_TX_ANALOG_DEBUG_REG2 0x72DD
564 #define POWERON_TIME_1P5MS 0x06
565
566 #define SP_TX_PLL_FILTER_CTRL11 0x72DF
567 #define PD_RING_OSC 0x40
568 #define AUX_TERM_50OHM 0x30
569 #define V33_SWITCH_ON 0x02
570
571 #define SP_TX_PLL_FILTER_CTRL6 0x72E4
572 #define P5V_PROTECT 0x80
573 #define SHORT_PROTECT 0x40
574 #define P5V_PROTECT_PD 0x20
575 #define SHORT_PROTECT_PD 0x10
576
577 #define SP_TX_ANALOG_CTRL 0x72E5
578
579 #define SP_COMMON_INT_STATUS1 0x72F1
580 #define PLL_LOCK_CHG 0x40
581 #define VIDEO_FORMAT_CHG 0x08
582 #define AUDIO_CLK_CHG 0x04
583 #define VIDEO_CLOCK_CHG 0x02
584
585 #define SP_COMMON_INT_STATUS2 0x72F2
586 #define HDCP_AUTH_CHG 0x02
587 #define HDCP_AUTH_DONE 0x01
588
589 #define SP_COMMON_INT_STATUS3 0x72F3
590 #define HDCP_LINK_CHK_FAIL 0x01
591
592 #define SP_COMMON_INT_STATUS4 0x72F4
593 #define PLUG 0x01
594 #define ESYNC_ERR 0x10
595 #define HPD_LOST 0x02
596 #define HPD_CHANGE 0x04
597
598 #define SP_TX_INT_STATUS1 0x72F7
599 #define DPCD_IRQ_REQUEST 0x80
600 #define HPD 0x40
601 #define TRAINING_FINISH 0x20
602 #define POLLING_ERR 0x10
603 #define LINK_CHANGE 0x04
604 #define SINK_CHG 0x08
605
606 #define SP_COMMON_INT_MASK1 0x72F8
607 #define SP_COMMON_INT_MASK2 0x72F9
608 #define SP_COMMON_INT_MASK3 0x72FA
609 #define SP_COMMON_INT_MASK4 0x72FB
610 #define SP_INT_MASK 0x72FE
611 #define SP_TX_INT_CTRL_REG 0x72FF
612
613 /***************************************************************/
614 /*Register definition of device address 0x7A*/
615
616 #define SP_TX_LT_CTRL_REG0 0x7A30
617 #define SP_TX_LT_CTRL_REG1 0x7A31
618 #define SP_TX_LT_CTRL_REG2 0x7A34
619 #define SP_TX_LT_CTRL_REG3 0x7A35
620 #define SP_TX_LT_CTRL_REG4 0x7A36
621 #define SP_TX_LT_CTRL_REG5 0x7A37
622 #define SP_TX_LT_CTRL_REG6 0x7A38
623 #define SP_TX_LT_CTRL_REG7 0x7A39
624 #define SP_TX_LT_CTRL_REG8 0x7A3A
625 #define SP_TX_LT_CTRL_REG9 0x7A3B
626 #define SP_TX_LT_CTRL_REG10 0x7A40
627 #define SP_TX_LT_CTRL_REG11 0x7A41
628 #define SP_TX_LT_CTRL_REG12 0x7A44
629 #define SP_TX_LT_CTRL_REG13 0x7A45
630 #define SP_TX_LT_CTRL_REG14 0x7A46
631 #define SP_TX_LT_CTRL_REG15 0x7A47
632 #define SP_TX_LT_CTRL_REG16 0x7A48
633 #define SP_TX_LT_CTRL_REG17 0x7A49
634 #define SP_TX_LT_CTRL_REG18 0x7A4A
635 #define SP_TX_LT_CTRL_REG19 0x7A4B
636
637 #define SP_TX_AUD_INTERFACE_CTRL0 0x7A5F
638 #define AUD_INTERFACE_DISABLE 0x80
639
640 #define SP_TX_AUD_INTERFACE_CTRL2 0x7A60
641 #define M_AUD_ADJUST_ST 0x04
642
643 #define SP_TX_AUD_INTERFACE_CTRL3 0x7A62
644 #define SP_TX_AUD_INTERFACE_CTRL4 0x7A67
645 #define SP_TX_AUD_INTERFACE_CTRL5 0x7A68
646 #define SP_TX_AUD_INTERFACE_CTRL6 0x7A69
647
648 /***************************************************************/
649 /*AUX channel*/
650
651 #define AUX_DPCD 0x09
652
653 /***************************************************************/
654 /*Definition of DPCD*/
655
656 #define DPCD_REV 0x00000
657 #define MAX_LINK_RATE 0x00001
658 #define MAX_LINE_COUNT 0x00002
659 #define MAX_DOWNSPREAD 0x00003
660 #define DP_PWR_VOLTAGE_CAP 0x00004
661 #define DOWNSTREAMPORT_PRESENT 0x00005
662 #define MAIN_LINK_CHANNEL_CODING 0x00006
663 #define DOWN_STM_PORT 0x00007
664 #define RECEIVE_PORT0_CAP_0 0x00008
665 #define RECEIVE_PORT0_CAP_1 0x00009
666 #define RECEIVE_PORT1_CAP_0 0x0000a
667 #define REVEICE_PORT1_CAP_1 0x0000b
668 #define I2C_RATE_CONTROL 0x0000c
669 #define DWN_STRM_PORT0_CAP_BYTE0 0x00080
670 #define DWN_STRM_PORT0_CAP_BYTE1 0x00081
671 #define DWN_STRM_PORT0_CAP_BYTE2 0x00082
672 #define LINK_BW_SET 0x00100
673 #define LANE_COUNT_SET 0x00101
674 #define TRAINING_PATTERN_SET 0x00102
675 #define TRAINING_LANE0_SET 0x00103
676 #define DOWNSPREAD_CTRL 0x00107
677 #define MAIN_LINK_CHANNEL_CODING_SET 0x00108
678 #define SINK_COUNT 0x00200
679 #define DEVICE_SERVICE_IRQ_VECTOR 0x00201
680 #define LANE0_1_STATUS 0x00202
681 #define LANE_ALIGH_STUTUS_UPDATED 0x00204
682 #define SINK_STATUS 0x00205
683 #define ADJUST_REQUEST_LANE0_1 0x00206
684 #define SYMBOL_ERROR_COUNT_LANE0_0 0x00210
685 #define SYMBOL_ERROR_COUNT_LANE0_1 0x00211
686 #define SOURCE_IEEE_OUI_1 0x00300
687 #define SOURCE_IEEE_OUI_2 0x00301
688 #define SOURCE_IEEE_OUI_3 0x00302
689 #define SINK_IEEE_OUI_1 0x00400
690 #define SINK_IEEE_OUI_2 0x00401
691 #define SINK_IEEE_OUI_3 0x00402
692 #define BRANCH_IEEE_OUI_1 0x00500
693 #define BRANCH_IEEE_OUI_2 0x00501
694 #define BRANCH_IEEE_OUI_3 0x00502
695 #define SPECIFIC_INTERRUPT_1 0x00510
696 #define SPECIFIC_INTERRUPT_2 0x00511
697 #define DOWN_STREAM_STATUS_1 0x00518
698 #define DOWN_STREAM_STATUS_2 0x00519
699 #define US_COMM_TX_INT 0x00520
700 #define US_COMM_RX_INT 0x00521
701 #define US_COMM_1 0x00522
702 #define US_COMM_2 0x00523
703 #define US_COMM_3 0x00524
704 #define US_COMM_4 0x00525
705 #define US_COMM_5 0x00526
706 #define US_COMM_6 0x00527
707 #define US_COMM_7 0x00528
708 #define US_COMM_8 0x00529
709 #define CHIP_AUTHENTICATION 0x00533
710 #define ENCRYPTED_DATA_1 0x00540
711 #define ENCRYPTED_DATA_2 0x00541
712 #define ENCRYPTED_DATA_3 0x00542
713 #define ENCRYPTED_DATA_4 0x00543
714 #define ENCRYPTED_DATA_5 0x00544
715 #define ENCRYPTED_DATA_6 0x00545
716 #define ENCRYPTED_DATA_7 0x00546
717 #define ENCRYPTED_DATA_8 0x00547
718 #define ENCRYPTED_DATA_9 0x00548
719 #define ENCRYPTED_DATA_10 0x00549
720 #define ENCRYPTED_DATA_11 0x0054A
721 #define ENCRYPTED_DATA_12 0x0054B
722 #define ENCRYPTED_DATA_13 0x0054C
723 #define ENCRYPTED_DATA_14 0x0054D
724 #define ENCRYPTED_DATA_15 0x0054E
725 #define ENCRYPTED_DATA_16 0x0054F
726 #define BRANCH_CHECKSUM_L 0x00560
727 #define BRANCH_CHECKSUM_H 0x00561
728 #define CEC_CONTROL 0x00570
729 #define CEC_RX_STATUS 0x00571
730 #define CEC_TX_STATUS 0x00572
731 #define CEC_SPEED_CONTROL 0x00573
732 #define CEC_FIFO 0x00580
733 #define SINK_DEV_SEL 0x005f0
734 #define SINK_ACCESS_OFFSET 0x005f1
735 #define SINK_ACCESS_REG 0x005f2
736 #define GPIO_I2C_SEL 0x005f3
737 #define SET_DP_PWR_VOLTAGE 0x00600
738 #define BKSV_1 0x68000
739 #define BKSV_2 0x68001
740 #define BKSV_3 0x68002
741 #define BKSV_4 0x68003
742 #define BKSV_5 0x68004
743 #define HDCP_R0_1 0x68005
744 #define HDCP_R0_2 0x68006
745 #define SOURCE_AKSV_1 0x68007
746 #define SOURCE_AKSV_2 0x68008
747 #define SOURCE_AKSV_3 0x68009
748 #define SOURCE_AKSV_4 0x6800a
749 #define SOURCE_AKSV_5 0x6800b
750 #define SOURCE_AN_1 0x6800c
751 #define SOURCE_AN_2 0x6800d
752 #define SOURCE_AN_3 0x6800e
753 #define SOURCE_AN_4 0x6800f
754 #define SOURCE_AN_5 0x68010
755 #define SOURCE_AN_6 0x68011
756 #define SOURCE_AN_7 0x68012
757 #define SOURCE_AN_8 0x68013
758 #define H0_1 0x68014
759 #define H0_2 0x68015
760 #define H0_3 0x68016
761 #define H0_4 0x68017
762 #define H1_1 0x68018
763 #define H1_2 0x68019
764 #define H1_3 0x6801a
765 #define H1_4 0x6801b
766 #define H2_1 0x6801c
767 #define H2_2 0x6801d
768 #define H2_3 0x6801e
769 #define H2_4 0x6801f
770 #define H3_1 0x68020
771 #define H3_2 0x68021
772 #define H3_3 0x68022
773 #define H3_4 0x68023
774 #define H4_1 0x68024
775 #define H4_2 0x68025
776 #define H4_3 0x68026
777 #define H4_4 0x68027
778 #define BCAPS 0x68028
779 #define BSTATUS 0x68029
780 #define BINFO_L 0x6802a
781 #define BINFO_H 0x6802b
782 #define KSV_FIFO_1 0x6802c
783 #define KSV_FIFO_2 0x6802d
784 #define KSV_FIFO_3 0x6802e
785 #define KSV_FIFO_4 0x6802f
786 #define KSV_FIFO_5 0x68030
787 #define KSV_FIFO_6 0x68031
788 #define KSV_FIFO_7 0x68032
789 #define KSV_FIFO_8 0x68033
790 #define KSV_FIFO_9 0x68034
791 #define KSV_FIFO_10 0x68035
792 #define KSV_FIFO_11 0x68036
793 #define KSV_FIFO_12 0x68037
794 #define KSV_FIFO_13 0x68038
795 #define KSV_FIFO_14 0x68039
796 #define KSV_FIFO_15 0x6803a
797 #define HPD_DP_PWR_STATUS 0xfff00
798 #define AUX_HPD_BRIDGE_POWER_CONTROL 0xfff01
799
800 #endif