xref: /linux/drivers/gpu/drm/tegra/hdmi.h (revision 75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37)
1*d2912cb1SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */
2dee8268fSThierry Reding /*
3dee8268fSThierry Reding  * Copyright (C) 2012 Avionic Design GmbH
4dee8268fSThierry Reding  * Copyright (C) 2012 NVIDIA CORPORATION.  All rights reserved.
5dee8268fSThierry Reding  */
6dee8268fSThierry Reding 
7dee8268fSThierry Reding #ifndef TEGRA_HDMI_H
8dee8268fSThierry Reding #define TEGRA_HDMI_H 1
9dee8268fSThierry Reding 
10dee8268fSThierry Reding /* register definitions */
11dee8268fSThierry Reding #define HDMI_CTXSW						0x00
12dee8268fSThierry Reding 
13dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_STATE0				0x01
14dee8268fSThierry Reding #define SOR_STATE_UPDATE (1 << 0)
15dee8268fSThierry Reding 
16dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_STATE1				0x02
17dee8268fSThierry Reding #define SOR_STATE_ASY_HEAD_OPMODE_AWAKE (2 << 0)
18dee8268fSThierry Reding #define SOR_STATE_ASY_ORMODE_NORMAL     (1 << 2)
19dee8268fSThierry Reding #define SOR_STATE_ATTACHED              (1 << 3)
20dee8268fSThierry Reding 
21dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_STATE2				0x03
22dee8268fSThierry Reding #define SOR_STATE_ASY_OWNER_NONE         (0 <<  0)
23dee8268fSThierry Reding #define SOR_STATE_ASY_OWNER_HEAD0        (1 <<  0)
24dee8268fSThierry Reding #define SOR_STATE_ASY_SUBOWNER_NONE      (0 <<  4)
25dee8268fSThierry Reding #define SOR_STATE_ASY_SUBOWNER_SUBHEAD0  (1 <<  4)
26dee8268fSThierry Reding #define SOR_STATE_ASY_SUBOWNER_SUBHEAD1  (2 <<  4)
27dee8268fSThierry Reding #define SOR_STATE_ASY_SUBOWNER_BOTH      (3 <<  4)
28dee8268fSThierry Reding #define SOR_STATE_ASY_CRCMODE_ACTIVE     (0 <<  6)
29dee8268fSThierry Reding #define SOR_STATE_ASY_CRCMODE_COMPLETE   (1 <<  6)
30dee8268fSThierry Reding #define SOR_STATE_ASY_CRCMODE_NON_ACTIVE (2 <<  6)
31dee8268fSThierry Reding #define SOR_STATE_ASY_PROTOCOL_SINGLE_TMDS_A (1 << 8)
32dee8268fSThierry Reding #define SOR_STATE_ASY_PROTOCOL_CUSTOM        (15 << 8)
33dee8268fSThierry Reding #define SOR_STATE_ASY_HSYNCPOL_POS       (0 << 12)
34dee8268fSThierry Reding #define SOR_STATE_ASY_HSYNCPOL_NEG       (1 << 12)
35dee8268fSThierry Reding #define SOR_STATE_ASY_VSYNCPOL_POS       (0 << 13)
36dee8268fSThierry Reding #define SOR_STATE_ASY_VSYNCPOL_NEG       (1 << 13)
37dee8268fSThierry Reding #define SOR_STATE_ASY_DEPOL_POS          (0 << 14)
38dee8268fSThierry Reding #define SOR_STATE_ASY_DEPOL_NEG          (1 << 14)
39dee8268fSThierry Reding 
40dee8268fSThierry Reding #define HDMI_NV_PDISP_RG_HDCP_AN_MSB				0x04
41dee8268fSThierry Reding #define HDMI_NV_PDISP_RG_HDCP_AN_LSB				0x05
42dee8268fSThierry Reding #define HDMI_NV_PDISP_RG_HDCP_CN_MSB				0x06
43dee8268fSThierry Reding #define HDMI_NV_PDISP_RG_HDCP_CN_LSB				0x07
44dee8268fSThierry Reding #define HDMI_NV_PDISP_RG_HDCP_AKSV_MSB				0x08
45dee8268fSThierry Reding #define HDMI_NV_PDISP_RG_HDCP_AKSV_LSB				0x09
46dee8268fSThierry Reding #define HDMI_NV_PDISP_RG_HDCP_BKSV_MSB				0x0a
47dee8268fSThierry Reding #define HDMI_NV_PDISP_RG_HDCP_BKSV_LSB				0x0b
48dee8268fSThierry Reding #define HDMI_NV_PDISP_RG_HDCP_CKSV_MSB				0x0c
49dee8268fSThierry Reding #define HDMI_NV_PDISP_RG_HDCP_CKSV_LSB				0x0d
50dee8268fSThierry Reding #define HDMI_NV_PDISP_RG_HDCP_DKSV_MSB				0x0e
51dee8268fSThierry Reding #define HDMI_NV_PDISP_RG_HDCP_DKSV_LSB				0x0f
52dee8268fSThierry Reding #define HDMI_NV_PDISP_RG_HDCP_CTRL				0x10
53dee8268fSThierry Reding #define HDMI_NV_PDISP_RG_HDCP_CMODE				0x11
54dee8268fSThierry Reding #define HDMI_NV_PDISP_RG_HDCP_MPRIME_MSB			0x12
55dee8268fSThierry Reding #define HDMI_NV_PDISP_RG_HDCP_MPRIME_LSB			0x13
56dee8268fSThierry Reding #define HDMI_NV_PDISP_RG_HDCP_SPRIME_MSB			0x14
57dee8268fSThierry Reding #define HDMI_NV_PDISP_RG_HDCP_SPRIME_LSB2			0x15
58dee8268fSThierry Reding #define HDMI_NV_PDISP_RG_HDCP_SPRIME_LSB1			0x16
59dee8268fSThierry Reding #define HDMI_NV_PDISP_RG_HDCP_RI				0x17
60dee8268fSThierry Reding #define HDMI_NV_PDISP_RG_HDCP_CS_MSB				0x18
61dee8268fSThierry Reding #define HDMI_NV_PDISP_RG_HDCP_CS_LSB				0x19
62dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_AUDIO_EMU0				0x1a
63dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_AUDIO_EMU_RDATA0			0x1b
64dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_AUDIO_EMU1				0x1c
65dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_AUDIO_EMU2				0x1d
66dee8268fSThierry Reding 
67dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_AUDIO_INFOFRAME_CTRL			0x1e
68dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_AUDIO_INFOFRAME_STATUS		0x1f
69dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_AUDIO_INFOFRAME_HEADER		0x20
70dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_AUDIO_INFOFRAME_SUBPACK0_LOW		0x21
71dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_AUDIO_INFOFRAME_SUBPACK0_HIGH	0x22
72dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_AVI_INFOFRAME_CTRL			0x23
73dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_AVI_INFOFRAME_STATUS			0x24
74dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_AVI_INFOFRAME_HEADER			0x25
75dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_AVI_INFOFRAME_SUBPACK0_LOW		0x26
76dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_AVI_INFOFRAME_SUBPACK0_HIGH		0x27
77dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_AVI_INFOFRAME_SUBPACK1_LOW		0x28
78dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_AVI_INFOFRAME_SUBPACK1_HIGH		0x29
79dee8268fSThierry Reding 
80dee8268fSThierry Reding #define INFOFRAME_CTRL_ENABLE (1 << 0)
81dee8268fSThierry Reding 
82dee8268fSThierry Reding #define INFOFRAME_HEADER_TYPE(x)    (((x) & 0xff) <<  0)
83dee8268fSThierry Reding #define INFOFRAME_HEADER_VERSION(x) (((x) & 0xff) <<  8)
84dee8268fSThierry Reding #define INFOFRAME_HEADER_LEN(x)     (((x) & 0x0f) << 16)
85dee8268fSThierry Reding 
86dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_GENERIC_CTRL				0x2a
87dee8268fSThierry Reding #define GENERIC_CTRL_ENABLE (1 <<  0)
88dee8268fSThierry Reding #define GENERIC_CTRL_OTHER  (1 <<  4)
89dee8268fSThierry Reding #define GENERIC_CTRL_SINGLE (1 <<  8)
90dee8268fSThierry Reding #define GENERIC_CTRL_HBLANK (1 << 12)
91dee8268fSThierry Reding #define GENERIC_CTRL_AUDIO  (1 << 16)
92dee8268fSThierry Reding 
93dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_GENERIC_STATUS			0x2b
94dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_GENERIC_HEADER			0x2c
95dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_GENERIC_SUBPACK0_LOW			0x2d
96dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_GENERIC_SUBPACK0_HIGH		0x2e
97dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_GENERIC_SUBPACK1_LOW			0x2f
98dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_GENERIC_SUBPACK1_HIGH		0x30
99dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_GENERIC_SUBPACK2_LOW			0x31
100dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_GENERIC_SUBPACK2_HIGH		0x32
101dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_GENERIC_SUBPACK3_LOW			0x33
102dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_GENERIC_SUBPACK3_HIGH		0x34
103dee8268fSThierry Reding 
104dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_ACR_CTRL				0x35
105dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_ACR_0320_SUBPACK_LOW			0x36
106dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_ACR_0320_SUBPACK_HIGH		0x37
107dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_ACR_0441_SUBPACK_LOW			0x38
108dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_ACR_0441_SUBPACK_HIGH		0x39
109dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_ACR_0882_SUBPACK_LOW			0x3a
110dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_ACR_0882_SUBPACK_HIGH		0x3b
111dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_ACR_1764_SUBPACK_LOW			0x3c
112dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_ACR_1764_SUBPACK_HIGH		0x3d
113dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_ACR_0480_SUBPACK_LOW			0x3e
114dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_ACR_0480_SUBPACK_HIGH		0x3f
115dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_ACR_0960_SUBPACK_LOW			0x40
116dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_ACR_0960_SUBPACK_HIGH		0x41
117dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_ACR_1920_SUBPACK_LOW			0x42
118dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_ACR_1920_SUBPACK_HIGH		0x43
119dee8268fSThierry Reding 
120dee8268fSThierry Reding #define ACR_SUBPACK_CTS(x) (((x) & 0xffffff) << 8)
121dee8268fSThierry Reding #define ACR_SUBPACK_N(x)   (((x) & 0xffffff) << 0)
122dee8268fSThierry Reding #define ACR_ENABLE         (1 << 31)
123dee8268fSThierry Reding 
124dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_CTRL					0x44
125dee8268fSThierry Reding #define HDMI_CTRL_REKEY(x)         (((x) & 0x7f) <<  0)
126dee8268fSThierry Reding #define HDMI_CTRL_MAX_AC_PACKET(x) (((x) & 0x1f) << 16)
127dee8268fSThierry Reding #define HDMI_CTRL_ENABLE           (1 << 30)
128dee8268fSThierry Reding 
129dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_VSYNC_KEEPOUT			0x45
130dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_VSYNC_WINDOW				0x46
131dee8268fSThierry Reding #define VSYNC_WINDOW_END(x)   (((x) & 0x3ff) <<  0)
132dee8268fSThierry Reding #define VSYNC_WINDOW_START(x) (((x) & 0x3ff) << 16)
133dee8268fSThierry Reding #define VSYNC_WINDOW_ENABLE   (1 << 31)
134dee8268fSThierry Reding 
135dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_GCP_CTRL				0x47
136dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_GCP_STATUS				0x48
137dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_GCP_SUBPACK				0x49
138dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_CHANNEL_STATUS1			0x4a
139dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_CHANNEL_STATUS2			0x4b
140dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_EMU0					0x4c
141dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_EMU1					0x4d
142dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_EMU1_RDATA				0x4e
143dee8268fSThierry Reding 
144dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_SPARE				0x4f
145dee8268fSThierry Reding #define SPARE_HW_CTS           (1 << 0)
146dee8268fSThierry Reding #define SPARE_FORCE_SW_CTS     (1 << 1)
147dee8268fSThierry Reding #define SPARE_CTS_RESET_VAL(x) (((x) & 0x7) << 16)
148dee8268fSThierry Reding 
149dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_SPDIF_CHN_STATUS1			0x50
150dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_SPDIF_CHN_STATUS2			0x51
151dee8268fSThierry Reding #define HDMI_NV_PDISP_HDMI_HDCPRIF_ROM_CTRL			0x53
152dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_CAP					0x54
153dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_PWR					0x55
154dee8268fSThierry Reding #define SOR_PWR_NORMAL_STATE_PD     (0 <<  0)
155dee8268fSThierry Reding #define SOR_PWR_NORMAL_STATE_PU     (1 <<  0)
156dee8268fSThierry Reding #define SOR_PWR_NORMAL_START_NORMAL (0 <<  1)
157dee8268fSThierry Reding #define SOR_PWR_NORMAL_START_ALT    (1 <<  1)
158dee8268fSThierry Reding #define SOR_PWR_SAFE_STATE_PD       (0 << 16)
159dee8268fSThierry Reding #define SOR_PWR_SAFE_STATE_PU       (1 << 16)
160dee8268fSThierry Reding #define SOR_PWR_SETTING_NEW_DONE    (0 << 31)
161dee8268fSThierry Reding #define SOR_PWR_SETTING_NEW_PENDING (1 << 31)
162dee8268fSThierry Reding #define SOR_PWR_SETTING_NEW_TRIGGER (1 << 31)
163dee8268fSThierry Reding 
164dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_TEST					0x56
165dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_PLL0					0x57
166dee8268fSThierry Reding #define SOR_PLL_PWR            (1 << 0)
167dee8268fSThierry Reding #define SOR_PLL_PDBG           (1 << 1)
168dee8268fSThierry Reding #define SOR_PLL_VCAPD          (1 << 2)
169dee8268fSThierry Reding #define SOR_PLL_PDPORT         (1 << 3)
170dee8268fSThierry Reding #define SOR_PLL_RESISTORSEL    (1 << 4)
171dee8268fSThierry Reding #define SOR_PLL_PULLDOWN       (1 << 5)
172dee8268fSThierry Reding #define SOR_PLL_VCOCAP(x)      (((x) & 0xf) <<  8)
173dee8268fSThierry Reding #define SOR_PLL_BG_V17_S(x)    (((x) & 0xf) << 12)
174dee8268fSThierry Reding #define SOR_PLL_FILTER(x)      (((x) & 0xf) << 16)
175dee8268fSThierry Reding #define SOR_PLL_ICHPMP(x)      (((x) & 0xf) << 24)
176dee8268fSThierry Reding #define SOR_PLL_TX_REG_LOAD(x) (((x) & 0xf) << 28)
177dee8268fSThierry Reding 
178dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_PLL1					0x58
179dee8268fSThierry Reding #define SOR_PLL_TMDS_TERM_ENABLE (1 << 8)
180dee8268fSThierry Reding #define SOR_PLL_TMDS_TERMADJ(x)  (((x) & 0xf) <<  9)
181dee8268fSThierry Reding #define SOR_PLL_LOADADJ(x)       (((x) & 0xf) << 20)
182dee8268fSThierry Reding #define SOR_PLL_PE_EN            (1 << 28)
183dee8268fSThierry Reding #define SOR_PLL_HALF_FULL_PE     (1 << 29)
184dee8268fSThierry Reding #define SOR_PLL_S_D_PIN_PE       (1 << 30)
185dee8268fSThierry Reding 
186dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_PLL2					0x59
187dee8268fSThierry Reding 
188dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_CSTM					0x5a
189dee8268fSThierry Reding #define SOR_CSTM_ROTCLK(x) (((x) & 0xf) << 24)
1909cbfc73eSThierry Reding #define SOR_CSTM_PLLDIV (1 << 21)
1919cbfc73eSThierry Reding #define SOR_CSTM_LVDS_ENABLE (1 << 16)
1929cbfc73eSThierry Reding #define SOR_CSTM_MODE_LVDS (0 << 12)
1939cbfc73eSThierry Reding #define SOR_CSTM_MODE_TMDS (1 << 12)
1949cbfc73eSThierry Reding #define SOR_CSTM_MODE_MASK (3 << 12)
195dee8268fSThierry Reding 
196dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_LVDS					0x5b
197dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_CRCA					0x5c
198dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_CRCB					0x5d
199dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_BLANK					0x5e
200dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_SEQ_CTL				0x5f
2015c1c071aSThierry Reding #define SOR_SEQ_PU_PC(x)     (((x) & 0xf) <<  0)
202dee8268fSThierry Reding #define SOR_SEQ_PU_PC_ALT(x) (((x) & 0xf) <<  4)
203dee8268fSThierry Reding #define SOR_SEQ_PD_PC(x)     (((x) & 0xf) <<  8)
204dee8268fSThierry Reding #define SOR_SEQ_PD_PC_ALT(x) (((x) & 0xf) << 12)
205dee8268fSThierry Reding #define SOR_SEQ_PC(x)        (((x) & 0xf) << 16)
206dee8268fSThierry Reding #define SOR_SEQ_STATUS       (1 << 28)
207dee8268fSThierry Reding #define SOR_SEQ_SWITCH       (1 << 30)
208dee8268fSThierry Reding 
209dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_SEQ_INST(x)				(0x60 + (x))
210dee8268fSThierry Reding 
211dee8268fSThierry Reding #define SOR_SEQ_INST_WAIT_TIME(x)     (((x) & 0x3ff) << 0)
212dee8268fSThierry Reding #define SOR_SEQ_INST_WAIT_UNITS_VSYNC (2 << 12)
213dee8268fSThierry Reding #define SOR_SEQ_INST_HALT             (1 << 15)
214dee8268fSThierry Reding #define SOR_SEQ_INST_PIN_A_LOW        (0 << 21)
215dee8268fSThierry Reding #define SOR_SEQ_INST_PIN_A_HIGH       (1 << 21)
216dee8268fSThierry Reding #define SOR_SEQ_INST_PIN_B_LOW        (0 << 22)
217dee8268fSThierry Reding #define SOR_SEQ_INST_PIN_B_HIGH       (1 << 22)
218dee8268fSThierry Reding #define SOR_SEQ_INST_DRIVE_PWM_OUT_LO (1 << 23)
219dee8268fSThierry Reding 
220dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_VCRCA0				0x72
221dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_VCRCA1				0x73
222dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_CCRCA0				0x74
223dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_CCRCA1				0x75
224dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_EDATAA0				0x76
225dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_EDATAA1				0x77
226dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_COUNTA0				0x78
227dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_COUNTA1				0x79
228dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_DEBUGA0				0x7a
229dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_DEBUGA1				0x7b
230dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_TRIG					0x7c
231dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_MSCHECK				0x7d
232dee8268fSThierry Reding 
233dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_LANE_DRIVE_CURRENT			0x7e
234dee8268fSThierry Reding #define DRIVE_CURRENT_LANE0(x)      (((x) & 0x3f) <<  0)
235dee8268fSThierry Reding #define DRIVE_CURRENT_LANE1(x)      (((x) & 0x3f) <<  8)
236dee8268fSThierry Reding #define DRIVE_CURRENT_LANE2(x)      (((x) & 0x3f) << 16)
237dee8268fSThierry Reding #define DRIVE_CURRENT_LANE3(x)      (((x) & 0x3f) << 24)
2387d1d28acSMikko Perttunen #define DRIVE_CURRENT_LANE0_T114(x) (((x) & 0x7f) <<  0)
2397d1d28acSMikko Perttunen #define DRIVE_CURRENT_LANE1_T114(x) (((x) & 0x7f) <<  8)
2407d1d28acSMikko Perttunen #define DRIVE_CURRENT_LANE2_T114(x) (((x) & 0x7f) << 16)
2417d1d28acSMikko Perttunen #define DRIVE_CURRENT_LANE3_T114(x) (((x) & 0x7f) << 24)
242dee8268fSThierry Reding 
243dee8268fSThierry Reding #define DRIVE_CURRENT_1_500_mA  0x00
244dee8268fSThierry Reding #define DRIVE_CURRENT_1_875_mA  0x01
245dee8268fSThierry Reding #define DRIVE_CURRENT_2_250_mA  0x02
246dee8268fSThierry Reding #define DRIVE_CURRENT_2_625_mA  0x03
247dee8268fSThierry Reding #define DRIVE_CURRENT_3_000_mA  0x04
248dee8268fSThierry Reding #define DRIVE_CURRENT_3_375_mA  0x05
249dee8268fSThierry Reding #define DRIVE_CURRENT_3_750_mA  0x06
250dee8268fSThierry Reding #define DRIVE_CURRENT_4_125_mA  0x07
251dee8268fSThierry Reding #define DRIVE_CURRENT_4_500_mA  0x08
252dee8268fSThierry Reding #define DRIVE_CURRENT_4_875_mA  0x09
253dee8268fSThierry Reding #define DRIVE_CURRENT_5_250_mA  0x0a
254dee8268fSThierry Reding #define DRIVE_CURRENT_5_625_mA  0x0b
255dee8268fSThierry Reding #define DRIVE_CURRENT_6_000_mA  0x0c
256dee8268fSThierry Reding #define DRIVE_CURRENT_6_375_mA  0x0d
257dee8268fSThierry Reding #define DRIVE_CURRENT_6_750_mA  0x0e
258dee8268fSThierry Reding #define DRIVE_CURRENT_7_125_mA  0x0f
259dee8268fSThierry Reding #define DRIVE_CURRENT_7_500_mA  0x10
260dee8268fSThierry Reding #define DRIVE_CURRENT_7_875_mA  0x11
261dee8268fSThierry Reding #define DRIVE_CURRENT_8_250_mA  0x12
262dee8268fSThierry Reding #define DRIVE_CURRENT_8_625_mA  0x13
263dee8268fSThierry Reding #define DRIVE_CURRENT_9_000_mA  0x14
264dee8268fSThierry Reding #define DRIVE_CURRENT_9_375_mA  0x15
265dee8268fSThierry Reding #define DRIVE_CURRENT_9_750_mA  0x16
266dee8268fSThierry Reding #define DRIVE_CURRENT_10_125_mA 0x17
267dee8268fSThierry Reding #define DRIVE_CURRENT_10_500_mA 0x18
268dee8268fSThierry Reding #define DRIVE_CURRENT_10_875_mA 0x19
269dee8268fSThierry Reding #define DRIVE_CURRENT_11_250_mA 0x1a
270dee8268fSThierry Reding #define DRIVE_CURRENT_11_625_mA 0x1b
271dee8268fSThierry Reding #define DRIVE_CURRENT_12_000_mA 0x1c
272dee8268fSThierry Reding #define DRIVE_CURRENT_12_375_mA 0x1d
273dee8268fSThierry Reding #define DRIVE_CURRENT_12_750_mA 0x1e
274dee8268fSThierry Reding #define DRIVE_CURRENT_13_125_mA 0x1f
275dee8268fSThierry Reding #define DRIVE_CURRENT_13_500_mA 0x20
276dee8268fSThierry Reding #define DRIVE_CURRENT_13_875_mA 0x21
277dee8268fSThierry Reding #define DRIVE_CURRENT_14_250_mA 0x22
278dee8268fSThierry Reding #define DRIVE_CURRENT_14_625_mA 0x23
279dee8268fSThierry Reding #define DRIVE_CURRENT_15_000_mA 0x24
280dee8268fSThierry Reding #define DRIVE_CURRENT_15_375_mA 0x25
281dee8268fSThierry Reding #define DRIVE_CURRENT_15_750_mA 0x26
282dee8268fSThierry Reding #define DRIVE_CURRENT_16_125_mA 0x27
283dee8268fSThierry Reding #define DRIVE_CURRENT_16_500_mA 0x28
284dee8268fSThierry Reding #define DRIVE_CURRENT_16_875_mA 0x29
285dee8268fSThierry Reding #define DRIVE_CURRENT_17_250_mA 0x2a
286dee8268fSThierry Reding #define DRIVE_CURRENT_17_625_mA 0x2b
287dee8268fSThierry Reding #define DRIVE_CURRENT_18_000_mA 0x2c
288dee8268fSThierry Reding #define DRIVE_CURRENT_18_375_mA 0x2d
289dee8268fSThierry Reding #define DRIVE_CURRENT_18_750_mA 0x2e
290dee8268fSThierry Reding #define DRIVE_CURRENT_19_125_mA 0x2f
291dee8268fSThierry Reding #define DRIVE_CURRENT_19_500_mA 0x30
292dee8268fSThierry Reding #define DRIVE_CURRENT_19_875_mA 0x31
293dee8268fSThierry Reding #define DRIVE_CURRENT_20_250_mA 0x32
294dee8268fSThierry Reding #define DRIVE_CURRENT_20_625_mA 0x33
295dee8268fSThierry Reding #define DRIVE_CURRENT_21_000_mA 0x34
296dee8268fSThierry Reding #define DRIVE_CURRENT_21_375_mA 0x35
297dee8268fSThierry Reding #define DRIVE_CURRENT_21_750_mA 0x36
298dee8268fSThierry Reding #define DRIVE_CURRENT_22_125_mA 0x37
299dee8268fSThierry Reding #define DRIVE_CURRENT_22_500_mA 0x38
300dee8268fSThierry Reding #define DRIVE_CURRENT_22_875_mA 0x39
301dee8268fSThierry Reding #define DRIVE_CURRENT_23_250_mA 0x3a
302dee8268fSThierry Reding #define DRIVE_CURRENT_23_625_mA 0x3b
303dee8268fSThierry Reding #define DRIVE_CURRENT_24_000_mA 0x3c
304dee8268fSThierry Reding #define DRIVE_CURRENT_24_375_mA 0x3d
305dee8268fSThierry Reding #define DRIVE_CURRENT_24_750_mA 0x3e
306dee8268fSThierry Reding 
3077d1d28acSMikko Perttunen #define DRIVE_CURRENT_0_000_mA_T114 0x00
3087d1d28acSMikko Perttunen #define DRIVE_CURRENT_0_400_mA_T114 0x01
3097d1d28acSMikko Perttunen #define DRIVE_CURRENT_0_800_mA_T114 0x02
3107d1d28acSMikko Perttunen #define DRIVE_CURRENT_1_200_mA_T114 0x03
3117d1d28acSMikko Perttunen #define DRIVE_CURRENT_1_600_mA_T114 0x04
3127d1d28acSMikko Perttunen #define DRIVE_CURRENT_2_000_mA_T114 0x05
3137d1d28acSMikko Perttunen #define DRIVE_CURRENT_2_400_mA_T114 0x06
3147d1d28acSMikko Perttunen #define DRIVE_CURRENT_2_800_mA_T114 0x07
3157d1d28acSMikko Perttunen #define DRIVE_CURRENT_3_200_mA_T114 0x08
3167d1d28acSMikko Perttunen #define DRIVE_CURRENT_3_600_mA_T114 0x09
3177d1d28acSMikko Perttunen #define DRIVE_CURRENT_4_000_mA_T114 0x0a
3187d1d28acSMikko Perttunen #define DRIVE_CURRENT_4_400_mA_T114 0x0b
3197d1d28acSMikko Perttunen #define DRIVE_CURRENT_4_800_mA_T114 0x0c
3207d1d28acSMikko Perttunen #define DRIVE_CURRENT_5_200_mA_T114 0x0d
3217d1d28acSMikko Perttunen #define DRIVE_CURRENT_5_600_mA_T114 0x0e
3227d1d28acSMikko Perttunen #define DRIVE_CURRENT_6_000_mA_T114 0x0f
3237d1d28acSMikko Perttunen #define DRIVE_CURRENT_6_400_mA_T114 0x10
3247d1d28acSMikko Perttunen #define DRIVE_CURRENT_6_800_mA_T114 0x11
3257d1d28acSMikko Perttunen #define DRIVE_CURRENT_7_200_mA_T114 0x12
3267d1d28acSMikko Perttunen #define DRIVE_CURRENT_7_600_mA_T114 0x13
3277d1d28acSMikko Perttunen #define DRIVE_CURRENT_8_000_mA_T114 0x14
3287d1d28acSMikko Perttunen #define DRIVE_CURRENT_8_400_mA_T114 0x15
3297d1d28acSMikko Perttunen #define DRIVE_CURRENT_8_800_mA_T114 0x16
3307d1d28acSMikko Perttunen #define DRIVE_CURRENT_9_200_mA_T114 0x17
3317d1d28acSMikko Perttunen #define DRIVE_CURRENT_9_600_mA_T114 0x18
3327d1d28acSMikko Perttunen #define DRIVE_CURRENT_10_000_mA_T114 0x19
3337d1d28acSMikko Perttunen #define DRIVE_CURRENT_10_400_mA_T114 0x1a
3347d1d28acSMikko Perttunen #define DRIVE_CURRENT_10_800_mA_T114 0x1b
3357d1d28acSMikko Perttunen #define DRIVE_CURRENT_11_200_mA_T114 0x1c
3367d1d28acSMikko Perttunen #define DRIVE_CURRENT_11_600_mA_T114 0x1d
3377d1d28acSMikko Perttunen #define DRIVE_CURRENT_12_000_mA_T114 0x1e
3387d1d28acSMikko Perttunen #define DRIVE_CURRENT_12_400_mA_T114 0x1f
3397d1d28acSMikko Perttunen #define DRIVE_CURRENT_12_800_mA_T114 0x20
3407d1d28acSMikko Perttunen #define DRIVE_CURRENT_13_200_mA_T114 0x21
3417d1d28acSMikko Perttunen #define DRIVE_CURRENT_13_600_mA_T114 0x22
3427d1d28acSMikko Perttunen #define DRIVE_CURRENT_14_000_mA_T114 0x23
3437d1d28acSMikko Perttunen #define DRIVE_CURRENT_14_400_mA_T114 0x24
3447d1d28acSMikko Perttunen #define DRIVE_CURRENT_14_800_mA_T114 0x25
3457d1d28acSMikko Perttunen #define DRIVE_CURRENT_15_200_mA_T114 0x26
3467d1d28acSMikko Perttunen #define DRIVE_CURRENT_15_600_mA_T114 0x27
3477d1d28acSMikko Perttunen #define DRIVE_CURRENT_16_000_mA_T114 0x28
3487d1d28acSMikko Perttunen #define DRIVE_CURRENT_16_400_mA_T114 0x29
3497d1d28acSMikko Perttunen #define DRIVE_CURRENT_16_800_mA_T114 0x2a
3507d1d28acSMikko Perttunen #define DRIVE_CURRENT_17_200_mA_T114 0x2b
3517d1d28acSMikko Perttunen #define DRIVE_CURRENT_17_600_mA_T114 0x2c
3527d1d28acSMikko Perttunen #define DRIVE_CURRENT_18_000_mA_T114 0x2d
3537d1d28acSMikko Perttunen #define DRIVE_CURRENT_18_400_mA_T114 0x2e
3547d1d28acSMikko Perttunen #define DRIVE_CURRENT_18_800_mA_T114 0x2f
3557d1d28acSMikko Perttunen #define DRIVE_CURRENT_19_200_mA_T114 0x30
3567d1d28acSMikko Perttunen #define DRIVE_CURRENT_19_600_mA_T114 0x31
3577d1d28acSMikko Perttunen #define DRIVE_CURRENT_20_000_mA_T114 0x32
3587d1d28acSMikko Perttunen #define DRIVE_CURRENT_20_400_mA_T114 0x33
3597d1d28acSMikko Perttunen #define DRIVE_CURRENT_20_800_mA_T114 0x34
3607d1d28acSMikko Perttunen #define DRIVE_CURRENT_21_200_mA_T114 0x35
3617d1d28acSMikko Perttunen #define DRIVE_CURRENT_21_600_mA_T114 0x36
3627d1d28acSMikko Perttunen #define DRIVE_CURRENT_22_000_mA_T114 0x37
3637d1d28acSMikko Perttunen #define DRIVE_CURRENT_22_400_mA_T114 0x38
3647d1d28acSMikko Perttunen #define DRIVE_CURRENT_22_800_mA_T114 0x39
3657d1d28acSMikko Perttunen #define DRIVE_CURRENT_23_200_mA_T114 0x3a
3667d1d28acSMikko Perttunen #define DRIVE_CURRENT_23_600_mA_T114 0x3b
3677d1d28acSMikko Perttunen #define DRIVE_CURRENT_24_000_mA_T114 0x3c
3687d1d28acSMikko Perttunen #define DRIVE_CURRENT_24_400_mA_T114 0x3d
3697d1d28acSMikko Perttunen #define DRIVE_CURRENT_24_800_mA_T114 0x3e
3707d1d28acSMikko Perttunen #define DRIVE_CURRENT_25_200_mA_T114 0x3f
3717d1d28acSMikko Perttunen #define DRIVE_CURRENT_25_400_mA_T114 0x40
3727d1d28acSMikko Perttunen #define DRIVE_CURRENT_25_800_mA_T114 0x41
3737d1d28acSMikko Perttunen #define DRIVE_CURRENT_26_200_mA_T114 0x42
3747d1d28acSMikko Perttunen #define DRIVE_CURRENT_26_600_mA_T114 0x43
3757d1d28acSMikko Perttunen #define DRIVE_CURRENT_27_000_mA_T114 0x44
3767d1d28acSMikko Perttunen #define DRIVE_CURRENT_27_400_mA_T114 0x45
3777d1d28acSMikko Perttunen #define DRIVE_CURRENT_27_800_mA_T114 0x46
3787d1d28acSMikko Perttunen #define DRIVE_CURRENT_28_200_mA_T114 0x47
3797d1d28acSMikko Perttunen 
380dee8268fSThierry Reding #define HDMI_NV_PDISP_AUDIO_DEBUG0				0x7f
381dee8268fSThierry Reding #define HDMI_NV_PDISP_AUDIO_DEBUG1				0x80
382dee8268fSThierry Reding #define HDMI_NV_PDISP_AUDIO_DEBUG2				0x81
383dee8268fSThierry Reding 
384dee8268fSThierry Reding #define HDMI_NV_PDISP_AUDIO_FS(x)				(0x82 + (x))
385dee8268fSThierry Reding #define AUDIO_FS_LOW(x)  (((x) & 0xfff) <<  0)
386dee8268fSThierry Reding #define AUDIO_FS_HIGH(x) (((x) & 0xfff) << 16)
387dee8268fSThierry Reding 
388dee8268fSThierry Reding #define HDMI_NV_PDISP_AUDIO_PULSE_WIDTH				0x89
389dee8268fSThierry Reding #define HDMI_NV_PDISP_AUDIO_THRESHOLD				0x8a
390dee8268fSThierry Reding #define HDMI_NV_PDISP_AUDIO_CNTRL0				0x8b
391dee8268fSThierry Reding #define AUDIO_CNTRL0_ERROR_TOLERANCE(x)  (((x) & 0xff) << 0)
392dee8268fSThierry Reding #define AUDIO_CNTRL0_SOURCE_SELECT_AUTO  (0 << 20)
393dee8268fSThierry Reding #define AUDIO_CNTRL0_SOURCE_SELECT_SPDIF (1 << 20)
394dee8268fSThierry Reding #define AUDIO_CNTRL0_SOURCE_SELECT_HDAL  (2 << 20)
395dee8268fSThierry Reding #define AUDIO_CNTRL0_FRAMES_PER_BLOCK(x) (((x) & 0xff) << 24)
396dee8268fSThierry Reding 
397dee8268fSThierry Reding #define HDMI_NV_PDISP_AUDIO_N					0x8c
398dee8268fSThierry Reding #define AUDIO_N_VALUE(x)           (((x) & 0xfffff) << 0)
399dee8268fSThierry Reding #define AUDIO_N_RESETF             (1 << 20)
400dee8268fSThierry Reding #define AUDIO_N_GENERATE_NORMAL    (0 << 24)
401dee8268fSThierry Reding #define AUDIO_N_GENERATE_ALTERNATE (1 << 24)
402dee8268fSThierry Reding 
403dee8268fSThierry Reding #define HDMI_NV_PDISP_HDCPRIF_ROM_TIMING			0x94
404dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_REFCLK				0x95
405dee8268fSThierry Reding #define SOR_REFCLK_DIV_INT(x)  (((x) & 0xff) << 8)
406dee8268fSThierry Reding #define SOR_REFCLK_DIV_FRAC(x) (((x) & 0x03) << 6)
407dee8268fSThierry Reding 
408dee8268fSThierry Reding #define HDMI_NV_PDISP_CRC_CONTROL				0x96
409dee8268fSThierry Reding #define HDMI_NV_PDISP_INPUT_CONTROL				0x97
410dee8268fSThierry Reding #define HDMI_SRC_DISPLAYA       (0 << 0)
411dee8268fSThierry Reding #define HDMI_SRC_DISPLAYB       (1 << 0)
412dee8268fSThierry Reding #define ARM_VIDEO_RANGE_FULL    (0 << 1)
413dee8268fSThierry Reding #define ARM_VIDEO_RANGE_LIMITED (1 << 1)
414dee8268fSThierry Reding 
415dee8268fSThierry Reding #define HDMI_NV_PDISP_SCRATCH					0x98
416dee8268fSThierry Reding #define HDMI_NV_PDISP_PE_CURRENT				0x99
417dee8268fSThierry Reding #define PE_CURRENT0(x) (((x) & 0xf) << 0)
418dee8268fSThierry Reding #define PE_CURRENT1(x) (((x) & 0xf) << 8)
419dee8268fSThierry Reding #define PE_CURRENT2(x) (((x) & 0xf) << 16)
420dee8268fSThierry Reding #define PE_CURRENT3(x) (((x) & 0xf) << 24)
421dee8268fSThierry Reding 
422dee8268fSThierry Reding #define PE_CURRENT_0_0_mA 0x0
423dee8268fSThierry Reding #define PE_CURRENT_0_5_mA 0x1
424dee8268fSThierry Reding #define PE_CURRENT_1_0_mA 0x2
425dee8268fSThierry Reding #define PE_CURRENT_1_5_mA 0x3
426dee8268fSThierry Reding #define PE_CURRENT_2_0_mA 0x4
427dee8268fSThierry Reding #define PE_CURRENT_2_5_mA 0x5
428dee8268fSThierry Reding #define PE_CURRENT_3_0_mA 0x6
429dee8268fSThierry Reding #define PE_CURRENT_3_5_mA 0x7
430dee8268fSThierry Reding #define PE_CURRENT_4_0_mA 0x8
431dee8268fSThierry Reding #define PE_CURRENT_4_5_mA 0x9
432dee8268fSThierry Reding #define PE_CURRENT_5_0_mA 0xa
433dee8268fSThierry Reding #define PE_CURRENT_5_5_mA 0xb
434dee8268fSThierry Reding #define PE_CURRENT_6_0_mA 0xc
435dee8268fSThierry Reding #define PE_CURRENT_6_5_mA 0xd
436dee8268fSThierry Reding #define PE_CURRENT_7_0_mA 0xe
437dee8268fSThierry Reding #define PE_CURRENT_7_5_mA 0xf
438dee8268fSThierry Reding 
4397d1d28acSMikko Perttunen #define PE_CURRENT_0_mA_T114 0x0
4407d1d28acSMikko Perttunen #define PE_CURRENT_1_mA_T114 0x1
4417d1d28acSMikko Perttunen #define PE_CURRENT_2_mA_T114 0x2
4427d1d28acSMikko Perttunen #define PE_CURRENT_3_mA_T114 0x3
4437d1d28acSMikko Perttunen #define PE_CURRENT_4_mA_T114 0x4
4447d1d28acSMikko Perttunen #define PE_CURRENT_5_mA_T114 0x5
4457d1d28acSMikko Perttunen #define PE_CURRENT_6_mA_T114 0x6
4467d1d28acSMikko Perttunen #define PE_CURRENT_7_mA_T114 0x7
4477d1d28acSMikko Perttunen #define PE_CURRENT_8_mA_T114 0x8
4487d1d28acSMikko Perttunen #define PE_CURRENT_9_mA_T114 0x9
4497d1d28acSMikko Perttunen #define PE_CURRENT_10_mA_T114 0xa
4507d1d28acSMikko Perttunen #define PE_CURRENT_11_mA_T114 0xb
4517d1d28acSMikko Perttunen #define PE_CURRENT_12_mA_T114 0xc
4527d1d28acSMikko Perttunen #define PE_CURRENT_13_mA_T114 0xd
4537d1d28acSMikko Perttunen #define PE_CURRENT_14_mA_T114 0xe
4547d1d28acSMikko Perttunen #define PE_CURRENT_15_mA_T114 0xf
4557d1d28acSMikko Perttunen 
456dee8268fSThierry Reding #define HDMI_NV_PDISP_KEY_CTRL					0x9a
457dee8268fSThierry Reding #define HDMI_NV_PDISP_KEY_DEBUG0				0x9b
458dee8268fSThierry Reding #define HDMI_NV_PDISP_KEY_DEBUG1				0x9c
459dee8268fSThierry Reding #define HDMI_NV_PDISP_KEY_DEBUG2				0x9d
460dee8268fSThierry Reding #define HDMI_NV_PDISP_KEY_HDCP_KEY_0				0x9e
461dee8268fSThierry Reding #define HDMI_NV_PDISP_KEY_HDCP_KEY_1				0x9f
462dee8268fSThierry Reding #define HDMI_NV_PDISP_KEY_HDCP_KEY_2				0xa0
463dee8268fSThierry Reding #define HDMI_NV_PDISP_KEY_HDCP_KEY_3				0xa1
464dee8268fSThierry Reding #define HDMI_NV_PDISP_KEY_HDCP_KEY_TRIG				0xa2
465dee8268fSThierry Reding #define HDMI_NV_PDISP_KEY_SKEY_INDEX				0xa3
466dee8268fSThierry Reding 
467dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_AUDIO_CNTRL0				0xac
4682ccb396eSThierry Reding #define  SOR_AUDIO_CNTRL0_SOURCE_SELECT_AUTO	(0 << 20)
4692ccb396eSThierry Reding #define  SOR_AUDIO_CNTRL0_SOURCE_SELECT_SPDIF	(1 << 20)
4702ccb396eSThierry Reding #define  SOR_AUDIO_CNTRL0_SOURCE_SELECT_HDAL	(2 << 20)
4712ccb396eSThierry Reding #define  SOR_AUDIO_CNTRL0_INJECT_NULLSMPL	(1 << 29)
4722ccb396eSThierry Reding #define HDMI_NV_PDISP_SOR_AUDIO_SPARE0				0xae
4732ccb396eSThierry Reding #define  SOR_AUDIO_SPARE0_HBR_ENABLE		(1 << 27)
4742ccb396eSThierry Reding #define HDMI_NV_PDISP_SOR_AUDIO_HDA_CODEC_SCRATCH0		0xba
4752ccb396eSThierry Reding #define  SOR_AUDIO_HDA_CODEC_SCRATCH0_VALID	(1 << 30)
4762ccb396eSThierry Reding #define  SOR_AUDIO_HDA_CODEC_SCRATCH0_FMT_MASK	0xffff
4772ccb396eSThierry Reding #define HDMI_NV_PDISP_SOR_AUDIO_HDA_CODEC_SCRATCH1		0xbb
478dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_AUDIO_HDA_ELD_BUFWR			0xbc
479dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_AUDIO_HDA_PRESENSE			0xbd
4802ccb396eSThierry Reding #define  SOR_AUDIO_HDA_PRESENSE_VALID		(1 << 1)
4812ccb396eSThierry Reding #define  SOR_AUDIO_HDA_PRESENSE_PRESENT		(1 << 0)
482dee8268fSThierry Reding 
483dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_AUDIO_AVAL_0320    0xbf
484dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_AUDIO_AVAL_0441    0xc0
485dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_AUDIO_AVAL_0882    0xc1
486dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_AUDIO_AVAL_1764    0xc2
487dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_AUDIO_AVAL_0480    0xc3
488dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_AUDIO_AVAL_0960    0xc4
489dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_AUDIO_AVAL_1920    0xc5
490dee8268fSThierry Reding #define HDMI_NV_PDISP_SOR_AUDIO_AVAL_DEFAULT 0xc5
491dee8268fSThierry Reding 
4922ccb396eSThierry Reding #define HDMI_NV_PDISP_INT_STATUS			0xcc
4932ccb396eSThierry Reding #define  INT_SCRATCH		(1 << 3)
4942ccb396eSThierry Reding #define  INT_CP_REQUEST		(1 << 2)
4952ccb396eSThierry Reding #define  INT_CODEC_SCRATCH1	(1 << 1)
4962ccb396eSThierry Reding #define  INT_CODEC_SCRATCH0	(1 << 0)
4972ccb396eSThierry Reding #define HDMI_NV_PDISP_INT_MASK				0xcd
4982ccb396eSThierry Reding #define HDMI_NV_PDISP_INT_ENABLE			0xce
4992ccb396eSThierry Reding 
5007d1d28acSMikko Perttunen #define HDMI_NV_PDISP_SOR_IO_PEAK_CURRENT		0xd1
5017d1d28acSMikko Perttunen #define PEAK_CURRENT_LANE0(x) (((x) & 0x7f) <<  0)
5027d1d28acSMikko Perttunen #define PEAK_CURRENT_LANE1(x) (((x) & 0x7f) <<  8)
5037d1d28acSMikko Perttunen #define PEAK_CURRENT_LANE2(x) (((x) & 0x7f) << 16)
5047d1d28acSMikko Perttunen #define PEAK_CURRENT_LANE3(x) (((x) & 0x7f) << 24)
5057d1d28acSMikko Perttunen 
5067d1d28acSMikko Perttunen #define PEAK_CURRENT_0_000_mA 0x00
5077d1d28acSMikko Perttunen #define PEAK_CURRENT_0_200_mA 0x01
5087d1d28acSMikko Perttunen #define PEAK_CURRENT_0_400_mA 0x02
5097d1d28acSMikko Perttunen #define PEAK_CURRENT_0_600_mA 0x03
5107d1d28acSMikko Perttunen #define PEAK_CURRENT_0_800_mA 0x04
5117d1d28acSMikko Perttunen #define PEAK_CURRENT_1_000_mA 0x05
5127d1d28acSMikko Perttunen #define PEAK_CURRENT_1_200_mA 0x06
5137d1d28acSMikko Perttunen #define PEAK_CURRENT_1_400_mA 0x07
5147d1d28acSMikko Perttunen #define PEAK_CURRENT_1_600_mA 0x08
5157d1d28acSMikko Perttunen #define PEAK_CURRENT_1_800_mA 0x09
5167d1d28acSMikko Perttunen #define PEAK_CURRENT_2_000_mA 0x0a
5177d1d28acSMikko Perttunen #define PEAK_CURRENT_2_200_mA 0x0b
5187d1d28acSMikko Perttunen #define PEAK_CURRENT_2_400_mA 0x0c
5197d1d28acSMikko Perttunen #define PEAK_CURRENT_2_600_mA 0x0d
5207d1d28acSMikko Perttunen #define PEAK_CURRENT_2_800_mA 0x0e
5217d1d28acSMikko Perttunen #define PEAK_CURRENT_3_000_mA 0x0f
5227d1d28acSMikko Perttunen #define PEAK_CURRENT_3_200_mA 0x10
5237d1d28acSMikko Perttunen #define PEAK_CURRENT_3_400_mA 0x11
5247d1d28acSMikko Perttunen #define PEAK_CURRENT_3_600_mA 0x12
5257d1d28acSMikko Perttunen #define PEAK_CURRENT_3_800_mA 0x13
5267d1d28acSMikko Perttunen #define PEAK_CURRENT_4_000_mA 0x14
5277d1d28acSMikko Perttunen #define PEAK_CURRENT_4_200_mA 0x15
5287d1d28acSMikko Perttunen #define PEAK_CURRENT_4_400_mA 0x16
5297d1d28acSMikko Perttunen #define PEAK_CURRENT_4_600_mA 0x17
5307d1d28acSMikko Perttunen #define PEAK_CURRENT_4_800_mA 0x18
5317d1d28acSMikko Perttunen #define PEAK_CURRENT_5_000_mA 0x19
5327d1d28acSMikko Perttunen #define PEAK_CURRENT_5_200_mA 0x1a
5337d1d28acSMikko Perttunen #define PEAK_CURRENT_5_400_mA 0x1b
5347d1d28acSMikko Perttunen #define PEAK_CURRENT_5_600_mA 0x1c
5357d1d28acSMikko Perttunen #define PEAK_CURRENT_5_800_mA 0x1d
5367d1d28acSMikko Perttunen #define PEAK_CURRENT_6_000_mA 0x1e
5377d1d28acSMikko Perttunen #define PEAK_CURRENT_6_200_mA 0x1f
5387d1d28acSMikko Perttunen #define PEAK_CURRENT_6_400_mA 0x20
5397d1d28acSMikko Perttunen #define PEAK_CURRENT_6_600_mA 0x21
5407d1d28acSMikko Perttunen #define PEAK_CURRENT_6_800_mA 0x22
5417d1d28acSMikko Perttunen #define PEAK_CURRENT_7_000_mA 0x23
5427d1d28acSMikko Perttunen #define PEAK_CURRENT_7_200_mA 0x24
5437d1d28acSMikko Perttunen #define PEAK_CURRENT_7_400_mA 0x25
5447d1d28acSMikko Perttunen #define PEAK_CURRENT_7_600_mA 0x26
5457d1d28acSMikko Perttunen #define PEAK_CURRENT_7_800_mA 0x27
5467d1d28acSMikko Perttunen #define PEAK_CURRENT_8_000_mA 0x28
5477d1d28acSMikko Perttunen #define PEAK_CURRENT_8_200_mA 0x29
5487d1d28acSMikko Perttunen #define PEAK_CURRENT_8_400_mA 0x2a
5497d1d28acSMikko Perttunen #define PEAK_CURRENT_8_600_mA 0x2b
5507d1d28acSMikko Perttunen #define PEAK_CURRENT_8_800_mA 0x2c
5517d1d28acSMikko Perttunen #define PEAK_CURRENT_9_000_mA 0x2d
5527d1d28acSMikko Perttunen #define PEAK_CURRENT_9_200_mA 0x2e
5537d1d28acSMikko Perttunen #define PEAK_CURRENT_9_400_mA 0x2f
5547d1d28acSMikko Perttunen 
5557d1d28acSMikko Perttunen #define HDMI_NV_PDISP_SOR_PAD_CTLS0		0xd2
5567d1d28acSMikko Perttunen 
557dee8268fSThierry Reding #endif /* TEGRA_HDMI_H */
558