xref: /linux/drivers/gpu/drm/exynos/regs-hdmi.h (revision 3ecd70b18cad5a5e04981f2a1d71e183f5d6ebc0)
1d8408326SSeung-Woo Kim /*
2d8408326SSeung-Woo Kim  *
3d8408326SSeung-Woo Kim  *  Cloned from drivers/media/video/s5p-tv/regs-hdmi.h
4d8408326SSeung-Woo Kim  *
5d8408326SSeung-Woo Kim  * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd.
6d8408326SSeung-Woo Kim  * http://www.samsung.com/
7d8408326SSeung-Woo Kim  *
8d8408326SSeung-Woo Kim  * HDMI register header file for Samsung TVOUT driver
9d8408326SSeung-Woo Kim  *
10d8408326SSeung-Woo Kim  * This program is free software; you can redistribute it and/or modify
11d8408326SSeung-Woo Kim  * it under the terms of the GNU General Public License version 2 as
12d8408326SSeung-Woo Kim  * published by the Free Software Foundation.
13d8408326SSeung-Woo Kim */
14d8408326SSeung-Woo Kim 
15d8408326SSeung-Woo Kim #ifndef SAMSUNG_REGS_HDMI_H
16d8408326SSeung-Woo Kim #define SAMSUNG_REGS_HDMI_H
17d8408326SSeung-Woo Kim 
18d8408326SSeung-Woo Kim /*
19d8408326SSeung-Woo Kim  * Register part
20d8408326SSeung-Woo Kim */
21d8408326SSeung-Woo Kim 
22*3ecd70b1SJoonyoung Shim /* HDMI Version 1.3 & Common */
23d8408326SSeung-Woo Kim #define HDMI_CTRL_BASE(x)		((x) + 0x00000000)
24d8408326SSeung-Woo Kim #define HDMI_CORE_BASE(x)		((x) + 0x00010000)
25d8408326SSeung-Woo Kim #define HDMI_TG_BASE(x)			((x) + 0x00050000)
26d8408326SSeung-Woo Kim 
27d8408326SSeung-Woo Kim /* Control registers */
28d8408326SSeung-Woo Kim #define HDMI_INTC_CON			HDMI_CTRL_BASE(0x0000)
29d8408326SSeung-Woo Kim #define HDMI_INTC_FLAG			HDMI_CTRL_BASE(0x0004)
30d8408326SSeung-Woo Kim #define HDMI_HPD_STATUS			HDMI_CTRL_BASE(0x000C)
31*3ecd70b1SJoonyoung Shim #define HDMI_V13_PHY_RSTOUT		HDMI_CTRL_BASE(0x0014)
32*3ecd70b1SJoonyoung Shim #define HDMI_V13_PHY_VPLL		HDMI_CTRL_BASE(0x0018)
33*3ecd70b1SJoonyoung Shim #define HDMI_V13_PHY_CMU		HDMI_CTRL_BASE(0x001C)
34*3ecd70b1SJoonyoung Shim #define HDMI_V13_CORE_RSTOUT		HDMI_CTRL_BASE(0x0020)
35d8408326SSeung-Woo Kim 
36d8408326SSeung-Woo Kim /* Core registers */
37d8408326SSeung-Woo Kim #define HDMI_CON_0			HDMI_CORE_BASE(0x0000)
38d8408326SSeung-Woo Kim #define HDMI_CON_1			HDMI_CORE_BASE(0x0004)
39d8408326SSeung-Woo Kim #define HDMI_CON_2			HDMI_CORE_BASE(0x0008)
40d8408326SSeung-Woo Kim #define HDMI_SYS_STATUS			HDMI_CORE_BASE(0x0010)
41*3ecd70b1SJoonyoung Shim #define HDMI_V13_PHY_STATUS		HDMI_CORE_BASE(0x0014)
42d8408326SSeung-Woo Kim #define HDMI_STATUS_EN			HDMI_CORE_BASE(0x0020)
43d8408326SSeung-Woo Kim #define HDMI_HPD			HDMI_CORE_BASE(0x0030)
44d8408326SSeung-Woo Kim #define HDMI_MODE_SEL			HDMI_CORE_BASE(0x0040)
45*3ecd70b1SJoonyoung Shim #define HDMI_ENC_EN			HDMI_CORE_BASE(0x0044)
46*3ecd70b1SJoonyoung Shim #define HDMI_V13_BLUE_SCREEN_0		HDMI_CORE_BASE(0x0050)
47*3ecd70b1SJoonyoung Shim #define HDMI_V13_BLUE_SCREEN_1		HDMI_CORE_BASE(0x0054)
48*3ecd70b1SJoonyoung Shim #define HDMI_V13_BLUE_SCREEN_2		HDMI_CORE_BASE(0x0058)
49d8408326SSeung-Woo Kim #define HDMI_H_BLANK_0			HDMI_CORE_BASE(0x00A0)
50d8408326SSeung-Woo Kim #define HDMI_H_BLANK_1			HDMI_CORE_BASE(0x00A4)
51*3ecd70b1SJoonyoung Shim #define HDMI_V13_V_BLANK_0		HDMI_CORE_BASE(0x00B0)
52*3ecd70b1SJoonyoung Shim #define HDMI_V13_V_BLANK_1		HDMI_CORE_BASE(0x00B4)
53*3ecd70b1SJoonyoung Shim #define HDMI_V13_V_BLANK_2		HDMI_CORE_BASE(0x00B8)
54*3ecd70b1SJoonyoung Shim #define HDMI_V13_H_V_LINE_0		HDMI_CORE_BASE(0x00C0)
55*3ecd70b1SJoonyoung Shim #define HDMI_V13_H_V_LINE_1		HDMI_CORE_BASE(0x00C4)
56*3ecd70b1SJoonyoung Shim #define HDMI_V13_H_V_LINE_2		HDMI_CORE_BASE(0x00C8)
57d8408326SSeung-Woo Kim #define HDMI_VSYNC_POL			HDMI_CORE_BASE(0x00E4)
58d8408326SSeung-Woo Kim #define HDMI_INT_PRO_MODE		HDMI_CORE_BASE(0x00E8)
59*3ecd70b1SJoonyoung Shim #define HDMI_V13_V_BLANK_F_0		HDMI_CORE_BASE(0x0110)
60*3ecd70b1SJoonyoung Shim #define HDMI_V13_V_BLANK_F_1		HDMI_CORE_BASE(0x0114)
61*3ecd70b1SJoonyoung Shim #define HDMI_V13_V_BLANK_F_2		HDMI_CORE_BASE(0x0118)
62*3ecd70b1SJoonyoung Shim #define HDMI_V13_H_SYNC_GEN_0		HDMI_CORE_BASE(0x0120)
63*3ecd70b1SJoonyoung Shim #define HDMI_V13_H_SYNC_GEN_1		HDMI_CORE_BASE(0x0124)
64*3ecd70b1SJoonyoung Shim #define HDMI_V13_H_SYNC_GEN_2		HDMI_CORE_BASE(0x0128)
65*3ecd70b1SJoonyoung Shim #define HDMI_V13_V_SYNC_GEN_1_0		HDMI_CORE_BASE(0x0130)
66*3ecd70b1SJoonyoung Shim #define HDMI_V13_V_SYNC_GEN_1_1		HDMI_CORE_BASE(0x0134)
67*3ecd70b1SJoonyoung Shim #define HDMI_V13_V_SYNC_GEN_1_2		HDMI_CORE_BASE(0x0138)
68*3ecd70b1SJoonyoung Shim #define HDMI_V13_V_SYNC_GEN_2_0		HDMI_CORE_BASE(0x0140)
69*3ecd70b1SJoonyoung Shim #define HDMI_V13_V_SYNC_GEN_2_1		HDMI_CORE_BASE(0x0144)
70*3ecd70b1SJoonyoung Shim #define HDMI_V13_V_SYNC_GEN_2_2		HDMI_CORE_BASE(0x0148)
71*3ecd70b1SJoonyoung Shim #define HDMI_V13_V_SYNC_GEN_3_0		HDMI_CORE_BASE(0x0150)
72*3ecd70b1SJoonyoung Shim #define HDMI_V13_V_SYNC_GEN_3_1		HDMI_CORE_BASE(0x0154)
73*3ecd70b1SJoonyoung Shim #define HDMI_V13_V_SYNC_GEN_3_2		HDMI_CORE_BASE(0x0158)
74*3ecd70b1SJoonyoung Shim #define HDMI_V13_ACR_CON		HDMI_CORE_BASE(0x0180)
75*3ecd70b1SJoonyoung Shim #define HDMI_V13_AVI_CON		HDMI_CORE_BASE(0x0300)
76*3ecd70b1SJoonyoung Shim #define HDMI_V13_AVI_BYTE(n)		HDMI_CORE_BASE(0x0320 + 4 * (n))
77*3ecd70b1SJoonyoung Shim #define HDMI_V13_DC_CONTROL		HDMI_CORE_BASE(0x05C0)
78*3ecd70b1SJoonyoung Shim #define HDMI_V13_VIDEO_PATTERN_GEN	HDMI_CORE_BASE(0x05C4)
79*3ecd70b1SJoonyoung Shim #define HDMI_V13_HPD_GEN		HDMI_CORE_BASE(0x05C8)
80*3ecd70b1SJoonyoung Shim #define HDMI_V13_AUI_CON		HDMI_CORE_BASE(0x0360)
81*3ecd70b1SJoonyoung Shim #define HDMI_V13_SPD_CON		HDMI_CORE_BASE(0x0400)
82d8408326SSeung-Woo Kim 
83d8408326SSeung-Woo Kim /* Timing generator registers */
84d8408326SSeung-Woo Kim #define HDMI_TG_CMD			HDMI_TG_BASE(0x0000)
85d8408326SSeung-Woo Kim #define HDMI_TG_H_FSZ_L			HDMI_TG_BASE(0x0018)
86d8408326SSeung-Woo Kim #define HDMI_TG_H_FSZ_H			HDMI_TG_BASE(0x001C)
87d8408326SSeung-Woo Kim #define HDMI_TG_HACT_ST_L		HDMI_TG_BASE(0x0020)
88d8408326SSeung-Woo Kim #define HDMI_TG_HACT_ST_H		HDMI_TG_BASE(0x0024)
89d8408326SSeung-Woo Kim #define HDMI_TG_HACT_SZ_L		HDMI_TG_BASE(0x0028)
90d8408326SSeung-Woo Kim #define HDMI_TG_HACT_SZ_H		HDMI_TG_BASE(0x002C)
91d8408326SSeung-Woo Kim #define HDMI_TG_V_FSZ_L			HDMI_TG_BASE(0x0030)
92d8408326SSeung-Woo Kim #define HDMI_TG_V_FSZ_H			HDMI_TG_BASE(0x0034)
93d8408326SSeung-Woo Kim #define HDMI_TG_VSYNC_L			HDMI_TG_BASE(0x0038)
94d8408326SSeung-Woo Kim #define HDMI_TG_VSYNC_H			HDMI_TG_BASE(0x003C)
95d8408326SSeung-Woo Kim #define HDMI_TG_VSYNC2_L		HDMI_TG_BASE(0x0040)
96d8408326SSeung-Woo Kim #define HDMI_TG_VSYNC2_H		HDMI_TG_BASE(0x0044)
97d8408326SSeung-Woo Kim #define HDMI_TG_VACT_ST_L		HDMI_TG_BASE(0x0048)
98d8408326SSeung-Woo Kim #define HDMI_TG_VACT_ST_H		HDMI_TG_BASE(0x004C)
99d8408326SSeung-Woo Kim #define HDMI_TG_VACT_SZ_L		HDMI_TG_BASE(0x0050)
100d8408326SSeung-Woo Kim #define HDMI_TG_VACT_SZ_H		HDMI_TG_BASE(0x0054)
101d8408326SSeung-Woo Kim #define HDMI_TG_FIELD_CHG_L		HDMI_TG_BASE(0x0058)
102d8408326SSeung-Woo Kim #define HDMI_TG_FIELD_CHG_H		HDMI_TG_BASE(0x005C)
103d8408326SSeung-Woo Kim #define HDMI_TG_VACT_ST2_L		HDMI_TG_BASE(0x0060)
104d8408326SSeung-Woo Kim #define HDMI_TG_VACT_ST2_H		HDMI_TG_BASE(0x0064)
105d8408326SSeung-Woo Kim #define HDMI_TG_VSYNC_TOP_HDMI_L	HDMI_TG_BASE(0x0078)
106d8408326SSeung-Woo Kim #define HDMI_TG_VSYNC_TOP_HDMI_H	HDMI_TG_BASE(0x007C)
107d8408326SSeung-Woo Kim #define HDMI_TG_VSYNC_BOT_HDMI_L	HDMI_TG_BASE(0x0080)
108d8408326SSeung-Woo Kim #define HDMI_TG_VSYNC_BOT_HDMI_H	HDMI_TG_BASE(0x0084)
109d8408326SSeung-Woo Kim #define HDMI_TG_FIELD_TOP_HDMI_L	HDMI_TG_BASE(0x0088)
110d8408326SSeung-Woo Kim #define HDMI_TG_FIELD_TOP_HDMI_H	HDMI_TG_BASE(0x008C)
111d8408326SSeung-Woo Kim #define HDMI_TG_FIELD_BOT_HDMI_L	HDMI_TG_BASE(0x0090)
112d8408326SSeung-Woo Kim #define HDMI_TG_FIELD_BOT_HDMI_H	HDMI_TG_BASE(0x0094)
113d8408326SSeung-Woo Kim 
114d8408326SSeung-Woo Kim /*
115d8408326SSeung-Woo Kim  * Bit definition part
116d8408326SSeung-Woo Kim  */
117d8408326SSeung-Woo Kim 
118d8408326SSeung-Woo Kim /* HDMI_INTC_CON */
119d8408326SSeung-Woo Kim #define HDMI_INTC_EN_GLOBAL		(1 << 6)
120d8408326SSeung-Woo Kim #define HDMI_INTC_EN_HPD_PLUG		(1 << 3)
121d8408326SSeung-Woo Kim #define HDMI_INTC_EN_HPD_UNPLUG		(1 << 2)
122d8408326SSeung-Woo Kim 
123d8408326SSeung-Woo Kim /* HDMI_INTC_FLAG */
124d8408326SSeung-Woo Kim #define HDMI_INTC_FLAG_HPD_PLUG		(1 << 3)
125d8408326SSeung-Woo Kim #define HDMI_INTC_FLAG_HPD_UNPLUG	(1 << 2)
126d8408326SSeung-Woo Kim 
127d8408326SSeung-Woo Kim /* HDMI_PHY_RSTOUT */
128d8408326SSeung-Woo Kim #define HDMI_PHY_SW_RSTOUT		(1 << 0)
129d8408326SSeung-Woo Kim 
130d8408326SSeung-Woo Kim /* HDMI_CORE_RSTOUT */
131d8408326SSeung-Woo Kim #define HDMI_CORE_SW_RSTOUT		(1 << 0)
132d8408326SSeung-Woo Kim 
133d8408326SSeung-Woo Kim /* HDMI_CON_0 */
134d8408326SSeung-Woo Kim #define HDMI_BLUE_SCR_EN		(1 << 5)
135d8408326SSeung-Woo Kim #define HDMI_EN				(1 << 0)
136d8408326SSeung-Woo Kim 
137d8408326SSeung-Woo Kim /* HDMI_PHY_STATUS */
138d8408326SSeung-Woo Kim #define HDMI_PHY_STATUS_READY		(1 << 0)
139d8408326SSeung-Woo Kim 
140d8408326SSeung-Woo Kim /* HDMI_MODE_SEL */
141d8408326SSeung-Woo Kim #define HDMI_MODE_HDMI_EN		(1 << 1)
142d8408326SSeung-Woo Kim #define HDMI_MODE_DVI_EN		(1 << 0)
143d8408326SSeung-Woo Kim #define HDMI_MODE_MASK			(3 << 0)
144d8408326SSeung-Woo Kim 
145d8408326SSeung-Woo Kim /* HDMI_TG_CMD */
146d8408326SSeung-Woo Kim #define HDMI_TG_EN			(1 << 0)
147d8408326SSeung-Woo Kim #define HDMI_FIELD_EN			(1 << 1)
148d8408326SSeung-Woo Kim 
149*3ecd70b1SJoonyoung Shim 
150*3ecd70b1SJoonyoung Shim /* HDMI Version 1.4 */
151*3ecd70b1SJoonyoung Shim /* Control registers */
152*3ecd70b1SJoonyoung Shim /* #define HDMI_INTC_CON		HDMI_CTRL_BASE(0x0000) */
153*3ecd70b1SJoonyoung Shim /* #define HDMI_INTC_FLAG		HDMI_CTRL_BASE(0x0004) */
154*3ecd70b1SJoonyoung Shim #define HDMI_HDCP_KEY_LOAD		HDMI_CTRL_BASE(0x0008)
155*3ecd70b1SJoonyoung Shim /* #define HDMI_HPD_STATUS		HDMI_CTRL_BASE(0x000C) */
156*3ecd70b1SJoonyoung Shim #define HDMI_INTC_CON_1			HDMI_CTRL_BASE(0x0010)
157*3ecd70b1SJoonyoung Shim #define HDMI_INTC_FLAG_1		HDMI_CTRL_BASE(0x0014)
158*3ecd70b1SJoonyoung Shim #define HDMI_PHY_STATUS_0		HDMI_CTRL_BASE(0x0020)
159*3ecd70b1SJoonyoung Shim #define HDMI_PHY_STATUS_CMU		HDMI_CTRL_BASE(0x0024)
160*3ecd70b1SJoonyoung Shim #define HDMI_PHY_STATUS_PLL		HDMI_CTRL_BASE(0x0028)
161*3ecd70b1SJoonyoung Shim #define HDMI_PHY_CON_0			HDMI_CTRL_BASE(0x0030)
162*3ecd70b1SJoonyoung Shim #define HDMI_HPD_CTRL			HDMI_CTRL_BASE(0x0040)
163*3ecd70b1SJoonyoung Shim #define HDMI_HPD_ST			HDMI_CTRL_BASE(0x0044)
164*3ecd70b1SJoonyoung Shim #define HDMI_HPD_TH_X			HDMI_CTRL_BASE(0x0050)
165*3ecd70b1SJoonyoung Shim #define HDMI_AUDIO_CLKSEL		HDMI_CTRL_BASE(0x0070)
166*3ecd70b1SJoonyoung Shim #define HDMI_PHY_RSTOUT			HDMI_CTRL_BASE(0x0074)
167*3ecd70b1SJoonyoung Shim #define HDMI_PHY_VPLL			HDMI_CTRL_BASE(0x0078)
168*3ecd70b1SJoonyoung Shim #define HDMI_PHY_CMU			HDMI_CTRL_BASE(0x007C)
169*3ecd70b1SJoonyoung Shim #define HDMI_CORE_RSTOUT		HDMI_CTRL_BASE(0x0080)
170*3ecd70b1SJoonyoung Shim 
171*3ecd70b1SJoonyoung Shim /* Video related registers */
172*3ecd70b1SJoonyoung Shim #define HDMI_YMAX			HDMI_CORE_BASE(0x0060)
173*3ecd70b1SJoonyoung Shim #define HDMI_YMIN			HDMI_CORE_BASE(0x0064)
174*3ecd70b1SJoonyoung Shim #define HDMI_CMAX			HDMI_CORE_BASE(0x0068)
175*3ecd70b1SJoonyoung Shim #define HDMI_CMIN			HDMI_CORE_BASE(0x006C)
176*3ecd70b1SJoonyoung Shim 
177*3ecd70b1SJoonyoung Shim #define HDMI_V2_BLANK_0			HDMI_CORE_BASE(0x00B0)
178*3ecd70b1SJoonyoung Shim #define HDMI_V2_BLANK_1			HDMI_CORE_BASE(0x00B4)
179*3ecd70b1SJoonyoung Shim #define HDMI_V1_BLANK_0			HDMI_CORE_BASE(0x00B8)
180*3ecd70b1SJoonyoung Shim #define HDMI_V1_BLANK_1			HDMI_CORE_BASE(0x00BC)
181*3ecd70b1SJoonyoung Shim 
182*3ecd70b1SJoonyoung Shim #define HDMI_V_LINE_0			HDMI_CORE_BASE(0x00C0)
183*3ecd70b1SJoonyoung Shim #define HDMI_V_LINE_1			HDMI_CORE_BASE(0x00C4)
184*3ecd70b1SJoonyoung Shim #define HDMI_H_LINE_0			HDMI_CORE_BASE(0x00C8)
185*3ecd70b1SJoonyoung Shim #define HDMI_H_LINE_1			HDMI_CORE_BASE(0x00CC)
186*3ecd70b1SJoonyoung Shim 
187*3ecd70b1SJoonyoung Shim #define HDMI_HSYNC_POL			HDMI_CORE_BASE(0x00E0)
188*3ecd70b1SJoonyoung Shim 
189*3ecd70b1SJoonyoung Shim #define HDMI_V_BLANK_F0_0		HDMI_CORE_BASE(0x0110)
190*3ecd70b1SJoonyoung Shim #define HDMI_V_BLANK_F0_1		HDMI_CORE_BASE(0x0114)
191*3ecd70b1SJoonyoung Shim #define HDMI_V_BLANK_F1_0		HDMI_CORE_BASE(0x0118)
192*3ecd70b1SJoonyoung Shim #define HDMI_V_BLANK_F1_1		HDMI_CORE_BASE(0x011C)
193*3ecd70b1SJoonyoung Shim 
194*3ecd70b1SJoonyoung Shim #define HDMI_H_SYNC_START_0		HDMI_CORE_BASE(0x0120)
195*3ecd70b1SJoonyoung Shim #define HDMI_H_SYNC_START_1		HDMI_CORE_BASE(0x0124)
196*3ecd70b1SJoonyoung Shim #define HDMI_H_SYNC_END_0		HDMI_CORE_BASE(0x0128)
197*3ecd70b1SJoonyoung Shim #define HDMI_H_SYNC_END_1		HDMI_CORE_BASE(0x012C)
198*3ecd70b1SJoonyoung Shim 
199*3ecd70b1SJoonyoung Shim #define HDMI_V_SYNC_LINE_BEF_2_0	HDMI_CORE_BASE(0x0130)
200*3ecd70b1SJoonyoung Shim #define HDMI_V_SYNC_LINE_BEF_2_1	HDMI_CORE_BASE(0x0134)
201*3ecd70b1SJoonyoung Shim #define HDMI_V_SYNC_LINE_BEF_1_0	HDMI_CORE_BASE(0x0138)
202*3ecd70b1SJoonyoung Shim #define HDMI_V_SYNC_LINE_BEF_1_1	HDMI_CORE_BASE(0x013C)
203*3ecd70b1SJoonyoung Shim 
204*3ecd70b1SJoonyoung Shim #define HDMI_V_SYNC_LINE_AFT_2_0	HDMI_CORE_BASE(0x0140)
205*3ecd70b1SJoonyoung Shim #define HDMI_V_SYNC_LINE_AFT_2_1	HDMI_CORE_BASE(0x0144)
206*3ecd70b1SJoonyoung Shim #define HDMI_V_SYNC_LINE_AFT_1_0	HDMI_CORE_BASE(0x0148)
207*3ecd70b1SJoonyoung Shim #define HDMI_V_SYNC_LINE_AFT_1_1	HDMI_CORE_BASE(0x014C)
208*3ecd70b1SJoonyoung Shim 
209*3ecd70b1SJoonyoung Shim #define HDMI_V_SYNC_LINE_AFT_PXL_2_0	HDMI_CORE_BASE(0x0150)
210*3ecd70b1SJoonyoung Shim #define HDMI_V_SYNC_LINE_AFT_PXL_2_1	HDMI_CORE_BASE(0x0154)
211*3ecd70b1SJoonyoung Shim #define HDMI_V_SYNC_LINE_AFT_PXL_1_0	HDMI_CORE_BASE(0x0158)
212*3ecd70b1SJoonyoung Shim #define HDMI_V_SYNC_LINE_AFT_PXL_1_1	HDMI_CORE_BASE(0x015C)
213*3ecd70b1SJoonyoung Shim 
214*3ecd70b1SJoonyoung Shim #define HDMI_V_BLANK_F2_0		HDMI_CORE_BASE(0x0160)
215*3ecd70b1SJoonyoung Shim #define HDMI_V_BLANK_F2_1		HDMI_CORE_BASE(0x0164)
216*3ecd70b1SJoonyoung Shim #define HDMI_V_BLANK_F3_0		HDMI_CORE_BASE(0x0168)
217*3ecd70b1SJoonyoung Shim #define HDMI_V_BLANK_F3_1		HDMI_CORE_BASE(0x016C)
218*3ecd70b1SJoonyoung Shim #define HDMI_V_BLANK_F4_0		HDMI_CORE_BASE(0x0170)
219*3ecd70b1SJoonyoung Shim #define HDMI_V_BLANK_F4_1		HDMI_CORE_BASE(0x0174)
220*3ecd70b1SJoonyoung Shim #define HDMI_V_BLANK_F5_0		HDMI_CORE_BASE(0x0178)
221*3ecd70b1SJoonyoung Shim #define HDMI_V_BLANK_F5_1		HDMI_CORE_BASE(0x017C)
222*3ecd70b1SJoonyoung Shim 
223*3ecd70b1SJoonyoung Shim #define HDMI_V_SYNC_LINE_AFT_3_0	HDMI_CORE_BASE(0x0180)
224*3ecd70b1SJoonyoung Shim #define HDMI_V_SYNC_LINE_AFT_3_1	HDMI_CORE_BASE(0x0184)
225*3ecd70b1SJoonyoung Shim #define HDMI_V_SYNC_LINE_AFT_4_0	HDMI_CORE_BASE(0x0188)
226*3ecd70b1SJoonyoung Shim #define HDMI_V_SYNC_LINE_AFT_4_1	HDMI_CORE_BASE(0x018C)
227*3ecd70b1SJoonyoung Shim #define HDMI_V_SYNC_LINE_AFT_5_0	HDMI_CORE_BASE(0x0190)
228*3ecd70b1SJoonyoung Shim #define HDMI_V_SYNC_LINE_AFT_5_1	HDMI_CORE_BASE(0x0194)
229*3ecd70b1SJoonyoung Shim #define HDMI_V_SYNC_LINE_AFT_6_0	HDMI_CORE_BASE(0x0198)
230*3ecd70b1SJoonyoung Shim #define HDMI_V_SYNC_LINE_AFT_6_1	HDMI_CORE_BASE(0x019C)
231*3ecd70b1SJoonyoung Shim 
232*3ecd70b1SJoonyoung Shim #define HDMI_V_SYNC_LINE_AFT_PXL_3_0	HDMI_CORE_BASE(0x01A0)
233*3ecd70b1SJoonyoung Shim #define HDMI_V_SYNC_LINE_AFT_PXL_3_1	HDMI_CORE_BASE(0x01A4)
234*3ecd70b1SJoonyoung Shim #define HDMI_V_SYNC_LINE_AFT_PXL_4_0	HDMI_CORE_BASE(0x01A8)
235*3ecd70b1SJoonyoung Shim #define HDMI_V_SYNC_LINE_AFT_PXL_4_1	HDMI_CORE_BASE(0x01AC)
236*3ecd70b1SJoonyoung Shim #define HDMI_V_SYNC_LINE_AFT_PXL_5_0	HDMI_CORE_BASE(0x01B0)
237*3ecd70b1SJoonyoung Shim #define HDMI_V_SYNC_LINE_AFT_PXL_5_1	HDMI_CORE_BASE(0x01B4)
238*3ecd70b1SJoonyoung Shim #define HDMI_V_SYNC_LINE_AFT_PXL_6_0	HDMI_CORE_BASE(0x01B8)
239*3ecd70b1SJoonyoung Shim #define HDMI_V_SYNC_LINE_AFT_PXL_6_1	HDMI_CORE_BASE(0x01BC)
240*3ecd70b1SJoonyoung Shim 
241*3ecd70b1SJoonyoung Shim #define HDMI_VACT_SPACE_1_0		HDMI_CORE_BASE(0x01C0)
242*3ecd70b1SJoonyoung Shim #define HDMI_VACT_SPACE_1_1		HDMI_CORE_BASE(0x01C4)
243*3ecd70b1SJoonyoung Shim #define HDMI_VACT_SPACE_2_0		HDMI_CORE_BASE(0x01C8)
244*3ecd70b1SJoonyoung Shim #define HDMI_VACT_SPACE_2_1		HDMI_CORE_BASE(0x01CC)
245*3ecd70b1SJoonyoung Shim #define HDMI_VACT_SPACE_3_0		HDMI_CORE_BASE(0x01D0)
246*3ecd70b1SJoonyoung Shim #define HDMI_VACT_SPACE_3_1		HDMI_CORE_BASE(0x01D4)
247*3ecd70b1SJoonyoung Shim #define HDMI_VACT_SPACE_4_0		HDMI_CORE_BASE(0x01D8)
248*3ecd70b1SJoonyoung Shim #define HDMI_VACT_SPACE_4_1		HDMI_CORE_BASE(0x01DC)
249*3ecd70b1SJoonyoung Shim #define HDMI_VACT_SPACE_5_0		HDMI_CORE_BASE(0x01E0)
250*3ecd70b1SJoonyoung Shim #define HDMI_VACT_SPACE_5_1		HDMI_CORE_BASE(0x01E4)
251*3ecd70b1SJoonyoung Shim #define HDMI_VACT_SPACE_6_0		HDMI_CORE_BASE(0x01E8)
252*3ecd70b1SJoonyoung Shim #define HDMI_VACT_SPACE_6_1		HDMI_CORE_BASE(0x01EC)
253*3ecd70b1SJoonyoung Shim 
254*3ecd70b1SJoonyoung Shim #define HDMI_GCP_CON			HDMI_CORE_BASE(0x0200)
255*3ecd70b1SJoonyoung Shim #define HDMI_GCP_BYTE1			HDMI_CORE_BASE(0x0210)
256*3ecd70b1SJoonyoung Shim #define HDMI_GCP_BYTE2			HDMI_CORE_BASE(0x0214)
257*3ecd70b1SJoonyoung Shim #define HDMI_GCP_BYTE3			HDMI_CORE_BASE(0x0218)
258*3ecd70b1SJoonyoung Shim 
259*3ecd70b1SJoonyoung Shim /* Audio related registers */
260*3ecd70b1SJoonyoung Shim #define HDMI_ASP_CON			HDMI_CORE_BASE(0x0300)
261*3ecd70b1SJoonyoung Shim #define HDMI_ASP_SP_FLAT		HDMI_CORE_BASE(0x0304)
262*3ecd70b1SJoonyoung Shim #define HDMI_ASP_CHCFG0			HDMI_CORE_BASE(0x0310)
263*3ecd70b1SJoonyoung Shim #define HDMI_ASP_CHCFG1			HDMI_CORE_BASE(0x0314)
264*3ecd70b1SJoonyoung Shim #define HDMI_ASP_CHCFG2			HDMI_CORE_BASE(0x0318)
265*3ecd70b1SJoonyoung Shim #define HDMI_ASP_CHCFG3			HDMI_CORE_BASE(0x031C)
266*3ecd70b1SJoonyoung Shim 
267*3ecd70b1SJoonyoung Shim #define HDMI_ACR_CON			HDMI_CORE_BASE(0x0400)
268*3ecd70b1SJoonyoung Shim #define HDMI_ACR_MCTS0			HDMI_CORE_BASE(0x0410)
269*3ecd70b1SJoonyoung Shim #define HDMI_ACR_MCTS1			HDMI_CORE_BASE(0x0414)
270*3ecd70b1SJoonyoung Shim #define HDMI_ACR_MCTS2			HDMI_CORE_BASE(0x0418)
271*3ecd70b1SJoonyoung Shim #define HDMI_ACR_N0			HDMI_CORE_BASE(0x0430)
272*3ecd70b1SJoonyoung Shim #define HDMI_ACR_N1			HDMI_CORE_BASE(0x0434)
273*3ecd70b1SJoonyoung Shim #define HDMI_ACR_N2			HDMI_CORE_BASE(0x0438)
274*3ecd70b1SJoonyoung Shim 
275*3ecd70b1SJoonyoung Shim /* Packet related registers */
276*3ecd70b1SJoonyoung Shim #define HDMI_ACP_CON			HDMI_CORE_BASE(0x0500)
277*3ecd70b1SJoonyoung Shim #define HDMI_ACP_TYPE			HDMI_CORE_BASE(0x0514)
278*3ecd70b1SJoonyoung Shim #define HDMI_ACP_DATA(n)		HDMI_CORE_BASE(0x0520 + 4 * (n))
279*3ecd70b1SJoonyoung Shim 
280*3ecd70b1SJoonyoung Shim #define HDMI_ISRC_CON			HDMI_CORE_BASE(0x0600)
281*3ecd70b1SJoonyoung Shim #define HDMI_ISRC1_HEADER1		HDMI_CORE_BASE(0x0614)
282*3ecd70b1SJoonyoung Shim #define HDMI_ISRC1_DATA(n)		HDMI_CORE_BASE(0x0620 + 4 * (n))
283*3ecd70b1SJoonyoung Shim #define HDMI_ISRC2_DATA(n)		HDMI_CORE_BASE(0x06A0 + 4 * (n))
284*3ecd70b1SJoonyoung Shim 
285*3ecd70b1SJoonyoung Shim #define HDMI_AVI_CON			HDMI_CORE_BASE(0x0700)
286*3ecd70b1SJoonyoung Shim #define HDMI_AVI_HEADER0		HDMI_CORE_BASE(0x0710)
287*3ecd70b1SJoonyoung Shim #define HDMI_AVI_HEADER1		HDMI_CORE_BASE(0x0714)
288*3ecd70b1SJoonyoung Shim #define HDMI_AVI_HEADER2		HDMI_CORE_BASE(0x0718)
289*3ecd70b1SJoonyoung Shim #define HDMI_AVI_CHECK_SUM		HDMI_CORE_BASE(0x071C)
290*3ecd70b1SJoonyoung Shim #define HDMI_AVI_BYTE(n)		HDMI_CORE_BASE(0x0720 + 4 * (n))
291*3ecd70b1SJoonyoung Shim 
292*3ecd70b1SJoonyoung Shim #define HDMI_AUI_CON			HDMI_CORE_BASE(0x0800)
293*3ecd70b1SJoonyoung Shim #define HDMI_AUI_HEADER0		HDMI_CORE_BASE(0x0810)
294*3ecd70b1SJoonyoung Shim #define HDMI_AUI_HEADER1		HDMI_CORE_BASE(0x0814)
295*3ecd70b1SJoonyoung Shim #define HDMI_AUI_HEADER2		HDMI_CORE_BASE(0x0818)
296*3ecd70b1SJoonyoung Shim #define HDMI_AUI_CHECK_SUM		HDMI_CORE_BASE(0x081C)
297*3ecd70b1SJoonyoung Shim #define HDMI_AUI_BYTE(n)		HDMI_CORE_BASE(0x0820 + 4 * (n))
298*3ecd70b1SJoonyoung Shim 
299*3ecd70b1SJoonyoung Shim #define HDMI_MPG_CON			HDMI_CORE_BASE(0x0900)
300*3ecd70b1SJoonyoung Shim #define HDMI_MPG_CHECK_SUM		HDMI_CORE_BASE(0x091C)
301*3ecd70b1SJoonyoung Shim #define HDMI_MPG_DATA(n)		HDMI_CORE_BASE(0x0920 + 4 * (n))
302*3ecd70b1SJoonyoung Shim 
303*3ecd70b1SJoonyoung Shim #define HDMI_SPD_CON			HDMI_CORE_BASE(0x0A00)
304*3ecd70b1SJoonyoung Shim #define HDMI_SPD_HEADER0		HDMI_CORE_BASE(0x0A10)
305*3ecd70b1SJoonyoung Shim #define HDMI_SPD_HEADER1		HDMI_CORE_BASE(0x0A14)
306*3ecd70b1SJoonyoung Shim #define HDMI_SPD_HEADER2		HDMI_CORE_BASE(0x0A18)
307*3ecd70b1SJoonyoung Shim #define HDMI_SPD_DATA(n)		HDMI_CORE_BASE(0x0A20 + 4 * (n))
308*3ecd70b1SJoonyoung Shim 
309*3ecd70b1SJoonyoung Shim #define HDMI_GAMUT_CON			HDMI_CORE_BASE(0x0B00)
310*3ecd70b1SJoonyoung Shim #define HDMI_GAMUT_HEADER0		HDMI_CORE_BASE(0x0B10)
311*3ecd70b1SJoonyoung Shim #define HDMI_GAMUT_HEADER1		HDMI_CORE_BASE(0x0B14)
312*3ecd70b1SJoonyoung Shim #define HDMI_GAMUT_HEADER2		HDMI_CORE_BASE(0x0B18)
313*3ecd70b1SJoonyoung Shim #define HDMI_GAMUT_METADATA(n)		HDMI_CORE_BASE(0x0B20 + 4 * (n))
314*3ecd70b1SJoonyoung Shim 
315*3ecd70b1SJoonyoung Shim #define HDMI_VSI_CON			HDMI_CORE_BASE(0x0C00)
316*3ecd70b1SJoonyoung Shim #define HDMI_VSI_HEADER0		HDMI_CORE_BASE(0x0C10)
317*3ecd70b1SJoonyoung Shim #define HDMI_VSI_HEADER1		HDMI_CORE_BASE(0x0C14)
318*3ecd70b1SJoonyoung Shim #define HDMI_VSI_HEADER2		HDMI_CORE_BASE(0x0C18)
319*3ecd70b1SJoonyoung Shim #define HDMI_VSI_DATA(n)		HDMI_CORE_BASE(0x0C20 + 4 * (n))
320*3ecd70b1SJoonyoung Shim 
321*3ecd70b1SJoonyoung Shim #define HDMI_DC_CONTROL			HDMI_CORE_BASE(0x0D00)
322*3ecd70b1SJoonyoung Shim #define HDMI_VIDEO_PATTERN_GEN		HDMI_CORE_BASE(0x0D04)
323*3ecd70b1SJoonyoung Shim 
324*3ecd70b1SJoonyoung Shim #define HDMI_AN_SEED_SEL		HDMI_CORE_BASE(0x0E48)
325*3ecd70b1SJoonyoung Shim #define HDMI_AN_SEED_0			HDMI_CORE_BASE(0x0E58)
326*3ecd70b1SJoonyoung Shim #define HDMI_AN_SEED_1			HDMI_CORE_BASE(0x0E5C)
327*3ecd70b1SJoonyoung Shim #define HDMI_AN_SEED_2			HDMI_CORE_BASE(0x0E60)
328*3ecd70b1SJoonyoung Shim #define HDMI_AN_SEED_3			HDMI_CORE_BASE(0x0E64)
329*3ecd70b1SJoonyoung Shim 
330*3ecd70b1SJoonyoung Shim /* HDCP related registers */
331*3ecd70b1SJoonyoung Shim #define HDMI_HDCP_SHA1(n)		HDMI_CORE_BASE(0x7000 + 4 * (n))
332*3ecd70b1SJoonyoung Shim #define HDMI_HDCP_KSV_LIST(n)		HDMI_CORE_BASE(0x7050 + 4 * (n))
333*3ecd70b1SJoonyoung Shim 
334*3ecd70b1SJoonyoung Shim #define HDMI_HDCP_KSV_LIST_CON		HDMI_CORE_BASE(0x7064)
335*3ecd70b1SJoonyoung Shim #define HDMI_HDCP_SHA_RESULT		HDMI_CORE_BASE(0x7070)
336*3ecd70b1SJoonyoung Shim #define HDMI_HDCP_CTRL1			HDMI_CORE_BASE(0x7080)
337*3ecd70b1SJoonyoung Shim #define HDMI_HDCP_CTRL2			HDMI_CORE_BASE(0x7084)
338*3ecd70b1SJoonyoung Shim #define HDMI_HDCP_CHECK_RESULT		HDMI_CORE_BASE(0x7090)
339*3ecd70b1SJoonyoung Shim #define HDMI_HDCP_BKSV(n)		HDMI_CORE_BASE(0x70A0 + 4 * (n))
340*3ecd70b1SJoonyoung Shim #define HDMI_HDCP_AKSV(n)		HDMI_CORE_BASE(0x70C0 + 4 * (n))
341*3ecd70b1SJoonyoung Shim #define HDMI_HDCP_AN(n)			HDMI_CORE_BASE(0x70E0 + 4 * (n))
342*3ecd70b1SJoonyoung Shim 
343*3ecd70b1SJoonyoung Shim #define HDMI_HDCP_BCAPS			HDMI_CORE_BASE(0x7100)
344*3ecd70b1SJoonyoung Shim #define HDMI_HDCP_BSTATUS_0		HDMI_CORE_BASE(0x7110)
345*3ecd70b1SJoonyoung Shim #define HDMI_HDCP_BSTATUS_1		HDMI_CORE_BASE(0x7114)
346*3ecd70b1SJoonyoung Shim #define HDMI_HDCP_RI_0			HDMI_CORE_BASE(0x7140)
347*3ecd70b1SJoonyoung Shim #define HDMI_HDCP_RI_1			HDMI_CORE_BASE(0x7144)
348*3ecd70b1SJoonyoung Shim #define HDMI_HDCP_I2C_INT		HDMI_CORE_BASE(0x7180)
349*3ecd70b1SJoonyoung Shim #define HDMI_HDCP_AN_INT		HDMI_CORE_BASE(0x7190)
350*3ecd70b1SJoonyoung Shim #define HDMI_HDCP_WDT_INT		HDMI_CORE_BASE(0x71A0)
351*3ecd70b1SJoonyoung Shim #define HDMI_HDCP_RI_INT		HDMI_CORE_BASE(0x71B0)
352*3ecd70b1SJoonyoung Shim #define HDMI_HDCP_RI_COMPARE_0		HDMI_CORE_BASE(0x71D0)
353*3ecd70b1SJoonyoung Shim #define HDMI_HDCP_RI_COMPARE_1		HDMI_CORE_BASE(0x71D4)
354*3ecd70b1SJoonyoung Shim #define HDMI_HDCP_FRAME_COUNT		HDMI_CORE_BASE(0x71E0)
355*3ecd70b1SJoonyoung Shim 
356*3ecd70b1SJoonyoung Shim #define HDMI_RGB_ROUND_EN		HDMI_CORE_BASE(0xD500)
357*3ecd70b1SJoonyoung Shim #define HDMI_VACT_SPACE_R_0		HDMI_CORE_BASE(0xD504)
358*3ecd70b1SJoonyoung Shim #define HDMI_VACT_SPACE_R_1		HDMI_CORE_BASE(0xD508)
359*3ecd70b1SJoonyoung Shim #define HDMI_VACT_SPACE_G_0		HDMI_CORE_BASE(0xD50C)
360*3ecd70b1SJoonyoung Shim #define HDMI_VACT_SPACE_G_1		HDMI_CORE_BASE(0xD510)
361*3ecd70b1SJoonyoung Shim #define HDMI_VACT_SPACE_B_0		HDMI_CORE_BASE(0xD514)
362*3ecd70b1SJoonyoung Shim #define HDMI_VACT_SPACE_B_1		HDMI_CORE_BASE(0xD518)
363*3ecd70b1SJoonyoung Shim 
364*3ecd70b1SJoonyoung Shim #define HDMI_BLUE_SCREEN_B_0		HDMI_CORE_BASE(0xD520)
365*3ecd70b1SJoonyoung Shim #define HDMI_BLUE_SCREEN_B_1		HDMI_CORE_BASE(0xD524)
366*3ecd70b1SJoonyoung Shim #define HDMI_BLUE_SCREEN_G_0		HDMI_CORE_BASE(0xD528)
367*3ecd70b1SJoonyoung Shim #define HDMI_BLUE_SCREEN_G_1		HDMI_CORE_BASE(0xD52C)
368*3ecd70b1SJoonyoung Shim #define HDMI_BLUE_SCREEN_R_0		HDMI_CORE_BASE(0xD530)
369*3ecd70b1SJoonyoung Shim #define HDMI_BLUE_SCREEN_R_1		HDMI_CORE_BASE(0xD534)
370*3ecd70b1SJoonyoung Shim 
371*3ecd70b1SJoonyoung Shim /* Timing generator registers */
372*3ecd70b1SJoonyoung Shim /* TG configure/status registers */
373*3ecd70b1SJoonyoung Shim #define HDMI_TG_VACT_ST3_L		HDMI_TG_BASE(0x0068)
374*3ecd70b1SJoonyoung Shim #define HDMI_TG_VACT_ST3_H		HDMI_TG_BASE(0x006c)
375*3ecd70b1SJoonyoung Shim #define HDMI_TG_VACT_ST4_L		HDMI_TG_BASE(0x0070)
376*3ecd70b1SJoonyoung Shim #define HDMI_TG_VACT_ST4_H		HDMI_TG_BASE(0x0074)
377*3ecd70b1SJoonyoung Shim #define HDMI_TG_3D			HDMI_TG_BASE(0x00F0)
378*3ecd70b1SJoonyoung Shim 
379d8408326SSeung-Woo Kim #endif /* SAMSUNG_REGS_HDMI_H */
380