Go to the documentation of this file.
21 #ifndef _HDMI_TI_4xxx_H_
22 #define _HDMI_TI_4xxx_H_
24 #include <linux/string.h>
30 #define HDMI_WP_REVISION 0x0
31 #define HDMI_WP_SYSCONFIG 0x10
32 #define HDMI_WP_IRQSTATUS_RAW 0x24
33 #define HDMI_WP_IRQSTATUS 0x28
34 #define HDMI_WP_PWR_CTRL 0x40
35 #define HDMI_WP_IRQENABLE_SET 0x2C
36 #define HDMI_WP_VIDEO_CFG 0x50
37 #define HDMI_WP_VIDEO_SIZE 0x60
38 #define HDMI_WP_VIDEO_TIMING_H 0x68
39 #define HDMI_WP_VIDEO_TIMING_V 0x6C
40 #define HDMI_WP_WP_CLK 0x70
41 #define HDMI_WP_AUDIO_CFG 0x80
42 #define HDMI_WP_AUDIO_CFG2 0x84
43 #define HDMI_WP_AUDIO_CTRL 0x88
44 #define HDMI_WP_AUDIO_DATA 0x8C
48 #define HDMI_CORE_SYS_VND_IDL 0x0
49 #define HDMI_CORE_SYS_DEV_IDL 0x8
50 #define HDMI_CORE_SYS_DEV_IDH 0xC
51 #define HDMI_CORE_SYS_DEV_REV 0x10
52 #define HDMI_CORE_SYS_SRST 0x14
53 #define HDMI_CORE_CTRL1 0x20
54 #define HDMI_CORE_SYS_SYS_STAT 0x24
55 #define HDMI_CORE_SYS_DE_DLY 0xC8
56 #define HDMI_CORE_SYS_DE_CTRL 0xCC
57 #define HDMI_CORE_SYS_DE_TOP 0xD0
58 #define HDMI_CORE_SYS_DE_CNTL 0xD8
59 #define HDMI_CORE_SYS_DE_CNTH 0xDC
60 #define HDMI_CORE_SYS_DE_LINL 0xE0
61 #define HDMI_CORE_SYS_DE_LINH_1 0xE4
62 #define HDMI_CORE_SYS_VID_ACEN 0x124
63 #define HDMI_CORE_SYS_VID_MODE 0x128
64 #define HDMI_CORE_SYS_INTR_STATE 0x1C0
65 #define HDMI_CORE_SYS_INTR1 0x1C4
66 #define HDMI_CORE_SYS_INTR2 0x1C8
67 #define HDMI_CORE_SYS_INTR3 0x1CC
68 #define HDMI_CORE_SYS_INTR4 0x1D0
69 #define HDMI_CORE_SYS_UMASK1 0x1D4
70 #define HDMI_CORE_SYS_TMDS_CTRL 0x208
72 #define HDMI_CORE_CTRL1_VEN_FOLLOWVSYNC 0x1
73 #define HDMI_CORE_CTRL1_HEN_FOLLOWHSYNC 0x1
74 #define HDMI_CORE_CTRL1_BSEL_24BITBUS 0x1
75 #define HDMI_CORE_CTRL1_EDGE_RISINGEDGE 0x1
78 #define HDMI_CORE_DDC_ADDR 0x3B4
79 #define HDMI_CORE_DDC_SEGM 0x3B8
80 #define HDMI_CORE_DDC_OFFSET 0x3BC
81 #define HDMI_CORE_DDC_COUNT1 0x3C0
82 #define HDMI_CORE_DDC_COUNT2 0x3C4
83 #define HDMI_CORE_DDC_STATUS 0x3C8
84 #define HDMI_CORE_DDC_CMD 0x3CC
85 #define HDMI_CORE_DDC_DATA 0x3D0
89 #define HDMI_CORE_AV_ACR_CTRL 0x4
90 #define HDMI_CORE_AV_FREQ_SVAL 0x8
91 #define HDMI_CORE_AV_N_SVAL1 0xC
92 #define HDMI_CORE_AV_N_SVAL2 0x10
93 #define HDMI_CORE_AV_N_SVAL3 0x14
94 #define HDMI_CORE_AV_CTS_SVAL1 0x18
95 #define HDMI_CORE_AV_CTS_SVAL2 0x1C
96 #define HDMI_CORE_AV_CTS_SVAL3 0x20
97 #define HDMI_CORE_AV_CTS_HVAL1 0x24
98 #define HDMI_CORE_AV_CTS_HVAL2 0x28
99 #define HDMI_CORE_AV_CTS_HVAL3 0x2C
100 #define HDMI_CORE_AV_AUD_MODE 0x50
101 #define HDMI_CORE_AV_SPDIF_CTRL 0x54
102 #define HDMI_CORE_AV_HW_SPDIF_FS 0x60
103 #define HDMI_CORE_AV_SWAP_I2S 0x64
104 #define HDMI_CORE_AV_SPDIF_ERTH 0x6C
105 #define HDMI_CORE_AV_I2S_IN_MAP 0x70
106 #define HDMI_CORE_AV_I2S_IN_CTRL 0x74
107 #define HDMI_CORE_AV_I2S_CHST0 0x78
108 #define HDMI_CORE_AV_I2S_CHST1 0x7C
109 #define HDMI_CORE_AV_I2S_CHST2 0x80
110 #define HDMI_CORE_AV_I2S_CHST4 0x84
111 #define HDMI_CORE_AV_I2S_CHST5 0x88
112 #define HDMI_CORE_AV_ASRC 0x8C
113 #define HDMI_CORE_AV_I2S_IN_LEN 0x90
114 #define HDMI_CORE_AV_HDMI_CTRL 0xBC
115 #define HDMI_CORE_AV_AUDO_TXSTAT 0xC0
116 #define HDMI_CORE_AV_AUD_PAR_BUSCLK_1 0xCC
117 #define HDMI_CORE_AV_AUD_PAR_BUSCLK_2 0xD0
118 #define HDMI_CORE_AV_AUD_PAR_BUSCLK_3 0xD4
119 #define HDMI_CORE_AV_TEST_TXCTRL 0xF0
120 #define HDMI_CORE_AV_DPD 0xF4
121 #define HDMI_CORE_AV_PB_CTRL1 0xF8
122 #define HDMI_CORE_AV_PB_CTRL2 0xFC
123 #define HDMI_CORE_AV_AVI_TYPE 0x100
124 #define HDMI_CORE_AV_AVI_VERS 0x104
125 #define HDMI_CORE_AV_AVI_LEN 0x108
126 #define HDMI_CORE_AV_AVI_CHSUM 0x10C
127 #define HDMI_CORE_AV_AVI_DBYTE(n) (n * 4 + 0x110)
128 #define HDMI_CORE_AV_SPD_TYPE 0x180
129 #define HDMI_CORE_AV_SPD_VERS 0x184
130 #define HDMI_CORE_AV_SPD_LEN 0x188
131 #define HDMI_CORE_AV_SPD_CHSUM 0x18C
132 #define HDMI_CORE_AV_SPD_DBYTE(n) (n * 4 + 0x190)
133 #define HDMI_CORE_AV_AUDIO_TYPE 0x200
134 #define HDMI_CORE_AV_AUDIO_VERS 0x204
135 #define HDMI_CORE_AV_AUDIO_LEN 0x208
136 #define HDMI_CORE_AV_AUDIO_CHSUM 0x20C
137 #define HDMI_CORE_AV_AUD_DBYTE(n) (n * 4 + 0x210)
138 #define HDMI_CORE_AV_MPEG_TYPE 0x280
139 #define HDMI_CORE_AV_MPEG_VERS 0x284
140 #define HDMI_CORE_AV_MPEG_LEN 0x288
141 #define HDMI_CORE_AV_MPEG_CHSUM 0x28C
142 #define HDMI_CORE_AV_MPEG_DBYTE(n) (n * 4 + 0x290)
143 #define HDMI_CORE_AV_GEN_DBYTE(n) (n * 4 + 0x300)
144 #define HDMI_CORE_AV_CP_BYTE1 0x37C
145 #define HDMI_CORE_AV_GEN2_DBYTE(n) (n * 4 + 0x380)
146 #define HDMI_CORE_AV_CEC_ADDR_ID 0x3FC
148 #define HDMI_CORE_AV_SPD_DBYTE_ELSIZE 0x4
149 #define HDMI_CORE_AV_GEN2_DBYTE_ELSIZE 0x4
150 #define HDMI_CORE_AV_MPEG_DBYTE_ELSIZE 0x4
151 #define HDMI_CORE_AV_GEN_DBYTE_ELSIZE 0x4
153 #define HDMI_CORE_AV_AVI_DBYTE_NELEMS 15
154 #define HDMI_CORE_AV_SPD_DBYTE_NELEMS 27
155 #define HDMI_CORE_AV_AUD_DBYTE_NELEMS 10
156 #define HDMI_CORE_AV_MPEG_DBYTE_NELEMS 27
157 #define HDMI_CORE_AV_GEN_DBYTE_NELEMS 31
158 #define HDMI_CORE_AV_GEN2_DBYTE_NELEMS 31
162 #define PLLCTRL_PLL_CONTROL 0x0
163 #define PLLCTRL_PLL_STATUS 0x4
164 #define PLLCTRL_PLL_GO 0x8
165 #define PLLCTRL_CFG1 0xC
166 #define PLLCTRL_CFG2 0x10
167 #define PLLCTRL_CFG3 0x14
168 #define PLLCTRL_CFG4 0x20
172 #define HDMI_TXPHY_TX_CTRL 0x0
173 #define HDMI_TXPHY_DIGITAL_CTRL 0x4
174 #define HDMI_TXPHY_POWER_CTRL 0x8
175 #define HDMI_TXPHY_PAD_CFG_CTRL 0xC
177 #define REG_FLD_MOD(base, idx, val, start, end) \
178 hdmi_write_reg(base, idx, FLD_MOD(hdmi_read_reg(base, idx),\
180 #define REG_GET(base, idx, start, end) \
181 FLD_GET(hdmi_read_reg(base, idx), start, end)