1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * mt8192-reg.h  --  Mediatek 8192 audio driver reg definition
4  *
5  * Copyright (c) 2020 MediaTek Inc.
6  * Author: Shane Chien <shane.chien@mediatek.com>
7  */
8 
9 #ifndef _MT8192_REG_H_
10 #define _MT8192_REG_H_
11 
12 /* reg bit enum */
13 enum {
14 	MT8192_MEMIF_PBUF_SIZE_32_BYTES,
15 	MT8192_MEMIF_PBUF_SIZE_64_BYTES,
16 	MT8192_MEMIF_PBUF_SIZE_128_BYTES,
17 	MT8192_MEMIF_PBUF_SIZE_256_BYTES,
18 	MT8192_MEMIF_PBUF_SIZE_NUM,
19 };
20 
21 /*****************************************************************************
22  *                  R E G I S T E R       D E F I N I T I O N
23  *****************************************************************************/
24 /* AFE_DAC_CON0 */
25 #define VUL12_ON_SFT                                   31
26 #define VUL12_ON_MASK                                  0x1
27 #define VUL12_ON_MASK_SFT                              (0x1 << 31)
28 #define MOD_DAI_ON_SFT                                 30
29 #define MOD_DAI_ON_MASK                                0x1
30 #define MOD_DAI_ON_MASK_SFT                            (0x1 << 30)
31 #define DAI_ON_SFT                                     29
32 #define DAI_ON_MASK                                    0x1
33 #define DAI_ON_MASK_SFT                                (0x1 << 29)
34 #define DAI2_ON_SFT                                    28
35 #define DAI2_ON_MASK                                   0x1
36 #define DAI2_ON_MASK_SFT                               (0x1 << 28)
37 #define VUL6_ON_SFT                                    23
38 #define VUL6_ON_MASK                                   0x1
39 #define VUL6_ON_MASK_SFT                               (0x1 << 23)
40 #define VUL5_ON_SFT                                    22
41 #define VUL5_ON_MASK                                   0x1
42 #define VUL5_ON_MASK_SFT                               (0x1 << 22)
43 #define VUL4_ON_SFT                                    21
44 #define VUL4_ON_MASK                                   0x1
45 #define VUL4_ON_MASK_SFT                               (0x1 << 21)
46 #define VUL3_ON_SFT                                    20
47 #define VUL3_ON_MASK                                   0x1
48 #define VUL3_ON_MASK_SFT                               (0x1 << 20)
49 #define VUL2_ON_SFT                                    19
50 #define VUL2_ON_MASK                                   0x1
51 #define VUL2_ON_MASK_SFT                               (0x1 << 19)
52 #define VUL_ON_SFT                                     18
53 #define VUL_ON_MASK                                    0x1
54 #define VUL_ON_MASK_SFT                                (0x1 << 18)
55 #define AWB2_ON_SFT                                    17
56 #define AWB2_ON_MASK                                   0x1
57 #define AWB2_ON_MASK_SFT                               (0x1 << 17)
58 #define AWB_ON_SFT                                     16
59 #define AWB_ON_MASK                                    0x1
60 #define AWB_ON_MASK_SFT                                (0x1 << 16)
61 #define DL12_ON_SFT                                    15
62 #define DL12_ON_MASK                                   0x1
63 #define DL12_ON_MASK_SFT                               (0x1 << 15)
64 #define DL9_ON_SFT                                     12
65 #define DL9_ON_MASK                                    0x1
66 #define DL9_ON_MASK_SFT                                (0x1 << 12)
67 #define DL8_ON_SFT                                     11
68 #define DL8_ON_MASK                                    0x1
69 #define DL8_ON_MASK_SFT                                (0x1 << 11)
70 #define DL7_ON_SFT                                     10
71 #define DL7_ON_MASK                                    0x1
72 #define DL7_ON_MASK_SFT                                (0x1 << 10)
73 #define DL6_ON_SFT                                     9
74 #define DL6_ON_MASK                                    0x1
75 #define DL6_ON_MASK_SFT                                (0x1 << 9)
76 #define DL5_ON_SFT                                     8
77 #define DL5_ON_MASK                                    0x1
78 #define DL5_ON_MASK_SFT                                (0x1 << 8)
79 #define DL4_ON_SFT                                     7
80 #define DL4_ON_MASK                                    0x1
81 #define DL4_ON_MASK_SFT                                (0x1 << 7)
82 #define DL3_ON_SFT                                     6
83 #define DL3_ON_MASK                                    0x1
84 #define DL3_ON_MASK_SFT                                (0x1 << 6)
85 #define DL2_ON_SFT                                     5
86 #define DL2_ON_MASK                                    0x1
87 #define DL2_ON_MASK_SFT                                (0x1 << 5)
88 #define DL1_ON_SFT                                     4
89 #define DL1_ON_MASK                                    0x1
90 #define DL1_ON_MASK_SFT                                (0x1 << 4)
91 #define HDMI_OUT_ON_SFT                                1
92 #define HDMI_OUT_ON_MASK                               0x1
93 #define HDMI_OUT_ON_MASK_SFT                           (0x1 << 1)
94 #define AFE_ON_SFT                                     0
95 #define AFE_ON_MASK                                    0x1
96 #define AFE_ON_MASK_SFT                                (0x1 << 0)
97 
98 /* AFE_DAC_MON */
99 #define AFE_ON_RETM_SFT                                0
100 #define AFE_ON_RETM_MASK                               0x1
101 #define AFE_ON_RETM_MASK_SFT                           (0x1 << 0)
102 
103 /* AFE_I2S_CON */
104 #define BCK_NEG_EG_LATCH_SFT                           30
105 #define BCK_NEG_EG_LATCH_MASK                          0x1
106 #define BCK_NEG_EG_LATCH_MASK_SFT                      (0x1 << 30)
107 #define BCK_INV_SFT                                    29
108 #define BCK_INV_MASK                                   0x1
109 #define BCK_INV_MASK_SFT                               (0x1 << 29)
110 #define I2SIN_PAD_SEL_SFT                              28
111 #define I2SIN_PAD_SEL_MASK                             0x1
112 #define I2SIN_PAD_SEL_MASK_SFT                         (0x1 << 28)
113 #define I2S_LOOPBACK_SFT                               20
114 #define I2S_LOOPBACK_MASK                              0x1
115 #define I2S_LOOPBACK_MASK_SFT                          (0x1 << 20)
116 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT              17
117 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK             0x1
118 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT         (0x1 << 17)
119 #define I2S1_HD_EN_SFT                                 12
120 #define I2S1_HD_EN_MASK                                0x1
121 #define I2S1_HD_EN_MASK_SFT                            (0x1 << 12)
122 #define I2S_OUT_MODE_SFT                               8
123 #define I2S_OUT_MODE_MASK                              0xf
124 #define I2S_OUT_MODE_MASK_SFT                          (0xf << 8)
125 #define INV_PAD_CTRL_SFT                               7
126 #define INV_PAD_CTRL_MASK                              0x1
127 #define INV_PAD_CTRL_MASK_SFT                          (0x1 << 7)
128 #define I2S_BYPSRC_SFT                                 6
129 #define I2S_BYPSRC_MASK                                0x1
130 #define I2S_BYPSRC_MASK_SFT                            (0x1 << 6)
131 #define INV_LRCK_SFT                                   5
132 #define INV_LRCK_MASK                                  0x1
133 #define INV_LRCK_MASK_SFT                              (0x1 << 5)
134 #define I2S_FMT_SFT                                    3
135 #define I2S_FMT_MASK                                   0x1
136 #define I2S_FMT_MASK_SFT                               (0x1 << 3)
137 #define I2S_SRC_SFT                                    2
138 #define I2S_SRC_MASK                                   0x1
139 #define I2S_SRC_MASK_SFT                               (0x1 << 2)
140 #define I2S_WLEN_SFT                                   1
141 #define I2S_WLEN_MASK                                  0x1
142 #define I2S_WLEN_MASK_SFT                              (0x1 << 1)
143 #define I2S_EN_SFT                                     0
144 #define I2S_EN_MASK                                    0x1
145 #define I2S_EN_MASK_SFT                                (0x1 << 0)
146 
147 /* AFE_I2S_CON1 */
148 #define I2S2_LR_SWAP_SFT                               31
149 #define I2S2_LR_SWAP_MASK                              0x1
150 #define I2S2_LR_SWAP_MASK_SFT                          (0x1 << 31)
151 #define I2S2_SEL_O19_O20_SFT                           18
152 #define I2S2_SEL_O19_O20_MASK                          0x1
153 #define I2S2_SEL_O19_O20_MASK_SFT                      (0x1 << 18)
154 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT              17
155 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK             0x1
156 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT         (0x1 << 17)
157 #define I2S2_SEL_O03_O04_SFT                           16
158 #define I2S2_SEL_O03_O04_MASK                          0x1
159 #define I2S2_SEL_O03_O04_MASK_SFT                      (0x1 << 16)
160 #define I2S2_32BIT_EN_SFT                              13
161 #define I2S2_32BIT_EN_MASK                             0x1
162 #define I2S2_32BIT_EN_MASK_SFT                         (0x1 << 13)
163 #define I2S2_HD_EN_SFT                                 12
164 #define I2S2_HD_EN_MASK                                0x1
165 #define I2S2_HD_EN_MASK_SFT                            (0x1 << 12)
166 #define I2S2_OUT_MODE_SFT                              8
167 #define I2S2_OUT_MODE_MASK                             0xf
168 #define I2S2_OUT_MODE_MASK_SFT                         (0xf << 8)
169 #define INV_LRCK_SFT                                   5
170 #define INV_LRCK_MASK                                  0x1
171 #define INV_LRCK_MASK_SFT                              (0x1 << 5)
172 #define I2S2_FMT_SFT                                   3
173 #define I2S2_FMT_MASK                                  0x1
174 #define I2S2_FMT_MASK_SFT                              (0x1 << 3)
175 #define I2S2_WLEN_SFT                                  1
176 #define I2S2_WLEN_MASK                                 0x1
177 #define I2S2_WLEN_MASK_SFT                             (0x1 << 1)
178 #define I2S2_EN_SFT                                    0
179 #define I2S2_EN_MASK                                   0x1
180 #define I2S2_EN_MASK_SFT                               (0x1 << 0)
181 
182 /* AFE_I2S_CON2 */
183 #define I2S3_LR_SWAP_SFT                               31
184 #define I2S3_LR_SWAP_MASK                              0x1
185 #define I2S3_LR_SWAP_MASK_SFT                          (0x1 << 31)
186 #define I2S3_UPDATE_WORD_SFT                           24
187 #define I2S3_UPDATE_WORD_MASK                          0x1f
188 #define I2S3_UPDATE_WORD_MASK_SFT                      (0x1f << 24)
189 #define I2S3_BCK_INV_SFT                               23
190 #define I2S3_BCK_INV_MASK                              0x1
191 #define I2S3_BCK_INV_MASK_SFT                          (0x1 << 23)
192 #define I2S3_FPGA_BIT_TEST_SFT                         22
193 #define I2S3_FPGA_BIT_TEST_MASK                        0x1
194 #define I2S3_FPGA_BIT_TEST_MASK_SFT                    (0x1 << 22)
195 #define I2S3_FPGA_BIT_SFT                              21
196 #define I2S3_FPGA_BIT_MASK                             0x1
197 #define I2S3_FPGA_BIT_MASK_SFT                         (0x1 << 21)
198 #define I2S3_LOOPBACK_SFT                              20
199 #define I2S3_LOOPBACK_MASK                             0x1
200 #define I2S3_LOOPBACK_MASK_SFT                         (0x1 << 20)
201 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT              17
202 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK             0x1
203 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT         (0x1 << 17)
204 #define I2S3_HD_EN_SFT                                 12
205 #define I2S3_HD_EN_MASK                                0x1
206 #define I2S3_HD_EN_MASK_SFT                            (0x1 << 12)
207 #define I2S3_OUT_MODE_SFT                              8
208 #define I2S3_OUT_MODE_MASK                             0xf
209 #define I2S3_OUT_MODE_MASK_SFT                         (0xf << 8)
210 #define I2S3_FMT_SFT                                   3
211 #define I2S3_FMT_MASK                                  0x1
212 #define I2S3_FMT_MASK_SFT                              (0x1 << 3)
213 #define I2S3_WLEN_SFT                                  1
214 #define I2S3_WLEN_MASK                                 0x1
215 #define I2S3_WLEN_MASK_SFT                             (0x1 << 1)
216 #define I2S3_EN_SFT                                    0
217 #define I2S3_EN_MASK                                   0x1
218 #define I2S3_EN_MASK_SFT                               (0x1 << 0)
219 
220 /* AFE_I2S_CON3 */
221 #define I2S4_LR_SWAP_SFT                               31
222 #define I2S4_LR_SWAP_MASK                              0x1
223 #define I2S4_LR_SWAP_MASK_SFT                          (0x1 << 31)
224 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT              17
225 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK             0x1
226 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT         (0x1 << 17)
227 #define I2S4_32BIT_EN_SFT                              13
228 #define I2S4_32BIT_EN_MASK                             0x1
229 #define I2S4_32BIT_EN_MASK_SFT                         (0x1 << 13)
230 #define I2S4_HD_EN_SFT                                 12
231 #define I2S4_HD_EN_MASK                                0x1
232 #define I2S4_HD_EN_MASK_SFT                            (0x1 << 12)
233 #define I2S4_OUT_MODE_SFT                              8
234 #define I2S4_OUT_MODE_MASK                             0xf
235 #define I2S4_OUT_MODE_MASK_SFT                         (0xf << 8)
236 #define INV_LRCK_SFT                                   5
237 #define INV_LRCK_MASK                                  0x1
238 #define INV_LRCK_MASK_SFT                              (0x1 << 5)
239 #define I2S4_FMT_SFT                                   3
240 #define I2S4_FMT_MASK                                  0x1
241 #define I2S4_FMT_MASK_SFT                              (0x1 << 3)
242 #define I2S4_WLEN_SFT                                  1
243 #define I2S4_WLEN_MASK                                 0x1
244 #define I2S4_WLEN_MASK_SFT                             (0x1 << 1)
245 #define I2S4_EN_SFT                                    0
246 #define I2S4_EN_MASK                                   0x1
247 #define I2S4_EN_MASK_SFT                               (0x1 << 0)
248 
249 /* AFE_I2S_CON4 */
250 #define I2S5_LR_SWAP_SFT                               31
251 #define I2S5_LR_SWAP_MASK                              0x1
252 #define I2S5_LR_SWAP_MASK_SFT                          (0x1 << 31)
253 #define I2S_LOOPBACK_SFT                               20
254 #define I2S_LOOPBACK_MASK                              0x1
255 #define I2S_LOOPBACK_MASK_SFT                          (0x1 << 20)
256 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT              17
257 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK             0x1
258 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT         (0x1 << 17)
259 #define I2S5_32BIT_EN_SFT                              13
260 #define I2S5_32BIT_EN_MASK                             0x1
261 #define I2S5_32BIT_EN_MASK_SFT                         (0x1 << 13)
262 #define I2S5_HD_EN_SFT                                 12
263 #define I2S5_HD_EN_MASK                                0x1
264 #define I2S5_HD_EN_MASK_SFT                            (0x1 << 12)
265 #define I2S5_OUT_MODE_SFT                              8
266 #define I2S5_OUT_MODE_MASK                             0xf
267 #define I2S5_OUT_MODE_MASK_SFT                         (0xf << 8)
268 #define INV_LRCK_SFT                                   5
269 #define INV_LRCK_MASK                                  0x1
270 #define INV_LRCK_MASK_SFT                              (0x1 << 5)
271 #define I2S5_FMT_SFT                                   3
272 #define I2S5_FMT_MASK                                  0x1
273 #define I2S5_FMT_MASK_SFT                              (0x1 << 3)
274 #define I2S5_WLEN_SFT                                  1
275 #define I2S5_WLEN_MASK                                 0x1
276 #define I2S5_WLEN_MASK_SFT                             (0x1 << 1)
277 #define I2S5_EN_SFT                                    0
278 #define I2S5_EN_MASK                                   0x1
279 #define I2S5_EN_MASK_SFT                               (0x1 << 0)
280 
281 /* AFE_CONNSYS_I2S_CON */
282 #define BCK_NEG_EG_LATCH_SFT                           30
283 #define BCK_NEG_EG_LATCH_MASK                          0x1
284 #define BCK_NEG_EG_LATCH_MASK_SFT                      (0x1 << 30)
285 #define BCK_INV_SFT                                    29
286 #define BCK_INV_MASK                                   0x1
287 #define BCK_INV_MASK_SFT                               (0x1 << 29)
288 #define I2SIN_PAD_SEL_SFT                              28
289 #define I2SIN_PAD_SEL_MASK                             0x1
290 #define I2SIN_PAD_SEL_MASK_SFT                         (0x1 << 28)
291 #define I2S_LOOPBACK_SFT                               20
292 #define I2S_LOOPBACK_MASK                              0x1
293 #define I2S_LOOPBACK_MASK_SFT                          (0x1 << 20)
294 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT              17
295 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK             0x1
296 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT         (0x1 << 17)
297 #define I2S_MODE_SFT                                   8
298 #define I2S_MODE_MASK                                  0xf
299 #define I2S_MODE_MASK_SFT                              (0xf << 8)
300 #define INV_PAD_CTRL_SFT                               7
301 #define INV_PAD_CTRL_MASK                              0x1
302 #define INV_PAD_CTRL_MASK_SFT                          (0x1 << 7)
303 #define I2S_BYPSRC_SFT                                 6
304 #define I2S_BYPSRC_MASK                                0x1
305 #define I2S_BYPSRC_MASK_SFT                            (0x1 << 6)
306 #define INV_LRCK_SFT                                   5
307 #define INV_LRCK_MASK                                  0x1
308 #define INV_LRCK_MASK_SFT                              (0x1 << 5)
309 #define I2S_FMT_SFT                                    3
310 #define I2S_FMT_MASK                                   0x1
311 #define I2S_FMT_MASK_SFT                               (0x1 << 3)
312 #define I2S_SRC_SFT                                    2
313 #define I2S_SRC_MASK                                   0x1
314 #define I2S_SRC_MASK_SFT                               (0x1 << 2)
315 #define I2S_WLEN_SFT                                   1
316 #define I2S_WLEN_MASK                                  0x1
317 #define I2S_WLEN_MASK_SFT                              (0x1 << 1)
318 #define I2S_EN_SFT                                     0
319 #define I2S_EN_MASK                                    0x1
320 #define I2S_EN_MASK_SFT                                (0x1 << 0)
321 
322 /* AFE_I2S_CON6 */
323 #define BCK_NEG_EG_LATCH_SFT                           30
324 #define BCK_NEG_EG_LATCH_MASK                          0x1
325 #define BCK_NEG_EG_LATCH_MASK_SFT                      (0x1 << 30)
326 #define BCK_INV_SFT                                    29
327 #define BCK_INV_MASK                                   0x1
328 #define BCK_INV_MASK_SFT                               (0x1 << 29)
329 #define I2S6_LOOPBACK_SFT                              20
330 #define I2S6_LOOPBACK_MASK                             0x1
331 #define I2S6_LOOPBACK_MASK_SFT                         (0x1 << 20)
332 #define I2S6_ONOFF_NOT_RESET_CK_ENABLE_SFT             17
333 #define I2S6_ONOFF_NOT_RESET_CK_ENABLE_MASK            0x1
334 #define I2S6_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT        (0x1 << 17)
335 #define I2S6_HD_EN_SFT                                 12
336 #define I2S6_HD_EN_MASK                                0x1
337 #define I2S6_HD_EN_MASK_SFT                            (0x1 << 12)
338 #define I2S6_OUT_MODE_SFT                              8
339 #define I2S6_OUT_MODE_MASK                             0xf
340 #define I2S6_OUT_MODE_MASK_SFT                         (0xf << 8)
341 #define I2S6_BYPSRC_SFT                                6
342 #define I2S6_BYPSRC_MASK                               0x1
343 #define I2S6_BYPSRC_MASK_SFT                           (0x1 << 6)
344 #define INV_LRCK_SFT                                   5
345 #define INV_LRCK_MASK                                  0x1
346 #define INV_LRCK_MASK_SFT                              (0x1 << 5)
347 #define I2S6_FMT_SFT                                   3
348 #define I2S6_FMT_MASK                                  0x1
349 #define I2S6_FMT_MASK_SFT                              (0x1 << 3)
350 #define I2S6_SRC_SFT                                   2
351 #define I2S6_SRC_MASK                                  0x1
352 #define I2S6_SRC_MASK_SFT                              (0x1 << 2)
353 #define I2S6_WLEN_SFT                                  1
354 #define I2S6_WLEN_MASK                                 0x1
355 #define I2S6_WLEN_MASK_SFT                             (0x1 << 1)
356 #define I2S6_EN_SFT                                    0
357 #define I2S6_EN_MASK                                   0x1
358 #define I2S6_EN_MASK_SFT                               (0x1 << 0)
359 
360 /* AFE_I2S_CON7 */
361 #define I2S7_LR_SWAP_SFT                               31
362 #define I2S7_LR_SWAP_MASK                              0x1
363 #define I2S7_LR_SWAP_MASK_SFT                          (0x1 << 31)
364 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT              17
365 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK             0x1
366 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT         (0x1 << 17)
367 #define I2S7_32BIT_EN_SFT                              13
368 #define I2S7_32BIT_EN_MASK                             0x1
369 #define I2S7_32BIT_EN_MASK_SFT                         (0x1 << 13)
370 #define I2S7_HD_EN_SFT                                 12
371 #define I2S7_HD_EN_MASK                                0x1
372 #define I2S7_HD_EN_MASK_SFT                            (0x1 << 12)
373 #define I2S7_OUT_MODE_SFT                              8
374 #define I2S7_OUT_MODE_MASK                             0xf
375 #define I2S7_OUT_MODE_MASK_SFT                         (0xf << 8)
376 #define INV_LRCK_SFT                                   5
377 #define INV_LRCK_MASK                                  0x1
378 #define INV_LRCK_MASK_SFT                              (0x1 << 5)
379 #define I2S7_FMT_SFT                                   3
380 #define I2S7_FMT_MASK                                  0x1
381 #define I2S7_FMT_MASK_SFT                              (0x1 << 3)
382 #define I2S7_WLEN_SFT                                  1
383 #define I2S7_WLEN_MASK                                 0x1
384 #define I2S7_WLEN_MASK_SFT                             (0x1 << 1)
385 #define I2S7_EN_SFT                                    0
386 #define I2S7_EN_MASK                                   0x1
387 #define I2S7_EN_MASK_SFT                               (0x1 << 0)
388 
389 /* AFE_I2S_CON8 */
390 #define BCK_NEG_EG_LATCH_SFT                           30
391 #define BCK_NEG_EG_LATCH_MASK                          0x1
392 #define BCK_NEG_EG_LATCH_MASK_SFT                      (0x1 << 30)
393 #define BCK_INV_SFT                                    29
394 #define BCK_INV_MASK                                   0x1
395 #define BCK_INV_MASK_SFT                               (0x1 << 29)
396 #define I2S8_LOOPBACK_SFT                              20
397 #define I2S8_LOOPBACK_MASK                             0x1
398 #define I2S8_LOOPBACK_MASK_SFT                         (0x1 << 20)
399 #define I2S8_ONOFF_NOT_RESET_CK_ENABLE_SFT             17
400 #define I2S8_ONOFF_NOT_RESET_CK_ENABLE_MASK            0x1
401 #define I2S8_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT        (0x1 << 17)
402 #define I2S8_HD_EN_SFT                                 12
403 #define I2S8_HD_EN_MASK                                0x1
404 #define I2S8_HD_EN_MASK_SFT                            (0x1 << 12)
405 #define I2S8_OUT_MODE_SFT                              8
406 #define I2S8_OUT_MODE_MASK                             0xf
407 #define I2S8_OUT_MODE_MASK_SFT                         (0xf << 8)
408 #define I2S8_BYPSRC_SFT                                6
409 #define I2S8_BYPSRC_MASK                               0x1
410 #define I2S8_BYPSRC_MASK_SFT                           (0x1 << 6)
411 #define INV_LRCK_SFT                                   5
412 #define INV_LRCK_MASK                                  0x1
413 #define INV_LRCK_MASK_SFT                              (0x1 << 5)
414 #define I2S8_FMT_SFT                                   3
415 #define I2S8_FMT_MASK                                  0x1
416 #define I2S8_FMT_MASK_SFT                              (0x1 << 3)
417 #define I2S8_SRC_SFT                                   2
418 #define I2S8_SRC_MASK                                  0x1
419 #define I2S8_SRC_MASK_SFT                              (0x1 << 2)
420 #define I2S8_WLEN_SFT                                  1
421 #define I2S8_WLEN_MASK                                 0x1
422 #define I2S8_WLEN_MASK_SFT                             (0x1 << 1)
423 #define I2S8_EN_SFT                                    0
424 #define I2S8_EN_MASK                                   0x1
425 #define I2S8_EN_MASK_SFT                               (0x1 << 0)
426 
427 /* AFE_I2S_CON9 */
428 #define I2S9_LR_SWAP_SFT                               31
429 #define I2S9_LR_SWAP_MASK                              0x1
430 #define I2S9_LR_SWAP_MASK_SFT                          (0x1 << 31)
431 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_SFT              17
432 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK             0x1
433 #define I2S_ONOFF_NOT_RESET_CK_ENABLE_MASK_SFT         (0x1 << 17)
434 #define I2S9_32BIT_EN_SFT                              13
435 #define I2S9_32BIT_EN_MASK                             0x1
436 #define I2S9_32BIT_EN_MASK_SFT                         (0x1 << 13)
437 #define I2S9_HD_EN_SFT                                 12
438 #define I2S9_HD_EN_MASK                                0x1
439 #define I2S9_HD_EN_MASK_SFT                            (0x1 << 12)
440 #define I2S9_OUT_MODE_SFT                              8
441 #define I2S9_OUT_MODE_MASK                             0xf
442 #define I2S9_OUT_MODE_MASK_SFT                         (0xf << 8)
443 #define INV_LRCK_SFT                                   5
444 #define INV_LRCK_MASK                                  0x1
445 #define INV_LRCK_MASK_SFT                              (0x1 << 5)
446 #define I2S9_FMT_SFT                                   3
447 #define I2S9_FMT_MASK                                  0x1
448 #define I2S9_FMT_MASK_SFT                              (0x1 << 3)
449 #define I2S9_WLEN_SFT                                  1
450 #define I2S9_WLEN_MASK                                 0x1
451 #define I2S9_WLEN_MASK_SFT                             (0x1 << 1)
452 #define I2S9_EN_SFT                                    0
453 #define I2S9_EN_MASK                                   0x1
454 #define I2S9_EN_MASK_SFT                               (0x1 << 0)
455 
456 /* AFE_ASRC_2CH_CON2 */
457 #define CHSET_O16BIT_SFT                               19
458 #define CHSET_O16BIT_MASK                              0x1
459 #define CHSET_O16BIT_MASK_SFT                          (0x1 << 19)
460 #define CHSET_CLR_IIR_HISTORY_SFT                      17
461 #define CHSET_CLR_IIR_HISTORY_MASK                     0x1
462 #define CHSET_CLR_IIR_HISTORY_MASK_SFT                 (0x1 << 17)
463 #define CHSET_IS_MONO_SFT                              16
464 #define CHSET_IS_MONO_MASK                             0x1
465 #define CHSET_IS_MONO_MASK_SFT                         (0x1 << 16)
466 #define CHSET_IIR_EN_SFT                               11
467 #define CHSET_IIR_EN_MASK                              0x1
468 #define CHSET_IIR_EN_MASK_SFT                          (0x1 << 11)
469 #define CHSET_IIR_STAGE_SFT                            8
470 #define CHSET_IIR_STAGE_MASK                           0x7
471 #define CHSET_IIR_STAGE_MASK_SFT                       (0x7 << 8)
472 #define CHSET_STR_CLR_SFT                              5
473 #define CHSET_STR_CLR_MASK                             0x1
474 #define CHSET_STR_CLR_MASK_SFT                         (0x1 << 5)
475 #define CHSET_ON_SFT                                   2
476 #define CHSET_ON_MASK                                  0x1
477 #define CHSET_ON_MASK_SFT                              (0x1 << 2)
478 #define COEFF_SRAM_CTRL_SFT                            1
479 #define COEFF_SRAM_CTRL_MASK                           0x1
480 #define COEFF_SRAM_CTRL_MASK_SFT                       (0x1 << 1)
481 #define ASM_ON_SFT                                     0
482 #define ASM_ON_MASK                                    0x1
483 #define ASM_ON_MASK_SFT                                (0x1 << 0)
484 
485 /* AFE_GAIN1_CON0 */
486 #define GAIN1_SAMPLE_PER_STEP_SFT                      8
487 #define GAIN1_SAMPLE_PER_STEP_MASK                     0xff
488 #define GAIN1_SAMPLE_PER_STEP_MASK_SFT                 (0xff << 8)
489 #define GAIN1_MODE_SFT                                 4
490 #define GAIN1_MODE_MASK                                0xf
491 #define GAIN1_MODE_MASK_SFT                            (0xf << 4)
492 #define GAIN1_ON_SFT                                   0
493 #define GAIN1_ON_MASK                                  0x1
494 #define GAIN1_ON_MASK_SFT                              (0x1 << 0)
495 
496 /* AFE_GAIN1_CON1 */
497 #define GAIN1_TARGET_SFT                               0
498 #define GAIN1_TARGET_MASK                              0xfffffff
499 #define GAIN1_TARGET_MASK_SFT                          (0xfffffff << 0)
500 
501 /* AFE_GAIN2_CON0 */
502 #define GAIN2_SAMPLE_PER_STEP_SFT                      8
503 #define GAIN2_SAMPLE_PER_STEP_MASK                     0xff
504 #define GAIN2_SAMPLE_PER_STEP_MASK_SFT                 (0xff << 8)
505 #define GAIN2_MODE_SFT                                 4
506 #define GAIN2_MODE_MASK                                0xf
507 #define GAIN2_MODE_MASK_SFT                            (0xf << 4)
508 #define GAIN2_ON_SFT                                   0
509 #define GAIN2_ON_MASK                                  0x1
510 #define GAIN2_ON_MASK_SFT                              (0x1 << 0)
511 
512 /* AFE_GAIN2_CON1 */
513 #define GAIN2_TARGET_SFT                               0
514 #define GAIN2_TARGET_MASK                              0xfffffff
515 #define GAIN2_TARGET_MASK_SFT                          (0xfffffff << 0)
516 
517 /* AFE_GAIN1_CUR */
518 #define AFE_GAIN1_CUR_SFT                              0
519 #define AFE_GAIN1_CUR_MASK                             0xfffffff
520 #define AFE_GAIN1_CUR_MASK_SFT                         (0xfffffff << 0)
521 
522 /* AFE_GAIN2_CUR */
523 #define AFE_GAIN2_CUR_SFT                              0
524 #define AFE_GAIN2_CUR_MASK                             0xfffffff
525 #define AFE_GAIN2_CUR_MASK_SFT                         (0xfffffff << 0)
526 
527 /* PCM_INTF_CON1 */
528 #define PCM_FIX_VALUE_SEL_SFT                          31
529 #define PCM_FIX_VALUE_SEL_MASK                         0x1
530 #define PCM_FIX_VALUE_SEL_MASK_SFT                     (0x1 << 31)
531 #define PCM_BUFFER_LOOPBACK_SFT                        30
532 #define PCM_BUFFER_LOOPBACK_MASK                       0x1
533 #define PCM_BUFFER_LOOPBACK_MASK_SFT                   (0x1 << 30)
534 #define PCM_PARALLEL_LOOPBACK_SFT                      29
535 #define PCM_PARALLEL_LOOPBACK_MASK                     0x1
536 #define PCM_PARALLEL_LOOPBACK_MASK_SFT                 (0x1 << 29)
537 #define PCM_SERIAL_LOOPBACK_SFT                        28
538 #define PCM_SERIAL_LOOPBACK_MASK                       0x1
539 #define PCM_SERIAL_LOOPBACK_MASK_SFT                   (0x1 << 28)
540 #define PCM_DAI_PCM_LOOPBACK_SFT                       27
541 #define PCM_DAI_PCM_LOOPBACK_MASK                      0x1
542 #define PCM_DAI_PCM_LOOPBACK_MASK_SFT                  (0x1 << 27)
543 #define PCM_I2S_PCM_LOOPBACK_SFT                       26
544 #define PCM_I2S_PCM_LOOPBACK_MASK                      0x1
545 #define PCM_I2S_PCM_LOOPBACK_MASK_SFT                  (0x1 << 26)
546 #define PCM_SYNC_DELSEL_SFT                            25
547 #define PCM_SYNC_DELSEL_MASK                           0x1
548 #define PCM_SYNC_DELSEL_MASK_SFT                       (0x1 << 25)
549 #define PCM_TX_LR_SWAP_SFT                             24
550 #define PCM_TX_LR_SWAP_MASK                            0x1
551 #define PCM_TX_LR_SWAP_MASK_SFT                        (0x1 << 24)
552 #define PCM_SYNC_OUT_INV_SFT                           23
553 #define PCM_SYNC_OUT_INV_MASK                          0x1
554 #define PCM_SYNC_OUT_INV_MASK_SFT                      (0x1 << 23)
555 #define PCM_BCLK_OUT_INV_SFT                           22
556 #define PCM_BCLK_OUT_INV_MASK                          0x1
557 #define PCM_BCLK_OUT_INV_MASK_SFT                      (0x1 << 22)
558 #define PCM_SYNC_IN_INV_SFT                            21
559 #define PCM_SYNC_IN_INV_MASK                           0x1
560 #define PCM_SYNC_IN_INV_MASK_SFT                       (0x1 << 21)
561 #define PCM_BCLK_IN_INV_SFT                            20
562 #define PCM_BCLK_IN_INV_MASK                           0x1
563 #define PCM_BCLK_IN_INV_MASK_SFT                       (0x1 << 20)
564 #define PCM_TX_LCH_RPT_SFT                             19
565 #define PCM_TX_LCH_RPT_MASK                            0x1
566 #define PCM_TX_LCH_RPT_MASK_SFT                        (0x1 << 19)
567 #define PCM_VBT_16K_MODE_SFT                           18
568 #define PCM_VBT_16K_MODE_MASK                          0x1
569 #define PCM_VBT_16K_MODE_MASK_SFT                      (0x1 << 18)
570 #define PCM_EXT_MODEM_SFT                              17
571 #define PCM_EXT_MODEM_MASK                             0x1
572 #define PCM_EXT_MODEM_MASK_SFT                         (0x1 << 17)
573 #define PCM_24BIT_SFT                                  16
574 #define PCM_24BIT_MASK                                 0x1
575 #define PCM_24BIT_MASK_SFT                             (0x1 << 16)
576 #define PCM_WLEN_SFT                                   14
577 #define PCM_WLEN_MASK                                  0x3
578 #define PCM_WLEN_MASK_SFT                              (0x3 << 14)
579 #define PCM_SYNC_LENGTH_SFT                            9
580 #define PCM_SYNC_LENGTH_MASK                           0x1f
581 #define PCM_SYNC_LENGTH_MASK_SFT                       (0x1f << 9)
582 #define PCM_SYNC_TYPE_SFT                              8
583 #define PCM_SYNC_TYPE_MASK                             0x1
584 #define PCM_SYNC_TYPE_MASK_SFT                         (0x1 << 8)
585 #define PCM_BT_MODE_SFT                                7
586 #define PCM_BT_MODE_MASK                               0x1
587 #define PCM_BT_MODE_MASK_SFT                           (0x1 << 7)
588 #define PCM_BYP_ASRC_SFT                               6
589 #define PCM_BYP_ASRC_MASK                              0x1
590 #define PCM_BYP_ASRC_MASK_SFT                          (0x1 << 6)
591 #define PCM_SLAVE_SFT                                  5
592 #define PCM_SLAVE_MASK                                 0x1
593 #define PCM_SLAVE_MASK_SFT                             (0x1 << 5)
594 #define PCM_MODE_SFT                                   3
595 #define PCM_MODE_MASK                                  0x3
596 #define PCM_MODE_MASK_SFT                              (0x3 << 3)
597 #define PCM_FMT_SFT                                    1
598 #define PCM_FMT_MASK                                   0x3
599 #define PCM_FMT_MASK_SFT                               (0x3 << 1)
600 #define PCM_EN_SFT                                     0
601 #define PCM_EN_MASK                                    0x1
602 #define PCM_EN_MASK_SFT                                (0x1 << 0)
603 
604 /* PCM_INTF_CON2 */
605 #define PCM1_TX_FIFO_OV_SFT                            31
606 #define PCM1_TX_FIFO_OV_MASK                           0x1
607 #define PCM1_TX_FIFO_OV_MASK_SFT                       (0x1 << 31)
608 #define PCM1_RX_FIFO_OV_SFT                            30
609 #define PCM1_RX_FIFO_OV_MASK                           0x1
610 #define PCM1_RX_FIFO_OV_MASK_SFT                       (0x1 << 30)
611 #define PCM2_TX_FIFO_OV_SFT                            29
612 #define PCM2_TX_FIFO_OV_MASK                           0x1
613 #define PCM2_TX_FIFO_OV_MASK_SFT                       (0x1 << 29)
614 #define PCM2_RX_FIFO_OV_SFT                            28
615 #define PCM2_RX_FIFO_OV_MASK                           0x1
616 #define PCM2_RX_FIFO_OV_MASK_SFT                       (0x1 << 28)
617 #define PCM1_SYNC_GLITCH_SFT                           27
618 #define PCM1_SYNC_GLITCH_MASK                          0x1
619 #define PCM1_SYNC_GLITCH_MASK_SFT                      (0x1 << 27)
620 #define PCM2_SYNC_GLITCH_SFT                           26
621 #define PCM2_SYNC_GLITCH_MASK                          0x1
622 #define PCM2_SYNC_GLITCH_MASK_SFT                      (0x1 << 26)
623 #define TX3_RCH_DBG_MODE_SFT                           17
624 #define TX3_RCH_DBG_MODE_MASK                          0x1
625 #define TX3_RCH_DBG_MODE_MASK_SFT                      (0x1 << 17)
626 #define PCM1_PCM2_LOOPBACK_SFT                         16
627 #define PCM1_PCM2_LOOPBACK_MASK                        0x1
628 #define PCM1_PCM2_LOOPBACK_MASK_SFT                    (0x1 << 16)
629 #define DAI_PCM_LOOPBACK_CH_SFT                        14
630 #define DAI_PCM_LOOPBACK_CH_MASK                       0x3
631 #define DAI_PCM_LOOPBACK_CH_MASK_SFT                   (0x3 << 14)
632 #define I2S_PCM_LOOPBACK_CH_SFT                        12
633 #define I2S_PCM_LOOPBACK_CH_MASK                       0x3
634 #define I2S_PCM_LOOPBACK_CH_MASK_SFT                   (0x3 << 12)
635 #define TX_FIX_VALUE_SFT                               0
636 #define TX_FIX_VALUE_MASK                              0xff
637 #define TX_FIX_VALUE_MASK_SFT                          (0xff << 0)
638 
639 /* PCM2_INTF_CON */
640 #define PCM2_TX_FIX_VALUE_SFT                          24
641 #define PCM2_TX_FIX_VALUE_MASK                         0xff
642 #define PCM2_TX_FIX_VALUE_MASK_SFT                     (0xff << 24)
643 #define PCM2_FIX_VALUE_SEL_SFT                         23
644 #define PCM2_FIX_VALUE_SEL_MASK                        0x1
645 #define PCM2_FIX_VALUE_SEL_MASK_SFT                    (0x1 << 23)
646 #define PCM2_BUFFER_LOOPBACK_SFT                       22
647 #define PCM2_BUFFER_LOOPBACK_MASK                      0x1
648 #define PCM2_BUFFER_LOOPBACK_MASK_SFT                  (0x1 << 22)
649 #define PCM2_PARALLEL_LOOPBACK_SFT                     21
650 #define PCM2_PARALLEL_LOOPBACK_MASK                    0x1
651 #define PCM2_PARALLEL_LOOPBACK_MASK_SFT                (0x1 << 21)
652 #define PCM2_SERIAL_LOOPBACK_SFT                       20
653 #define PCM2_SERIAL_LOOPBACK_MASK                      0x1
654 #define PCM2_SERIAL_LOOPBACK_MASK_SFT                  (0x1 << 20)
655 #define PCM2_DAI_PCM_LOOPBACK_SFT                      19
656 #define PCM2_DAI_PCM_LOOPBACK_MASK                     0x1
657 #define PCM2_DAI_PCM_LOOPBACK_MASK_SFT                 (0x1 << 19)
658 #define PCM2_I2S_PCM_LOOPBACK_SFT                      18
659 #define PCM2_I2S_PCM_LOOPBACK_MASK                     0x1
660 #define PCM2_I2S_PCM_LOOPBACK_MASK_SFT                 (0x1 << 18)
661 #define PCM2_SYNC_DELSEL_SFT                           17
662 #define PCM2_SYNC_DELSEL_MASK                          0x1
663 #define PCM2_SYNC_DELSEL_MASK_SFT                      (0x1 << 17)
664 #define PCM2_TX_LR_SWAP_SFT                            16
665 #define PCM2_TX_LR_SWAP_MASK                           0x1
666 #define PCM2_TX_LR_SWAP_MASK_SFT                       (0x1 << 16)
667 #define PCM2_SYNC_IN_INV_SFT                           15
668 #define PCM2_SYNC_IN_INV_MASK                          0x1
669 #define PCM2_SYNC_IN_INV_MASK_SFT                      (0x1 << 15)
670 #define PCM2_BCLK_IN_INV_SFT                           14
671 #define PCM2_BCLK_IN_INV_MASK                          0x1
672 #define PCM2_BCLK_IN_INV_MASK_SFT                      (0x1 << 14)
673 #define PCM2_TX_LCH_RPT_SFT                            13
674 #define PCM2_TX_LCH_RPT_MASK                           0x1
675 #define PCM2_TX_LCH_RPT_MASK_SFT                       (0x1 << 13)
676 #define PCM2_VBT_16K_MODE_SFT                          12
677 #define PCM2_VBT_16K_MODE_MASK                         0x1
678 #define PCM2_VBT_16K_MODE_MASK_SFT                     (0x1 << 12)
679 #define PCM2_LOOPBACK_CH_SEL_SFT                       10
680 #define PCM2_LOOPBACK_CH_SEL_MASK                      0x3
681 #define PCM2_LOOPBACK_CH_SEL_MASK_SFT                  (0x3 << 10)
682 #define PCM2_TX2_BT_MODE_SFT                           8
683 #define PCM2_TX2_BT_MODE_MASK                          0x1
684 #define PCM2_TX2_BT_MODE_MASK_SFT                      (0x1 << 8)
685 #define PCM2_BT_MODE_SFT                               7
686 #define PCM2_BT_MODE_MASK                              0x1
687 #define PCM2_BT_MODE_MASK_SFT                          (0x1 << 7)
688 #define PCM2_AFIFO_SFT                                 6
689 #define PCM2_AFIFO_MASK                                0x1
690 #define PCM2_AFIFO_MASK_SFT                            (0x1 << 6)
691 #define PCM2_WLEN_SFT                                  5
692 #define PCM2_WLEN_MASK                                 0x1
693 #define PCM2_WLEN_MASK_SFT                             (0x1 << 5)
694 #define PCM2_MODE_SFT                                  3
695 #define PCM2_MODE_MASK                                 0x3
696 #define PCM2_MODE_MASK_SFT                             (0x3 << 3)
697 #define PCM2_FMT_SFT                                   1
698 #define PCM2_FMT_MASK                                  0x3
699 #define PCM2_FMT_MASK_SFT                              (0x3 << 1)
700 #define PCM2_EN_SFT                                    0
701 #define PCM2_EN_MASK                                   0x1
702 #define PCM2_EN_MASK_SFT                               (0x1 << 0)
703 
704 /* AFE_ADDA_MTKAIF_CFG0 */
705 #define MTKAIF_RXIF_CLKINV_ADC_SFT                     31
706 #define MTKAIF_RXIF_CLKINV_ADC_MASK                    0x1
707 #define MTKAIF_RXIF_CLKINV_ADC_MASK_SFT                (0x1 << 31)
708 #define MTKAIF_RXIF_BYPASS_SRC_SFT                     17
709 #define MTKAIF_RXIF_BYPASS_SRC_MASK                    0x1
710 #define MTKAIF_RXIF_BYPASS_SRC_MASK_SFT                (0x1 << 17)
711 #define MTKAIF_RXIF_PROTOCOL2_SFT                      16
712 #define MTKAIF_RXIF_PROTOCOL2_MASK                     0x1
713 #define MTKAIF_RXIF_PROTOCOL2_MASK_SFT                 (0x1 << 16)
714 #define MTKAIF_TXIF_BYPASS_SRC_SFT                     5
715 #define MTKAIF_TXIF_BYPASS_SRC_MASK                    0x1
716 #define MTKAIF_TXIF_BYPASS_SRC_MASK_SFT                (0x1 << 5)
717 #define MTKAIF_TXIF_PROTOCOL2_SFT                      4
718 #define MTKAIF_TXIF_PROTOCOL2_MASK                     0x1
719 #define MTKAIF_TXIF_PROTOCOL2_MASK_SFT                 (0x1 << 4)
720 #define MTKAIF_TXIF_8TO5_SFT                           2
721 #define MTKAIF_TXIF_8TO5_MASK                          0x1
722 #define MTKAIF_TXIF_8TO5_MASK_SFT                      (0x1 << 2)
723 #define MTKAIF_RXIF_8TO5_SFT                           1
724 #define MTKAIF_RXIF_8TO5_MASK                          0x1
725 #define MTKAIF_RXIF_8TO5_MASK_SFT                      (0x1 << 1)
726 #define MTKAIF_IF_LOOPBACK1_SFT                        0
727 #define MTKAIF_IF_LOOPBACK1_MASK                       0x1
728 #define MTKAIF_IF_LOOPBACK1_MASK_SFT                   (0x1 << 0)
729 
730 /* AFE_ADDA_MTKAIF_RX_CFG2 */
731 #define MTKAIF_RXIF_DETECT_ON_PROTOCOL2_SFT            16
732 #define MTKAIF_RXIF_DETECT_ON_PROTOCOL2_MASK           0x1
733 #define MTKAIF_RXIF_DETECT_ON_PROTOCOL2_MASK_SFT       (0x1 << 16)
734 #define MTKAIF_RXIF_DELAY_CYCLE_SFT                    12
735 #define MTKAIF_RXIF_DELAY_CYCLE_MASK                   0xf
736 #define MTKAIF_RXIF_DELAY_CYCLE_MASK_SFT               (0xf << 12)
737 #define MTKAIF_RXIF_DELAY_DATA_SFT                     8
738 #define MTKAIF_RXIF_DELAY_DATA_MASK                    0x1
739 #define MTKAIF_RXIF_DELAY_DATA_MASK_SFT                (0x1 << 8)
740 #define MTKAIF_RXIF_FIFO_RSP_PROTOCOL2_SFT             4
741 #define MTKAIF_RXIF_FIFO_RSP_PROTOCOL2_MASK            0x7
742 #define MTKAIF_RXIF_FIFO_RSP_PROTOCOL2_MASK_SFT        (0x7 << 4)
743 
744 /* AFE_ADDA_DL_SRC2_CON0 */
745 #define DL_2_INPUT_MODE_CTL_SFT                        28
746 #define DL_2_INPUT_MODE_CTL_MASK                       0xf
747 #define DL_2_INPUT_MODE_CTL_MASK_SFT                   (0xf << 28)
748 #define DL_2_CH1_SATURATION_EN_CTL_SFT                 27
749 #define DL_2_CH1_SATURATION_EN_CTL_MASK                0x1
750 #define DL_2_CH1_SATURATION_EN_CTL_MASK_SFT            (0x1 << 27)
751 #define DL_2_CH2_SATURATION_EN_CTL_SFT                 26
752 #define DL_2_CH2_SATURATION_EN_CTL_MASK                0x1
753 #define DL_2_CH2_SATURATION_EN_CTL_MASK_SFT            (0x1 << 26)
754 #define DL_2_OUTPUT_SEL_CTL_SFT                        24
755 #define DL_2_OUTPUT_SEL_CTL_MASK                       0x3
756 #define DL_2_OUTPUT_SEL_CTL_MASK_SFT                   (0x3 << 24)
757 #define DL_2_FADEIN_0START_EN_SFT                      16
758 #define DL_2_FADEIN_0START_EN_MASK                     0x3
759 #define DL_2_FADEIN_0START_EN_MASK_SFT                 (0x3 << 16)
760 #define DL_DISABLE_HW_CG_CTL_SFT                       15
761 #define DL_DISABLE_HW_CG_CTL_MASK                      0x1
762 #define DL_DISABLE_HW_CG_CTL_MASK_SFT                  (0x1 << 15)
763 #define C_DATA_EN_SEL_CTL_PRE_SFT                      14
764 #define C_DATA_EN_SEL_CTL_PRE_MASK                     0x1
765 #define C_DATA_EN_SEL_CTL_PRE_MASK_SFT                 (0x1 << 14)
766 #define DL_2_SIDE_TONE_ON_CTL_PRE_SFT                  13
767 #define DL_2_SIDE_TONE_ON_CTL_PRE_MASK                 0x1
768 #define DL_2_SIDE_TONE_ON_CTL_PRE_MASK_SFT             (0x1 << 13)
769 #define DL_2_MUTE_CH1_OFF_CTL_PRE_SFT                  12
770 #define DL_2_MUTE_CH1_OFF_CTL_PRE_MASK                 0x1
771 #define DL_2_MUTE_CH1_OFF_CTL_PRE_MASK_SFT             (0x1 << 12)
772 #define DL_2_MUTE_CH2_OFF_CTL_PRE_SFT                  11
773 #define DL_2_MUTE_CH2_OFF_CTL_PRE_MASK                 0x1
774 #define DL_2_MUTE_CH2_OFF_CTL_PRE_MASK_SFT             (0x1 << 11)
775 #define DL2_ARAMPSP_CTL_PRE_SFT                        9
776 #define DL2_ARAMPSP_CTL_PRE_MASK                       0x3
777 #define DL2_ARAMPSP_CTL_PRE_MASK_SFT                   (0x3 << 9)
778 #define DL_2_IIRMODE_CTL_PRE_SFT                       6
779 #define DL_2_IIRMODE_CTL_PRE_MASK                      0x7
780 #define DL_2_IIRMODE_CTL_PRE_MASK_SFT                  (0x7 << 6)
781 #define DL_2_VOICE_MODE_CTL_PRE_SFT                    5
782 #define DL_2_VOICE_MODE_CTL_PRE_MASK                   0x1
783 #define DL_2_VOICE_MODE_CTL_PRE_MASK_SFT               (0x1 << 5)
784 #define D2_2_MUTE_CH1_ON_CTL_PRE_SFT                   4
785 #define D2_2_MUTE_CH1_ON_CTL_PRE_MASK                  0x1
786 #define D2_2_MUTE_CH1_ON_CTL_PRE_MASK_SFT              (0x1 << 4)
787 #define D2_2_MUTE_CH2_ON_CTL_PRE_SFT                   3
788 #define D2_2_MUTE_CH2_ON_CTL_PRE_MASK                  0x1
789 #define D2_2_MUTE_CH2_ON_CTL_PRE_MASK_SFT              (0x1 << 3)
790 #define DL_2_IIR_ON_CTL_PRE_SFT                        2
791 #define DL_2_IIR_ON_CTL_PRE_MASK                       0x1
792 #define DL_2_IIR_ON_CTL_PRE_MASK_SFT                   (0x1 << 2)
793 #define DL_2_GAIN_ON_CTL_PRE_SFT                       1
794 #define DL_2_GAIN_ON_CTL_PRE_MASK                      0x1
795 #define DL_2_GAIN_ON_CTL_PRE_MASK_SFT                  (0x1 << 1)
796 #define DL_2_SRC_ON_TMP_CTL_PRE_SFT                    0
797 #define DL_2_SRC_ON_TMP_CTL_PRE_MASK                   0x1
798 #define DL_2_SRC_ON_TMP_CTL_PRE_MASK_SFT               (0x1 << 0)
799 
800 /* AFE_ADDA_DL_SRC2_CON1 */
801 #define DL_2_GAIN_CTL_PRE_SFT                          16
802 #define DL_2_GAIN_CTL_PRE_MASK                         0xffff
803 #define DL_2_GAIN_CTL_PRE_MASK_SFT                     (0xffff << 16)
804 #define DL_2_GAIN_MODE_CTL_SFT                         0
805 #define DL_2_GAIN_MODE_CTL_MASK                        0x1
806 #define DL_2_GAIN_MODE_CTL_MASK_SFT                    (0x1 << 0)
807 
808 /* AFE_ADDA_UL_SRC_CON0 */
809 #define ULCF_CFG_EN_CTL_SFT                            31
810 #define ULCF_CFG_EN_CTL_MASK                           0x1
811 #define ULCF_CFG_EN_CTL_MASK_SFT                       (0x1 << 31)
812 #define UL_DMIC_PHASE_SEL_CH1_SFT                      27
813 #define UL_DMIC_PHASE_SEL_CH1_MASK                     0x7
814 #define UL_DMIC_PHASE_SEL_CH1_MASK_SFT                 (0x7 << 27)
815 #define UL_DMIC_PHASE_SEL_CH2_SFT                      24
816 #define UL_DMIC_PHASE_SEL_CH2_MASK                     0x7
817 #define UL_DMIC_PHASE_SEL_CH2_MASK_SFT                 (0x7 << 24)
818 #define UL_MODE_3P25M_CH2_CTL_SFT                      22
819 #define UL_MODE_3P25M_CH2_CTL_MASK                     0x1
820 #define UL_MODE_3P25M_CH2_CTL_MASK_SFT                 (0x1 << 22)
821 #define UL_MODE_3P25M_CH1_CTL_SFT                      21
822 #define UL_MODE_3P25M_CH1_CTL_MASK                     0x1
823 #define UL_MODE_3P25M_CH1_CTL_MASK_SFT                 (0x1 << 21)
824 #define UL_VOICE_MODE_CH1_CH2_CTL_SFT                  17
825 #define UL_VOICE_MODE_CH1_CH2_CTL_MASK                 0x7
826 #define UL_VOICE_MODE_CH1_CH2_CTL_MASK_SFT             (0x7 << 17)
827 #define UL_AP_DMIC_ON_SFT                              16
828 #define UL_AP_DMIC_ON_MASK                             0x1
829 #define UL_AP_DMIC_ON_MASK_SFT                         (0x1 << 16)
830 #define DMIC_LOW_POWER_MODE_CTL_SFT                    14
831 #define DMIC_LOW_POWER_MODE_CTL_MASK                   0x3
832 #define DMIC_LOW_POWER_MODE_CTL_MASK_SFT               (0x3 << 14)
833 #define UL_DISABLE_HW_CG_CTL_SFT                       12
834 #define UL_DISABLE_HW_CG_CTL_MASK                      0x1
835 #define UL_DISABLE_HW_CG_CTL_MASK_SFT                  (0x1 << 12)
836 #define UL_IIR_ON_TMP_CTL_SFT                          10
837 #define UL_IIR_ON_TMP_CTL_MASK                         0x1
838 #define UL_IIR_ON_TMP_CTL_MASK_SFT                     (0x1 << 10)
839 #define UL_IIRMODE_CTL_SFT                             7
840 #define UL_IIRMODE_CTL_MASK                            0x7
841 #define UL_IIRMODE_CTL_MASK_SFT                        (0x7 << 7)
842 #define DIGMIC_4P33M_SEL_SFT                           6
843 #define DIGMIC_4P33M_SEL_MASK                          0x1
844 #define DIGMIC_4P33M_SEL_MASK_SFT                      (0x1 << 6)
845 #define DIGMIC_3P25M_1P625M_SEL_CTL_SFT                5
846 #define DIGMIC_3P25M_1P625M_SEL_CTL_MASK               0x1
847 #define DIGMIC_3P25M_1P625M_SEL_CTL_MASK_SFT           (0x1 << 5)
848 #define UL_LOOP_BACK_MODE_CTL_SFT                      2
849 #define UL_LOOP_BACK_MODE_CTL_MASK                     0x1
850 #define UL_LOOP_BACK_MODE_CTL_MASK_SFT                 (0x1 << 2)
851 #define UL_SDM_3_LEVEL_CTL_SFT                         1
852 #define UL_SDM_3_LEVEL_CTL_MASK                        0x1
853 #define UL_SDM_3_LEVEL_CTL_MASK_SFT                    (0x1 << 1)
854 #define UL_SRC_ON_TMP_CTL_SFT                          0
855 #define UL_SRC_ON_TMP_CTL_MASK                         0x1
856 #define UL_SRC_ON_TMP_CTL_MASK_SFT                     (0x1 << 0)
857 
858 /* AFE_ADDA_UL_SRC_CON1 */
859 #define C_DAC_EN_CTL_SFT                               27
860 #define C_DAC_EN_CTL_MASK                              0x1
861 #define C_DAC_EN_CTL_MASK_SFT                          (0x1 << 27)
862 #define C_MUTE_SW_CTL_SFT                              26
863 #define C_MUTE_SW_CTL_MASK                             0x1
864 #define C_MUTE_SW_CTL_MASK_SFT                         (0x1 << 26)
865 #define ASDM_SRC_SEL_CTL_SFT                           25
866 #define ASDM_SRC_SEL_CTL_MASK                          0x1
867 #define ASDM_SRC_SEL_CTL_MASK_SFT                      (0x1 << 25)
868 #define C_AMP_DIV_CH2_CTL_SFT                          21
869 #define C_AMP_DIV_CH2_CTL_MASK                         0x7
870 #define C_AMP_DIV_CH2_CTL_MASK_SFT                     (0x7 << 21)
871 #define C_FREQ_DIV_CH2_CTL_SFT                         16
872 #define C_FREQ_DIV_CH2_CTL_MASK                        0x1f
873 #define C_FREQ_DIV_CH2_CTL_MASK_SFT                    (0x1f << 16)
874 #define C_SINE_MODE_CH2_CTL_SFT                        12
875 #define C_SINE_MODE_CH2_CTL_MASK                       0xf
876 #define C_SINE_MODE_CH2_CTL_MASK_SFT                   (0xf << 12)
877 #define C_AMP_DIV_CH1_CTL_SFT                          9
878 #define C_AMP_DIV_CH1_CTL_MASK                         0x7
879 #define C_AMP_DIV_CH1_CTL_MASK_SFT                     (0x7 << 9)
880 #define C_FREQ_DIV_CH1_CTL_SFT                         4
881 #define C_FREQ_DIV_CH1_CTL_MASK                        0x1f
882 #define C_FREQ_DIV_CH1_CTL_MASK_SFT                    (0x1f << 4)
883 #define C_SINE_MODE_CH1_CTL_SFT                        0
884 #define C_SINE_MODE_CH1_CTL_MASK                       0xf
885 #define C_SINE_MODE_CH1_CTL_MASK_SFT                   (0xf << 0)
886 
887 /* AFE_ADDA_TOP_CON0 */
888 #define C_LOOP_BACK_MODE_CTL_SFT                       12
889 #define C_LOOP_BACK_MODE_CTL_MASK                      0xf
890 #define C_LOOP_BACK_MODE_CTL_MASK_SFT                  (0xf << 12)
891 #define ADDA_UL_GAIN_MODE_SFT                          8
892 #define ADDA_UL_GAIN_MODE_MASK                         0x3
893 #define ADDA_UL_GAIN_MODE_MASK_SFT                     (0x3 << 8)
894 #define C_EXT_ADC_CTL_SFT                              0
895 #define C_EXT_ADC_CTL_MASK                             0x1
896 #define C_EXT_ADC_CTL_MASK_SFT                         (0x1 << 0)
897 
898 /* AFE_ADDA_UL_DL_CON0 */
899 #define AFE_ADDA_UL_LR_SWAP_SFT                        31
900 #define AFE_ADDA_UL_LR_SWAP_MASK                       0x1
901 #define AFE_ADDA_UL_LR_SWAP_MASK_SFT                   (0x1 << 31)
902 #define AFE_ADDA_CKDIV_RST_SFT                         30
903 #define AFE_ADDA_CKDIV_RST_MASK                        0x1
904 #define AFE_ADDA_CKDIV_RST_MASK_SFT                    (0x1 << 30)
905 #define AFE_ADDA_FIFO_AUTO_RST_SFT                     29
906 #define AFE_ADDA_FIFO_AUTO_RST_MASK                    0x1
907 #define AFE_ADDA_FIFO_AUTO_RST_MASK_SFT                (0x1 << 29)
908 #define AFE_ADDA_UL_FIFO_DIGMIC_TESTIN_SFT             21
909 #define AFE_ADDA_UL_FIFO_DIGMIC_TESTIN_MASK            0x3
910 #define AFE_ADDA_UL_FIFO_DIGMIC_TESTIN_MASK_SFT        (0x3 << 21)
911 #define AFE_ADDA_UL_FIFO_DIGMIC_WDATA_TESTEN_SFT       20
912 #define AFE_ADDA_UL_FIFO_DIGMIC_WDATA_TESTEN_MASK      0x1
913 #define AFE_ADDA_UL_FIFO_DIGMIC_WDATA_TESTEN_MASK_SFT  (0x1 << 20)
914 #define AFE_ADDA6_UL_LR_SWAP_SFT                       15
915 #define AFE_ADDA6_UL_LR_SWAP_MASK                      0x1
916 #define AFE_ADDA6_UL_LR_SWAP_MASK_SFT                  (0x1 << 15)
917 #define AFE_ADDA6_CKDIV_RST_SFT                        14
918 #define AFE_ADDA6_CKDIV_RST_MASK                       0x1
919 #define AFE_ADDA6_CKDIV_RST_MASK_SFT                   (0x1 << 14)
920 #define AFE_ADDA6_FIFO_AUTO_RST_SFT                    13
921 #define AFE_ADDA6_FIFO_AUTO_RST_MASK                   0x1
922 #define AFE_ADDA6_FIFO_AUTO_RST_MASK_SFT               (0x1 << 13)
923 #define AFE_ADDA6_UL_FIFO_DIGMIC_TESTIN_SFT            5
924 #define AFE_ADDA6_UL_FIFO_DIGMIC_TESTIN_MASK           0x3
925 #define AFE_ADDA6_UL_FIFO_DIGMIC_TESTIN_MASK_SFT       (0x3 << 5)
926 #define AFE_ADDA6_UL_FIFO_DIGMIC_WDATA_TESTEN_SFT      4
927 #define AFE_ADDA6_UL_FIFO_DIGMIC_WDATA_TESTEN_MASK     0x1
928 #define AFE_ADDA6_UL_FIFO_DIGMIC_WDATA_TESTEN_MASK_SFT (0x1 << 4)
929 #define ADDA_AFE_ON_SFT                                0
930 #define ADDA_AFE_ON_MASK                               0x1
931 #define ADDA_AFE_ON_MASK_SFT                           (0x1 << 0)
932 
933 /* AFE_SIDETONE_CON0 */
934 #define R_RDY_SFT                                      30
935 #define R_RDY_MASK                                     0x1
936 #define R_RDY_MASK_SFT                                 (0x1 << 30)
937 #define W_RDY_SFT                                      29
938 #define W_RDY_MASK                                     0x1
939 #define W_RDY_MASK_SFT                                 (0x1 << 29)
940 #define R_W_EN_SFT                                     25
941 #define R_W_EN_MASK                                    0x1
942 #define R_W_EN_MASK_SFT                                (0x1 << 25)
943 #define R_W_SEL_SFT                                    24
944 #define R_W_SEL_MASK                                   0x1
945 #define R_W_SEL_MASK_SFT                               (0x1 << 24)
946 #define SEL_CH2_SFT                                    23
947 #define SEL_CH2_MASK                                   0x1
948 #define SEL_CH2_MASK_SFT                               (0x1 << 23)
949 #define SIDE_TONE_COEFFICIENT_ADDR_SFT                 16
950 #define SIDE_TONE_COEFFICIENT_ADDR_MASK                0x1f
951 #define SIDE_TONE_COEFFICIENT_ADDR_MASK_SFT            (0x1f << 16)
952 #define SIDE_TONE_COEFFICIENT_SFT                      0
953 #define SIDE_TONE_COEFFICIENT_MASK                     0xffff
954 #define SIDE_TONE_COEFFICIENT_MASK_SFT                 (0xffff << 0)
955 
956 /* AFE_SIDETONE_COEFF */
957 #define SIDE_TONE_COEFF_SFT                            0
958 #define SIDE_TONE_COEFF_MASK                           0xffff
959 #define SIDE_TONE_COEFF_MASK_SFT                       (0xffff << 0)
960 
961 /* AFE_SIDETONE_CON1 */
962 #define STF_BYPASS_MODE_SFT                            31
963 #define STF_BYPASS_MODE_MASK                           0x1
964 #define STF_BYPASS_MODE_MASK_SFT                       (0x1 << 31)
965 #define STF_BYPASS_MODE_O28_O29_SFT                    30
966 #define STF_BYPASS_MODE_O28_O29_MASK                   0x1
967 #define STF_BYPASS_MODE_O28_O29_MASK_SFT               (0x1 << 30)
968 #define STF_BYPASS_MODE_I2S4_SFT                       29
969 #define STF_BYPASS_MODE_I2S4_MASK                      0x1
970 #define STF_BYPASS_MODE_I2S4_MASK_SFT                  (0x1 << 29)
971 #define STF_BYPASS_MODE_I2S5_SFT                       28
972 #define STF_BYPASS_MODE_I2S5_MASK                      0x1
973 #define STF_BYPASS_MODE_I2S5_MASK_SFT                  (0x1 << 28)
974 #define STF_BYPASS_MODE_DL3_SFT                        27
975 #define STF_BYPASS_MODE_DL3_MASK                       0x1
976 #define STF_BYPASS_MODE_DL3_MASK_SFT                   (0x1 << 27)
977 #define STF_BYPASS_MODE_I2S7_SFT                       26
978 #define STF_BYPASS_MODE_I2S7_MASK                      0x1
979 #define STF_BYPASS_MODE_I2S7_MASK_SFT                  (0x1 << 26)
980 #define STF_BYPASS_MODE_I2S9_SFT                       25
981 #define STF_BYPASS_MODE_I2S9_MASK                      0x1
982 #define STF_BYPASS_MODE_I2S9_MASK_SFT                  (0x1 << 25)
983 #define STF_O19O20_OUT_EN_SEL_SFT                      13
984 #define STF_O19O20_OUT_EN_SEL_MASK                     0x1
985 #define STF_O19O20_OUT_EN_SEL_MASK_SFT                 (0x1 << 13)
986 #define STF_SOURCE_FROM_O19O20_SFT                     12
987 #define STF_SOURCE_FROM_O19O20_MASK                    0x1
988 #define STF_SOURCE_FROM_O19O20_MASK_SFT                (0x1 << 12)
989 #define SIDE_TONE_ON_SFT                               8
990 #define SIDE_TONE_ON_MASK                              0x1
991 #define SIDE_TONE_ON_MASK_SFT                          (0x1 << 8)
992 #define SIDE_TONE_HALF_TAP_NUM_SFT                     0
993 #define SIDE_TONE_HALF_TAP_NUM_MASK                    0x3f
994 #define SIDE_TONE_HALF_TAP_NUM_MASK_SFT                (0x3f << 0)
995 
996 /* AFE_SIDETONE_GAIN */
997 #define POSITIVE_GAIN_SFT                              16
998 #define POSITIVE_GAIN_MASK                             0x7
999 #define POSITIVE_GAIN_MASK_SFT                         (0x7 << 16)
1000 #define SIDE_TONE_GAIN_SFT                             0
1001 #define SIDE_TONE_GAIN_MASK                            0xffff
1002 #define SIDE_TONE_GAIN_MASK_SFT                        (0xffff << 0)
1003 
1004 /* AFE_ADDA_DL_SDM_DCCOMP_CON */
1005 #define USE_3RD_SDM_SFT                                28
1006 #define USE_3RD_SDM_MASK                               0x1
1007 #define USE_3RD_SDM_MASK_SFT                           (0x1 << 28)
1008 #define DL_FIFO_START_POINT_SFT                        24
1009 #define DL_FIFO_START_POINT_MASK                       0x7
1010 #define DL_FIFO_START_POINT_MASK_SFT                   (0x7 << 24)
1011 #define DL_FIFO_SWAP_SFT                               20
1012 #define DL_FIFO_SWAP_MASK                              0x1
1013 #define DL_FIFO_SWAP_MASK_SFT                          (0x1 << 20)
1014 #define C_AUDSDM1ORDSELECT_CTL_SFT                     19
1015 #define C_AUDSDM1ORDSELECT_CTL_MASK                    0x1
1016 #define C_AUDSDM1ORDSELECT_CTL_MASK_SFT                (0x1 << 19)
1017 #define C_SDM7BITSEL_CTL_SFT                           18
1018 #define C_SDM7BITSEL_CTL_MASK                          0x1
1019 #define C_SDM7BITSEL_CTL_MASK_SFT                      (0x1 << 18)
1020 #define GAIN_AT_SDM_RST_PRE_CTL_SFT                    15
1021 #define GAIN_AT_SDM_RST_PRE_CTL_MASK                   0x1
1022 #define GAIN_AT_SDM_RST_PRE_CTL_MASK_SFT               (0x1 << 15)
1023 #define DL_DCM_AUTO_IDLE_EN_SFT                        14
1024 #define DL_DCM_AUTO_IDLE_EN_MASK                       0x1
1025 #define DL_DCM_AUTO_IDLE_EN_MASK_SFT                   (0x1 << 14)
1026 #define AFE_DL_SRC_DCM_EN_SFT                          13
1027 #define AFE_DL_SRC_DCM_EN_MASK                         0x1
1028 #define AFE_DL_SRC_DCM_EN_MASK_SFT                     (0x1 << 13)
1029 #define AFE_DL_POST_SRC_DCM_EN_SFT                     12
1030 #define AFE_DL_POST_SRC_DCM_EN_MASK                    0x1
1031 #define AFE_DL_POST_SRC_DCM_EN_MASK_SFT                (0x1 << 12)
1032 #define AUD_SDM_MONO_SFT                               9
1033 #define AUD_SDM_MONO_MASK                              0x1
1034 #define AUD_SDM_MONO_MASK_SFT                          (0x1 << 9)
1035 #define AUD_DC_COMP_EN_SFT                             8
1036 #define AUD_DC_COMP_EN_MASK                            0x1
1037 #define AUD_DC_COMP_EN_MASK_SFT                        (0x1 << 8)
1038 #define ATTGAIN_CTL_SFT                                0
1039 #define ATTGAIN_CTL_MASK                               0x3f
1040 #define ATTGAIN_CTL_MASK_SFT                           (0x3f << 0)
1041 
1042 /* AFE_SINEGEN_CON0 */
1043 #define DAC_EN_SFT                                     26
1044 #define DAC_EN_MASK                                    0x1
1045 #define DAC_EN_MASK_SFT                                (0x1 << 26)
1046 #define MUTE_SW_CH2_SFT                                25
1047 #define MUTE_SW_CH2_MASK                               0x1
1048 #define MUTE_SW_CH2_MASK_SFT                           (0x1 << 25)
1049 #define MUTE_SW_CH1_SFT                                24
1050 #define MUTE_SW_CH1_MASK                               0x1
1051 #define MUTE_SW_CH1_MASK_SFT                           (0x1 << 24)
1052 #define SINE_MODE_CH2_SFT                              20
1053 #define SINE_MODE_CH2_MASK                             0xf
1054 #define SINE_MODE_CH2_MASK_SFT                         (0xf << 20)
1055 #define AMP_DIV_CH2_SFT                                17
1056 #define AMP_DIV_CH2_MASK                               0x7
1057 #define AMP_DIV_CH2_MASK_SFT                           (0x7 << 17)
1058 #define FREQ_DIV_CH2_SFT                               12
1059 #define FREQ_DIV_CH2_MASK                              0x1f
1060 #define FREQ_DIV_CH2_MASK_SFT                          (0x1f << 12)
1061 #define SINE_MODE_CH1_SFT                              8
1062 #define SINE_MODE_CH1_MASK                             0xf
1063 #define SINE_MODE_CH1_MASK_SFT                         (0xf << 8)
1064 #define AMP_DIV_CH1_SFT                                5
1065 #define AMP_DIV_CH1_MASK                               0x7
1066 #define AMP_DIV_CH1_MASK_SFT                           (0x7 << 5)
1067 #define FREQ_DIV_CH1_SFT                               0
1068 #define FREQ_DIV_CH1_MASK                              0x1f
1069 #define FREQ_DIV_CH1_MASK_SFT                          (0x1f << 0)
1070 
1071 /* AFE_SINEGEN_CON2 */
1072 #define INNER_LOOP_BACK_MODE_SFT                       0
1073 #define INNER_LOOP_BACK_MODE_MASK                      0x3f
1074 #define INNER_LOOP_BACK_MODE_MASK_SFT                  (0x3f << 0)
1075 
1076 /* AFE_HD_ENGEN_ENABLE */
1077 #define AFE_24M_ON_SFT                                 1
1078 #define AFE_24M_ON_MASK                                0x1
1079 #define AFE_24M_ON_MASK_SFT                            (0x1 << 1)
1080 #define AFE_22M_ON_SFT                                 0
1081 #define AFE_22M_ON_MASK                                0x1
1082 #define AFE_22M_ON_MASK_SFT                            (0x1 << 0)
1083 
1084 /* AFE_ADDA_DL_NLE_FIFO_MON */
1085 #define DL_NLE_FIFO_WBIN_SFT                           8
1086 #define DL_NLE_FIFO_WBIN_MASK                          0xf
1087 #define DL_NLE_FIFO_WBIN_MASK_SFT                      (0xf << 8)
1088 #define DL_NLE_FIFO_RBIN_SFT                           4
1089 #define DL_NLE_FIFO_RBIN_MASK                          0xf
1090 #define DL_NLE_FIFO_RBIN_MASK_SFT                      (0xf << 4)
1091 #define DL_NLE_FIFO_RDACTIVE_SFT                       3
1092 #define DL_NLE_FIFO_RDACTIVE_MASK                      0x1
1093 #define DL_NLE_FIFO_RDACTIVE_MASK_SFT                  (0x1 << 3)
1094 #define DL_NLE_FIFO_STARTRD_SFT                        2
1095 #define DL_NLE_FIFO_STARTRD_MASK                       0x1
1096 #define DL_NLE_FIFO_STARTRD_MASK_SFT                   (0x1 << 2)
1097 #define DL_NLE_FIFO_RD_EMPTY_SFT                       1
1098 #define DL_NLE_FIFO_RD_EMPTY_MASK                      0x1
1099 #define DL_NLE_FIFO_RD_EMPTY_MASK_SFT                  (0x1 << 1)
1100 #define DL_NLE_FIFO_WR_FULL_SFT                        0
1101 #define DL_NLE_FIFO_WR_FULL_MASK                       0x1
1102 #define DL_NLE_FIFO_WR_FULL_MASK_SFT                   (0x1 << 0)
1103 
1104 /* AFE_DL1_CON0 */
1105 #define DL1_MODE_SFT                                   24
1106 #define DL1_MODE_MASK                                  0xf
1107 #define DL1_MODE_MASK_SFT                              (0xf << 24)
1108 #define DL1_MINLEN_SFT                                 20
1109 #define DL1_MINLEN_MASK                                0xf
1110 #define DL1_MINLEN_MASK_SFT                            (0xf << 20)
1111 #define DL1_MAXLEN_SFT                                 16
1112 #define DL1_MAXLEN_MASK                                0xf
1113 #define DL1_MAXLEN_MASK_SFT                            (0xf << 16)
1114 #define DL1_SW_CLEAR_BUF_EMPTY_SFT                     15
1115 #define DL1_SW_CLEAR_BUF_EMPTY_MASK                    0x1
1116 #define DL1_SW_CLEAR_BUF_EMPTY_MASK_SFT                (0x1 << 15)
1117 #define DL1_PBUF_SIZE_SFT                              12
1118 #define DL1_PBUF_SIZE_MASK                             0x3
1119 #define DL1_PBUF_SIZE_MASK_SFT                         (0x3 << 12)
1120 #define DL1_MONO_SFT                                   8
1121 #define DL1_MONO_MASK                                  0x1
1122 #define DL1_MONO_MASK_SFT                              (0x1 << 8)
1123 #define DL1_NORMAL_MODE_SFT                            5
1124 #define DL1_NORMAL_MODE_MASK                           0x1
1125 #define DL1_NORMAL_MODE_MASK_SFT                       (0x1 << 5)
1126 #define DL1_HALIGN_SFT                                 4
1127 #define DL1_HALIGN_MASK                                0x1
1128 #define DL1_HALIGN_MASK_SFT                            (0x1 << 4)
1129 #define DL1_HD_MODE_SFT                                0
1130 #define DL1_HD_MODE_MASK                               0x3
1131 #define DL1_HD_MODE_MASK_SFT                           (0x3 << 0)
1132 
1133 /* AFE_DL2_CON0 */
1134 #define DL2_MODE_SFT                                   24
1135 #define DL2_MODE_MASK                                  0xf
1136 #define DL2_MODE_MASK_SFT                              (0xf << 24)
1137 #define DL2_MINLEN_SFT                                 20
1138 #define DL2_MINLEN_MASK                                0xf
1139 #define DL2_MINLEN_MASK_SFT                            (0xf << 20)
1140 #define DL2_MAXLEN_SFT                                 16
1141 #define DL2_MAXLEN_MASK                                0xf
1142 #define DL2_MAXLEN_MASK_SFT                            (0xf << 16)
1143 #define DL2_SW_CLEAR_BUF_EMPTY_SFT                     15
1144 #define DL2_SW_CLEAR_BUF_EMPTY_MASK                    0x1
1145 #define DL2_SW_CLEAR_BUF_EMPTY_MASK_SFT                (0x1 << 15)
1146 #define DL2_PBUF_SIZE_SFT                              12
1147 #define DL2_PBUF_SIZE_MASK                             0x3
1148 #define DL2_PBUF_SIZE_MASK_SFT                         (0x3 << 12)
1149 #define DL2_MONO_SFT                                   8
1150 #define DL2_MONO_MASK                                  0x1
1151 #define DL2_MONO_MASK_SFT                              (0x1 << 8)
1152 #define DL2_NORMAL_MODE_SFT                            5
1153 #define DL2_NORMAL_MODE_MASK                           0x1
1154 #define DL2_NORMAL_MODE_MASK_SFT                       (0x1 << 5)
1155 #define DL2_HALIGN_SFT                                 4
1156 #define DL2_HALIGN_MASK                                0x1
1157 #define DL2_HALIGN_MASK_SFT                            (0x1 << 4)
1158 #define DL2_HD_MODE_SFT                                0
1159 #define DL2_HD_MODE_MASK                               0x3
1160 #define DL2_HD_MODE_MASK_SFT                           (0x3 << 0)
1161 
1162 /* AFE_DL3_CON0 */
1163 #define DL3_MODE_SFT                                   24
1164 #define DL3_MODE_MASK                                  0xf
1165 #define DL3_MODE_MASK_SFT                              (0xf << 24)
1166 #define DL3_MINLEN_SFT                                 20
1167 #define DL3_MINLEN_MASK                                0xf
1168 #define DL3_MINLEN_MASK_SFT                            (0xf << 20)
1169 #define DL3_MAXLEN_SFT                                 16
1170 #define DL3_MAXLEN_MASK                                0xf
1171 #define DL3_MAXLEN_MASK_SFT                            (0xf << 16)
1172 #define DL3_SW_CLEAR_BUF_EMPTY_SFT                     15
1173 #define DL3_SW_CLEAR_BUF_EMPTY_MASK                    0x1
1174 #define DL3_SW_CLEAR_BUF_EMPTY_MASK_SFT                (0x1 << 15)
1175 #define DL3_PBUF_SIZE_SFT                              12
1176 #define DL3_PBUF_SIZE_MASK                             0x3
1177 #define DL3_PBUF_SIZE_MASK_SFT                         (0x3 << 12)
1178 #define DL3_MONO_SFT                                   8
1179 #define DL3_MONO_MASK                                  0x1
1180 #define DL3_MONO_MASK_SFT                              (0x1 << 8)
1181 #define DL3_NORMAL_MODE_SFT                            5
1182 #define DL3_NORMAL_MODE_MASK                           0x1
1183 #define DL3_NORMAL_MODE_MASK_SFT                       (0x1 << 5)
1184 #define DL3_HALIGN_SFT                                 4
1185 #define DL3_HALIGN_MASK                                0x1
1186 #define DL3_HALIGN_MASK_SFT                            (0x1 << 4)
1187 #define DL3_HD_MODE_SFT                                0
1188 #define DL3_HD_MODE_MASK                               0x3
1189 #define DL3_HD_MODE_MASK_SFT                           (0x3 << 0)
1190 
1191 /* AFE_DL4_CON0 */
1192 #define DL4_MODE_SFT                                   24
1193 #define DL4_MODE_MASK                                  0xf
1194 #define DL4_MODE_MASK_SFT                              (0xf << 24)
1195 #define DL4_MINLEN_SFT                                 20
1196 #define DL4_MINLEN_MASK                                0xf
1197 #define DL4_MINLEN_MASK_SFT                            (0xf << 20)
1198 #define DL4_MAXLEN_SFT                                 16
1199 #define DL4_MAXLEN_MASK                                0xf
1200 #define DL4_MAXLEN_MASK_SFT                            (0xf << 16)
1201 #define DL4_SW_CLEAR_BUF_EMPTY_SFT                     15
1202 #define DL4_SW_CLEAR_BUF_EMPTY_MASK                    0x1
1203 #define DL4_SW_CLEAR_BUF_EMPTY_MASK_SFT                (0x1 << 15)
1204 #define DL4_PBUF_SIZE_SFT                              12
1205 #define DL4_PBUF_SIZE_MASK                             0x3
1206 #define DL4_PBUF_SIZE_MASK_SFT                         (0x3 << 12)
1207 #define DL4_MONO_SFT                                   8
1208 #define DL4_MONO_MASK                                  0x1
1209 #define DL4_MONO_MASK_SFT                              (0x1 << 8)
1210 #define DL4_NORMAL_MODE_SFT                            5
1211 #define DL4_NORMAL_MODE_MASK                           0x1
1212 #define DL4_NORMAL_MODE_MASK_SFT                       (0x1 << 5)
1213 #define DL4_HALIGN_SFT                                 4
1214 #define DL4_HALIGN_MASK                                0x1
1215 #define DL4_HALIGN_MASK_SFT                            (0x1 << 4)
1216 #define DL4_HD_MODE_SFT                                0
1217 #define DL4_HD_MODE_MASK                               0x3
1218 #define DL4_HD_MODE_MASK_SFT                           (0x3 << 0)
1219 
1220 /* AFE_DL5_CON0 */
1221 #define DL5_MODE_SFT                                   24
1222 #define DL5_MODE_MASK                                  0xf
1223 #define DL5_MODE_MASK_SFT                              (0xf << 24)
1224 #define DL5_MINLEN_SFT                                 20
1225 #define DL5_MINLEN_MASK                                0xf
1226 #define DL5_MINLEN_MASK_SFT                            (0xf << 20)
1227 #define DL5_MAXLEN_SFT                                 16
1228 #define DL5_MAXLEN_MASK                                0xf
1229 #define DL5_MAXLEN_MASK_SFT                            (0xf << 16)
1230 #define DL5_SW_CLEAR_BUF_EMPTY_SFT                     15
1231 #define DL5_SW_CLEAR_BUF_EMPTY_MASK                    0x1
1232 #define DL5_SW_CLEAR_BUF_EMPTY_MASK_SFT                (0x1 << 15)
1233 #define DL5_PBUF_SIZE_SFT                              12
1234 #define DL5_PBUF_SIZE_MASK                             0x3
1235 #define DL5_PBUF_SIZE_MASK_SFT                         (0x3 << 12)
1236 #define DL5_MONO_SFT                                   8
1237 #define DL5_MONO_MASK                                  0x1
1238 #define DL5_MONO_MASK_SFT                              (0x1 << 8)
1239 #define DL5_NORMAL_MODE_SFT                            5
1240 #define DL5_NORMAL_MODE_MASK                           0x1
1241 #define DL5_NORMAL_MODE_MASK_SFT                       (0x1 << 5)
1242 #define DL5_HALIGN_SFT                                 4
1243 #define DL5_HALIGN_MASK                                0x1
1244 #define DL5_HALIGN_MASK_SFT                            (0x1 << 4)
1245 #define DL5_HD_MODE_SFT                                0
1246 #define DL5_HD_MODE_MASK                               0x3
1247 #define DL5_HD_MODE_MASK_SFT                           (0x3 << 0)
1248 
1249 /* AFE_DL6_CON0 */
1250 #define DL6_MODE_SFT                                   24
1251 #define DL6_MODE_MASK                                  0xf
1252 #define DL6_MODE_MASK_SFT                              (0xf << 24)
1253 #define DL6_MINLEN_SFT                                 20
1254 #define DL6_MINLEN_MASK                                0xf
1255 #define DL6_MINLEN_MASK_SFT                            (0xf << 20)
1256 #define DL6_MAXLEN_SFT                                 16
1257 #define DL6_MAXLEN_MASK                                0xf
1258 #define DL6_MAXLEN_MASK_SFT                            (0xf << 16)
1259 #define DL6_SW_CLEAR_BUF_EMPTY_SFT                     15
1260 #define DL6_SW_CLEAR_BUF_EMPTY_MASK                    0x1
1261 #define DL6_SW_CLEAR_BUF_EMPTY_MASK_SFT                (0x1 << 15)
1262 #define DL6_PBUF_SIZE_SFT                              12
1263 #define DL6_PBUF_SIZE_MASK                             0x3
1264 #define DL6_PBUF_SIZE_MASK_SFT                         (0x3 << 12)
1265 #define DL6_MONO_SFT                                   8
1266 #define DL6_MONO_MASK                                  0x1
1267 #define DL6_MONO_MASK_SFT                              (0x1 << 8)
1268 #define DL6_NORMAL_MODE_SFT                            5
1269 #define DL6_NORMAL_MODE_MASK                           0x1
1270 #define DL6_NORMAL_MODE_MASK_SFT                       (0x1 << 5)
1271 #define DL6_HALIGN_SFT                                 4
1272 #define DL6_HALIGN_MASK                                0x1
1273 #define DL6_HALIGN_MASK_SFT                            (0x1 << 4)
1274 #define DL6_HD_MODE_SFT                                0
1275 #define DL6_HD_MODE_MASK                               0x3
1276 #define DL6_HD_MODE_MASK_SFT                           (0x3 << 0)
1277 
1278 /* AFE_DL7_CON0 */
1279 #define DL7_MODE_SFT                                   24
1280 #define DL7_MODE_MASK                                  0xf
1281 #define DL7_MODE_MASK_SFT                              (0xf << 24)
1282 #define DL7_MINLEN_SFT                                 20
1283 #define DL7_MINLEN_MASK                                0xf
1284 #define DL7_MINLEN_MASK_SFT                            (0xf << 20)
1285 #define DL7_MAXLEN_SFT                                 16
1286 #define DL7_MAXLEN_MASK                                0xf
1287 #define DL7_MAXLEN_MASK_SFT                            (0xf << 16)
1288 #define DL7_SW_CLEAR_BUF_EMPTY_SFT                     15
1289 #define DL7_SW_CLEAR_BUF_EMPTY_MASK                    0x1
1290 #define DL7_SW_CLEAR_BUF_EMPTY_MASK_SFT                (0x1 << 15)
1291 #define DL7_PBUF_SIZE_SFT                              12
1292 #define DL7_PBUF_SIZE_MASK                             0x3
1293 #define DL7_PBUF_SIZE_MASK_SFT                         (0x3 << 12)
1294 #define DL7_MONO_SFT                                   8
1295 #define DL7_MONO_MASK                                  0x1
1296 #define DL7_MONO_MASK_SFT                              (0x1 << 8)
1297 #define DL7_NORMAL_MODE_SFT                            5
1298 #define DL7_NORMAL_MODE_MASK                           0x1
1299 #define DL7_NORMAL_MODE_MASK_SFT                       (0x1 << 5)
1300 #define DL7_HALIGN_SFT                                 4
1301 #define DL7_HALIGN_MASK                                0x1
1302 #define DL7_HALIGN_MASK_SFT                            (0x1 << 4)
1303 #define DL7_HD_MODE_SFT                                0
1304 #define DL7_HD_MODE_MASK                               0x3
1305 #define DL7_HD_MODE_MASK_SFT                           (0x3 << 0)
1306 
1307 /* AFE_DL8_CON0 */
1308 #define DL8_MODE_SFT                                   24
1309 #define DL8_MODE_MASK                                  0xf
1310 #define DL8_MODE_MASK_SFT                              (0xf << 24)
1311 #define DL8_MINLEN_SFT                                 20
1312 #define DL8_MINLEN_MASK                                0xf
1313 #define DL8_MINLEN_MASK_SFT                            (0xf << 20)
1314 #define DL8_MAXLEN_SFT                                 16
1315 #define DL8_MAXLEN_MASK                                0xf
1316 #define DL8_MAXLEN_MASK_SFT                            (0xf << 16)
1317 #define DL8_SW_CLEAR_BUF_EMPTY_SFT                     15
1318 #define DL8_SW_CLEAR_BUF_EMPTY_MASK                    0x1
1319 #define DL8_SW_CLEAR_BUF_EMPTY_MASK_SFT                (0x1 << 15)
1320 #define DL8_PBUF_SIZE_SFT                              12
1321 #define DL8_PBUF_SIZE_MASK                             0x3
1322 #define DL8_PBUF_SIZE_MASK_SFT                         (0x3 << 12)
1323 #define DL8_MONO_SFT                                   8
1324 #define DL8_MONO_MASK                                  0x1
1325 #define DL8_MONO_MASK_SFT                              (0x1 << 8)
1326 #define DL8_NORMAL_MODE_SFT                            5
1327 #define DL8_NORMAL_MODE_MASK                           0x1
1328 #define DL8_NORMAL_MODE_MASK_SFT                       (0x1 << 5)
1329 #define DL8_HALIGN_SFT                                 4
1330 #define DL8_HALIGN_MASK                                0x1
1331 #define DL8_HALIGN_MASK_SFT                            (0x1 << 4)
1332 #define DL8_HD_MODE_SFT                                0
1333 #define DL8_HD_MODE_MASK                               0x3
1334 #define DL8_HD_MODE_MASK_SFT                           (0x3 << 0)
1335 
1336 /* AFE_DL9_CON0 */
1337 #define DL9_MODE_SFT                                   24
1338 #define DL9_MODE_MASK                                  0xf
1339 #define DL9_MODE_MASK_SFT                              (0xf << 24)
1340 #define DL9_MINLEN_SFT                                 20
1341 #define DL9_MINLEN_MASK                                0xf
1342 #define DL9_MINLEN_MASK_SFT                            (0xf << 20)
1343 #define DL9_MAXLEN_SFT                                 16
1344 #define DL9_MAXLEN_MASK                                0xf
1345 #define DL9_MAXLEN_MASK_SFT                            (0xf << 16)
1346 #define DL9_SW_CLEAR_BUF_EMPTY_SFT                     15
1347 #define DL9_SW_CLEAR_BUF_EMPTY_MASK                    0x1
1348 #define DL9_SW_CLEAR_BUF_EMPTY_MASK_SFT                (0x1 << 15)
1349 #define DL9_PBUF_SIZE_SFT                              12
1350 #define DL9_PBUF_SIZE_MASK                             0x3
1351 #define DL9_PBUF_SIZE_MASK_SFT                         (0x3 << 12)
1352 #define DL9_MONO_SFT                                   8
1353 #define DL9_MONO_MASK                                  0x1
1354 #define DL9_MONO_MASK_SFT                              (0x1 << 8)
1355 #define DL9_NORMAL_MODE_SFT                            5
1356 #define DL9_NORMAL_MODE_MASK                           0x1
1357 #define DL9_NORMAL_MODE_MASK_SFT                       (0x1 << 5)
1358 #define DL9_HALIGN_SFT                                 4
1359 #define DL9_HALIGN_MASK                                0x1
1360 #define DL9_HALIGN_MASK_SFT                            (0x1 << 4)
1361 #define DL9_HD_MODE_SFT                                0
1362 #define DL9_HD_MODE_MASK                               0x3
1363 #define DL9_HD_MODE_MASK_SFT                           (0x3 << 0)
1364 
1365 /* AFE_DL12_CON0 */
1366 #define DL12_MODE_SFT                                  24
1367 #define DL12_MODE_MASK                                 0xf
1368 #define DL12_MODE_MASK_SFT                             (0xf << 24)
1369 #define DL12_MINLEN_SFT                                20
1370 #define DL12_MINLEN_MASK                               0xf
1371 #define DL12_MINLEN_MASK_SFT                           (0xf << 20)
1372 #define DL12_MAXLEN_SFT                                16
1373 #define DL12_MAXLEN_MASK                               0xf
1374 #define DL12_MAXLEN_MASK_SFT                           (0xf << 16)
1375 #define DL12_SW_CLEAR_BUF_EMPTY_SFT                    15
1376 #define DL12_SW_CLEAR_BUF_EMPTY_MASK                   0x1
1377 #define DL12_SW_CLEAR_BUF_EMPTY_MASK_SFT               (0x1 << 15)
1378 #define DL12_PBUF_SIZE_SFT                             12
1379 #define DL12_PBUF_SIZE_MASK                            0x3
1380 #define DL12_PBUF_SIZE_MASK_SFT                        (0x3 << 12)
1381 #define DL12_4CH_EN_SFT                                11
1382 #define DL12_4CH_EN_MASK                               0x1
1383 #define DL12_4CH_EN_MASK_SFT                           (0x1 << 11)
1384 #define DL12_MONO_SFT                                  8
1385 #define DL12_MONO_MASK                                 0x1
1386 #define DL12_MONO_MASK_SFT                             (0x1 << 8)
1387 #define DL12_NORMAL_MODE_SFT                           5
1388 #define DL12_NORMAL_MODE_MASK                          0x1
1389 #define DL12_NORMAL_MODE_MASK_SFT                      (0x1 << 5)
1390 #define DL12_HALIGN_SFT                                4
1391 #define DL12_HALIGN_MASK                               0x1
1392 #define DL12_HALIGN_MASK_SFT                           (0x1 << 4)
1393 #define DL12_HD_MODE_SFT                               0
1394 #define DL12_HD_MODE_MASK                              0x3
1395 #define DL12_HD_MODE_MASK_SFT                          (0x3 << 0)
1396 
1397 /* AFE_AWB_CON0 */
1398 #define AWB_MODE_SFT                                   24
1399 #define AWB_MODE_MASK                                  0xf
1400 #define AWB_MODE_MASK_SFT                              (0xf << 24)
1401 #define AWB_SW_CLEAR_BUF_FULL_SFT                      15
1402 #define AWB_SW_CLEAR_BUF_FULL_MASK                     0x1
1403 #define AWB_SW_CLEAR_BUF_FULL_MASK_SFT                 (0x1 << 15)
1404 #define AWB_R_MONO_SFT                                 9
1405 #define AWB_R_MONO_MASK                                0x1
1406 #define AWB_R_MONO_MASK_SFT                            (0x1 << 9)
1407 #define AWB_MONO_SFT                                   8
1408 #define AWB_MONO_MASK                                  0x1
1409 #define AWB_MONO_MASK_SFT                              (0x1 << 8)
1410 #define AWB_WR_SIGN_SFT                                6
1411 #define AWB_WR_SIGN_MASK                               0x1
1412 #define AWB_WR_SIGN_MASK_SFT                           (0x1 << 6)
1413 #define AWB_NORMAL_MODE_SFT                            5
1414 #define AWB_NORMAL_MODE_MASK                           0x1
1415 #define AWB_NORMAL_MODE_MASK_SFT                       (0x1 << 5)
1416 #define AWB_HALIGN_SFT                                 4
1417 #define AWB_HALIGN_MASK                                0x1
1418 #define AWB_HALIGN_MASK_SFT                            (0x1 << 4)
1419 #define AWB_HD_MODE_SFT                                0
1420 #define AWB_HD_MODE_MASK                               0x3
1421 #define AWB_HD_MODE_MASK_SFT                           (0x3 << 0)
1422 
1423 /* AFE_AWB2_CON0 */
1424 #define AWB2_MODE_SFT                                  24
1425 #define AWB2_MODE_MASK                                 0xf
1426 #define AWB2_MODE_MASK_SFT                             (0xf << 24)
1427 #define AWB2_SW_CLEAR_BUF_FULL_SFT                     15
1428 #define AWB2_SW_CLEAR_BUF_FULL_MASK                    0x1
1429 #define AWB2_SW_CLEAR_BUF_FULL_MASK_SFT                (0x1 << 15)
1430 #define AWB2_R_MONO_SFT                                9
1431 #define AWB2_R_MONO_MASK                               0x1
1432 #define AWB2_R_MONO_MASK_SFT                           (0x1 << 9)
1433 #define AWB2_MONO_SFT                                  8
1434 #define AWB2_MONO_MASK                                 0x1
1435 #define AWB2_MONO_MASK_SFT                             (0x1 << 8)
1436 #define AWB2_WR_SIGN_SFT                               6
1437 #define AWB2_WR_SIGN_MASK                              0x1
1438 #define AWB2_WR_SIGN_MASK_SFT                          (0x1 << 6)
1439 #define AWB2_NORMAL_MODE_SFT                           5
1440 #define AWB2_NORMAL_MODE_MASK                          0x1
1441 #define AWB2_NORMAL_MODE_MASK_SFT                      (0x1 << 5)
1442 #define AWB2_HALIGN_SFT                                4
1443 #define AWB2_HALIGN_MASK                               0x1
1444 #define AWB2_HALIGN_MASK_SFT                           (0x1 << 4)
1445 #define AWB2_HD_MODE_SFT                               0
1446 #define AWB2_HD_MODE_MASK                              0x3
1447 #define AWB2_HD_MODE_MASK_SFT                          (0x3 << 0)
1448 
1449 /* AFE_VUL_CON0 */
1450 #define VUL_MODE_SFT                                   24
1451 #define VUL_MODE_MASK                                  0xf
1452 #define VUL_MODE_MASK_SFT                              (0xf << 24)
1453 #define VUL_SW_CLEAR_BUF_FULL_SFT                      15
1454 #define VUL_SW_CLEAR_BUF_FULL_MASK                     0x1
1455 #define VUL_SW_CLEAR_BUF_FULL_MASK_SFT                 (0x1 << 15)
1456 #define VUL_R_MONO_SFT                                 9
1457 #define VUL_R_MONO_MASK                                0x1
1458 #define VUL_R_MONO_MASK_SFT                            (0x1 << 9)
1459 #define VUL_MONO_SFT                                   8
1460 #define VUL_MONO_MASK                                  0x1
1461 #define VUL_MONO_MASK_SFT                              (0x1 << 8)
1462 #define VUL_WR_SIGN_SFT                                6
1463 #define VUL_WR_SIGN_MASK                               0x1
1464 #define VUL_WR_SIGN_MASK_SFT                           (0x1 << 6)
1465 #define VUL_NORMAL_MODE_SFT                            5
1466 #define VUL_NORMAL_MODE_MASK                           0x1
1467 #define VUL_NORMAL_MODE_MASK_SFT                       (0x1 << 5)
1468 #define VUL_HALIGN_SFT                                 4
1469 #define VUL_HALIGN_MASK                                0x1
1470 #define VUL_HALIGN_MASK_SFT                            (0x1 << 4)
1471 #define VUL_HD_MODE_SFT                                0
1472 #define VUL_HD_MODE_MASK                               0x3
1473 #define VUL_HD_MODE_MASK_SFT                           (0x3 << 0)
1474 
1475 /* AFE_VUL12_CON0 */
1476 #define VUL12_MODE_SFT                                 24
1477 #define VUL12_MODE_MASK                                0xf
1478 #define VUL12_MODE_MASK_SFT                            (0xf << 24)
1479 #define VUL12_SW_CLEAR_BUF_FULL_SFT                    15
1480 #define VUL12_SW_CLEAR_BUF_FULL_MASK                   0x1
1481 #define VUL12_SW_CLEAR_BUF_FULL_MASK_SFT               (0x1 << 15)
1482 #define VUL12_4CH_EN_SFT                               11
1483 #define VUL12_4CH_EN_MASK                              0x1
1484 #define VUL12_4CH_EN_MASK_SFT                          (0x1 << 11)
1485 #define VUL12_R_MONO_SFT                               9
1486 #define VUL12_R_MONO_MASK                              0x1
1487 #define VUL12_R_MONO_MASK_SFT                          (0x1 << 9)
1488 #define VUL12_MONO_SFT                                 8
1489 #define VUL12_MONO_MASK                                0x1
1490 #define VUL12_MONO_MASK_SFT                            (0x1 << 8)
1491 #define VUL12_WR_SIGN_SFT                              6
1492 #define VUL12_WR_SIGN_MASK                             0x1
1493 #define VUL12_WR_SIGN_MASK_SFT                         (0x1 << 6)
1494 #define VUL12_NORMAL_MODE_SFT                          5
1495 #define VUL12_NORMAL_MODE_MASK                         0x1
1496 #define VUL12_NORMAL_MODE_MASK_SFT                     (0x1 << 5)
1497 #define VUL12_HALIGN_SFT                               4
1498 #define VUL12_HALIGN_MASK                              0x1
1499 #define VUL12_HALIGN_MASK_SFT                          (0x1 << 4)
1500 #define VUL12_HD_MODE_SFT                              0
1501 #define VUL12_HD_MODE_MASK                             0x3
1502 #define VUL12_HD_MODE_MASK_SFT                         (0x3 << 0)
1503 
1504 /* AFE_VUL2_CON0 */
1505 #define VUL2_MODE_SFT                                  24
1506 #define VUL2_MODE_MASK                                 0xf
1507 #define VUL2_MODE_MASK_SFT                             (0xf << 24)
1508 #define VUL2_SW_CLEAR_BUF_FULL_SFT                     15
1509 #define VUL2_SW_CLEAR_BUF_FULL_MASK                    0x1
1510 #define VUL2_SW_CLEAR_BUF_FULL_MASK_SFT                (0x1 << 15)
1511 #define VUL2_R_MONO_SFT                                9
1512 #define VUL2_R_MONO_MASK                               0x1
1513 #define VUL2_R_MONO_MASK_SFT                           (0x1 << 9)
1514 #define VUL2_MONO_SFT                                  8
1515 #define VUL2_MONO_MASK                                 0x1
1516 #define VUL2_MONO_MASK_SFT                             (0x1 << 8)
1517 #define VUL2_WR_SIGN_SFT                               6
1518 #define VUL2_WR_SIGN_MASK                              0x1
1519 #define VUL2_WR_SIGN_MASK_SFT                          (0x1 << 6)
1520 #define VUL2_NORMAL_MODE_SFT                           5
1521 #define VUL2_NORMAL_MODE_MASK                          0x1
1522 #define VUL2_NORMAL_MODE_MASK_SFT                      (0x1 << 5)
1523 #define VUL2_HALIGN_SFT                                4
1524 #define VUL2_HALIGN_MASK                               0x1
1525 #define VUL2_HALIGN_MASK_SFT                           (0x1 << 4)
1526 #define VUL2_HD_MODE_SFT                               0
1527 #define VUL2_HD_MODE_MASK                              0x3
1528 #define VUL2_HD_MODE_MASK_SFT                          (0x3 << 0)
1529 
1530 /* AFE_VUL3_CON0 */
1531 #define VUL3_MODE_SFT                                  24
1532 #define VUL3_MODE_MASK                                 0xf
1533 #define VUL3_MODE_MASK_SFT                             (0xf << 24)
1534 #define VUL3_SW_CLEAR_BUF_FULL_SFT                     15
1535 #define VUL3_SW_CLEAR_BUF_FULL_MASK                    0x1
1536 #define VUL3_SW_CLEAR_BUF_FULL_MASK_SFT                (0x1 << 15)
1537 #define VUL3_R_MONO_SFT                                9
1538 #define VUL3_R_MONO_MASK                               0x1
1539 #define VUL3_R_MONO_MASK_SFT                           (0x1 << 9)
1540 #define VUL3_MONO_SFT                                  8
1541 #define VUL3_MONO_MASK                                 0x1
1542 #define VUL3_MONO_MASK_SFT                             (0x1 << 8)
1543 #define VUL3_WR_SIGN_SFT                               6
1544 #define VUL3_WR_SIGN_MASK                              0x1
1545 #define VUL3_WR_SIGN_MASK_SFT                          (0x1 << 6)
1546 #define VUL3_NORMAL_MODE_SFT                           5
1547 #define VUL3_NORMAL_MODE_MASK                          0x1
1548 #define VUL3_NORMAL_MODE_MASK_SFT                      (0x1 << 5)
1549 #define VUL3_HALIGN_SFT                                4
1550 #define VUL3_HALIGN_MASK                               0x1
1551 #define VUL3_HALIGN_MASK_SFT                           (0x1 << 4)
1552 #define VUL3_HD_MODE_SFT                               0
1553 #define VUL3_HD_MODE_MASK                              0x3
1554 #define VUL3_HD_MODE_MASK_SFT                          (0x3 << 0)
1555 
1556 /* AFE_VUL4_CON0 */
1557 #define VUL4_MODE_SFT                                  24
1558 #define VUL4_MODE_MASK                                 0xf
1559 #define VUL4_MODE_MASK_SFT                             (0xf << 24)
1560 #define VUL4_SW_CLEAR_BUF_FULL_SFT                     15
1561 #define VUL4_SW_CLEAR_BUF_FULL_MASK                    0x1
1562 #define VUL4_SW_CLEAR_BUF_FULL_MASK_SFT                (0x1 << 15)
1563 #define VUL4_R_MONO_SFT                                9
1564 #define VUL4_R_MONO_MASK                               0x1
1565 #define VUL4_R_MONO_MASK_SFT                           (0x1 << 9)
1566 #define VUL4_MONO_SFT                                  8
1567 #define VUL4_MONO_MASK                                 0x1
1568 #define VUL4_MONO_MASK_SFT                             (0x1 << 8)
1569 #define VUL4_WR_SIGN_SFT                               6
1570 #define VUL4_WR_SIGN_MASK                              0x1
1571 #define VUL4_WR_SIGN_MASK_SFT                          (0x1 << 6)
1572 #define VUL4_NORMAL_MODE_SFT                           5
1573 #define VUL4_NORMAL_MODE_MASK                          0x1
1574 #define VUL4_NORMAL_MODE_MASK_SFT                      (0x1 << 5)
1575 #define VUL4_HALIGN_SFT                                4
1576 #define VUL4_HALIGN_MASK                               0x1
1577 #define VUL4_HALIGN_MASK_SFT                           (0x1 << 4)
1578 #define VUL4_HD_MODE_SFT                               0
1579 #define VUL4_HD_MODE_MASK                              0x3
1580 #define VUL4_HD_MODE_MASK_SFT                          (0x3 << 0)
1581 
1582 /* AFE_VUL5_CON0 */
1583 #define VUL5_MODE_SFT                                  24
1584 #define VUL5_MODE_MASK                                 0xf
1585 #define VUL5_MODE_MASK_SFT                             (0xf << 24)
1586 #define VUL5_SW_CLEAR_BUF_FULL_SFT                     15
1587 #define VUL5_SW_CLEAR_BUF_FULL_MASK                    0x1
1588 #define VUL5_SW_CLEAR_BUF_FULL_MASK_SFT                (0x1 << 15)
1589 #define VUL5_R_MONO_SFT                                9
1590 #define VUL5_R_MONO_MASK                               0x1
1591 #define VUL5_R_MONO_MASK_SFT                           (0x1 << 9)
1592 #define VUL5_MONO_SFT                                  8
1593 #define VUL5_MONO_MASK                                 0x1
1594 #define VUL5_MONO_MASK_SFT                             (0x1 << 8)
1595 #define VUL5_WR_SIGN_SFT                               6
1596 #define VUL5_WR_SIGN_MASK                              0x1
1597 #define VUL5_WR_SIGN_MASK_SFT                          (0x1 << 6)
1598 #define VUL5_NORMAL_MODE_SFT                           5
1599 #define VUL5_NORMAL_MODE_MASK                          0x1
1600 #define VUL5_NORMAL_MODE_MASK_SFT                      (0x1 << 5)
1601 #define VUL5_HALIGN_SFT                                4
1602 #define VUL5_HALIGN_MASK                               0x1
1603 #define VUL5_HALIGN_MASK_SFT                           (0x1 << 4)
1604 #define VUL5_HD_MODE_SFT                               0
1605 #define VUL5_HD_MODE_MASK                              0x3
1606 #define VUL5_HD_MODE_MASK_SFT                          (0x3 << 0)
1607 
1608 /* AFE_VUL6_CON0 */
1609 #define VUL6_MODE_SFT                                  24
1610 #define VUL6_MODE_MASK                                 0xf
1611 #define VUL6_MODE_MASK_SFT                             (0xf << 24)
1612 #define VUL6_SW_CLEAR_BUF_FULL_SFT                     15
1613 #define VUL6_SW_CLEAR_BUF_FULL_MASK                    0x1
1614 #define VUL6_SW_CLEAR_BUF_FULL_MASK_SFT                (0x1 << 15)
1615 #define VUL6_R_MONO_SFT                                9
1616 #define VUL6_R_MONO_MASK                               0x1
1617 #define VUL6_R_MONO_MASK_SFT                           (0x1 << 9)
1618 #define VUL6_MONO_SFT                                  8
1619 #define VUL6_MONO_MASK                                 0x1
1620 #define VUL6_MONO_MASK_SFT                             (0x1 << 8)
1621 #define VUL6_WR_SIGN_SFT                               6
1622 #define VUL6_WR_SIGN_MASK                              0x1
1623 #define VUL6_WR_SIGN_MASK_SFT                          (0x1 << 6)
1624 #define VUL6_NORMAL_MODE_SFT                           5
1625 #define VUL6_NORMAL_MODE_MASK                          0x1
1626 #define VUL6_NORMAL_MODE_MASK_SFT                      (0x1 << 5)
1627 #define VUL6_HALIGN_SFT                                4
1628 #define VUL6_HALIGN_MASK                               0x1
1629 #define VUL6_HALIGN_MASK_SFT                           (0x1 << 4)
1630 #define VUL6_HD_MODE_SFT                               0
1631 #define VUL6_HD_MODE_MASK                              0x3
1632 #define VUL6_HD_MODE_MASK_SFT                          (0x3 << 0)
1633 
1634 /* AFE_DAI_CON0 */
1635 #define DAI_MODE_SFT                                   24
1636 #define DAI_MODE_MASK                                  0x3
1637 #define DAI_MODE_MASK_SFT                              (0x3 << 24)
1638 #define DAI_SW_CLEAR_BUF_FULL_SFT                      15
1639 #define DAI_SW_CLEAR_BUF_FULL_MASK                     0x1
1640 #define DAI_SW_CLEAR_BUF_FULL_MASK_SFT                 (0x1 << 15)
1641 #define DAI_DUPLICATE_WR_SFT                           10
1642 #define DAI_DUPLICATE_WR_MASK                          0x1
1643 #define DAI_DUPLICATE_WR_MASK_SFT                      (0x1 << 10)
1644 #define DAI_MONO_SFT                                   8
1645 #define DAI_MONO_MASK                                  0x1
1646 #define DAI_MONO_MASK_SFT                              (0x1 << 8)
1647 #define DAI_WR_SIGN_SFT                                6
1648 #define DAI_WR_SIGN_MASK                               0x1
1649 #define DAI_WR_SIGN_MASK_SFT                           (0x1 << 6)
1650 #define DAI_NORMAL_MODE_SFT                            5
1651 #define DAI_NORMAL_MODE_MASK                           0x1
1652 #define DAI_NORMAL_MODE_MASK_SFT                       (0x1 << 5)
1653 #define DAI_HALIGN_SFT                                 4
1654 #define DAI_HALIGN_MASK                                0x1
1655 #define DAI_HALIGN_MASK_SFT                            (0x1 << 4)
1656 #define DAI_HD_MODE_SFT                                0
1657 #define DAI_HD_MODE_MASK                               0x3
1658 #define DAI_HD_MODE_MASK_SFT                           (0x3 << 0)
1659 
1660 /* AFE_MOD_DAI_CON0 */
1661 #define MOD_DAI_MODE_SFT                               24
1662 #define MOD_DAI_MODE_MASK                              0x3
1663 #define MOD_DAI_MODE_MASK_SFT                          (0x3 << 24)
1664 #define MOD_DAI_SW_CLEAR_BUF_FULL_SFT                  15
1665 #define MOD_DAI_SW_CLEAR_BUF_FULL_MASK                 0x1
1666 #define MOD_DAI_SW_CLEAR_BUF_FULL_MASK_SFT             (0x1 << 15)
1667 #define MOD_DAI_DUPLICATE_WR_SFT                       10
1668 #define MOD_DAI_DUPLICATE_WR_MASK                      0x1
1669 #define MOD_DAI_DUPLICATE_WR_MASK_SFT                  (0x1 << 10)
1670 #define MOD_DAI_MONO_SFT                               8
1671 #define MOD_DAI_MONO_MASK                              0x1
1672 #define MOD_DAI_MONO_MASK_SFT                          (0x1 << 8)
1673 #define MOD_DAI_WR_SIGN_SFT                            6
1674 #define MOD_DAI_WR_SIGN_MASK                           0x1
1675 #define MOD_DAI_WR_SIGN_MASK_SFT                       (0x1 << 6)
1676 #define MOD_DAI_NORMAL_MODE_SFT                        5
1677 #define MOD_DAI_NORMAL_MODE_MASK                       0x1
1678 #define MOD_DAI_NORMAL_MODE_MASK_SFT                   (0x1 << 5)
1679 #define MOD_DAI_HALIGN_SFT                             4
1680 #define MOD_DAI_HALIGN_MASK                            0x1
1681 #define MOD_DAI_HALIGN_MASK_SFT                        (0x1 << 4)
1682 #define MOD_DAI_HD_MODE_SFT                            0
1683 #define MOD_DAI_HD_MODE_MASK                           0x3
1684 #define MOD_DAI_HD_MODE_MASK_SFT                       (0x3 << 0)
1685 
1686 /* AFE_DAI2_CON0 */
1687 #define DAI2_MODE_SFT                                  24
1688 #define DAI2_MODE_MASK                                 0xf
1689 #define DAI2_MODE_MASK_SFT                             (0xf << 24)
1690 #define DAI2_SW_CLEAR_BUF_FULL_SFT                     15
1691 #define DAI2_SW_CLEAR_BUF_FULL_MASK                    0x1
1692 #define DAI2_SW_CLEAR_BUF_FULL_MASK_SFT                (0x1 << 15)
1693 #define DAI2_DUPLICATE_WR_SFT                          10
1694 #define DAI2_DUPLICATE_WR_MASK                         0x1
1695 #define DAI2_DUPLICATE_WR_MASK_SFT                     (0x1 << 10)
1696 #define DAI2_MONO_SFT                                  8
1697 #define DAI2_MONO_MASK                                 0x1
1698 #define DAI2_MONO_MASK_SFT                             (0x1 << 8)
1699 #define DAI2_WR_SIGN_SFT                               6
1700 #define DAI2_WR_SIGN_MASK                              0x1
1701 #define DAI2_WR_SIGN_MASK_SFT                          (0x1 << 6)
1702 #define DAI2_NORMAL_MODE_SFT                           5
1703 #define DAI2_NORMAL_MODE_MASK                          0x1
1704 #define DAI2_NORMAL_MODE_MASK_SFT                      (0x1 << 5)
1705 #define DAI2_HALIGN_SFT                                4
1706 #define DAI2_HALIGN_MASK                               0x1
1707 #define DAI2_HALIGN_MASK_SFT                           (0x1 << 4)
1708 #define DAI2_HD_MODE_SFT                               0
1709 #define DAI2_HD_MODE_MASK                              0x3
1710 #define DAI2_HD_MODE_MASK_SFT                          (0x3 << 0)
1711 
1712 /* AFE_MEMIF_CON0 */
1713 #define CPU_COMPACT_MODE_SFT                           2
1714 #define CPU_COMPACT_MODE_MASK                          0x1
1715 #define CPU_COMPACT_MODE_MASK_SFT                      (0x1 << 2)
1716 #define CPU_HD_ALIGN_SFT                               1
1717 #define CPU_HD_ALIGN_MASK                              0x1
1718 #define CPU_HD_ALIGN_MASK_SFT                          (0x1 << 1)
1719 #define SYSRAM_SIGN_SFT                                0
1720 #define SYSRAM_SIGN_MASK                               0x1
1721 #define SYSRAM_SIGN_MASK_SFT                           (0x1 << 0)
1722 
1723 /* AFE_HDMI_OUT_CON0 */
1724 #define HDMI_CH_NUM_SFT                                24
1725 #define HDMI_CH_NUM_MASK                               0xf
1726 #define HDMI_CH_NUM_MASK_SFT                           (0xf << 24)
1727 #define HDMI_OUT_MINLEN_SFT                            20
1728 #define HDMI_OUT_MINLEN_MASK                           0xf
1729 #define HDMI_OUT_MINLEN_MASK_SFT                       (0xf << 20)
1730 #define HDMI_OUT_MAXLEN_SFT                            16
1731 #define HDMI_OUT_MAXLEN_MASK                           0xf
1732 #define HDMI_OUT_MAXLEN_MASK_SFT                       (0xf << 16)
1733 #define HDMI_OUT_SW_CLEAR_BUF_EMPTY_SFT                15
1734 #define HDMI_OUT_SW_CLEAR_BUF_EMPTY_MASK               0x1
1735 #define HDMI_OUT_SW_CLEAR_BUF_EMPTY_MASK_SFT           (0x1 << 15)
1736 #define HDMI_OUT_PBUF_SIZE_SFT                         12
1737 #define HDMI_OUT_PBUF_SIZE_MASK                        0x3
1738 #define HDMI_OUT_PBUF_SIZE_MASK_SFT                    (0x3 << 12)
1739 #define HDMI_OUT_NORMAL_MODE_SFT                       5
1740 #define HDMI_OUT_NORMAL_MODE_MASK                      0x1
1741 #define HDMI_OUT_NORMAL_MODE_MASK_SFT                  (0x1 << 5)
1742 #define HDMI_OUT_HALIGN_SFT                            4
1743 #define HDMI_OUT_HALIGN_MASK                           0x1
1744 #define HDMI_OUT_HALIGN_MASK_SFT                       (0x1 << 4)
1745 #define HDMI_OUT_HD_MODE_SFT                           0
1746 #define HDMI_OUT_HD_MODE_MASK                          0x3
1747 #define HDMI_OUT_HD_MODE_MASK_SFT                      (0x3 << 0)
1748 
1749 /* AFE_IRQ_MCU_CON0 */
1750 #define IRQ31_MCU_ON_SFT                               31
1751 #define IRQ31_MCU_ON_MASK                              0x1
1752 #define IRQ31_MCU_ON_MASK_SFT                          (0x1 << 31)
1753 #define IRQ26_MCU_ON_SFT                               26
1754 #define IRQ26_MCU_ON_MASK                              0x1
1755 #define IRQ26_MCU_ON_MASK_SFT                          (0x1 << 26)
1756 #define IRQ25_MCU_ON_SFT                               25
1757 #define IRQ25_MCU_ON_MASK                              0x1
1758 #define IRQ25_MCU_ON_MASK_SFT                          (0x1 << 25)
1759 #define IRQ24_MCU_ON_SFT                               24
1760 #define IRQ24_MCU_ON_MASK                              0x1
1761 #define IRQ24_MCU_ON_MASK_SFT                          (0x1 << 24)
1762 #define IRQ23_MCU_ON_SFT                               23
1763 #define IRQ23_MCU_ON_MASK                              0x1
1764 #define IRQ23_MCU_ON_MASK_SFT                          (0x1 << 23)
1765 #define IRQ22_MCU_ON_SFT                               22
1766 #define IRQ22_MCU_ON_MASK                              0x1
1767 #define IRQ22_MCU_ON_MASK_SFT                          (0x1 << 22)
1768 #define IRQ21_MCU_ON_SFT                               21
1769 #define IRQ21_MCU_ON_MASK                              0x1
1770 #define IRQ21_MCU_ON_MASK_SFT                          (0x1 << 21)
1771 #define IRQ20_MCU_ON_SFT                               20
1772 #define IRQ20_MCU_ON_MASK                              0x1
1773 #define IRQ20_MCU_ON_MASK_SFT                          (0x1 << 20)
1774 #define IRQ19_MCU_ON_SFT                               19
1775 #define IRQ19_MCU_ON_MASK                              0x1
1776 #define IRQ19_MCU_ON_MASK_SFT                          (0x1 << 19)
1777 #define IRQ18_MCU_ON_SFT                               18
1778 #define IRQ18_MCU_ON_MASK                              0x1
1779 #define IRQ18_MCU_ON_MASK_SFT                          (0x1 << 18)
1780 #define IRQ17_MCU_ON_SFT                               17
1781 #define IRQ17_MCU_ON_MASK                              0x1
1782 #define IRQ17_MCU_ON_MASK_SFT                          (0x1 << 17)
1783 #define IRQ16_MCU_ON_SFT                               16
1784 #define IRQ16_MCU_ON_MASK                              0x1
1785 #define IRQ16_MCU_ON_MASK_SFT                          (0x1 << 16)
1786 #define IRQ15_MCU_ON_SFT                               15
1787 #define IRQ15_MCU_ON_MASK                              0x1
1788 #define IRQ15_MCU_ON_MASK_SFT                          (0x1 << 15)
1789 #define IRQ14_MCU_ON_SFT                               14
1790 #define IRQ14_MCU_ON_MASK                              0x1
1791 #define IRQ14_MCU_ON_MASK_SFT                          (0x1 << 14)
1792 #define IRQ13_MCU_ON_SFT                               13
1793 #define IRQ13_MCU_ON_MASK                              0x1
1794 #define IRQ13_MCU_ON_MASK_SFT                          (0x1 << 13)
1795 #define IRQ12_MCU_ON_SFT                               12
1796 #define IRQ12_MCU_ON_MASK                              0x1
1797 #define IRQ12_MCU_ON_MASK_SFT                          (0x1 << 12)
1798 #define IRQ11_MCU_ON_SFT                               11
1799 #define IRQ11_MCU_ON_MASK                              0x1
1800 #define IRQ11_MCU_ON_MASK_SFT                          (0x1 << 11)
1801 #define IRQ10_MCU_ON_SFT                               10
1802 #define IRQ10_MCU_ON_MASK                              0x1
1803 #define IRQ10_MCU_ON_MASK_SFT                          (0x1 << 10)
1804 #define IRQ9_MCU_ON_SFT                                9
1805 #define IRQ9_MCU_ON_MASK                               0x1
1806 #define IRQ9_MCU_ON_MASK_SFT                           (0x1 << 9)
1807 #define IRQ8_MCU_ON_SFT                                8
1808 #define IRQ8_MCU_ON_MASK                               0x1
1809 #define IRQ8_MCU_ON_MASK_SFT                           (0x1 << 8)
1810 #define IRQ7_MCU_ON_SFT                                7
1811 #define IRQ7_MCU_ON_MASK                               0x1
1812 #define IRQ7_MCU_ON_MASK_SFT                           (0x1 << 7)
1813 #define IRQ6_MCU_ON_SFT                                6
1814 #define IRQ6_MCU_ON_MASK                               0x1
1815 #define IRQ6_MCU_ON_MASK_SFT                           (0x1 << 6)
1816 #define IRQ5_MCU_ON_SFT                                5
1817 #define IRQ5_MCU_ON_MASK                               0x1
1818 #define IRQ5_MCU_ON_MASK_SFT                           (0x1 << 5)
1819 #define IRQ4_MCU_ON_SFT                                4
1820 #define IRQ4_MCU_ON_MASK                               0x1
1821 #define IRQ4_MCU_ON_MASK_SFT                           (0x1 << 4)
1822 #define IRQ3_MCU_ON_SFT                                3
1823 #define IRQ3_MCU_ON_MASK                               0x1
1824 #define IRQ3_MCU_ON_MASK_SFT                           (0x1 << 3)
1825 #define IRQ2_MCU_ON_SFT                                2
1826 #define IRQ2_MCU_ON_MASK                               0x1
1827 #define IRQ2_MCU_ON_MASK_SFT                           (0x1 << 2)
1828 #define IRQ1_MCU_ON_SFT                                1
1829 #define IRQ1_MCU_ON_MASK                               0x1
1830 #define IRQ1_MCU_ON_MASK_SFT                           (0x1 << 1)
1831 #define IRQ0_MCU_ON_SFT                                0
1832 #define IRQ0_MCU_ON_MASK                               0x1
1833 #define IRQ0_MCU_ON_MASK_SFT                           (0x1 << 0)
1834 
1835 /* AFE_IRQ_MCU_CON1 */
1836 #define IRQ7_MCU_MODE_SFT                              28
1837 #define IRQ7_MCU_MODE_MASK                             0xf
1838 #define IRQ7_MCU_MODE_MASK_SFT                         (0xf << 28)
1839 #define IRQ6_MCU_MODE_SFT                              24
1840 #define IRQ6_MCU_MODE_MASK                             0xf
1841 #define IRQ6_MCU_MODE_MASK_SFT                         (0xf << 24)
1842 #define IRQ5_MCU_MODE_SFT                              20
1843 #define IRQ5_MCU_MODE_MASK                             0xf
1844 #define IRQ5_MCU_MODE_MASK_SFT                         (0xf << 20)
1845 #define IRQ4_MCU_MODE_SFT                              16
1846 #define IRQ4_MCU_MODE_MASK                             0xf
1847 #define IRQ4_MCU_MODE_MASK_SFT                         (0xf << 16)
1848 #define IRQ3_MCU_MODE_SFT                              12
1849 #define IRQ3_MCU_MODE_MASK                             0xf
1850 #define IRQ3_MCU_MODE_MASK_SFT                         (0xf << 12)
1851 #define IRQ2_MCU_MODE_SFT                              8
1852 #define IRQ2_MCU_MODE_MASK                             0xf
1853 #define IRQ2_MCU_MODE_MASK_SFT                         (0xf << 8)
1854 #define IRQ1_MCU_MODE_SFT                              4
1855 #define IRQ1_MCU_MODE_MASK                             0xf
1856 #define IRQ1_MCU_MODE_MASK_SFT                         (0xf << 4)
1857 #define IRQ0_MCU_MODE_SFT                              0
1858 #define IRQ0_MCU_MODE_MASK                             0xf
1859 #define IRQ0_MCU_MODE_MASK_SFT                         (0xf << 0)
1860 
1861 /* AFE_IRQ_MCU_CON2 */
1862 #define IRQ15_MCU_MODE_SFT                             28
1863 #define IRQ15_MCU_MODE_MASK                            0xf
1864 #define IRQ15_MCU_MODE_MASK_SFT                        (0xf << 28)
1865 #define IRQ14_MCU_MODE_SFT                             24
1866 #define IRQ14_MCU_MODE_MASK                            0xf
1867 #define IRQ14_MCU_MODE_MASK_SFT                        (0xf << 24)
1868 #define IRQ13_MCU_MODE_SFT                             20
1869 #define IRQ13_MCU_MODE_MASK                            0xf
1870 #define IRQ13_MCU_MODE_MASK_SFT                        (0xf << 20)
1871 #define IRQ12_MCU_MODE_SFT                             16
1872 #define IRQ12_MCU_MODE_MASK                            0xf
1873 #define IRQ12_MCU_MODE_MASK_SFT                        (0xf << 16)
1874 #define IRQ11_MCU_MODE_SFT                             12
1875 #define IRQ11_MCU_MODE_MASK                            0xf
1876 #define IRQ11_MCU_MODE_MASK_SFT                        (0xf << 12)
1877 #define IRQ10_MCU_MODE_SFT                             8
1878 #define IRQ10_MCU_MODE_MASK                            0xf
1879 #define IRQ10_MCU_MODE_MASK_SFT                        (0xf << 8)
1880 #define IRQ9_MCU_MODE_SFT                              4
1881 #define IRQ9_MCU_MODE_MASK                             0xf
1882 #define IRQ9_MCU_MODE_MASK_SFT                         (0xf << 4)
1883 #define IRQ8_MCU_MODE_SFT                              0
1884 #define IRQ8_MCU_MODE_MASK                             0xf
1885 #define IRQ8_MCU_MODE_MASK_SFT                         (0xf << 0)
1886 
1887 /* AFE_IRQ_MCU_CON3 */
1888 #define IRQ23_MCU_MODE_SFT                             28
1889 #define IRQ23_MCU_MODE_MASK                            0xf
1890 #define IRQ23_MCU_MODE_MASK_SFT                        (0xf << 28)
1891 #define IRQ22_MCU_MODE_SFT                             24
1892 #define IRQ22_MCU_MODE_MASK                            0xf
1893 #define IRQ22_MCU_MODE_MASK_SFT                        (0xf << 24)
1894 #define IRQ21_MCU_MODE_SFT                             20
1895 #define IRQ21_MCU_MODE_MASK                            0xf
1896 #define IRQ21_MCU_MODE_MASK_SFT                        (0xf << 20)
1897 #define IRQ20_MCU_MODE_SFT                             16
1898 #define IRQ20_MCU_MODE_MASK                            0xf
1899 #define IRQ20_MCU_MODE_MASK_SFT                        (0xf << 16)
1900 #define IRQ19_MCU_MODE_SFT                             12
1901 #define IRQ19_MCU_MODE_MASK                            0xf
1902 #define IRQ19_MCU_MODE_MASK_SFT                        (0xf << 12)
1903 #define IRQ18_MCU_MODE_SFT                             8
1904 #define IRQ18_MCU_MODE_MASK                            0xf
1905 #define IRQ18_MCU_MODE_MASK_SFT                        (0xf << 8)
1906 #define IRQ17_MCU_MODE_SFT                             4
1907 #define IRQ17_MCU_MODE_MASK                            0xf
1908 #define IRQ17_MCU_MODE_MASK_SFT                        (0xf << 4)
1909 #define IRQ16_MCU_MODE_SFT                             0
1910 #define IRQ16_MCU_MODE_MASK                            0xf
1911 #define IRQ16_MCU_MODE_MASK_SFT                        (0xf << 0)
1912 
1913 /* AFE_IRQ_MCU_CON4 */
1914 #define IRQ26_MCU_MODE_SFT                             8
1915 #define IRQ26_MCU_MODE_MASK                            0xf
1916 #define IRQ26_MCU_MODE_MASK_SFT                        (0xf << 8)
1917 #define IRQ25_MCU_MODE_SFT                             4
1918 #define IRQ25_MCU_MODE_MASK                            0xf
1919 #define IRQ25_MCU_MODE_MASK_SFT                        (0xf << 4)
1920 #define IRQ24_MCU_MODE_SFT                             0
1921 #define IRQ24_MCU_MODE_MASK                            0xf
1922 #define IRQ24_MCU_MODE_MASK_SFT                        (0xf << 0)
1923 
1924 /* AFE_IRQ_MCU_CLR */
1925 #define IRQ31_MCU_CLR_SFT                              31
1926 #define IRQ31_MCU_CLR_MASK                             0x1
1927 #define IRQ31_MCU_CLR_MASK_SFT                         (0x1 << 31)
1928 #define IRQ26_MCU_CLR_SFT                              26
1929 #define IRQ26_MCU_CLR_MASK                             0x1
1930 #define IRQ26_MCU_CLR_MASK_SFT                         (0x1 << 26)
1931 #define IRQ25_MCU_CLR_SFT                              25
1932 #define IRQ25_MCU_CLR_MASK                             0x1
1933 #define IRQ25_MCU_CLR_MASK_SFT                         (0x1 << 25)
1934 #define IRQ24_MCU_CLR_SFT                              24
1935 #define IRQ24_MCU_CLR_MASK                             0x1
1936 #define IRQ24_MCU_CLR_MASK_SFT                         (0x1 << 24)
1937 #define IRQ23_MCU_CLR_SFT                              23
1938 #define IRQ23_MCU_CLR_MASK                             0x1
1939 #define IRQ23_MCU_CLR_MASK_SFT                         (0x1 << 23)
1940 #define IRQ22_MCU_CLR_SFT                              22
1941 #define IRQ22_MCU_CLR_MASK                             0x1
1942 #define IRQ22_MCU_CLR_MASK_SFT                         (0x1 << 22)
1943 #define IRQ21_MCU_CLR_SFT                              21
1944 #define IRQ21_MCU_CLR_MASK                             0x1
1945 #define IRQ21_MCU_CLR_MASK_SFT                         (0x1 << 21)
1946 #define IRQ20_MCU_CLR_SFT                              20
1947 #define IRQ20_MCU_CLR_MASK                             0x1
1948 #define IRQ20_MCU_CLR_MASK_SFT                         (0x1 << 20)
1949 #define IRQ19_MCU_CLR_SFT                              19
1950 #define IRQ19_MCU_CLR_MASK                             0x1
1951 #define IRQ19_MCU_CLR_MASK_SFT                         (0x1 << 19)
1952 #define IRQ18_MCU_CLR_SFT                              18
1953 #define IRQ18_MCU_CLR_MASK                             0x1
1954 #define IRQ18_MCU_CLR_MASK_SFT                         (0x1 << 18)
1955 #define IRQ17_MCU_CLR_SFT                              17
1956 #define IRQ17_MCU_CLR_MASK                             0x1
1957 #define IRQ17_MCU_CLR_MASK_SFT                         (0x1 << 17)
1958 #define IRQ16_MCU_CLR_SFT                              16
1959 #define IRQ16_MCU_CLR_MASK                             0x1
1960 #define IRQ16_MCU_CLR_MASK_SFT                         (0x1 << 16)
1961 #define IRQ15_MCU_CLR_SFT                              15
1962 #define IRQ15_MCU_CLR_MASK                             0x1
1963 #define IRQ15_MCU_CLR_MASK_SFT                         (0x1 << 15)
1964 #define IRQ14_MCU_CLR_SFT                              14
1965 #define IRQ14_MCU_CLR_MASK                             0x1
1966 #define IRQ14_MCU_CLR_MASK_SFT                         (0x1 << 14)
1967 #define IRQ13_MCU_CLR_SFT                              13
1968 #define IRQ13_MCU_CLR_MASK                             0x1
1969 #define IRQ13_MCU_CLR_MASK_SFT                         (0x1 << 13)
1970 #define IRQ12_MCU_CLR_SFT                              12
1971 #define IRQ12_MCU_CLR_MASK                             0x1
1972 #define IRQ12_MCU_CLR_MASK_SFT                         (0x1 << 12)
1973 #define IRQ11_MCU_CLR_SFT                              11
1974 #define IRQ11_MCU_CLR_MASK                             0x1
1975 #define IRQ11_MCU_CLR_MASK_SFT                         (0x1 << 11)
1976 #define IRQ10_MCU_CLR_SFT                              10
1977 #define IRQ10_MCU_CLR_MASK                             0x1
1978 #define IRQ10_MCU_CLR_MASK_SFT                         (0x1 << 10)
1979 #define IRQ9_MCU_CLR_SFT                               9
1980 #define IRQ9_MCU_CLR_MASK                              0x1
1981 #define IRQ9_MCU_CLR_MASK_SFT                          (0x1 << 9)
1982 #define IRQ8_MCU_CLR_SFT                               8
1983 #define IRQ8_MCU_CLR_MASK                              0x1
1984 #define IRQ8_MCU_CLR_MASK_SFT                          (0x1 << 8)
1985 #define IRQ7_MCU_CLR_SFT                               7
1986 #define IRQ7_MCU_CLR_MASK                              0x1
1987 #define IRQ7_MCU_CLR_MASK_SFT                          (0x1 << 7)
1988 #define IRQ6_MCU_CLR_SFT                               6
1989 #define IRQ6_MCU_CLR_MASK                              0x1
1990 #define IRQ6_MCU_CLR_MASK_SFT                          (0x1 << 6)
1991 #define IRQ5_MCU_CLR_SFT                               5
1992 #define IRQ5_MCU_CLR_MASK                              0x1
1993 #define IRQ5_MCU_CLR_MASK_SFT                          (0x1 << 5)
1994 #define IRQ4_MCU_CLR_SFT                               4
1995 #define IRQ4_MCU_CLR_MASK                              0x1
1996 #define IRQ4_MCU_CLR_MASK_SFT                          (0x1 << 4)
1997 #define IRQ3_MCU_CLR_SFT                               3
1998 #define IRQ3_MCU_CLR_MASK                              0x1
1999 #define IRQ3_MCU_CLR_MASK_SFT                          (0x1 << 3)
2000 #define IRQ2_MCU_CLR_SFT                               2
2001 #define IRQ2_MCU_CLR_MASK                              0x1
2002 #define IRQ2_MCU_CLR_MASK_SFT                          (0x1 << 2)
2003 #define IRQ1_MCU_CLR_SFT                               1
2004 #define IRQ1_MCU_CLR_MASK                              0x1
2005 #define IRQ1_MCU_CLR_MASK_SFT                          (0x1 << 1)
2006 #define IRQ0_MCU_CLR_SFT                               0
2007 #define IRQ0_MCU_CLR_MASK                              0x1
2008 #define IRQ0_MCU_CLR_MASK_SFT                          (0x1 << 0)
2009 
2010 /* AFE_IRQ_MCU_EN */
2011 #define IRQ31_MCU_EN_SFT                               31
2012 #define IRQ30_MCU_EN_SFT                               30
2013 #define IRQ29_MCU_EN_SFT                               29
2014 #define IRQ28_MCU_EN_SFT                               28
2015 #define IRQ27_MCU_EN_SFT                               27
2016 #define IRQ26_MCU_EN_SFT                               26
2017 #define IRQ25_MCU_EN_SFT                               25
2018 #define IRQ24_MCU_EN_SFT                               24
2019 #define IRQ23_MCU_EN_SFT                               23
2020 #define IRQ22_MCU_EN_SFT                               22
2021 #define IRQ21_MCU_EN_SFT                               21
2022 #define IRQ20_MCU_EN_SFT                               20
2023 #define IRQ19_MCU_EN_SFT                               19
2024 #define IRQ18_MCU_EN_SFT                               18
2025 #define IRQ17_MCU_EN_SFT                               17
2026 #define IRQ16_MCU_EN_SFT                               16
2027 #define IRQ15_MCU_EN_SFT                               15
2028 #define IRQ14_MCU_EN_SFT                               14
2029 #define IRQ13_MCU_EN_SFT                               13
2030 #define IRQ12_MCU_EN_SFT                               12
2031 #define IRQ11_MCU_EN_SFT                               11
2032 #define IRQ10_MCU_EN_SFT                               10
2033 #define IRQ9_MCU_EN_SFT                                9
2034 #define IRQ8_MCU_EN_SFT                                8
2035 #define IRQ7_MCU_EN_SFT                                7
2036 #define IRQ6_MCU_EN_SFT                                6
2037 #define IRQ5_MCU_EN_SFT                                5
2038 #define IRQ4_MCU_EN_SFT                                4
2039 #define IRQ3_MCU_EN_SFT                                3
2040 #define IRQ2_MCU_EN_SFT                                2
2041 #define IRQ1_MCU_EN_SFT                                1
2042 #define IRQ0_MCU_EN_SFT                                0
2043 
2044 /* AFE_IRQ_MCU_SCP_EN */
2045 #define IRQ31_MCU_SCP_EN_SFT                           31
2046 #define IRQ30_MCU_SCP_EN_SFT                           30
2047 #define IRQ29_MCU_SCP_EN_SFT                           29
2048 #define IRQ28_MCU_SCP_EN_SFT                           28
2049 #define IRQ27_MCU_SCP_EN_SFT                           27
2050 #define IRQ26_MCU_SCP_EN_SFT                           26
2051 #define IRQ25_MCU_SCP_EN_SFT                           25
2052 #define IRQ24_MCU_SCP_EN_SFT                           24
2053 #define IRQ23_MCU_SCP_EN_SFT                           23
2054 #define IRQ22_MCU_SCP_EN_SFT                           22
2055 #define IRQ21_MCU_SCP_EN_SFT                           21
2056 #define IRQ20_MCU_SCP_EN_SFT                           20
2057 #define IRQ19_MCU_SCP_EN_SFT                           19
2058 #define IRQ18_MCU_SCP_EN_SFT                           18
2059 #define IRQ17_MCU_SCP_EN_SFT                           17
2060 #define IRQ16_MCU_SCP_EN_SFT                           16
2061 #define IRQ15_MCU_SCP_EN_SFT                           15
2062 #define IRQ14_MCU_SCP_EN_SFT                           14
2063 #define IRQ13_MCU_SCP_EN_SFT                           13
2064 #define IRQ12_MCU_SCP_EN_SFT                           12
2065 #define IRQ11_MCU_SCP_EN_SFT                           11
2066 #define IRQ10_MCU_SCP_EN_SFT                           10
2067 #define IRQ9_MCU_SCP_EN_SFT                            9
2068 #define IRQ8_MCU_SCP_EN_SFT                            8
2069 #define IRQ7_MCU_SCP_EN_SFT                            7
2070 #define IRQ6_MCU_SCP_EN_SFT                            6
2071 #define IRQ5_MCU_SCP_EN_SFT                            5
2072 #define IRQ4_MCU_SCP_EN_SFT                            4
2073 #define IRQ3_MCU_SCP_EN_SFT                            3
2074 #define IRQ2_MCU_SCP_EN_SFT                            2
2075 #define IRQ1_MCU_SCP_EN_SFT                            1
2076 #define IRQ0_MCU_SCP_EN_SFT                            0
2077 
2078 /* AFE_TDM_CON1 */
2079 #define TDM_EN_SFT                                     0
2080 #define TDM_EN_MASK                                    0x1
2081 #define TDM_EN_MASK_SFT                                (0x1 << 0)
2082 #define BCK_INVERSE_SFT                                1
2083 #define BCK_INVERSE_MASK                               0x1
2084 #define BCK_INVERSE_MASK_SFT                           (0x1 << 1)
2085 #define LRCK_INVERSE_SFT                               2
2086 #define LRCK_INVERSE_MASK                              0x1
2087 #define LRCK_INVERSE_MASK_SFT                          (0x1 << 2)
2088 #define DELAY_DATA_SFT                                 3
2089 #define DELAY_DATA_MASK                                0x1
2090 #define DELAY_DATA_MASK_SFT                            (0x1 << 3)
2091 #define LEFT_ALIGN_SFT                                 4
2092 #define LEFT_ALIGN_MASK                                0x1
2093 #define LEFT_ALIGN_MASK_SFT                            (0x1 << 4)
2094 #define WLEN_SFT                                       8
2095 #define WLEN_MASK                                      0x3
2096 #define WLEN_MASK_SFT                                  (0x3 << 8)
2097 #define CHANNEL_NUM_SFT                                10
2098 #define CHANNEL_NUM_MASK                               0x3
2099 #define CHANNEL_NUM_MASK_SFT                           (0x3 << 10)
2100 #define CHANNEL_BCK_CYCLES_SFT                         12
2101 #define CHANNEL_BCK_CYCLES_MASK                        0x3
2102 #define CHANNEL_BCK_CYCLES_MASK_SFT                    (0x3 << 12)
2103 #define DAC_BIT_NUM_SFT                                16
2104 #define DAC_BIT_NUM_MASK                               0x1f
2105 #define DAC_BIT_NUM_MASK_SFT                           (0x1f << 16)
2106 #define LRCK_TDM_WIDTH_SFT                             24
2107 #define LRCK_TDM_WIDTH_MASK                            0xff
2108 #define LRCK_TDM_WIDTH_MASK_SFT                        (0xff << 24)
2109 
2110 /* AFE_TDM_CON2 */
2111 #define ST_CH_PAIR_SOUT0_SFT                           0
2112 #define ST_CH_PAIR_SOUT0_MASK                          0x7
2113 #define ST_CH_PAIR_SOUT0_MASK_SFT                      (0x7 << 0)
2114 #define ST_CH_PAIR_SOUT1_SFT                           4
2115 #define ST_CH_PAIR_SOUT1_MASK                          0x7
2116 #define ST_CH_PAIR_SOUT1_MASK_SFT                      (0x7 << 4)
2117 #define ST_CH_PAIR_SOUT2_SFT                           8
2118 #define ST_CH_PAIR_SOUT2_MASK                          0x7
2119 #define ST_CH_PAIR_SOUT2_MASK_SFT                      (0x7 << 8)
2120 #define ST_CH_PAIR_SOUT3_SFT                           12
2121 #define ST_CH_PAIR_SOUT3_MASK                          0x7
2122 #define ST_CH_PAIR_SOUT3_MASK_SFT                      (0x7 << 12)
2123 #define TDM_FIX_VALUE_SEL_SFT                          16
2124 #define TDM_FIX_VALUE_SEL_MASK                         0x1
2125 #define TDM_FIX_VALUE_SEL_MASK_SFT                     (0x1 << 16)
2126 #define TDM_I2S_LOOPBACK_SFT                           20
2127 #define TDM_I2S_LOOPBACK_MASK                          0x1
2128 #define TDM_I2S_LOOPBACK_MASK_SFT                      (0x1 << 20)
2129 #define TDM_I2S_LOOPBACK_CH_SFT                        21
2130 #define TDM_I2S_LOOPBACK_CH_MASK                       0x3
2131 #define TDM_I2S_LOOPBACK_CH_MASK_SFT                   (0x3 << 21)
2132 #define TDM_FIX_VALUE_SFT                              24
2133 #define TDM_FIX_VALUE_MASK                             0xff
2134 #define TDM_FIX_VALUE_MASK_SFT                         (0xff << 24)
2135 
2136 /* AFE_HDMI_CONN0 */
2137 #define HDMI_O_7_SFT                                   21
2138 #define HDMI_O_7_MASK                                  0x7
2139 #define HDMI_O_7_MASK_SFT                              (0x7 << 21)
2140 #define HDMI_O_6_SFT                                   18
2141 #define HDMI_O_6_MASK                                  0x7
2142 #define HDMI_O_6_MASK_SFT                              (0x7 << 18)
2143 #define HDMI_O_5_SFT                                   15
2144 #define HDMI_O_5_MASK                                  0x7
2145 #define HDMI_O_5_MASK_SFT                              (0x7 << 15)
2146 #define HDMI_O_4_SFT                                   12
2147 #define HDMI_O_4_MASK                                  0x7
2148 #define HDMI_O_4_MASK_SFT                              (0x7 << 12)
2149 #define HDMI_O_3_SFT                                   9
2150 #define HDMI_O_3_MASK                                  0x7
2151 #define HDMI_O_3_MASK_SFT                              (0x7 << 9)
2152 #define HDMI_O_2_SFT                                   6
2153 #define HDMI_O_2_MASK                                  0x7
2154 #define HDMI_O_2_MASK_SFT                              (0x7 << 6)
2155 #define HDMI_O_1_SFT                                   3
2156 #define HDMI_O_1_MASK                                  0x7
2157 #define HDMI_O_1_MASK_SFT                              (0x7 << 3)
2158 #define HDMI_O_0_SFT                                   0
2159 #define HDMI_O_0_MASK                                  0x7
2160 #define HDMI_O_0_MASK_SFT                              (0x7 << 0)
2161 
2162 /* AFE_AUD_PAD_TOP */
2163 #define AUD_PAD_TOP_MON_SFT                            15
2164 #define AUD_PAD_TOP_MON_MASK                           0x1ffff
2165 #define AUD_PAD_TOP_MON_MASK_SFT                       (0x1ffff << 15)
2166 #define AUD_PAD_TOP_FIFO_RSP_SFT                       4
2167 #define AUD_PAD_TOP_FIFO_RSP_MASK                      0xf
2168 #define AUD_PAD_TOP_FIFO_RSP_MASK_SFT                  (0xf << 4)
2169 #define RG_RX_PROTOCOL2_SFT                            3
2170 #define RG_RX_PROTOCOL2_MASK                           0x1
2171 #define RG_RX_PROTOCOL2_MASK_SFT                       (0x1 << 3)
2172 #define RESERVDED_01_SFT                               1
2173 #define RESERVDED_01_MASK                              0x3
2174 #define RESERVDED_01_MASK_SFT                          (0x3 << 1)
2175 #define RG_RX_FIFO_ON_SFT                              0
2176 #define RG_RX_FIFO_ON_MASK                             0x1
2177 #define RG_RX_FIFO_ON_MASK_SFT                         (0x1 << 0)
2178 
2179 /* AFE_ADDA_MTKAIF_SYNCWORD_CFG */
2180 #define RG_ADDA6_MTKAIF_RX_SYNC_WORD2_DISABLE_SFT      23
2181 #define RG_ADDA6_MTKAIF_RX_SYNC_WORD2_DISABLE_MASK     0x1
2182 #define RG_ADDA6_MTKAIF_RX_SYNC_WORD2_DISABLE_MASK_SFT (0x1 << 23)
2183 
2184 /* AFE_ADDA_MTKAIF_RX_CFG0 */
2185 #define MTKAIF_RXIF_VOICE_MODE_SFT                     20
2186 #define MTKAIF_RXIF_VOICE_MODE_MASK                    0xf
2187 #define MTKAIF_RXIF_VOICE_MODE_MASK_SFT                (0xf << 20)
2188 #define MTKAIF_RXIF_DETECT_ON_SFT                      16
2189 #define MTKAIF_RXIF_DETECT_ON_MASK                     0x1
2190 #define MTKAIF_RXIF_DETECT_ON_MASK_SFT                 (0x1 << 16)
2191 #define MTKAIF_RXIF_DATA_BIT_SFT                       8
2192 #define MTKAIF_RXIF_DATA_BIT_MASK                      0x7
2193 #define MTKAIF_RXIF_DATA_BIT_MASK_SFT                  (0x7 << 8)
2194 #define MTKAIF_RXIF_FIFO_RSP_SFT                       4
2195 #define MTKAIF_RXIF_FIFO_RSP_MASK                      0x7
2196 #define MTKAIF_RXIF_FIFO_RSP_MASK_SFT                  (0x7 << 4)
2197 #define MTKAIF_RXIF_DATA_MODE_SFT                      0
2198 #define MTKAIF_RXIF_DATA_MODE_MASK                     0x1
2199 #define MTKAIF_RXIF_DATA_MODE_MASK_SFT                 (0x1 << 0)
2200 
2201 /* GENERAL_ASRC_MODE */
2202 #define GENERAL2_ASRCOUT_MODE_SFT                      12
2203 #define GENERAL2_ASRCOUT_MODE_MASK                     0xf
2204 #define GENERAL2_ASRCOUT_MODE_MASK_SFT                 (0xf << 12)
2205 #define GENERAL2_ASRCIN_MODE_SFT                       8
2206 #define GENERAL2_ASRCIN_MODE_MASK                      0xf
2207 #define GENERAL2_ASRCIN_MODE_MASK_SFT                  (0xf << 8)
2208 #define GENERAL1_ASRCOUT_MODE_SFT                      4
2209 #define GENERAL1_ASRCOUT_MODE_MASK                     0xf
2210 #define GENERAL1_ASRCOUT_MODE_MASK_SFT                 (0xf << 4)
2211 #define GENERAL1_ASRCIN_MODE_SFT                       0
2212 #define GENERAL1_ASRCIN_MODE_MASK                      0xf
2213 #define GENERAL1_ASRCIN_MODE_MASK_SFT                  (0xf << 0)
2214 
2215 /* GENERAL_ASRC_EN_ON */
2216 #define GENERAL2_ASRC_EN_ON_SFT                        1
2217 #define GENERAL2_ASRC_EN_ON_MASK                       0x1
2218 #define GENERAL2_ASRC_EN_ON_MASK_SFT                   (0x1 << 1)
2219 #define GENERAL1_ASRC_EN_ON_SFT                        0
2220 #define GENERAL1_ASRC_EN_ON_MASK                       0x1
2221 #define GENERAL1_ASRC_EN_ON_MASK_SFT                   (0x1 << 0)
2222 
2223 /* AFE_GENERAL1_ASRC_2CH_CON0 */
2224 #define G_SRC_CHSET_STR_CLR_SFT                        4
2225 #define G_SRC_CHSET_STR_CLR_MASK                       0x1
2226 #define G_SRC_CHSET_STR_CLR_MASK_SFT                   (0x1 << 4)
2227 #define G_SRC_CHSET_ON_SFT                             2
2228 #define G_SRC_CHSET_ON_MASK                            0x1
2229 #define G_SRC_CHSET_ON_MASK_SFT                        (0x1 << 2)
2230 #define G_SRC_COEFF_SRAM_CTRL_SFT                      1
2231 #define G_SRC_COEFF_SRAM_CTRL_MASK                     0x1
2232 #define G_SRC_COEFF_SRAM_CTRL_MASK_SFT                 (0x1 << 1)
2233 #define G_SRC_ASM_ON_SFT                               0
2234 #define G_SRC_ASM_ON_MASK                              0x1
2235 #define G_SRC_ASM_ON_MASK_SFT                          (0x1 << 0)
2236 
2237 /* AFE_GENERAL1_ASRC_2CH_CON3 */
2238 #define G_SRC_ASM_FREQ_4_SFT                           0
2239 #define G_SRC_ASM_FREQ_4_MASK                          0xffffff
2240 #define G_SRC_ASM_FREQ_4_MASK_SFT                      (0xffffff << 0)
2241 
2242 /* AFE_GENERAL1_ASRC_2CH_CON4 */
2243 #define G_SRC_ASM_FREQ_5_SFT                           0
2244 #define G_SRC_ASM_FREQ_5_MASK                          0xffffff
2245 #define G_SRC_ASM_FREQ_5_MASK_SFT                      (0xffffff << 0)
2246 
2247 /* AFE_GENERAL1_ASRC_2CH_CON13 */
2248 #define G_SRC_COEFF_SRAM_ADR_SFT                       0
2249 #define G_SRC_COEFF_SRAM_ADR_MASK                      0x3f
2250 #define G_SRC_COEFF_SRAM_ADR_MASK_SFT                  (0x3f << 0)
2251 
2252 /* AFE_GENERAL1_ASRC_2CH_CON2 */
2253 #define G_SRC_CHSET_O16BIT_SFT                         19
2254 #define G_SRC_CHSET_O16BIT_MASK                        0x1
2255 #define G_SRC_CHSET_O16BIT_MASK_SFT                    (0x1 << 19)
2256 #define G_SRC_CHSET_CLR_IIR_HISTORY_SFT                17
2257 #define G_SRC_CHSET_CLR_IIR_HISTORY_MASK               0x1
2258 #define G_SRC_CHSET_CLR_IIR_HISTORY_MASK_SFT           (0x1 << 17)
2259 #define G_SRC_CHSET_IS_MONO_SFT                        16
2260 #define G_SRC_CHSET_IS_MONO_MASK                       0x1
2261 #define G_SRC_CHSET_IS_MONO_MASK_SFT                   (0x1 << 16)
2262 #define G_SRC_CHSET_IIR_EN_SFT                         11
2263 #define G_SRC_CHSET_IIR_EN_MASK                        0x1
2264 #define G_SRC_CHSET_IIR_EN_MASK_SFT                    (0x1 << 11)
2265 #define G_SRC_CHSET_IIR_STAGE_SFT                      8
2266 #define G_SRC_CHSET_IIR_STAGE_MASK                     0x7
2267 #define G_SRC_CHSET_IIR_STAGE_MASK_SFT                 (0x7 << 8)
2268 #define G_SRC_CHSET_STR_CLR_RU_SFT                     5
2269 #define G_SRC_CHSET_STR_CLR_RU_MASK                    0x1
2270 #define G_SRC_CHSET_STR_CLR_RU_MASK_SFT                (0x1 << 5)
2271 #define G_SRC_CHSET_ON_SFT                             2
2272 #define G_SRC_CHSET_ON_MASK                            0x1
2273 #define G_SRC_CHSET_ON_MASK_SFT                        (0x1 << 2)
2274 #define G_SRC_COEFF_SRAM_CTRL_SFT                      1
2275 #define G_SRC_COEFF_SRAM_CTRL_MASK                     0x1
2276 #define G_SRC_COEFF_SRAM_CTRL_MASK_SFT                 (0x1 << 1)
2277 #define G_SRC_ASM_ON_SFT                               0
2278 #define G_SRC_ASM_ON_MASK                              0x1
2279 #define G_SRC_ASM_ON_MASK_SFT                          (0x1 << 0)
2280 
2281 /* AFE_ADDA_DL_SDM_AUTO_RESET_CON */
2282 #define ADDA_SDM_AUTO_RESET_ONOFF_SFT                  31
2283 #define ADDA_SDM_AUTO_RESET_ONOFF_MASK                 0x1
2284 #define ADDA_SDM_AUTO_RESET_ONOFF_MASK_SFT             (0x1 << 31)
2285 
2286 /* AFE_ADDA_3RD_DAC_DL_SDM_AUTO_RESET_CON */
2287 #define ADDA_3RD_DAC_SDM_AUTO_RESET_ONOFF_SFT          31
2288 #define ADDA_3RD_DAC_SDM_AUTO_RESET_ONOFF_MASK         0x1
2289 #define ADDA_3RD_DAC_SDM_AUTO_RESET_ONOFF_MASK_SFT     (0x1 << 31)
2290 
2291 /* AFE_TINY_CONN0 */
2292 #define O_3_CFG_SFT                                    24
2293 #define O_3_CFG_MASK                                   0x1f
2294 #define O_3_CFG_MASK_SFT                               (0x1f << 24)
2295 #define O_2_CFG_SFT                                    16
2296 #define O_2_CFG_MASK                                   0x1f
2297 #define O_2_CFG_MASK_SFT                               (0x1f << 16)
2298 #define O_1_CFG_SFT                                    8
2299 #define O_1_CFG_MASK                                   0x1f
2300 #define O_1_CFG_MASK_SFT                               (0x1f << 8)
2301 #define O_0_CFG_SFT                                    0
2302 #define O_0_CFG_MASK                                   0x1f
2303 #define O_0_CFG_MASK_SFT                               (0x1f << 0)
2304 
2305 /* AFE_TINY_CONN5 */
2306 #define O_23_CFG_SFT                                    24
2307 #define O_23_CFG_MASK                                   0x1f
2308 #define O_23_CFG_MASK_SFT                               (0x1f << 24)
2309 #define O_22_CFG_SFT                                    16
2310 #define O_22_CFG_MASK                                   0x1f
2311 #define O_22_CFG_MASK_SFT                               (0x1f << 16)
2312 #define O_21_CFG_SFT                                    8
2313 #define O_21_CFG_MASK                                   0x1f
2314 #define O_21_CFG_MASK_SFT                               (0x1f << 8)
2315 #define O_20_CFG_SFT                                    0
2316 #define O_20_CFG_MASK                                   0x1f
2317 #define O_20_CFG_MASK_SFT                               (0x1f << 0)
2318 
2319 /* AFE_MEMIF_CONN */
2320 #define VUL6_USE_TINY_SFT                              8
2321 #define VUL6_USE_TINY_MASK                             1
2322 #define VUL6_USE_TINY_MASK_SFT                         (0x1 << 8)
2323 #define VUL5_USE_TINY_SFT                              7
2324 #define VUL5_USE_TINY_MASK                             1
2325 #define VUL5_USE_TINY_MASK_SFT                         (0x1 << 7)
2326 #define VUL4_USE_TINY_SFT                              6
2327 #define VUL4_USE_TINY_MASK                             1
2328 #define VUL4_USE_TINY_MASK_SFT                         (0x1 << 6)
2329 #define VUL3_USE_TINY_SFT                              5
2330 #define VUL3_USE_TINY_MASK                             1
2331 #define VUL3_USE_TINY_MASK_SFT                         (0x1 << 5)
2332 #define AWB2_USE_TINY_SFT                              4
2333 #define AWB2_USE_TINY_MASK                             1
2334 #define AWB2_USE_TINY_MASK_SFT                         (0x1 << 4)
2335 #define AWB_USE_TINY_SFT                               3
2336 #define AWB_USE_TINY_MASK                              1
2337 #define AWB_USE_TINY_MASK_SFT                          (0x1 << 3)
2338 #define VUL12_USE_TINY_SFT                             2
2339 #define VUL12_USE_TINY_MASK                            1
2340 #define VUL12_USE_TINY_MASK_SFT                        (0x1 << 2)
2341 #define VUL2_USE_TINY_SFT                              1
2342 #define VUL2_USE_TINY_MASK                             1
2343 #define VUL2_USE_TINY_MASK_SFT                         (0x1 << 1)
2344 #define VUL1_USE_TINY_SFT                              0
2345 #define VUL1_USE_TINY_MASK                             1
2346 #define VUL1_USE_TINY_MASK_SFT                         (0x1 << 0)
2347 
2348 /* AFE_ASRC_2CH_CON0 */
2349 #define CON0_CHSET_STR_CLR_SFT                         4
2350 #define CON0_CHSET_STR_CLR_MASK                        1
2351 #define CON0_CHSET_STR_CLR_MASK_SFT                    (0x1 << 4)
2352 #define CON0_ASM_ON_SFT                                0
2353 #define CON0_ASM_ON_MASK                               1
2354 #define CON0_ASM_ON_MASK_SFT                           (0x1 << 0)
2355 
2356 /* AFE_ASRC_2CH_CON5 */
2357 #define CALI_EN_SFT                                    0
2358 #define CALI_EN_MASK                                   1
2359 #define CALI_EN_MASK_SFT                               (0x1 << 0)
2360 
2361 #define AUDIO_TOP_CON0                                 0x0000
2362 #define AUDIO_TOP_CON1                                 0x0004
2363 #define AUDIO_TOP_CON2                                 0x0008
2364 #define AUDIO_TOP_CON3                                 0x000c
2365 #define AFE_DAC_CON0                                   0x0010
2366 #define AFE_I2S_CON                                    0x0018
2367 #define AFE_CONN0                                      0x0020
2368 #define AFE_CONN1                                      0x0024
2369 #define AFE_CONN2                                      0x0028
2370 #define AFE_CONN3                                      0x002c
2371 #define AFE_CONN4                                      0x0030
2372 #define AFE_I2S_CON1                                   0x0034
2373 #define AFE_I2S_CON2                                   0x0038
2374 #define AFE_I2S_CON3                                   0x0040
2375 #define AFE_CONN5                                      0x0044
2376 #define AFE_CONN_24BIT                                 0x0048
2377 #define AFE_DL1_CON0                                   0x004c
2378 #define AFE_DL1_BASE_MSB                               0x0050
2379 #define AFE_DL1_BASE                                   0x0054
2380 #define AFE_DL1_CUR_MSB                                0x0058
2381 #define AFE_DL1_CUR                                    0x005c
2382 #define AFE_DL1_END_MSB                                0x0060
2383 #define AFE_DL1_END                                    0x0064
2384 #define AFE_DL2_CON0                                   0x0068
2385 #define AFE_DL2_BASE_MSB                               0x006c
2386 #define AFE_DL2_BASE                                   0x0070
2387 #define AFE_DL2_CUR_MSB                                0x0074
2388 #define AFE_DL2_CUR                                    0x0078
2389 #define AFE_DL2_END_MSB                                0x007c
2390 #define AFE_DL2_END                                    0x0080
2391 #define AFE_DL3_CON0                                   0x0084
2392 #define AFE_DL3_BASE_MSB                               0x0088
2393 #define AFE_DL3_BASE                                   0x008c
2394 #define AFE_DL3_CUR_MSB                                0x0090
2395 #define AFE_DL3_CUR                                    0x0094
2396 #define AFE_DL3_END_MSB                                0x0098
2397 #define AFE_DL3_END                                    0x009c
2398 #define AFE_CONN6                                      0x00bc
2399 #define AFE_DL4_CON0                                   0x00cc
2400 #define AFE_DL4_BASE_MSB                               0x00d0
2401 #define AFE_DL4_BASE                                   0x00d4
2402 #define AFE_DL4_CUR_MSB                                0x00d8
2403 #define AFE_DL4_CUR                                    0x00dc
2404 #define AFE_DL4_END_MSB                                0x00e0
2405 #define AFE_DL4_END                                    0x00e4
2406 #define AFE_DL12_CON0                                  0x00e8
2407 #define AFE_DL12_BASE_MSB                              0x00ec
2408 #define AFE_DL12_BASE                                  0x00f0
2409 #define AFE_DL12_CUR_MSB                               0x00f4
2410 #define AFE_DL12_CUR                                   0x00f8
2411 #define AFE_DL12_END_MSB                               0x00fc
2412 #define AFE_DL12_END                                   0x0100
2413 #define AFE_ADDA_DL_SRC2_CON0                          0x0108
2414 #define AFE_ADDA_DL_SRC2_CON1                          0x010c
2415 #define AFE_ADDA_UL_SRC_CON0                           0x0114
2416 #define AFE_ADDA_UL_SRC_CON1                           0x0118
2417 #define AFE_ADDA_TOP_CON0                              0x0120
2418 #define AFE_ADDA_UL_DL_CON0                            0x0124
2419 #define AFE_ADDA_SRC_DEBUG                             0x012c
2420 #define AFE_ADDA_SRC_DEBUG_MON0                        0x0130
2421 #define AFE_ADDA_SRC_DEBUG_MON1                        0x0134
2422 #define AFE_ADDA_UL_SRC_MON0                           0x0148
2423 #define AFE_ADDA_UL_SRC_MON1                           0x014c
2424 #define AFE_SECURE_CON0                                0x0150
2425 #define AFE_SRAM_BOUND                                 0x0154
2426 #define AFE_SECURE_CON1                                0x0158
2427 #define AFE_SECURE_CONN0                               0x015c
2428 #define AFE_VUL_CON0                                   0x0170
2429 #define AFE_VUL_BASE_MSB                               0x0174
2430 #define AFE_VUL_BASE                                   0x0178
2431 #define AFE_VUL_CUR_MSB                                0x017c
2432 #define AFE_VUL_CUR                                    0x0180
2433 #define AFE_VUL_END_MSB                                0x0184
2434 #define AFE_VUL_END                                    0x0188
2435 #define AFE_ADDA_3RD_DAC_DL_SDM_AUTO_RESET_CON         0x018c
2436 #define AFE_ADDA_3RD_DAC_DL_SRC2_CON0                  0x0190
2437 #define AFE_ADDA_3RD_DAC_DL_SRC2_CON1                  0x0194
2438 #define AFE_ADDA_3RD_DAC_PREDIS_CON0                   0x01a0
2439 #define AFE_ADDA_3RD_DAC_PREDIS_CON1                   0x01a4
2440 #define AFE_ADDA_3RD_DAC_PREDIS_CON2                   0x01a8
2441 #define AFE_ADDA_3RD_DAC_PREDIS_CON3                   0x01ac
2442 #define AFE_ADDA_3RD_DAC_DL_SDM_DCCOMP_CON             0x01b0
2443 #define AFE_ADDA_3RD_DAC_DL_SDM_TEST                   0x01b4
2444 #define AFE_ADDA_3RD_DAC_DL_DC_COMP_CFG0               0x01b8
2445 #define AFE_ADDA_3RD_DAC_DL_DC_COMP_CFG1               0x01bc
2446 #define AFE_ADDA_3RD_DAC_DL_SDM_FIFO_MON               0x01c0
2447 #define AFE_ADDA_3RD_DAC_DL_SRC_LCH_MON                0x01c4
2448 #define AFE_ADDA_3RD_DAC_DL_SRC_RCH_MON                0x01c8
2449 #define AFE_ADDA_3RD_DAC_DL_SDM_OUT_MON                0x01cc
2450 #define AFE_SIDETONE_DEBUG                             0x01d0
2451 #define AFE_SIDETONE_MON                               0x01d4
2452 #define AFE_ADDA_3RD_DAC_DL_SDM_DITHER_CON             0x01d8
2453 #define AFE_SINEGEN_CON2                               0x01dc
2454 #define AFE_SIDETONE_CON0                              0x01e0
2455 #define AFE_SIDETONE_COEFF                             0x01e4
2456 #define AFE_SIDETONE_CON1                              0x01e8
2457 #define AFE_SIDETONE_GAIN                              0x01ec
2458 #define AFE_SINEGEN_CON0                               0x01f0
2459 #define AFE_I2S_MON2                                   0x01f8
2460 #define AFE_SINEGEN_CON_TDM                            0x01fc
2461 #define AFE_TOP_CON0                                   0x0200
2462 #define AFE_VUL2_CON0                                  0x020c
2463 #define AFE_VUL2_BASE_MSB                              0x0210
2464 #define AFE_VUL2_BASE                                  0x0214
2465 #define AFE_VUL2_CUR_MSB                               0x0218
2466 #define AFE_VUL2_CUR                                   0x021c
2467 #define AFE_VUL2_END_MSB                               0x0220
2468 #define AFE_VUL2_END                                   0x0224
2469 #define AFE_VUL3_CON0                                  0x0228
2470 #define AFE_VUL3_BASE_MSB                              0x022c
2471 #define AFE_VUL3_BASE                                  0x0230
2472 #define AFE_VUL3_CUR_MSB                               0x0234
2473 #define AFE_VUL3_CUR                                   0x0238
2474 #define AFE_VUL3_END_MSB                               0x023c
2475 #define AFE_VUL3_END                                   0x0240
2476 #define AFE_BUSY                                       0x0244
2477 #define AFE_BUS_CFG                                    0x0250
2478 #define AFE_ADDA_PREDIS_CON0                           0x0260
2479 #define AFE_ADDA_PREDIS_CON1                           0x0264
2480 #define AFE_I2S_MON                                    0x027c
2481 #define AFE_ADDA_IIR_COEF_02_01                        0x0290
2482 #define AFE_ADDA_IIR_COEF_04_03                        0x0294
2483 #define AFE_ADDA_IIR_COEF_06_05                        0x0298
2484 #define AFE_ADDA_IIR_COEF_08_07                        0x029c
2485 #define AFE_ADDA_IIR_COEF_10_09                        0x02a0
2486 #define AFE_IRQ_MCU_CON1                               0x02e4
2487 #define AFE_IRQ_MCU_CON2                               0x02e8
2488 #define AFE_DAC_MON                                    0x02ec
2489 #define AFE_IRQ_MCU_CON3                               0x02f0
2490 #define AFE_IRQ_MCU_CON4                               0x02f4
2491 #define AFE_IRQ_MCU_CNT0                               0x0300
2492 #define AFE_IRQ_MCU_CNT6                               0x0304
2493 #define AFE_IRQ_MCU_CNT8                               0x0308
2494 #define AFE_IRQ_MCU_DSP2_EN                            0x030c
2495 #define AFE_IRQ0_MCU_CNT_MON                           0x0310
2496 #define AFE_IRQ6_MCU_CNT_MON                           0x0314
2497 #define AFE_VUL4_CON0                                  0x0358
2498 #define AFE_VUL4_BASE_MSB                              0x035c
2499 #define AFE_VUL4_BASE                                  0x0360
2500 #define AFE_VUL4_CUR_MSB                               0x0364
2501 #define AFE_VUL4_CUR                                   0x0368
2502 #define AFE_VUL4_END_MSB                               0x036c
2503 #define AFE_VUL4_END                                   0x0370
2504 #define AFE_VUL12_CON0                                 0x0374
2505 #define AFE_VUL12_BASE_MSB                             0x0378
2506 #define AFE_VUL12_BASE                                 0x037c
2507 #define AFE_VUL12_CUR_MSB                              0x0380
2508 #define AFE_VUL12_CUR                                  0x0384
2509 #define AFE_VUL12_END_MSB                              0x0388
2510 #define AFE_VUL12_END                                  0x038c
2511 #define AFE_HDMI_CONN0                                 0x0390
2512 #define AFE_IRQ3_MCU_CNT_MON                           0x0398
2513 #define AFE_IRQ4_MCU_CNT_MON                           0x039c
2514 #define AFE_IRQ_MCU_CON0                               0x03a0
2515 #define AFE_IRQ_MCU_STATUS                             0x03a4
2516 #define AFE_IRQ_MCU_CLR                                0x03a8
2517 #define AFE_IRQ_MCU_CNT1                               0x03ac
2518 #define AFE_IRQ_MCU_CNT2                               0x03b0
2519 #define AFE_IRQ_MCU_EN                                 0x03b4
2520 #define AFE_IRQ_MCU_MON2                               0x03b8
2521 #define AFE_IRQ_MCU_CNT5                               0x03bc
2522 #define AFE_IRQ1_MCU_CNT_MON                           0x03c0
2523 #define AFE_IRQ2_MCU_CNT_MON                           0x03c4
2524 #define AFE_IRQ5_MCU_CNT_MON                           0x03cc
2525 #define AFE_IRQ_MCU_DSP_EN                             0x03d0
2526 #define AFE_IRQ_MCU_SCP_EN                             0x03d4
2527 #define AFE_IRQ_MCU_CNT7                               0x03dc
2528 #define AFE_IRQ7_MCU_CNT_MON                           0x03e0
2529 #define AFE_IRQ_MCU_CNT3                               0x03e4
2530 #define AFE_IRQ_MCU_CNT4                               0x03e8
2531 #define AFE_IRQ_MCU_CNT11                              0x03ec
2532 #define AFE_APLL1_TUNER_CFG                            0x03f0
2533 #define AFE_APLL2_TUNER_CFG                            0x03f4
2534 #define AFE_IRQ_MCU_MISS_CLR                           0x03f8
2535 #define AFE_CONN33                                     0x0408
2536 #define AFE_IRQ_MCU_CNT12                              0x040c
2537 #define AFE_GAIN1_CON0                                 0x0410
2538 #define AFE_GAIN1_CON1                                 0x0414
2539 #define AFE_GAIN1_CON2                                 0x0418
2540 #define AFE_GAIN1_CON3                                 0x041c
2541 #define AFE_CONN7                                      0x0420
2542 #define AFE_GAIN1_CUR                                  0x0424
2543 #define AFE_GAIN2_CON0                                 0x0428
2544 #define AFE_GAIN2_CON1                                 0x042c
2545 #define AFE_GAIN2_CON2                                 0x0430
2546 #define AFE_GAIN2_CON3                                 0x0434
2547 #define AFE_CONN8                                      0x0438
2548 #define AFE_GAIN2_CUR                                  0x043c
2549 #define AFE_CONN9                                      0x0440
2550 #define AFE_CONN10                                     0x0444
2551 #define AFE_CONN11                                     0x0448
2552 #define AFE_CONN12                                     0x044c
2553 #define AFE_CONN13                                     0x0450
2554 #define AFE_CONN14                                     0x0454
2555 #define AFE_CONN15                                     0x0458
2556 #define AFE_CONN16                                     0x045c
2557 #define AFE_CONN17                                     0x0460
2558 #define AFE_CONN18                                     0x0464
2559 #define AFE_CONN19                                     0x0468
2560 #define AFE_CONN20                                     0x046c
2561 #define AFE_CONN21                                     0x0470
2562 #define AFE_CONN22                                     0x0474
2563 #define AFE_CONN23                                     0x0478
2564 #define AFE_CONN24                                     0x047c
2565 #define AFE_CONN_RS                                    0x0494
2566 #define AFE_CONN_DI                                    0x0498
2567 #define AFE_CONN25                                     0x04b0
2568 #define AFE_CONN26                                     0x04b4
2569 #define AFE_CONN27                                     0x04b8
2570 #define AFE_CONN28                                     0x04bc
2571 #define AFE_CONN29                                     0x04c0
2572 #define AFE_CONN30                                     0x04c4
2573 #define AFE_CONN31                                     0x04c8
2574 #define AFE_CONN32                                     0x04cc
2575 #define AFE_SRAM_DELSEL_CON1                           0x04f4
2576 #define AFE_CONN56                                     0x0500
2577 #define AFE_CONN57                                     0x0504
2578 #define AFE_CONN56_1                                   0x0510
2579 #define AFE_CONN57_1                                   0x0514
2580 #define AFE_TINY_CONN2                                 0x0520
2581 #define AFE_TINY_CONN3                                 0x0524
2582 #define AFE_TINY_CONN4                                 0x0528
2583 #define AFE_TINY_CONN5                                 0x052c
2584 #define PCM_INTF_CON1                                  0x0530
2585 #define PCM_INTF_CON2                                  0x0538
2586 #define PCM2_INTF_CON                                  0x053c
2587 #define AFE_TDM_CON1                                   0x0548
2588 #define AFE_TDM_CON2                                   0x054c
2589 #define AFE_I2S_CON6                                   0x0564
2590 #define AFE_I2S_CON7                                   0x0568
2591 #define AFE_I2S_CON8                                   0x056c
2592 #define AFE_I2S_CON9                                   0x0570
2593 #define AFE_CONN34                                     0x0580
2594 #define FPGA_CFG0                                      0x05b0
2595 #define FPGA_CFG1                                      0x05b4
2596 #define FPGA_CFG2                                      0x05c0
2597 #define FPGA_CFG3                                      0x05c4
2598 #define AUDIO_TOP_DBG_CON                              0x05c8
2599 #define AUDIO_TOP_DBG_MON0                             0x05cc
2600 #define AUDIO_TOP_DBG_MON1                             0x05d0
2601 #define AFE_IRQ8_MCU_CNT_MON                           0x05e4
2602 #define AFE_IRQ11_MCU_CNT_MON                          0x05e8
2603 #define AFE_IRQ12_MCU_CNT_MON                          0x05ec
2604 #define AFE_IRQ_MCU_CNT9                               0x0600
2605 #define AFE_IRQ_MCU_CNT10                              0x0604
2606 #define AFE_IRQ_MCU_CNT13                              0x0608
2607 #define AFE_IRQ_MCU_CNT14                              0x060c
2608 #define AFE_IRQ_MCU_CNT15                              0x0610
2609 #define AFE_IRQ_MCU_CNT16                              0x0614
2610 #define AFE_IRQ_MCU_CNT17                              0x0618
2611 #define AFE_IRQ_MCU_CNT18                              0x061c
2612 #define AFE_IRQ_MCU_CNT19                              0x0620
2613 #define AFE_IRQ_MCU_CNT20                              0x0624
2614 #define AFE_IRQ_MCU_CNT21                              0x0628
2615 #define AFE_IRQ_MCU_CNT22                              0x062c
2616 #define AFE_IRQ_MCU_CNT23                              0x0630
2617 #define AFE_IRQ_MCU_CNT24                              0x0634
2618 #define AFE_IRQ_MCU_CNT25                              0x0638
2619 #define AFE_IRQ_MCU_CNT26                              0x063c
2620 #define AFE_IRQ_MCU_CNT31                              0x0640
2621 #define AFE_TINY_CONN6                                 0x0650
2622 #define AFE_TINY_CONN7                                 0x0654
2623 #define AFE_IRQ9_MCU_CNT_MON                           0x0660
2624 #define AFE_IRQ10_MCU_CNT_MON                          0x0664
2625 #define AFE_IRQ13_MCU_CNT_MON                          0x0668
2626 #define AFE_IRQ14_MCU_CNT_MON                          0x066c
2627 #define AFE_IRQ15_MCU_CNT_MON                          0x0670
2628 #define AFE_IRQ16_MCU_CNT_MON                          0x0674
2629 #define AFE_IRQ17_MCU_CNT_MON                          0x0678
2630 #define AFE_IRQ18_MCU_CNT_MON                          0x067c
2631 #define AFE_IRQ19_MCU_CNT_MON                          0x0680
2632 #define AFE_IRQ20_MCU_CNT_MON                          0x0684
2633 #define AFE_IRQ21_MCU_CNT_MON                          0x0688
2634 #define AFE_IRQ22_MCU_CNT_MON                          0x068c
2635 #define AFE_IRQ23_MCU_CNT_MON                          0x0690
2636 #define AFE_IRQ24_MCU_CNT_MON                          0x0694
2637 #define AFE_IRQ25_MCU_CNT_MON                          0x0698
2638 #define AFE_IRQ26_MCU_CNT_MON                          0x069c
2639 #define AFE_IRQ31_MCU_CNT_MON                          0x06a0
2640 #define AFE_GENERAL_REG0                               0x0800
2641 #define AFE_GENERAL_REG1                               0x0804
2642 #define AFE_GENERAL_REG2                               0x0808
2643 #define AFE_GENERAL_REG3                               0x080c
2644 #define AFE_GENERAL_REG4                               0x0810
2645 #define AFE_GENERAL_REG5                               0x0814
2646 #define AFE_GENERAL_REG6                               0x0818
2647 #define AFE_GENERAL_REG7                               0x081c
2648 #define AFE_GENERAL_REG8                               0x0820
2649 #define AFE_GENERAL_REG9                               0x0824
2650 #define AFE_GENERAL_REG10                              0x0828
2651 #define AFE_GENERAL_REG11                              0x082c
2652 #define AFE_GENERAL_REG12                              0x0830
2653 #define AFE_GENERAL_REG13                              0x0834
2654 #define AFE_GENERAL_REG14                              0x0838
2655 #define AFE_GENERAL_REG15                              0x083c
2656 #define AFE_CBIP_CFG0                                  0x0840
2657 #define AFE_CBIP_MON0                                  0x0844
2658 #define AFE_CBIP_SLV_MUX_MON0                          0x0848
2659 #define AFE_CBIP_SLV_DECODER_MON0                      0x084c
2660 #define AFE_ADDA6_MTKAIF_MON0                          0x0854
2661 #define AFE_ADDA6_MTKAIF_MON1                          0x0858
2662 #define AFE_AWB_CON0                                   0x085c
2663 #define AFE_AWB_BASE_MSB                               0x0860
2664 #define AFE_AWB_BASE                                   0x0864
2665 #define AFE_AWB_CUR_MSB                                0x0868
2666 #define AFE_AWB_CUR                                    0x086c
2667 #define AFE_AWB_END_MSB                                0x0870
2668 #define AFE_AWB_END                                    0x0874
2669 #define AFE_AWB2_CON0                                  0x0878
2670 #define AFE_AWB2_BASE_MSB                              0x087c
2671 #define AFE_AWB2_BASE                                  0x0880
2672 #define AFE_AWB2_CUR_MSB                               0x0884
2673 #define AFE_AWB2_CUR                                   0x0888
2674 #define AFE_AWB2_END_MSB                               0x088c
2675 #define AFE_AWB2_END                                   0x0890
2676 #define AFE_DAI_CON0                                   0x0894
2677 #define AFE_DAI_BASE_MSB                               0x0898
2678 #define AFE_DAI_BASE                                   0x089c
2679 #define AFE_DAI_CUR_MSB                                0x08a0
2680 #define AFE_DAI_CUR                                    0x08a4
2681 #define AFE_DAI_END_MSB                                0x08a8
2682 #define AFE_DAI_END                                    0x08ac
2683 #define AFE_DAI2_CON0                                  0x08b0
2684 #define AFE_DAI2_BASE_MSB                              0x08b4
2685 #define AFE_DAI2_BASE                                  0x08b8
2686 #define AFE_DAI2_CUR_MSB                               0x08bc
2687 #define AFE_DAI2_CUR                                   0x08c0
2688 #define AFE_DAI2_END_MSB                               0x08c4
2689 #define AFE_DAI2_END                                   0x08c8
2690 #define AFE_MEMIF_CON0                                 0x08cc
2691 #define AFE_CONN0_1                                    0x0900
2692 #define AFE_CONN1_1                                    0x0904
2693 #define AFE_CONN2_1                                    0x0908
2694 #define AFE_CONN3_1                                    0x090c
2695 #define AFE_CONN4_1                                    0x0910
2696 #define AFE_CONN5_1                                    0x0914
2697 #define AFE_CONN6_1                                    0x0918
2698 #define AFE_CONN7_1                                    0x091c
2699 #define AFE_CONN8_1                                    0x0920
2700 #define AFE_CONN9_1                                    0x0924
2701 #define AFE_CONN10_1                                   0x0928
2702 #define AFE_CONN11_1                                   0x092c
2703 #define AFE_CONN12_1                                   0x0930
2704 #define AFE_CONN13_1                                   0x0934
2705 #define AFE_CONN14_1                                   0x0938
2706 #define AFE_CONN15_1                                   0x093c
2707 #define AFE_CONN16_1                                   0x0940
2708 #define AFE_CONN17_1                                   0x0944
2709 #define AFE_CONN18_1                                   0x0948
2710 #define AFE_CONN19_1                                   0x094c
2711 #define AFE_CONN20_1                                   0x0950
2712 #define AFE_CONN21_1                                   0x0954
2713 #define AFE_CONN22_1                                   0x0958
2714 #define AFE_CONN23_1                                   0x095c
2715 #define AFE_CONN24_1                                   0x0960
2716 #define AFE_CONN25_1                                   0x0964
2717 #define AFE_CONN26_1                                   0x0968
2718 #define AFE_CONN27_1                                   0x096c
2719 #define AFE_CONN28_1                                   0x0970
2720 #define AFE_CONN29_1                                   0x0974
2721 #define AFE_CONN30_1                                   0x0978
2722 #define AFE_CONN31_1                                   0x097c
2723 #define AFE_CONN32_1                                   0x0980
2724 #define AFE_CONN33_1                                   0x0984
2725 #define AFE_CONN34_1                                   0x0988
2726 #define AFE_CONN_RS_1                                  0x098c
2727 #define AFE_CONN_DI_1                                  0x0990
2728 #define AFE_CONN_24BIT_1                               0x0994
2729 #define AFE_CONN_REG                                   0x0998
2730 #define AFE_CONN35                                     0x09a0
2731 #define AFE_CONN36                                     0x09a4
2732 #define AFE_CONN37                                     0x09a8
2733 #define AFE_CONN38                                     0x09ac
2734 #define AFE_CONN35_1                                   0x09b0
2735 #define AFE_CONN36_1                                   0x09b4
2736 #define AFE_CONN37_1                                   0x09b8
2737 #define AFE_CONN38_1                                   0x09bc
2738 #define AFE_CONN39                                     0x09c0
2739 #define AFE_CONN40                                     0x09c4
2740 #define AFE_CONN41                                     0x09c8
2741 #define AFE_CONN42                                     0x09cc
2742 #define AFE_SGEN_CON_SGEN32                            0x09d0
2743 #define AFE_CONN39_1                                   0x09e0
2744 #define AFE_CONN40_1                                   0x09e4
2745 #define AFE_CONN41_1                                   0x09e8
2746 #define AFE_CONN42_1                                   0x09ec
2747 #define AFE_I2S_CON4                                   0x09f8
2748 #define AFE_ADDA6_TOP_CON0                             0x0a80
2749 #define AFE_ADDA6_UL_SRC_CON0                          0x0a84
2750 #define AFE_ADDA6_UL_SRC_CON1                          0x0a88
2751 #define AFE_ADDA6_SRC_DEBUG                            0x0a8c
2752 #define AFE_ADDA6_SRC_DEBUG_MON0                       0x0a90
2753 #define AFE_ADDA6_ULCF_CFG_02_01                       0x0aa0
2754 #define AFE_ADDA6_ULCF_CFG_04_03                       0x0aa4
2755 #define AFE_ADDA6_ULCF_CFG_06_05                       0x0aa8
2756 #define AFE_ADDA6_ULCF_CFG_08_07                       0x0aac
2757 #define AFE_ADDA6_ULCF_CFG_10_09                       0x0ab0
2758 #define AFE_ADDA6_ULCF_CFG_12_11                       0x0ab4
2759 #define AFE_ADDA6_ULCF_CFG_14_13                       0x0ab8
2760 #define AFE_ADDA6_ULCF_CFG_16_15                       0x0abc
2761 #define AFE_ADDA6_ULCF_CFG_18_17                       0x0ac0
2762 #define AFE_ADDA6_ULCF_CFG_20_19                       0x0ac4
2763 #define AFE_ADDA6_ULCF_CFG_22_21                       0x0ac8
2764 #define AFE_ADDA6_ULCF_CFG_24_23                       0x0acc
2765 #define AFE_ADDA6_ULCF_CFG_26_25                       0x0ad0
2766 #define AFE_ADDA6_ULCF_CFG_28_27                       0x0ad4
2767 #define AFE_ADDA6_ULCF_CFG_30_29                       0x0ad8
2768 #define AFE_ADD6A_UL_SRC_MON0                          0x0ae4
2769 #define AFE_ADDA6_UL_SRC_MON1                          0x0ae8
2770 #define AFE_TINY_CONN0                                 0x0af0
2771 #define AFE_TINY_CONN1                                 0x0af4
2772 #define AFE_CONN43                                     0x0af8
2773 #define AFE_CONN43_1                                   0x0afc
2774 #define AFE_MOD_DAI_CON0                               0x0b00
2775 #define AFE_MOD_DAI_BASE_MSB                           0x0b04
2776 #define AFE_MOD_DAI_BASE                               0x0b08
2777 #define AFE_MOD_DAI_CUR_MSB                            0x0b0c
2778 #define AFE_MOD_DAI_CUR                                0x0b10
2779 #define AFE_MOD_DAI_END_MSB                            0x0b14
2780 #define AFE_MOD_DAI_END                                0x0b18
2781 #define AFE_HDMI_OUT_CON0                              0x0b1c
2782 #define AFE_HDMI_OUT_BASE_MSB                          0x0b20
2783 #define AFE_HDMI_OUT_BASE                              0x0b24
2784 #define AFE_HDMI_OUT_CUR_MSB                           0x0b28
2785 #define AFE_HDMI_OUT_CUR                               0x0b2c
2786 #define AFE_HDMI_OUT_END_MSB                           0x0b30
2787 #define AFE_HDMI_OUT_END                               0x0b34
2788 #define AFE_AWB_RCH_MON                                0x0b70
2789 #define AFE_AWB_LCH_MON                                0x0b74
2790 #define AFE_VUL_RCH_MON                                0x0b78
2791 #define AFE_VUL_LCH_MON                                0x0b7c
2792 #define AFE_VUL12_RCH_MON                              0x0b80
2793 #define AFE_VUL12_LCH_MON                              0x0b84
2794 #define AFE_VUL2_RCH_MON                               0x0b88
2795 #define AFE_VUL2_LCH_MON                               0x0b8c
2796 #define AFE_DAI_DATA_MON                               0x0b90
2797 #define AFE_MOD_DAI_DATA_MON                           0x0b94
2798 #define AFE_DAI2_DATA_MON                              0x0b98
2799 #define AFE_AWB2_RCH_MON                               0x0b9c
2800 #define AFE_AWB2_LCH_MON                               0x0ba0
2801 #define AFE_VUL3_RCH_MON                               0x0ba4
2802 #define AFE_VUL3_LCH_MON                               0x0ba8
2803 #define AFE_VUL4_RCH_MON                               0x0bac
2804 #define AFE_VUL4_LCH_MON                               0x0bb0
2805 #define AFE_VUL5_RCH_MON                               0x0bb4
2806 #define AFE_VUL5_LCH_MON                               0x0bb8
2807 #define AFE_VUL6_RCH_MON                               0x0bbc
2808 #define AFE_VUL6_LCH_MON                               0x0bc0
2809 #define AFE_DL1_RCH_MON                                0x0bc4
2810 #define AFE_DL1_LCH_MON                                0x0bc8
2811 #define AFE_DL2_RCH_MON                                0x0bcc
2812 #define AFE_DL2_LCH_MON                                0x0bd0
2813 #define AFE_DL12_RCH1_MON                              0x0bd4
2814 #define AFE_DL12_LCH1_MON                              0x0bd8
2815 #define AFE_DL12_RCH2_MON                              0x0bdc
2816 #define AFE_DL12_LCH2_MON                              0x0be0
2817 #define AFE_DL3_RCH_MON                                0x0be4
2818 #define AFE_DL3_LCH_MON                                0x0be8
2819 #define AFE_DL4_RCH_MON                                0x0bec
2820 #define AFE_DL4_LCH_MON                                0x0bf0
2821 #define AFE_DL5_RCH_MON                                0x0bf4
2822 #define AFE_DL5_LCH_MON                                0x0bf8
2823 #define AFE_DL6_RCH_MON                                0x0bfc
2824 #define AFE_DL6_LCH_MON                                0x0c00
2825 #define AFE_DL7_RCH_MON                                0x0c04
2826 #define AFE_DL7_LCH_MON                                0x0c08
2827 #define AFE_DL8_RCH_MON                                0x0c0c
2828 #define AFE_DL8_LCH_MON                                0x0c10
2829 #define AFE_VUL5_CON0                                  0x0c14
2830 #define AFE_VUL5_BASE_MSB                              0x0c18
2831 #define AFE_VUL5_BASE                                  0x0c1c
2832 #define AFE_VUL5_CUR_MSB                               0x0c20
2833 #define AFE_VUL5_CUR                                   0x0c24
2834 #define AFE_VUL5_END_MSB                               0x0c28
2835 #define AFE_VUL5_END                                   0x0c2c
2836 #define AFE_VUL6_CON0                                  0x0c30
2837 #define AFE_VUL6_BASE_MSB                              0x0c34
2838 #define AFE_VUL6_BASE                                  0x0c38
2839 #define AFE_VUL6_CUR_MSB                               0x0c3c
2840 #define AFE_VUL6_CUR                                   0x0c40
2841 #define AFE_VUL6_END_MSB                               0x0c44
2842 #define AFE_VUL6_END                                   0x0c48
2843 #define AFE_ADDA_DL_SDM_DCCOMP_CON                     0x0c50
2844 #define AFE_ADDA_DL_SDM_TEST                           0x0c54
2845 #define AFE_ADDA_DL_DC_COMP_CFG0                       0x0c58
2846 #define AFE_ADDA_DL_DC_COMP_CFG1                       0x0c5c
2847 #define AFE_ADDA_DL_SDM_FIFO_MON                       0x0c60
2848 #define AFE_ADDA_DL_SRC_LCH_MON                        0x0c64
2849 #define AFE_ADDA_DL_SRC_RCH_MON                        0x0c68
2850 #define AFE_ADDA_DL_SDM_OUT_MON                        0x0c6c
2851 #define AFE_ADDA_DL_SDM_DITHER_CON                     0x0c70
2852 #define AFE_ADDA_DL_SDM_AUTO_RESET_CON                 0x0c74
2853 #define AFE_CONNSYS_I2S_CON                            0x0c78
2854 #define AFE_CONNSYS_I2S_MON                            0x0c7c
2855 #define AFE_ASRC_2CH_CON0                              0x0c80
2856 #define AFE_ASRC_2CH_CON1                              0x0c84
2857 #define AFE_ASRC_2CH_CON2                              0x0c88
2858 #define AFE_ASRC_2CH_CON3                              0x0c8c
2859 #define AFE_ASRC_2CH_CON4                              0x0c90
2860 #define AFE_ASRC_2CH_CON5                              0x0c94
2861 #define AFE_ASRC_2CH_CON6                              0x0c98
2862 #define AFE_ASRC_2CH_CON7                              0x0c9c
2863 #define AFE_ASRC_2CH_CON8                              0x0ca0
2864 #define AFE_ASRC_2CH_CON9                              0x0ca4
2865 #define AFE_ASRC_2CH_CON10                             0x0ca8
2866 #define AFE_ASRC_2CH_CON12                             0x0cb0
2867 #define AFE_ASRC_2CH_CON13                             0x0cb4
2868 #define AFE_ADDA6_IIR_COEF_02_01                       0x0ce0
2869 #define AFE_ADDA6_IIR_COEF_04_03                       0x0ce4
2870 #define AFE_ADDA6_IIR_COEF_06_05                       0x0ce8
2871 #define AFE_ADDA6_IIR_COEF_08_07                       0x0cec
2872 #define AFE_ADDA6_IIR_COEF_10_09                       0x0cf0
2873 #define AFE_SE_PROT_SIDEBAND                           0x0d38
2874 #define AFE_SE_DOMAIN_SIDEBAND0                        0x0d3c
2875 #define AFE_ADDA_PREDIS_CON2                           0x0d40
2876 #define AFE_ADDA_PREDIS_CON3                           0x0d44
2877 #define AFE_MEMIF_CONN                                 0x0d50
2878 #define AFE_SE_DOMAIN_SIDEBAND1                        0x0d54
2879 #define AFE_SE_DOMAIN_SIDEBAND2                        0x0d58
2880 #define AFE_SE_DOMAIN_SIDEBAND3                        0x0d5c
2881 #define AFE_CONN44                                     0x0d70
2882 #define AFE_CONN45                                     0x0d74
2883 #define AFE_CONN46                                     0x0d78
2884 #define AFE_CONN47                                     0x0d7c
2885 #define AFE_CONN44_1                                   0x0d80
2886 #define AFE_CONN45_1                                   0x0d84
2887 #define AFE_CONN46_1                                   0x0d88
2888 #define AFE_CONN47_1                                   0x0d8c
2889 #define AFE_DL9_CUR_MSB                                0x0dc0
2890 #define AFE_DL9_CUR                                    0x0dc4
2891 #define AFE_DL9_END_MSB                                0x0dc8
2892 #define AFE_DL9_END                                    0x0dcc
2893 #define AFE_HD_ENGEN_ENABLE                            0x0dd0
2894 #define AFE_ADDA_DL_NLE_FIFO_MON                       0x0dfc
2895 #define AFE_ADDA_MTKAIF_CFG0                           0x0e00
2896 #define AFE_ADDA_MTKAIF_SYNCWORD_CFG                   0x0e14
2897 #define AFE_ADDA_MTKAIF_RX_CFG0                        0x0e20
2898 #define AFE_ADDA_MTKAIF_RX_CFG1                        0x0e24
2899 #define AFE_ADDA_MTKAIF_RX_CFG2                        0x0e28
2900 #define AFE_ADDA_MTKAIF_MON0                           0x0e34
2901 #define AFE_ADDA_MTKAIF_MON1                           0x0e38
2902 #define AFE_AUD_PAD_TOP                                0x0e40
2903 #define AFE_DL_NLE_R_CFG0                              0x0e44
2904 #define AFE_DL_NLE_R_CFG1                              0x0e48
2905 #define AFE_DL_NLE_L_CFG0                              0x0e4c
2906 #define AFE_DL_NLE_L_CFG1                              0x0e50
2907 #define AFE_DL_NLE_R_MON0                              0x0e54
2908 #define AFE_DL_NLE_R_MON1                              0x0e58
2909 #define AFE_DL_NLE_R_MON2                              0x0e5c
2910 #define AFE_DL_NLE_L_MON0                              0x0e60
2911 #define AFE_DL_NLE_L_MON1                              0x0e64
2912 #define AFE_DL_NLE_L_MON2                              0x0e68
2913 #define AFE_DL_NLE_GAIN_CFG0                           0x0e6c
2914 #define AFE_ADDA6_MTKAIF_CFG0                          0x0e70
2915 #define AFE_ADDA6_MTKAIF_RX_CFG0                       0x0e74
2916 #define AFE_ADDA6_MTKAIF_RX_CFG1                       0x0e78
2917 #define AFE_ADDA6_MTKAIF_RX_CFG2                       0x0e7c
2918 #define AFE_GENERAL1_ASRC_2CH_CON0                     0x0e80
2919 #define AFE_GENERAL1_ASRC_2CH_CON1                     0x0e84
2920 #define AFE_GENERAL1_ASRC_2CH_CON2                     0x0e88
2921 #define AFE_GENERAL1_ASRC_2CH_CON3                     0x0e8c
2922 #define AFE_GENERAL1_ASRC_2CH_CON4                     0x0e90
2923 #define AFE_GENERAL1_ASRC_2CH_CON5                     0x0e94
2924 #define AFE_GENERAL1_ASRC_2CH_CON6                     0x0e98
2925 #define AFE_GENERAL1_ASRC_2CH_CON7                     0x0e9c
2926 #define AFE_GENERAL1_ASRC_2CH_CON8                     0x0ea0
2927 #define AFE_GENERAL1_ASRC_2CH_CON9                     0x0ea4
2928 #define AFE_GENERAL1_ASRC_2CH_CON10                    0x0ea8
2929 #define AFE_GENERAL1_ASRC_2CH_CON12                    0x0eb0
2930 #define AFE_GENERAL1_ASRC_2CH_CON13                    0x0eb4
2931 #define GENERAL_ASRC_MODE                              0x0eb8
2932 #define GENERAL_ASRC_EN_ON                             0x0ebc
2933 #define AFE_CONN48                                     0x0ec0
2934 #define AFE_CONN49                                     0x0ec4
2935 #define AFE_CONN50                                     0x0ec8
2936 #define AFE_CONN51                                     0x0ecc
2937 #define AFE_CONN52                                     0x0ed0
2938 #define AFE_CONN53                                     0x0ed4
2939 #define AFE_CONN54                                     0x0ed8
2940 #define AFE_CONN55                                     0x0edc
2941 #define AFE_CONN48_1                                   0x0ee0
2942 #define AFE_CONN49_1                                   0x0ee4
2943 #define AFE_CONN50_1                                   0x0ee8
2944 #define AFE_CONN51_1                                   0x0eec
2945 #define AFE_CONN52_1                                   0x0ef0
2946 #define AFE_CONN53_1                                   0x0ef4
2947 #define AFE_CONN54_1                                   0x0ef8
2948 #define AFE_CONN55_1                                   0x0efc
2949 #define AFE_GENERAL2_ASRC_2CH_CON0                     0x0f00
2950 #define AFE_GENERAL2_ASRC_2CH_CON1                     0x0f04
2951 #define AFE_GENERAL2_ASRC_2CH_CON2                     0x0f08
2952 #define AFE_GENERAL2_ASRC_2CH_CON3                     0x0f0c
2953 #define AFE_GENERAL2_ASRC_2CH_CON4                     0x0f10
2954 #define AFE_GENERAL2_ASRC_2CH_CON5                     0x0f14
2955 #define AFE_GENERAL2_ASRC_2CH_CON6                     0x0f18
2956 #define AFE_GENERAL2_ASRC_2CH_CON7                     0x0f1c
2957 #define AFE_GENERAL2_ASRC_2CH_CON8                     0x0f20
2958 #define AFE_GENERAL2_ASRC_2CH_CON9                     0x0f24
2959 #define AFE_GENERAL2_ASRC_2CH_CON10                    0x0f28
2960 #define AFE_GENERAL2_ASRC_2CH_CON12                    0x0f30
2961 #define AFE_GENERAL2_ASRC_2CH_CON13                    0x0f34
2962 #define AFE_DL9_RCH_MON                                0x0f38
2963 #define AFE_DL9_LCH_MON                                0x0f3c
2964 #define AFE_DL5_CON0                                   0x0f4c
2965 #define AFE_DL5_BASE_MSB                               0x0f50
2966 #define AFE_DL5_BASE                                   0x0f54
2967 #define AFE_DL5_CUR_MSB                                0x0f58
2968 #define AFE_DL5_CUR                                    0x0f5c
2969 #define AFE_DL5_END_MSB                                0x0f60
2970 #define AFE_DL5_END                                    0x0f64
2971 #define AFE_DL6_CON0                                   0x0f68
2972 #define AFE_DL6_BASE_MSB                               0x0f6c
2973 #define AFE_DL6_BASE                                   0x0f70
2974 #define AFE_DL6_CUR_MSB                                0x0f74
2975 #define AFE_DL6_CUR                                    0x0f78
2976 #define AFE_DL6_END_MSB                                0x0f7c
2977 #define AFE_DL6_END                                    0x0f80
2978 #define AFE_DL7_CON0                                   0x0f84
2979 #define AFE_DL7_BASE_MSB                               0x0f88
2980 #define AFE_DL7_BASE                                   0x0f8c
2981 #define AFE_DL7_CUR_MSB                                0x0f90
2982 #define AFE_DL7_CUR                                    0x0f94
2983 #define AFE_DL7_END_MSB                                0x0f98
2984 #define AFE_DL7_END                                    0x0f9c
2985 #define AFE_DL8_CON0                                   0x0fa0
2986 #define AFE_DL8_BASE_MSB                               0x0fa4
2987 #define AFE_DL8_BASE                                   0x0fa8
2988 #define AFE_DL8_CUR_MSB                                0x0fac
2989 #define AFE_DL8_CUR                                    0x0fb0
2990 #define AFE_DL8_END_MSB                                0x0fb4
2991 #define AFE_DL8_END                                    0x0fb8
2992 #define AFE_DL9_CON0                                   0x0fbc
2993 #define AFE_DL9_BASE_MSB                               0x0fc0
2994 #define AFE_DL9_BASE                                   0x0fc4
2995 #define AFE_SE_SECURE_CON                              0x1004
2996 #define AFE_PROT_SIDEBAND_MON                          0x1008
2997 #define AFE_DOMAIN_SIDEBAND0_MON                       0x100c
2998 #define AFE_DOMAIN_SIDEBAND1_MON                       0x1010
2999 #define AFE_DOMAIN_SIDEBAND2_MON                       0x1014
3000 #define AFE_DOMAIN_SIDEBAND3_MON                       0x1018
3001 #define AFE_SECURE_MASK_CONN0                          0x1020
3002 #define AFE_SECURE_MASK_CONN1                          0x1024
3003 #define AFE_SECURE_MASK_CONN2                          0x1028
3004 #define AFE_SECURE_MASK_CONN3                          0x102c
3005 #define AFE_SECURE_MASK_CONN4                          0x1030
3006 #define AFE_SECURE_MASK_CONN5                          0x1034
3007 #define AFE_SECURE_MASK_CONN6                          0x1038
3008 #define AFE_SECURE_MASK_CONN7                          0x103c
3009 #define AFE_SECURE_MASK_CONN8                          0x1040
3010 #define AFE_SECURE_MASK_CONN9                          0x1044
3011 #define AFE_SECURE_MASK_CONN10                         0x1048
3012 #define AFE_SECURE_MASK_CONN11                         0x104c
3013 #define AFE_SECURE_MASK_CONN12                         0x1050
3014 #define AFE_SECURE_MASK_CONN13                         0x1054
3015 #define AFE_SECURE_MASK_CONN14                         0x1058
3016 #define AFE_SECURE_MASK_CONN15                         0x105c
3017 #define AFE_SECURE_MASK_CONN16                         0x1060
3018 #define AFE_SECURE_MASK_CONN17                         0x1064
3019 #define AFE_SECURE_MASK_CONN18                         0x1068
3020 #define AFE_SECURE_MASK_CONN19                         0x106c
3021 #define AFE_SECURE_MASK_CONN20                         0x1070
3022 #define AFE_SECURE_MASK_CONN21                         0x1074
3023 #define AFE_SECURE_MASK_CONN22                         0x1078
3024 #define AFE_SECURE_MASK_CONN23                         0x107c
3025 #define AFE_SECURE_MASK_CONN24                         0x1080
3026 #define AFE_SECURE_MASK_CONN25                         0x1084
3027 #define AFE_SECURE_MASK_CONN26                         0x1088
3028 #define AFE_SECURE_MASK_CONN27                         0x108c
3029 #define AFE_SECURE_MASK_CONN28                         0x1090
3030 #define AFE_SECURE_MASK_CONN29                         0x1094
3031 #define AFE_SECURE_MASK_CONN30                         0x1098
3032 #define AFE_SECURE_MASK_CONN31                         0x109c
3033 #define AFE_SECURE_MASK_CONN32                         0x10a0
3034 #define AFE_SECURE_MASK_CONN33                         0x10a4
3035 #define AFE_SECURE_MASK_CONN34                         0x10a8
3036 #define AFE_SECURE_MASK_CONN35                         0x10ac
3037 #define AFE_SECURE_MASK_CONN36                         0x10b0
3038 #define AFE_SECURE_MASK_CONN37                         0x10b4
3039 #define AFE_SECURE_MASK_CONN38                         0x10b8
3040 #define AFE_SECURE_MASK_CONN39                         0x10bc
3041 #define AFE_SECURE_MASK_CONN40                         0x10c0
3042 #define AFE_SECURE_MASK_CONN41                         0x10c4
3043 #define AFE_SECURE_MASK_CONN42                         0x10c8
3044 #define AFE_SECURE_MASK_CONN43                         0x10cc
3045 #define AFE_SECURE_MASK_CONN44                         0x10d0
3046 #define AFE_SECURE_MASK_CONN45                         0x10d4
3047 #define AFE_SECURE_MASK_CONN46                         0x10d8
3048 #define AFE_SECURE_MASK_CONN47                         0x10dc
3049 #define AFE_SECURE_MASK_CONN48                         0x10e0
3050 #define AFE_SECURE_MASK_CONN49                         0x10e4
3051 #define AFE_SECURE_MASK_CONN50                         0x10e8
3052 #define AFE_SECURE_MASK_CONN51                         0x10ec
3053 #define AFE_SECURE_MASK_CONN52                         0x10f0
3054 #define AFE_SECURE_MASK_CONN53                         0x10f4
3055 #define AFE_SECURE_MASK_CONN54                         0x10f8
3056 #define AFE_SECURE_MASK_CONN55                         0x10fc
3057 #define AFE_SECURE_MASK_CONN56                         0x1100
3058 #define AFE_SECURE_MASK_CONN57                         0x1104
3059 #define AFE_SECURE_MASK_CONN0_1                        0x1108
3060 #define AFE_SECURE_MASK_CONN1_1                        0x110c
3061 #define AFE_SECURE_MASK_CONN2_1                        0x1110
3062 #define AFE_SECURE_MASK_CONN3_1                        0x1114
3063 #define AFE_SECURE_MASK_CONN4_1                        0x1118
3064 #define AFE_SECURE_MASK_CONN5_1                        0x111c
3065 #define AFE_SECURE_MASK_CONN6_1                        0x1120
3066 #define AFE_SECURE_MASK_CONN7_1                        0x1124
3067 #define AFE_SECURE_MASK_CONN8_1                        0x1128
3068 #define AFE_SECURE_MASK_CONN9_1                        0x112c
3069 #define AFE_SECURE_MASK_CONN10_1                       0x1130
3070 #define AFE_SECURE_MASK_CONN11_1                       0x1134
3071 #define AFE_SECURE_MASK_CONN12_1                       0x1138
3072 #define AFE_SECURE_MASK_CONN13_1                       0x113c
3073 #define AFE_SECURE_MASK_CONN14_1                       0x1140
3074 #define AFE_SECURE_MASK_CONN15_1                       0x1144
3075 #define AFE_SECURE_MASK_CONN16_1                       0x1148
3076 #define AFE_SECURE_MASK_CONN17_1                       0x114c
3077 #define AFE_SECURE_MASK_CONN18_1                       0x1150
3078 #define AFE_SECURE_MASK_CONN19_1                       0x1154
3079 #define AFE_SECURE_MASK_CONN20_1                       0x1158
3080 #define AFE_SECURE_MASK_CONN21_1                       0x115c
3081 #define AFE_SECURE_MASK_CONN22_1                       0x1160
3082 #define AFE_SECURE_MASK_CONN23_1                       0x1164
3083 #define AFE_SECURE_MASK_CONN24_1                       0x1168
3084 #define AFE_SECURE_MASK_CONN25_1                       0x116c
3085 #define AFE_SECURE_MASK_CONN26_1                       0x1170
3086 #define AFE_SECURE_MASK_CONN27_1                       0x1174
3087 #define AFE_SECURE_MASK_CONN28_1                       0x1178
3088 #define AFE_SECURE_MASK_CONN29_1                       0x117c
3089 #define AFE_SECURE_MASK_CONN30_1                       0x1180
3090 #define AFE_SECURE_MASK_CONN31_1                       0x1184
3091 #define AFE_SECURE_MASK_CONN32_1                       0x1188
3092 #define AFE_SECURE_MASK_CONN33_1                       0x118c
3093 #define AFE_SECURE_MASK_CONN34_1                       0x1190
3094 #define AFE_SECURE_MASK_CONN35_1                       0x1194
3095 #define AFE_SECURE_MASK_CONN36_1                       0x1198
3096 #define AFE_SECURE_MASK_CONN37_1                       0x119c
3097 #define AFE_SECURE_MASK_CONN38_1                       0x11a0
3098 #define AFE_SECURE_MASK_CONN39_1                       0x11a4
3099 #define AFE_SECURE_MASK_CONN40_1                       0x11a8
3100 #define AFE_SECURE_MASK_CONN41_1                       0x11ac
3101 #define AFE_SECURE_MASK_CONN42_1                       0x11b0
3102 #define AFE_SECURE_MASK_CONN43_1                       0x11b4
3103 #define AFE_SECURE_MASK_CONN44_1                       0x11b8
3104 #define AFE_SECURE_MASK_CONN45_1                       0x11bc
3105 #define AFE_SECURE_MASK_CONN46_1                       0x11c0
3106 #define AFE_SECURE_MASK_CONN47_1                       0x11c4
3107 #define AFE_SECURE_MASK_CONN48_1                       0x11c8
3108 #define AFE_SECURE_MASK_CONN49_1                       0x11cc
3109 #define AFE_SECURE_MASK_CONN50_1                       0x11d0
3110 #define AFE_SECURE_MASK_CONN51_1                       0x11d4
3111 #define AFE_SECURE_MASK_CONN52_1                       0x11d8
3112 #define AFE_SECURE_MASK_CONN53_1                       0x11dc
3113 #define AFE_SECURE_MASK_CONN54_1                       0x11e0
3114 #define AFE_SECURE_MASK_CONN55_1                       0x11e4
3115 #define AFE_SECURE_MASK_CONN56_1                       0x11e8
3116 #define AFE_SECURE_MASK_TINY_CONN0                     0x1200
3117 #define AFE_SECURE_MASK_TINY_CONN1                     0x1204
3118 #define AFE_SECURE_MASK_TINY_CONN2                     0x1208
3119 #define AFE_SECURE_MASK_TINY_CONN3                     0x120c
3120 #define AFE_SECURE_MASK_TINY_CONN4                     0x1210
3121 #define AFE_SECURE_MASK_TINY_CONN5                     0x1214
3122 #define AFE_SECURE_MASK_TINY_CONN6                     0x1218
3123 #define AFE_SECURE_MASK_TINY_CONN7                     0x121c
3124 
3125 #define AFE_MAX_REGISTER AFE_SECURE_MASK_TINY_CONN7
3126 
3127 #define AFE_IRQ_STATUS_BITS 0x87FFFFFF
3128 #define AFE_IRQ_CNT_SHIFT 0
3129 #define AFE_IRQ_CNT_MASK 0x3ffff
3130 
3131 #endif
3132