2 * tc358743 - Toshiba HDMI to CSI-2 bridge - register names and bit masks
4 * Copyright 2015 Cisco Systems, Inc. and/or its affiliates. All rights
7 * This program is free software; you may redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; version 2 of the License.
11 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
12 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
13 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
14 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
15 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
16 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
17 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23 * References (c = chapter, p = page):
24 * REF_01 - Toshiba, TC358743XBG (H2C), Functional Specification, Rev 0.60
27 /* Bit masks has prefix 'MASK_' and options after '_'. */
29 #ifndef __TC358743_REGS_H
30 #define __TC358743_REGS_H
33 #define MASK_CHIPID 0xff00
34 #define MASK_REVID 0x00ff
37 #define MASK_IRRST 0x0800
38 #define MASK_CECRST 0x0400
39 #define MASK_CTXRST 0x0200
40 #define MASK_HDMIRST 0x0100
41 #define MASK_SLEEP 0x0001
43 #define CONFCTL 0x0004
44 #define MASK_PWRISO 0x8000
45 #define MASK_ACLKOPT 0x1000
46 #define MASK_AUDCHNUM 0x0c00
47 #define MASK_AUDCHNUM_8 0x0000
48 #define MASK_AUDCHNUM_6 0x0400
49 #define MASK_AUDCHNUM_4 0x0800
50 #define MASK_AUDCHNUM_2 0x0c00
51 #define MASK_AUDCHSEL 0x0200
52 #define MASK_I2SDLYOPT 0x0100
53 #define MASK_YCBCRFMT 0x00c0
54 #define MASK_YCBCRFMT_444 0x0000
55 #define MASK_YCBCRFMT_422_12_BIT 0x0040
56 #define MASK_YCBCRFMT_COLORBAR 0x0080
57 #define MASK_YCBCRFMT_422_8_BIT 0x00c0
58 #define MASK_INFRMEN 0x0020
59 #define MASK_AUDOUTSEL 0x0018
60 #define MASK_AUDOUTSEL_CSI 0x0000
61 #define MASK_AUDOUTSEL_I2S 0x0010
62 #define MASK_AUDOUTSEL_TDM 0x0018
63 #define MASK_AUTOINDEX 0x0004
64 #define MASK_ABUFEN 0x0002
65 #define MASK_VBUFEN 0x0001
67 #define FIFOCTL 0x0006
69 #define INTSTATUS 0x0014
70 #define MASK_AMUTE_INT 0x0400
71 #define MASK_HDMI_INT 0x0200
72 #define MASK_CSI_INT 0x0100
73 #define MASK_SYS_INT 0x0020
74 #define MASK_CEC_EINT 0x0010
75 #define MASK_CEC_TINT 0x0008
76 #define MASK_CEC_RINT 0x0004
77 #define MASK_IR_EINT 0x0002
78 #define MASK_IR_DINT 0x0001
80 #define INTMASK 0x0016
81 #define MASK_AMUTE_MSK 0x0400
82 #define MASK_HDMI_MSK 0x0200
83 #define MASK_CSI_MSK 0x0100
84 #define MASK_SYS_MSK 0x0020
85 #define MASK_CEC_EMSK 0x0010
86 #define MASK_CEC_TMSK 0x0008
87 #define MASK_CEC_RMSK 0x0004
88 #define MASK_IR_EMSK 0x0002
89 #define MASK_IR_DMSK 0x0001
91 #define INTFLAG 0x0018
92 #define INTSYSSTATUS 0x001A
94 #define PLLCTL0 0x0020
95 #define MASK_PLL_PRD 0xf000
96 #define SET_PLL_PRD(prd) ((((prd) - 1) << 12) &\
98 #define MASK_PLL_FBD 0x01ff
99 #define SET_PLL_FBD(fbd) (((fbd) - 1) & MASK_PLL_FBD)
101 #define PLLCTL1 0x0022
102 #define MASK_PLL_FRS 0x0c00
103 #define SET_PLL_FRS(frs) (((frs) << 10) & MASK_PLL_FRS)
104 #define MASK_PLL_LBWS 0x0300
105 #define MASK_LFBREN 0x0040
106 #define MASK_BYPCKEN 0x0020
107 #define MASK_CKEN 0x0010
108 #define MASK_RESETB 0x0002
109 #define MASK_PLL_EN 0x0001
111 #define CLW_CNTRL 0x0140
112 #define MASK_CLW_LANEDISABLE 0x0001
114 #define D0W_CNTRL 0x0144
115 #define MASK_D0W_LANEDISABLE 0x0001
117 #define D1W_CNTRL 0x0148
118 #define MASK_D1W_LANEDISABLE 0x0001
120 #define D2W_CNTRL 0x014C
121 #define MASK_D2W_LANEDISABLE 0x0001
123 #define D3W_CNTRL 0x0150
124 #define MASK_D3W_LANEDISABLE 0x0001
126 #define STARTCNTRL 0x0204
127 #define MASK_START 0x00000001
129 #define LINEINITCNT 0x0210
130 #define LPTXTIMECNT 0x0214
131 #define TCLK_HEADERCNT 0x0218
132 #define TCLK_TRAILCNT 0x021C
133 #define THS_HEADERCNT 0x0220
134 #define TWAKEUP 0x0224
135 #define TCLK_POSTCNT 0x0228
136 #define THS_TRAILCNT 0x022C
137 #define HSTXVREGCNT 0x0230
139 #define HSTXVREGEN 0x0234
140 #define MASK_D3M_HSTXVREGEN 0x0010
141 #define MASK_D2M_HSTXVREGEN 0x0008
142 #define MASK_D1M_HSTXVREGEN 0x0004
143 #define MASK_D0M_HSTXVREGEN 0x0002
144 #define MASK_CLM_HSTXVREGEN 0x0001
147 #define TXOPTIONCNTRL 0x0238
148 #define MASK_CONTCLKMODE 0x00000001
150 #define CSI_CONTROL 0x040C
151 #define MASK_CSI_MODE 0x8000
152 #define MASK_HTXTOEN 0x0400
153 #define MASK_TXHSMD 0x0080
154 #define MASK_HSCKMD 0x0020
155 #define MASK_NOL 0x0006
156 #define MASK_NOL_1 0x0000
157 #define MASK_NOL_2 0x0002
158 #define MASK_NOL_3 0x0004
159 #define MASK_NOL_4 0x0006
160 #define MASK_EOTDIS 0x0001
162 #define CSI_INT 0x0414
163 #define MASK_INTHLT 0x00000008
164 #define MASK_INTER 0x00000004
166 #define CSI_INT_ENA 0x0418
167 #define MASK_IENHLT 0x00000008
168 #define MASK_IENER 0x00000004
170 #define CSI_ERR 0x044C
171 #define MASK_INER 0x00000200
172 #define MASK_WCER 0x00000100
173 #define MASK_QUNK 0x00000010
174 #define MASK_TXBRK 0x00000002
176 #define CSI_ERR_INTENA 0x0450
177 #define CSI_ERR_HALT 0x0454
179 #define CSI_CONFW 0x0500
180 #define MASK_MODE 0xe0000000
181 #define MASK_MODE_SET 0xa0000000
182 #define MASK_MODE_CLEAR 0xc0000000
183 #define MASK_ADDRESS 0x1f000000
184 #define MASK_ADDRESS_CSI_CONTROL 0x03000000
185 #define MASK_ADDRESS_CSI_INT_ENA 0x06000000
186 #define MASK_ADDRESS_CSI_ERR_INTENA 0x14000000
187 #define MASK_ADDRESS_CSI_ERR_HALT 0x15000000
188 #define MASK_DATA 0x0000ffff
190 #define CSI_INT_CLR 0x050C
191 #define MASK_ICRER 0x00000004
193 #define CSI_START 0x0518
194 #define MASK_STRT 0x00000001
196 /* *** CEC (32 bit) *** */
197 #define CECHCLK 0x0028 /* 16 bits */
198 #define MASK_CECHCLK (0x7ff << 0)
200 #define CECLCLK 0x002a /* 16 bits */
201 #define MASK_CECLCLK (0x7ff << 0)
204 #define MASK_CECEN 0x0001
206 #define CECADD 0x0604
207 #define CECRST 0x0608
208 #define MASK_CECRESET 0x0001
210 #define CECREN 0x060c
211 #define MASK_CECREN 0x0001
213 #define CECRCTL1 0x0614
214 #define MASK_CECACKDIS (1 << 24)
215 #define MASK_CECHNC (3 << 20)
216 #define MASK_CECLNC (7 << 16)
217 #define MASK_CECMIN (7 << 12)
218 #define MASK_CECMAX (7 << 8)
219 #define MASK_CECDAT (7 << 4)
220 #define MASK_CECTOUT (3 << 2)
221 #define MASK_CECRIHLD (1 << 1)
222 #define MASK_CECOTH (1 << 0)
224 #define CECRCTL2 0x0618
225 #define MASK_CECSWAV3 (7 << 12)
226 #define MASK_CECSWAV2 (7 << 8)
227 #define MASK_CECSWAV1 (7 << 4)
228 #define MASK_CECSWAV0 (7 << 0)
230 #define CECRCTL3 0x061c
231 #define MASK_CECWAV3 (7 << 20)
232 #define MASK_CECWAV2 (7 << 16)
233 #define MASK_CECWAV1 (7 << 12)
234 #define MASK_CECWAV0 (7 << 8)
235 #define MASK_CECACKEI (1 << 4)
236 #define MASK_CECMINEI (1 << 3)
237 #define MASK_CECMAXEI (1 << 2)
238 #define MASK_CECRSTEI (1 << 1)
239 #define MASK_CECWAVEI (1 << 0)
241 #define CECTEN 0x0620
242 #define MASK_CECTBUSY (1 << 1)
243 #define MASK_CECTEN (1 << 0)
245 #define CECTCTL 0x0628
246 #define MASK_CECSTRS (7 << 20)
247 #define MASK_CECSPRD (7 << 16)
248 #define MASK_CECDTRS (7 << 12)
249 #define MASK_CECDPRD (15 << 8)
250 #define MASK_CECBRD (1 << 4)
251 #define MASK_CECFREE (15 << 0)
253 #define CECRSTAT 0x062c
254 #define MASK_CECRIWA (1 << 6)
255 #define MASK_CECRIOR (1 << 5)
256 #define MASK_CECRIACK (1 << 4)
257 #define MASK_CECRIMIN (1 << 3)
258 #define MASK_CECRIMAX (1 << 2)
259 #define MASK_CECRISTA (1 << 1)
260 #define MASK_CECRIEND (1 << 0)
262 #define CECTSTAT 0x0630
263 #define MASK_CECTIUR (1 << 4)
264 #define MASK_CECTIACK (1 << 3)
265 #define MASK_CECTIAL (1 << 2)
266 #define MASK_CECTIEND (1 << 1)
268 #define CECRBUF1 0x0634
269 #define MASK_CECRACK (1 << 9)
270 #define MASK_CECEOM (1 << 8)
271 #define MASK_CECRBYTE (0xff << 0)
273 #define CECTBUF1 0x0674
274 #define MASK_CECTEOM (1 << 8)
275 #define MASK_CECTBYTE (0xff << 0)
277 #define CECRCTR 0x06b4
278 #define MASK_CECRCTR (0x1f << 0)
280 #define CECIMSK 0x06c0
281 #define MASK_CECTIM (1 << 1)
282 #define MASK_CECRIM (1 << 0)
284 #define CECICLR 0x06cc
285 #define MASK_CECTICLR (1 << 1)
286 #define MASK_CECRICLR (1 << 0)
289 #define HDMI_INT0 0x8500
290 #define MASK_I_KEY 0x80
291 #define MASK_I_MISC 0x02
292 #define MASK_I_PHYERR 0x01
294 #define HDMI_INT1 0x8501
295 #define MASK_I_GBD 0x80
296 #define MASK_I_HDCP 0x40
297 #define MASK_I_ERR 0x20
298 #define MASK_I_AUD 0x10
299 #define MASK_I_CBIT 0x08
300 #define MASK_I_PACKET 0x04
301 #define MASK_I_CLK 0x02
302 #define MASK_I_SYS 0x01
304 #define SYS_INT 0x8502
305 #define MASK_I_ACR_CTS 0x80
306 #define MASK_I_ACRN 0x40
307 #define MASK_I_DVI 0x20
308 #define MASK_I_HDMI 0x10
309 #define MASK_I_NOPMBDET 0x08
310 #define MASK_I_DPMBDET 0x04
311 #define MASK_I_TMDS 0x02
312 #define MASK_I_DDC 0x01
314 #define CLK_INT 0x8503
315 #define MASK_I_OUT_H_CHG 0x40
316 #define MASK_I_IN_DE_CHG 0x20
317 #define MASK_I_IN_HV_CHG 0x10
318 #define MASK_I_DC_CHG 0x08
319 #define MASK_I_PXCLK_CHG 0x04
320 #define MASK_I_PHYCLK_CHG 0x02
321 #define MASK_I_TMDSCLK_CHG 0x01
323 #define CBIT_INT 0x8505
324 #define MASK_I_AF_LOCK 0x80
325 #define MASK_I_AF_UNLOCK 0x40
326 #define MASK_I_CBIT_FS 0x02
328 #define AUDIO_INT 0x8506
330 #define ERR_INT 0x8507
331 #define MASK_I_EESS_ERR 0x80
333 #define HDCP_INT 0x8508
334 #define MASK_I_AVM_SET 0x80
335 #define MASK_I_AVM_CLR 0x40
336 #define MASK_I_LINKERR 0x20
337 #define MASK_I_SHA_END 0x10
338 #define MASK_I_R0_END 0x08
339 #define MASK_I_KM_END 0x04
340 #define MASK_I_AKSV_END 0x02
341 #define MASK_I_AN_END 0x01
343 #define MISC_INT 0x850B
344 #define MASK_I_AS_LAYOUT 0x10
345 #define MASK_I_NO_SPD 0x08
346 #define MASK_I_NO_VS 0x03
347 #define MASK_I_SYNC_CHG 0x02
348 #define MASK_I_AUDIO_MUTE 0x01
350 #define KEY_INT 0x850F
352 #define SYS_INTM 0x8512
353 #define MASK_M_ACR_CTS 0x80
354 #define MASK_M_ACR_N 0x40
355 #define MASK_M_DVI_DET 0x20
356 #define MASK_M_HDMI_DET 0x10
357 #define MASK_M_NOPMBDET 0x08
358 #define MASK_M_BPMBDET 0x04
359 #define MASK_M_TMDS 0x02
360 #define MASK_M_DDC 0x01
362 #define CLK_INTM 0x8513
363 #define MASK_M_OUT_H_CHG 0x40
364 #define MASK_M_IN_DE_CHG 0x20
365 #define MASK_M_IN_HV_CHG 0x10
366 #define MASK_M_DC_CHG 0x08
367 #define MASK_M_PXCLK_CHG 0x04
368 #define MASK_M_PHYCLK_CHG 0x02
369 #define MASK_M_TMDS_CHG 0x01
371 #define PACKET_INTM 0x8514
373 #define CBIT_INTM 0x8515
374 #define MASK_M_AF_LOCK 0x80
375 #define MASK_M_AF_UNLOCK 0x40
376 #define MASK_M_CBIT_FS 0x02
378 #define AUDIO_INTM 0x8516
379 #define MASK_M_BUFINIT_END 0x01
381 #define ERR_INTM 0x8517
382 #define MASK_M_EESS_ERR 0x80
384 #define HDCP_INTM 0x8518
385 #define MASK_M_AVM_SET 0x80
386 #define MASK_M_AVM_CLR 0x40
387 #define MASK_M_LINKERR 0x20
388 #define MASK_M_SHA_END 0x10
389 #define MASK_M_R0_END 0x08
390 #define MASK_M_KM_END 0x04
391 #define MASK_M_AKSV_END 0x02
392 #define MASK_M_AN_END 0x01
394 #define MISC_INTM 0x851B
395 #define MASK_M_AS_LAYOUT 0x10
396 #define MASK_M_NO_SPD 0x08
397 #define MASK_M_NO_VS 0x03
398 #define MASK_M_SYNC_CHG 0x02
399 #define MASK_M_AUDIO_MUTE 0x01
401 #define KEY_INTM 0x851F
403 #define SYS_STATUS 0x8520
404 #define MASK_S_SYNC 0x80
405 #define MASK_S_AVMUTE 0x40
406 #define MASK_S_HDCP 0x20
407 #define MASK_S_HDMI 0x10
408 #define MASK_S_PHY_SCDT 0x08
409 #define MASK_S_PHY_PLL 0x04
410 #define MASK_S_TMDS 0x02
411 #define MASK_S_DDC5V 0x01
413 #define CSI_STATUS 0x0410
414 #define MASK_S_WSYNC 0x0400
415 #define MASK_S_TXACT 0x0200
416 #define MASK_S_RXACT 0x0100
417 #define MASK_S_HLT 0x0001
419 #define VI_STATUS1 0x8522
420 #define MASK_S_V_GBD 0x08
421 #define MASK_S_DEEPCOLOR 0x0c
422 #define MASK_S_V_422 0x02
423 #define MASK_S_V_INTERLACE 0x01
425 #define AU_STATUS0 0x8523
426 #define MASK_S_A_SAMPLE 0x01
428 #define VI_STATUS3 0x8528
429 #define MASK_S_V_COLOR 0x1e
430 #define MASK_LIMITED 0x01
432 #define PHY_CTL0 0x8531
433 #define MASK_PHY_SYSCLK_IND 0x02
434 #define MASK_PHY_CTL 0x01
437 #define PHY_CTL1 0x8532 /* Not in REF_01 */
438 #define MASK_PHY_AUTO_RST1 0xf0
439 #define MASK_PHY_AUTO_RST1_OFF 0x00
440 #define SET_PHY_AUTO_RST1_US(us) ((((us) / 200) << 4) & \
442 #define MASK_FREQ_RANGE_MODE 0x0f
443 #define SET_FREQ_RANGE_MODE_CYCLES(cycles) (((cycles) - 1) & \
444 MASK_FREQ_RANGE_MODE)
446 #define PHY_CTL2 0x8533 /* Not in REF_01 */
447 #define MASK_PHY_AUTO_RST4 0x04
448 #define MASK_PHY_AUTO_RST3 0x02
449 #define MASK_PHY_AUTO_RST2 0x01
450 #define MASK_PHY_AUTO_RSTn (MASK_PHY_AUTO_RST4 | \
451 MASK_PHY_AUTO_RST3 | \
454 #define PHY_EN 0x8534
455 #define MASK_ENABLE_PHY 0x01
457 #define PHY_RST 0x8535
458 #define MASK_RESET_CTRL 0x01 /* Reset active low */
460 #define PHY_BIAS 0x8536 /* Not in REF_01 */
462 #define PHY_CSQ 0x853F /* Not in REF_01 */
463 #define MASK_CSQ_CNT 0x0f
464 #define SET_CSQ_CNT_LEVEL(n) (n & MASK_CSQ_CNT)
466 #define SYS_FREQ0 0x8540
467 #define SYS_FREQ1 0x8541
469 #define SYS_CLK 0x8542 /* Not in REF_01 */
470 #define MASK_CLK_DIFF 0x0C
471 #define MASK_CLK_DIV 0x03
473 #define DDC_CTL 0x8543
474 #define MASK_DDC_ACK_POL 0x08
475 #define MASK_DDC_ACTION 0x04
476 #define MASK_DDC5V_MODE 0x03
477 #define MASK_DDC5V_MODE_0MS 0x00
478 #define MASK_DDC5V_MODE_50MS 0x01
479 #define MASK_DDC5V_MODE_100MS 0x02
480 #define MASK_DDC5V_MODE_200MS 0x03
482 #define HPD_CTL 0x8544
483 #define MASK_HPD_CTL0 0x10
484 #define MASK_HPD_OUT0 0x01
486 #define ANA_CTL 0x8545
487 #define MASK_APPL_PCSX 0x30
488 #define MASK_APPL_PCSX_HIZ 0x00
489 #define MASK_APPL_PCSX_L_FIX 0x10
490 #define MASK_APPL_PCSX_H_FIX 0x20
491 #define MASK_APPL_PCSX_NORMAL 0x30
492 #define MASK_ANALOG_ON 0x01
494 #define AVM_CTL 0x8546
496 #define INIT_END 0x854A
497 #define MASK_INIT_END 0x01
499 #define HDMI_DET 0x8552 /* Not in REF_01 */
500 #define MASK_HDMI_DET_MOD1 0x80
501 #define MASK_HDMI_DET_MOD0 0x40
502 #define MASK_HDMI_DET_V 0x30
503 #define MASK_HDMI_DET_V_SYNC 0x00
504 #define MASK_HDMI_DET_V_ASYNC_25MS 0x10
505 #define MASK_HDMI_DET_V_ASYNC_50MS 0x20
506 #define MASK_HDMI_DET_V_ASYNC_100MS 0x30
507 #define MASK_HDMI_DET_NUM 0x0f
509 #define HDCP_MODE 0x8560
510 #define MASK_MODE_RST_TN 0x20
511 #define MASK_LINE_REKEY 0x10
512 #define MASK_AUTO_CLR 0x04
513 #define MASK_MANUAL_AUTHENTICATION 0x02 /* Not in REF_01 */
515 #define HDCP_REG1 0x8563 /* Not in REF_01 */
516 #define MASK_AUTH_UNAUTH_SEL 0x70
517 #define MASK_AUTH_UNAUTH_SEL_12_FRAMES 0x70
518 #define MASK_AUTH_UNAUTH_SEL_8_FRAMES 0x60
519 #define MASK_AUTH_UNAUTH_SEL_4_FRAMES 0x50
520 #define MASK_AUTH_UNAUTH_SEL_2_FRAMES 0x40
521 #define MASK_AUTH_UNAUTH_SEL_64_FRAMES 0x30
522 #define MASK_AUTH_UNAUTH_SEL_32_FRAMES 0x20
523 #define MASK_AUTH_UNAUTH_SEL_16_FRAMES 0x10
524 #define MASK_AUTH_UNAUTH_SEL_ONCE 0x00
525 #define MASK_AUTH_UNAUTH 0x01
526 #define MASK_AUTH_UNAUTH_AUTO 0x01
528 #define HDCP_REG2 0x8564 /* Not in REF_01 */
529 #define MASK_AUTO_P3_RESET 0x0F
530 #define SET_AUTO_P3_RESET_FRAMES(n) (n & MASK_AUTO_P3_RESET)
531 #define MASK_AUTO_P3_RESET_OFF 0x00
533 #define VI_MODE 0x8570
534 #define MASK_RGB_DVI 0x08 /* Not in REF_01 */
536 #define VOUT_SET2 0x8573
537 #define MASK_SEL422 0x80
538 #define MASK_VOUT_422FIL_100 0x40
539 #define MASK_VOUTCOLORMODE 0x03
540 #define MASK_VOUTCOLORMODE_THROUGH 0x00
541 #define MASK_VOUTCOLORMODE_AUTO 0x01
542 #define MASK_VOUTCOLORMODE_MANUAL 0x03
544 #define VOUT_SET3 0x8574
545 #define MASK_VOUT_EXTCNT 0x08
547 #define VI_REP 0x8576
548 #define MASK_VOUT_COLOR_SEL 0xe0
549 #define MASK_VOUT_COLOR_RGB_FULL 0x00
550 #define MASK_VOUT_COLOR_RGB_LIMITED 0x20
551 #define MASK_VOUT_COLOR_601_YCBCR_FULL 0x40
552 #define MASK_VOUT_COLOR_601_YCBCR_LIMITED 0x60
553 #define MASK_VOUT_COLOR_709_YCBCR_FULL 0x80
554 #define MASK_VOUT_COLOR_709_YCBCR_LIMITED 0xa0
555 #define MASK_VOUT_COLOR_FULL_TO_LIMITED 0xc0
556 #define MASK_VOUT_COLOR_LIMITED_TO_FULL 0xe0
557 #define MASK_IN_REP_HEN 0x10
558 #define MASK_IN_REP 0x0f
560 #define VI_MUTE 0x857F
561 #define MASK_AUTO_MUTE 0xc0
562 #define MASK_VI_MUTE 0x10
564 #define DE_WIDTH_H_LO 0x8582 /* Not in REF_01 */
565 #define DE_WIDTH_H_HI 0x8583 /* Not in REF_01 */
566 #define DE_WIDTH_V_LO 0x8588 /* Not in REF_01 */
567 #define DE_WIDTH_V_HI 0x8589 /* Not in REF_01 */
568 #define H_SIZE_LO 0x858A /* Not in REF_01 */
569 #define H_SIZE_HI 0x858B /* Not in REF_01 */
570 #define V_SIZE_LO 0x858C /* Not in REF_01 */
571 #define V_SIZE_HI 0x858D /* Not in REF_01 */
572 #define FV_CNT_LO 0x85A1 /* Not in REF_01 */
573 #define FV_CNT_HI 0x85A2 /* Not in REF_01 */
575 #define FH_MIN0 0x85AA /* Not in REF_01 */
576 #define FH_MIN1 0x85AB /* Not in REF_01 */
577 #define FH_MAX0 0x85AC /* Not in REF_01 */
578 #define FH_MAX1 0x85AD /* Not in REF_01 */
580 #define HV_RST 0x85AF /* Not in REF_01 */
581 #define MASK_H_PI_RST 0x20
582 #define MASK_V_PI_RST 0x10
584 #define EDID_MODE 0x85C7
585 #define MASK_EDID_SPEED 0x40
586 #define MASK_EDID_MODE 0x03
587 #define MASK_EDID_MODE_DISABLE 0x00
588 #define MASK_EDID_MODE_DDC2B 0x01
589 #define MASK_EDID_MODE_E_DDC 0x02
591 #define EDID_LEN1 0x85CA
592 #define EDID_LEN2 0x85CB
594 #define HDCP_REG3 0x85D1 /* Not in REF_01 */
595 #define KEY_RD_CMD 0x01
597 #define FORCE_MUTE 0x8600
598 #define MASK_FORCE_AMUTE 0x10
599 #define MASK_FORCE_DMUTE 0x01
601 #define CMD_AUD 0x8601
602 #define MASK_CMD_BUFINIT 0x04
603 #define MASK_CMD_LOCKDET 0x02
604 #define MASK_CMD_MUTE 0x01
606 #define AUTO_CMD0 0x8602
607 #define MASK_AUTO_MUTE7 0x80
608 #define MASK_AUTO_MUTE6 0x40
609 #define MASK_AUTO_MUTE5 0x20
610 #define MASK_AUTO_MUTE4 0x10
611 #define MASK_AUTO_MUTE3 0x08
612 #define MASK_AUTO_MUTE2 0x04
613 #define MASK_AUTO_MUTE1 0x02
614 #define MASK_AUTO_MUTE0 0x01
616 #define AUTO_CMD1 0x8603
617 #define MASK_AUTO_MUTE10 0x04
618 #define MASK_AUTO_MUTE9 0x02
619 #define MASK_AUTO_MUTE8 0x01
621 #define AUTO_CMD2 0x8604
622 #define MASK_AUTO_PLAY3 0x08
623 #define MASK_AUTO_PLAY2 0x04
625 #define BUFINIT_START 0x8606
626 #define SET_BUFINIT_START_MS(milliseconds) ((milliseconds) / 100)
628 #define FS_MUTE 0x8607
629 #define MASK_FS_ELSE_MUTE 0x80
630 #define MASK_FS22_MUTE 0x40
631 #define MASK_FS24_MUTE 0x20
632 #define MASK_FS88_MUTE 0x10
633 #define MASK_FS96_MUTE 0x08
634 #define MASK_FS176_MUTE 0x04
635 #define MASK_FS192_MUTE 0x02
636 #define MASK_FS_NO_MUTE 0x01
638 #define FS_IMODE 0x8620
639 #define MASK_NLPCM_HMODE 0x40
640 #define MASK_NLPCM_SMODE 0x20
641 #define MASK_NLPCM_IMODE 0x10
642 #define MASK_FS_HMODE 0x08
643 #define MASK_FS_AMODE 0x04
644 #define MASK_FS_SMODE 0x02
645 #define MASK_FS_IMODE 0x01
647 #define FS_SET 0x8621
650 #define LOCKDET_REF0 0x8630
651 #define LOCKDET_REF1 0x8631
652 #define LOCKDET_REF2 0x8632
654 #define ACR_MODE 0x8640
655 #define MASK_ACR_LOAD 0x10
656 #define MASK_N_MODE 0x04
657 #define MASK_CTS_MODE 0x01
659 #define ACR_MDF0 0x8641
660 #define MASK_ACR_L2MDF 0x70
661 #define MASK_ACR_L2MDF_0_PPM 0x00
662 #define MASK_ACR_L2MDF_61_PPM 0x10
663 #define MASK_ACR_L2MDF_122_PPM 0x20
664 #define MASK_ACR_L2MDF_244_PPM 0x30
665 #define MASK_ACR_L2MDF_488_PPM 0x40
666 #define MASK_ACR_L2MDF_976_PPM 0x50
667 #define MASK_ACR_L2MDF_1976_PPM 0x60
668 #define MASK_ACR_L2MDF_3906_PPM 0x70
669 #define MASK_ACR_L1MDF 0x07
670 #define MASK_ACR_L1MDF_0_PPM 0x00
671 #define MASK_ACR_L1MDF_61_PPM 0x01
672 #define MASK_ACR_L1MDF_122_PPM 0x02
673 #define MASK_ACR_L1MDF_244_PPM 0x03
674 #define MASK_ACR_L1MDF_488_PPM 0x04
675 #define MASK_ACR_L1MDF_976_PPM 0x05
676 #define MASK_ACR_L1MDF_1976_PPM 0x06
677 #define MASK_ACR_L1MDF_3906_PPM 0x07
679 #define ACR_MDF1 0x8642
680 #define MASK_ACR_L3MDF 0x07
681 #define MASK_ACR_L3MDF_0_PPM 0x00
682 #define MASK_ACR_L3MDF_61_PPM 0x01
683 #define MASK_ACR_L3MDF_122_PPM 0x02
684 #define MASK_ACR_L3MDF_244_PPM 0x03
685 #define MASK_ACR_L3MDF_488_PPM 0x04
686 #define MASK_ACR_L3MDF_976_PPM 0x05
687 #define MASK_ACR_L3MDF_1976_PPM 0x06
688 #define MASK_ACR_L3MDF_3906_PPM 0x07
690 #define SDO_MODE1 0x8652
691 #define MASK_SDO_BIT_LENG 0x70
692 #define MASK_SDO_FMT 0x03
693 #define MASK_SDO_FMT_RIGHT 0x00
694 #define MASK_SDO_FMT_LEFT 0x01
695 #define MASK_SDO_FMT_I2S 0x02
697 #define DIV_MODE 0x8665 /* Not in REF_01 */
698 #define MASK_DIV_DLY 0xf0
699 #define SET_DIV_DLY_MS(milliseconds) ((((milliseconds) / 100) << 4) & \
701 #define MASK_DIV_MODE 0x01
703 #define NCO_F0_MOD 0x8670
704 #define MASK_NCO_F0_MOD 0x03
705 #define MASK_NCO_F0_MOD_42MHZ 0x00
706 #define MASK_NCO_F0_MOD_27MHZ 0x01
708 #define PK_INT_MODE 0x8709
709 #define MASK_ISRC2_INT_MODE 0x80
710 #define MASK_ISRC_INT_MODE 0x40
711 #define MASK_ACP_INT_MODE 0x20
712 #define MASK_VS_INT_MODE 0x10
713 #define MASK_SPD_INT_MODE 0x08
714 #define MASK_MS_INT_MODE 0x04
715 #define MASK_AUD_INT_MODE 0x02
716 #define MASK_AVI_INT_MODE 0x01
718 #define NO_PKT_LIMIT 0x870B
719 #define MASK_NO_ACP_LIMIT 0xf0
720 #define SET_NO_ACP_LIMIT_MS(milliseconds) ((((milliseconds) / 80) << 4) & \
722 #define MASK_NO_AVI_LIMIT 0x0f
723 #define SET_NO_AVI_LIMIT_MS(milliseconds) (((milliseconds) / 80) & \
726 #define NO_PKT_CLR 0x870C
727 #define MASK_NO_VS_CLR 0x40
728 #define MASK_NO_SPD_CLR 0x20
729 #define MASK_NO_ACP_CLR 0x10
730 #define MASK_NO_AVI_CLR1 0x02
731 #define MASK_NO_AVI_CLR0 0x01
733 #define ERR_PK_LIMIT 0x870D
734 #define NO_PKT_LIMIT2 0x870E
735 #define PK_AVI_0HEAD 0x8710
736 #define PK_AVI_1HEAD 0x8711
737 #define PK_AVI_2HEAD 0x8712
738 #define PK_AVI_0BYTE 0x8713
739 #define PK_AVI_1BYTE 0x8714
740 #define PK_AVI_2BYTE 0x8715
741 #define PK_AVI_3BYTE 0x8716
742 #define PK_AVI_4BYTE 0x8717
743 #define PK_AVI_5BYTE 0x8718
744 #define PK_AVI_6BYTE 0x8719
745 #define PK_AVI_7BYTE 0x871A
746 #define PK_AVI_8BYTE 0x871B
747 #define PK_AVI_9BYTE 0x871C
748 #define PK_AVI_10BYTE 0x871D
749 #define PK_AVI_11BYTE 0x871E
750 #define PK_AVI_12BYTE 0x871F
751 #define PK_AVI_13BYTE 0x8720
752 #define PK_AVI_14BYTE 0x8721
753 #define PK_AVI_15BYTE 0x8722
754 #define PK_AVI_16BYTE 0x8723
759 #define MASK_HDMI_RSVD 0x80
760 #define MASK_REPEATER 0x40
761 #define MASK_READY 0x20
762 #define MASK_FASTI2C 0x10
763 #define MASK_1_1_FEA 0x02
764 #define MASK_FAST_REAU 0x01
766 #define BSTATUS1 0x8842
767 #define MASK_MAX_EXCED 0x08
769 #define EDID_RAM 0x8C00
770 #define NO_GDB_LIMIT 0x9007