Go to the documentation of this file.
24 #include <linux/types.h>
28 #define H2_ISR_TSTATUS 0x01
29 #define H2_ISR_USTATUS 0x02
30 #define H2_ISR_QUAD_MODE 0x04
31 #define H2_ISR_GLOBAL_RESET_N 0x08
32 #define H2_ISR_CODEC_RESET_N 0x10
36 #define H2_REV_AUDIO_PRESENT 0x8000
37 #define H2_REV_BOARD_M 0x7000
38 #define H2_REV_MAJOR_CHIP_M 0x00F0
39 #define H2_REV_MINOR_CHIP_M 0x000F
50 #define H2_IAR_TYPE_M 0xF000
56 #define H2_IAR_NUM_M 0x0F00
74 #define H2_IAR_ACCESS_SELECT 0x0080
75 #define H2_IAR_PARAM 0x000C
76 #define H2_IAR_RB_INDEX_M 0x0003
100 #define H2I_RELAY_C 0x9100
101 #define H2I_RELAY_C_STATE 0x01
105 #define H2I_DMA_PORT_EN 0x9104
106 #define H2I_DMA_PORT_EN_SY_IN 0x01
107 #define H2I_DMA_PORT_EN_AESRX 0x02
108 #define H2I_DMA_PORT_EN_AESTX 0x04
109 #define H2I_DMA_PORT_EN_CODECTX 0x08
110 #define H2I_DMA_PORT_EN_CODECR 0x10
112 #define H2I_DMA_END 0x9108
113 #define H2I_DMA_END_SY_IN 0x01
114 #define H2I_DMA_END_AESRX 0x02
115 #define H2I_DMA_END_AESTX 0x04
116 #define H2I_DMA_END_CODECTX 0x08
117 #define H2I_DMA_END_CODECR 0x10
120 #define H2I_DMA_DRV 0x910C
122 #define H2I_SYNTH_C 0x1104
124 #define H2I_AESRX_C 0x1204
126 #define H2I_C_TS_EN 0x20
127 #define H2I_C_TS_FRMT 0x40
128 #define H2I_C_NAUDIO 0x80
132 #define H2I_AESTX_C 0x1304
133 #define H2I_AESTX_C_CLKID_SHIFT 3
134 #define H2I_AESTX_C_CLKID_M 0x18
135 #define H2I_AESTX_C_DATAT_SHIFT 8
136 #define H2I_AESTX_C_DATAT_M 0x300
140 #define H2I_DAC_C1 0x1404
141 #define H2I_DAC_C2 0x1408
142 #define H2I_ADC_C1 0x1504
143 #define H2I_ADC_C2 0x1508
147 #define H2I_C1_DMA_SHIFT 0
148 #define H2I_C1_DMA_M 0x7
149 #define H2I_C1_CLKID_SHIFT 3
150 #define H2I_C1_CLKID_M 0x18
151 #define H2I_C1_DATAT_SHIFT 8
152 #define H2I_C1_DATAT_M 0x300
156 #define H2I_C2_R_GAIN_SHIFT 0
157 #define H2I_C2_R_GAIN_M 0xf
158 #define H2I_C2_L_GAIN_SHIFT 4
159 #define H2I_C2_L_GAIN_M 0xf0
160 #define H2I_C2_R_SEL 0x100
161 #define H2I_C2_L_SEL 0x200
162 #define H2I_C2_MUTE 0x400
163 #define H2I_C2_DO1 0x00010000
164 #define H2I_C2_DO2 0x00020000
165 #define H2I_C2_R_ATT_SHIFT 18
166 #define H2I_C2_R_ATT_M 0x007c0000
167 #define H2I_C2_L_ATT_SHIFT 23
168 #define H2I_C2_L_ATT_M 0x0f800000
170 #define H2I_SYNTH_MAP_C 0x1104
174 #define H2I_BRES1_C1 0x2104
175 #define H2I_BRES2_C1 0x2204
176 #define H2I_BRES3_C1 0x2304
178 #define H2I_BRES_C1_SHIFT 0
179 #define H2I_BRES_C1_M 0x03
183 #define H2I_BRES1_C2 0x2108
184 #define H2I_BRES2_C2 0x2208
185 #define H2I_BRES3_C2 0x2308
187 #define H2I_BRES_C2_INC_SHIFT 0
188 #define H2I_BRES_C2_INC_M 0xffff
189 #define H2I_BRES_C2_MOD_SHIFT 16
190 #define H2I_BRES_C2_MOD_M 0xffff0000
194 #define H2I_UTIME 0x3104
195 #define H2I_UTIME_0_LD 0xffff
196 #define H2I_UTIME_1_LD0 0x0f
197 #define H2I_UTIME_1_LD1 0xf0
198 #define H2I_UTIME_2_LD 0xffff
199 #define H2I_UTIME_3_LD 0xffff