1
2
3
4
5
6
7
8 #ifndef __LINUX_MFD_WM8400_AUDIO_H
9 #define __LINUX_MFD_WM8400_AUDIO_H
10
11 #include <linux/mfd/wm8400-audio.h>
12
13
14
15
16 #define WM8400_CODEC_ENA 0x8000
17 #define WM8400_CODEC_ENA_MASK 0x8000
18 #define WM8400_CODEC_ENA_SHIFT 15
19 #define WM8400_CODEC_ENA_WIDTH 1
20 #define WM8400_SYSCLK_ENA 0x4000
21 #define WM8400_SYSCLK_ENA_MASK 0x4000
22 #define WM8400_SYSCLK_ENA_SHIFT 14
23 #define WM8400_SYSCLK_ENA_WIDTH 1
24 #define WM8400_SPK_MIX_ENA 0x2000
25 #define WM8400_SPK_MIX_ENA_MASK 0x2000
26 #define WM8400_SPK_MIX_ENA_SHIFT 13
27 #define WM8400_SPK_MIX_ENA_WIDTH 1
28 #define WM8400_SPK_ENA 0x1000
29 #define WM8400_SPK_ENA_MASK 0x1000
30 #define WM8400_SPK_ENA_SHIFT 12
31 #define WM8400_SPK_ENA_WIDTH 1
32 #define WM8400_OUT3_ENA 0x0800
33 #define WM8400_OUT3_ENA_MASK 0x0800
34 #define WM8400_OUT3_ENA_SHIFT 11
35 #define WM8400_OUT3_ENA_WIDTH 1
36 #define WM8400_OUT4_ENA 0x0400
37 #define WM8400_OUT4_ENA_MASK 0x0400
38 #define WM8400_OUT4_ENA_SHIFT 10
39 #define WM8400_OUT4_ENA_WIDTH 1
40 #define WM8400_LOUT_ENA 0x0200
41 #define WM8400_LOUT_ENA_MASK 0x0200
42 #define WM8400_LOUT_ENA_SHIFT 9
43 #define WM8400_LOUT_ENA_WIDTH 1
44 #define WM8400_ROUT_ENA 0x0100
45 #define WM8400_ROUT_ENA_MASK 0x0100
46 #define WM8400_ROUT_ENA_SHIFT 8
47 #define WM8400_ROUT_ENA_WIDTH 1
48 #define WM8400_MIC1BIAS_ENA 0x0010
49 #define WM8400_MIC1BIAS_ENA_MASK 0x0010
50 #define WM8400_MIC1BIAS_ENA_SHIFT 4
51 #define WM8400_MIC1BIAS_ENA_WIDTH 1
52 #define WM8400_VMID_MODE_MASK 0x0006
53 #define WM8400_VMID_MODE_SHIFT 1
54 #define WM8400_VMID_MODE_WIDTH 2
55 #define WM8400_VREF_ENA 0x0001
56 #define WM8400_VREF_ENA_MASK 0x0001
57 #define WM8400_VREF_ENA_SHIFT 0
58 #define WM8400_VREF_ENA_WIDTH 1
59
60
61
62
63 #define WM8400_FLL_ENA 0x8000
64 #define WM8400_FLL_ENA_MASK 0x8000
65 #define WM8400_FLL_ENA_SHIFT 15
66 #define WM8400_FLL_ENA_WIDTH 1
67 #define WM8400_TSHUT_ENA 0x4000
68 #define WM8400_TSHUT_ENA_MASK 0x4000
69 #define WM8400_TSHUT_ENA_SHIFT 14
70 #define WM8400_TSHUT_ENA_WIDTH 1
71 #define WM8400_TSHUT_OPDIS 0x2000
72 #define WM8400_TSHUT_OPDIS_MASK 0x2000
73 #define WM8400_TSHUT_OPDIS_SHIFT 13
74 #define WM8400_TSHUT_OPDIS_WIDTH 1
75 #define WM8400_OPCLK_ENA 0x0800
76 #define WM8400_OPCLK_ENA_MASK 0x0800
77 #define WM8400_OPCLK_ENA_SHIFT 11
78 #define WM8400_OPCLK_ENA_WIDTH 1
79 #define WM8400_AINL_ENA 0x0200
80 #define WM8400_AINL_ENA_MASK 0x0200
81 #define WM8400_AINL_ENA_SHIFT 9
82 #define WM8400_AINL_ENA_WIDTH 1
83 #define WM8400_AINR_ENA 0x0100
84 #define WM8400_AINR_ENA_MASK 0x0100
85 #define WM8400_AINR_ENA_SHIFT 8
86 #define WM8400_AINR_ENA_WIDTH 1
87 #define WM8400_LIN34_ENA 0x0080
88 #define WM8400_LIN34_ENA_MASK 0x0080
89 #define WM8400_LIN34_ENA_SHIFT 7
90 #define WM8400_LIN34_ENA_WIDTH 1
91 #define WM8400_LIN12_ENA 0x0040
92 #define WM8400_LIN12_ENA_MASK 0x0040
93 #define WM8400_LIN12_ENA_SHIFT 6
94 #define WM8400_LIN12_ENA_WIDTH 1
95 #define WM8400_RIN34_ENA 0x0020
96 #define WM8400_RIN34_ENA_MASK 0x0020
97 #define WM8400_RIN34_ENA_SHIFT 5
98 #define WM8400_RIN34_ENA_WIDTH 1
99 #define WM8400_RIN12_ENA 0x0010
100 #define WM8400_RIN12_ENA_MASK 0x0010
101 #define WM8400_RIN12_ENA_SHIFT 4
102 #define WM8400_RIN12_ENA_WIDTH 1
103 #define WM8400_ADCL_ENA 0x0002
104 #define WM8400_ADCL_ENA_MASK 0x0002
105 #define WM8400_ADCL_ENA_SHIFT 1
106 #define WM8400_ADCL_ENA_WIDTH 1
107 #define WM8400_ADCR_ENA 0x0001
108 #define WM8400_ADCR_ENA_MASK 0x0001
109 #define WM8400_ADCR_ENA_SHIFT 0
110 #define WM8400_ADCR_ENA_WIDTH 1
111
112
113
114
115 #define WM8400_LON_ENA 0x2000
116 #define WM8400_LON_ENA_MASK 0x2000
117 #define WM8400_LON_ENA_SHIFT 13
118 #define WM8400_LON_ENA_WIDTH 1
119 #define WM8400_LOP_ENA 0x1000
120 #define WM8400_LOP_ENA_MASK 0x1000
121 #define WM8400_LOP_ENA_SHIFT 12
122 #define WM8400_LOP_ENA_WIDTH 1
123 #define WM8400_RON_ENA 0x0800
124 #define WM8400_RON_ENA_MASK 0x0800
125 #define WM8400_RON_ENA_SHIFT 11
126 #define WM8400_RON_ENA_WIDTH 1
127 #define WM8400_ROP_ENA 0x0400
128 #define WM8400_ROP_ENA_MASK 0x0400
129 #define WM8400_ROP_ENA_SHIFT 10
130 #define WM8400_ROP_ENA_WIDTH 1
131 #define WM8400_LOPGA_ENA 0x0080
132 #define WM8400_LOPGA_ENA_MASK 0x0080
133 #define WM8400_LOPGA_ENA_SHIFT 7
134 #define WM8400_LOPGA_ENA_WIDTH 1
135 #define WM8400_ROPGA_ENA 0x0040
136 #define WM8400_ROPGA_ENA_MASK 0x0040
137 #define WM8400_ROPGA_ENA_SHIFT 6
138 #define WM8400_ROPGA_ENA_WIDTH 1
139 #define WM8400_LOMIX_ENA 0x0020
140 #define WM8400_LOMIX_ENA_MASK 0x0020
141 #define WM8400_LOMIX_ENA_SHIFT 5
142 #define WM8400_LOMIX_ENA_WIDTH 1
143 #define WM8400_ROMIX_ENA 0x0010
144 #define WM8400_ROMIX_ENA_MASK 0x0010
145 #define WM8400_ROMIX_ENA_SHIFT 4
146 #define WM8400_ROMIX_ENA_WIDTH 1
147 #define WM8400_DACL_ENA 0x0002
148 #define WM8400_DACL_ENA_MASK 0x0002
149 #define WM8400_DACL_ENA_SHIFT 1
150 #define WM8400_DACL_ENA_WIDTH 1
151 #define WM8400_DACR_ENA 0x0001
152 #define WM8400_DACR_ENA_MASK 0x0001
153 #define WM8400_DACR_ENA_SHIFT 0
154 #define WM8400_DACR_ENA_WIDTH 1
155
156
157
158
159 #define WM8400_AIFADCL_SRC 0x8000
160 #define WM8400_AIFADCL_SRC_MASK 0x8000
161 #define WM8400_AIFADCL_SRC_SHIFT 15
162 #define WM8400_AIFADCL_SRC_WIDTH 1
163 #define WM8400_AIFADCR_SRC 0x4000
164 #define WM8400_AIFADCR_SRC_MASK 0x4000
165 #define WM8400_AIFADCR_SRC_SHIFT 14
166 #define WM8400_AIFADCR_SRC_WIDTH 1
167 #define WM8400_AIFADC_TDM 0x2000
168 #define WM8400_AIFADC_TDM_MASK 0x2000
169 #define WM8400_AIFADC_TDM_SHIFT 13
170 #define WM8400_AIFADC_TDM_WIDTH 1
171 #define WM8400_AIFADC_TDM_CHAN 0x1000
172 #define WM8400_AIFADC_TDM_CHAN_MASK 0x1000
173 #define WM8400_AIFADC_TDM_CHAN_SHIFT 12
174 #define WM8400_AIFADC_TDM_CHAN_WIDTH 1
175 #define WM8400_AIF_BCLK_INV 0x0100
176 #define WM8400_AIF_BCLK_INV_MASK 0x0100
177 #define WM8400_AIF_BCLK_INV_SHIFT 8
178 #define WM8400_AIF_BCLK_INV_WIDTH 1
179 #define WM8400_AIF_LRCLK_INV 0x0080
180 #define WM8400_AIF_LRCLK_INV_MASK 0x0080
181 #define WM8400_AIF_LRCLK_INV_SHIFT 7
182 #define WM8400_AIF_LRCLK_INV_WIDTH 1
183 #define WM8400_AIF_WL_MASK 0x0060
184 #define WM8400_AIF_WL_SHIFT 5
185 #define WM8400_AIF_WL_WIDTH 2
186 #define WM8400_AIF_WL_16BITS (0 << 5)
187 #define WM8400_AIF_WL_20BITS (1 << 5)
188 #define WM8400_AIF_WL_24BITS (2 << 5)
189 #define WM8400_AIF_WL_32BITS (3 << 5)
190 #define WM8400_AIF_FMT_MASK 0x0018
191 #define WM8400_AIF_FMT_SHIFT 3
192 #define WM8400_AIF_FMT_WIDTH 2
193 #define WM8400_AIF_FMT_RIGHTJ (0 << 3)
194 #define WM8400_AIF_FMT_LEFTJ (1 << 3)
195 #define WM8400_AIF_FMT_I2S (2 << 3)
196 #define WM8400_AIF_FMT_DSP (3 << 3)
197
198
199
200
201 #define WM8400_DACL_SRC 0x8000
202 #define WM8400_DACL_SRC_MASK 0x8000
203 #define WM8400_DACL_SRC_SHIFT 15
204 #define WM8400_DACL_SRC_WIDTH 1
205 #define WM8400_DACR_SRC 0x4000
206 #define WM8400_DACR_SRC_MASK 0x4000
207 #define WM8400_DACR_SRC_SHIFT 14
208 #define WM8400_DACR_SRC_WIDTH 1
209 #define WM8400_AIFDAC_TDM 0x2000
210 #define WM8400_AIFDAC_TDM_MASK 0x2000
211 #define WM8400_AIFDAC_TDM_SHIFT 13
212 #define WM8400_AIFDAC_TDM_WIDTH 1
213 #define WM8400_AIFDAC_TDM_CHAN 0x1000
214 #define WM8400_AIFDAC_TDM_CHAN_MASK 0x1000
215 #define WM8400_AIFDAC_TDM_CHAN_SHIFT 12
216 #define WM8400_AIFDAC_TDM_CHAN_WIDTH 1
217 #define WM8400_DAC_BOOST_MASK 0x0C00
218 #define WM8400_DAC_BOOST_SHIFT 10
219 #define WM8400_DAC_BOOST_WIDTH 2
220 #define WM8400_DAC_COMP 0x0010
221 #define WM8400_DAC_COMP_MASK 0x0010
222 #define WM8400_DAC_COMP_SHIFT 4
223 #define WM8400_DAC_COMP_WIDTH 1
224 #define WM8400_DAC_COMPMODE 0x0008
225 #define WM8400_DAC_COMPMODE_MASK 0x0008
226 #define WM8400_DAC_COMPMODE_SHIFT 3
227 #define WM8400_DAC_COMPMODE_WIDTH 1
228 #define WM8400_ADC_COMP 0x0004
229 #define WM8400_ADC_COMP_MASK 0x0004
230 #define WM8400_ADC_COMP_SHIFT 2
231 #define WM8400_ADC_COMP_WIDTH 1
232 #define WM8400_ADC_COMPMODE 0x0002
233 #define WM8400_ADC_COMPMODE_MASK 0x0002
234 #define WM8400_ADC_COMPMODE_SHIFT 1
235 #define WM8400_ADC_COMPMODE_WIDTH 1
236 #define WM8400_LOOPBACK 0x0001
237 #define WM8400_LOOPBACK_MASK 0x0001
238 #define WM8400_LOOPBACK_SHIFT 0
239 #define WM8400_LOOPBACK_WIDTH 1
240
241
242
243
244 #define WM8400_TOCLK_RATE 0x8000
245 #define WM8400_TOCLK_RATE_MASK 0x8000
246 #define WM8400_TOCLK_RATE_SHIFT 15
247 #define WM8400_TOCLK_RATE_WIDTH 1
248 #define WM8400_TOCLK_ENA 0x4000
249 #define WM8400_TOCLK_ENA_MASK 0x4000
250 #define WM8400_TOCLK_ENA_SHIFT 14
251 #define WM8400_TOCLK_ENA_WIDTH 1
252 #define WM8400_OPCLKDIV_MASK 0x1E00
253 #define WM8400_OPCLKDIV_SHIFT 9
254 #define WM8400_OPCLKDIV_WIDTH 4
255 #define WM8400_DCLKDIV_MASK 0x01C0
256 #define WM8400_DCLKDIV_SHIFT 6
257 #define WM8400_DCLKDIV_WIDTH 3
258 #define WM8400_BCLK_DIV_MASK 0x001E
259 #define WM8400_BCLK_DIV_SHIFT 1
260 #define WM8400_BCLK_DIV_WIDTH 4
261
262
263
264
265 #define WM8400_MCLK_SRC 0x8000
266 #define WM8400_MCLK_SRC_MASK 0x8000
267 #define WM8400_MCLK_SRC_SHIFT 15
268 #define WM8400_MCLK_SRC_WIDTH 1
269 #define WM8400_SYSCLK_SRC 0x4000
270 #define WM8400_SYSCLK_SRC_MASK 0x4000
271 #define WM8400_SYSCLK_SRC_SHIFT 14
272 #define WM8400_SYSCLK_SRC_WIDTH 1
273 #define WM8400_CLK_FORCE 0x2000
274 #define WM8400_CLK_FORCE_MASK 0x2000
275 #define WM8400_CLK_FORCE_SHIFT 13
276 #define WM8400_CLK_FORCE_WIDTH 1
277 #define WM8400_MCLK_DIV_MASK 0x1800
278 #define WM8400_MCLK_DIV_SHIFT 11
279 #define WM8400_MCLK_DIV_WIDTH 2
280 #define WM8400_MCLK_INV 0x0400
281 #define WM8400_MCLK_INV_MASK 0x0400
282 #define WM8400_MCLK_INV_SHIFT 10
283 #define WM8400_MCLK_INV_WIDTH 1
284 #define WM8400_ADC_CLKDIV_MASK 0x00E0
285 #define WM8400_ADC_CLKDIV_SHIFT 5
286 #define WM8400_ADC_CLKDIV_WIDTH 3
287 #define WM8400_DAC_CLKDIV_MASK 0x001C
288 #define WM8400_DAC_CLKDIV_SHIFT 2
289 #define WM8400_DAC_CLKDIV_WIDTH 3
290
291
292
293
294 #define WM8400_AIF_MSTR1 0x8000
295 #define WM8400_AIF_MSTR1_MASK 0x8000
296 #define WM8400_AIF_MSTR1_SHIFT 15
297 #define WM8400_AIF_MSTR1_WIDTH 1
298 #define WM8400_AIF_MSTR2 0x4000
299 #define WM8400_AIF_MSTR2_MASK 0x4000
300 #define WM8400_AIF_MSTR2_SHIFT 14
301 #define WM8400_AIF_MSTR2_WIDTH 1
302 #define WM8400_AIF_SEL 0x2000
303 #define WM8400_AIF_SEL_MASK 0x2000
304 #define WM8400_AIF_SEL_SHIFT 13
305 #define WM8400_AIF_SEL_WIDTH 1
306 #define WM8400_ADCLRC_DIR 0x0800
307 #define WM8400_ADCLRC_DIR_MASK 0x0800
308 #define WM8400_ADCLRC_DIR_SHIFT 11
309 #define WM8400_ADCLRC_DIR_WIDTH 1
310 #define WM8400_ADCLRC_RATE_MASK 0x07FF
311 #define WM8400_ADCLRC_RATE_SHIFT 0
312 #define WM8400_ADCLRC_RATE_WIDTH 11
313
314
315
316
317 #define WM8400_ALRCGPIO1 0x8000
318 #define WM8400_ALRCGPIO1_MASK 0x8000
319 #define WM8400_ALRCGPIO1_SHIFT 15
320 #define WM8400_ALRCGPIO1_WIDTH 1
321 #define WM8400_ALRCBGPIO6 0x4000
322 #define WM8400_ALRCBGPIO6_MASK 0x4000
323 #define WM8400_ALRCBGPIO6_SHIFT 14
324 #define WM8400_ALRCBGPIO6_WIDTH 1
325 #define WM8400_AIF_TRIS 0x2000
326 #define WM8400_AIF_TRIS_MASK 0x2000
327 #define WM8400_AIF_TRIS_SHIFT 13
328 #define WM8400_AIF_TRIS_WIDTH 1
329 #define WM8400_DACLRC_DIR 0x0800
330 #define WM8400_DACLRC_DIR_MASK 0x0800
331 #define WM8400_DACLRC_DIR_SHIFT 11
332 #define WM8400_DACLRC_DIR_WIDTH 1
333 #define WM8400_DACLRC_RATE_MASK 0x07FF
334 #define WM8400_DACLRC_RATE_SHIFT 0
335 #define WM8400_DACLRC_RATE_WIDTH 11
336
337
338
339
340 #define WM8400_DAC_SDMCLK_RATE 0x2000
341 #define WM8400_DAC_SDMCLK_RATE_MASK 0x2000
342 #define WM8400_DAC_SDMCLK_RATE_SHIFT 13
343 #define WM8400_DAC_SDMCLK_RATE_WIDTH 1
344 #define WM8400_AIF_LRCLKRATE 0x0400
345 #define WM8400_AIF_LRCLKRATE_MASK 0x0400
346 #define WM8400_AIF_LRCLKRATE_SHIFT 10
347 #define WM8400_AIF_LRCLKRATE_WIDTH 1
348 #define WM8400_DAC_MONO 0x0200
349 #define WM8400_DAC_MONO_MASK 0x0200
350 #define WM8400_DAC_MONO_SHIFT 9
351 #define WM8400_DAC_MONO_WIDTH 1
352 #define WM8400_DAC_SB_FILT 0x0100
353 #define WM8400_DAC_SB_FILT_MASK 0x0100
354 #define WM8400_DAC_SB_FILT_SHIFT 8
355 #define WM8400_DAC_SB_FILT_WIDTH 1
356 #define WM8400_DAC_MUTERATE 0x0080
357 #define WM8400_DAC_MUTERATE_MASK 0x0080
358 #define WM8400_DAC_MUTERATE_SHIFT 7
359 #define WM8400_DAC_MUTERATE_WIDTH 1
360 #define WM8400_DAC_MUTEMODE 0x0040
361 #define WM8400_DAC_MUTEMODE_MASK 0x0040
362 #define WM8400_DAC_MUTEMODE_SHIFT 6
363 #define WM8400_DAC_MUTEMODE_WIDTH 1
364 #define WM8400_DEEMP_MASK 0x0030
365 #define WM8400_DEEMP_SHIFT 4
366 #define WM8400_DEEMP_WIDTH 2
367 #define WM8400_DAC_MUTE 0x0004
368 #define WM8400_DAC_MUTE_MASK 0x0004
369 #define WM8400_DAC_MUTE_SHIFT 2
370 #define WM8400_DAC_MUTE_WIDTH 1
371 #define WM8400_DACL_DATINV 0x0002
372 #define WM8400_DACL_DATINV_MASK 0x0002
373 #define WM8400_DACL_DATINV_SHIFT 1
374 #define WM8400_DACL_DATINV_WIDTH 1
375 #define WM8400_DACR_DATINV 0x0001
376 #define WM8400_DACR_DATINV_MASK 0x0001
377 #define WM8400_DACR_DATINV_SHIFT 0
378 #define WM8400_DACR_DATINV_WIDTH 1
379
380
381
382
383 #define WM8400_DAC_VU 0x0100
384 #define WM8400_DAC_VU_MASK 0x0100
385 #define WM8400_DAC_VU_SHIFT 8
386 #define WM8400_DAC_VU_WIDTH 1
387 #define WM8400_DACL_VOL_MASK 0x00FF
388 #define WM8400_DACL_VOL_SHIFT 0
389 #define WM8400_DACL_VOL_WIDTH 8
390
391
392
393
394 #define WM8400_DAC_VU 0x0100
395 #define WM8400_DAC_VU_MASK 0x0100
396 #define WM8400_DAC_VU_SHIFT 8
397 #define WM8400_DAC_VU_WIDTH 1
398 #define WM8400_DACR_VOL_MASK 0x00FF
399 #define WM8400_DACR_VOL_SHIFT 0
400 #define WM8400_DACR_VOL_WIDTH 8
401
402
403
404
405 #define WM8400_ADCL_DAC_SVOL_MASK 0x1E00
406 #define WM8400_ADCL_DAC_SVOL_SHIFT 9
407 #define WM8400_ADCL_DAC_SVOL_WIDTH 4
408 #define WM8400_ADCR_DAC_SVOL_MASK 0x01E0
409 #define WM8400_ADCR_DAC_SVOL_SHIFT 5
410 #define WM8400_ADCR_DAC_SVOL_WIDTH 4
411 #define WM8400_ADC_TO_DACL_MASK 0x000C
412 #define WM8400_ADC_TO_DACL_SHIFT 2
413 #define WM8400_ADC_TO_DACL_WIDTH 2
414 #define WM8400_ADC_TO_DACR_MASK 0x0003
415 #define WM8400_ADC_TO_DACR_SHIFT 0
416 #define WM8400_ADC_TO_DACR_WIDTH 2
417
418
419
420
421 #define WM8400_ADC_HPF_ENA 0x0100
422 #define WM8400_ADC_HPF_ENA_MASK 0x0100
423 #define WM8400_ADC_HPF_ENA_SHIFT 8
424 #define WM8400_ADC_HPF_ENA_WIDTH 1
425 #define WM8400_ADC_HPF_CUT_MASK 0x0060
426 #define WM8400_ADC_HPF_CUT_SHIFT 5
427 #define WM8400_ADC_HPF_CUT_WIDTH 2
428 #define WM8400_ADCL_DATINV 0x0002
429 #define WM8400_ADCL_DATINV_MASK 0x0002
430 #define WM8400_ADCL_DATINV_SHIFT 1
431 #define WM8400_ADCL_DATINV_WIDTH 1
432 #define WM8400_ADCR_DATINV 0x0001
433 #define WM8400_ADCR_DATINV_MASK 0x0001
434 #define WM8400_ADCR_DATINV_SHIFT 0
435 #define WM8400_ADCR_DATINV_WIDTH 1
436
437
438
439
440 #define WM8400_ADC_VU 0x0100
441 #define WM8400_ADC_VU_MASK 0x0100
442 #define WM8400_ADC_VU_SHIFT 8
443 #define WM8400_ADC_VU_WIDTH 1
444 #define WM8400_ADCL_VOL_MASK 0x00FF
445 #define WM8400_ADCL_VOL_SHIFT 0
446 #define WM8400_ADCL_VOL_WIDTH 8
447
448
449
450
451 #define WM8400_ADC_VU 0x0100
452 #define WM8400_ADC_VU_MASK 0x0100
453 #define WM8400_ADC_VU_SHIFT 8
454 #define WM8400_ADC_VU_WIDTH 1
455 #define WM8400_ADCR_VOL_MASK 0x00FF
456 #define WM8400_ADCR_VOL_SHIFT 0
457 #define WM8400_ADCR_VOL_WIDTH 8
458
459
460
461
462 #define WM8400_IPVU 0x0100
463 #define WM8400_IPVU_MASK 0x0100
464 #define WM8400_IPVU_SHIFT 8
465 #define WM8400_IPVU_WIDTH 1
466 #define WM8400_LI12MUTE 0x0080
467 #define WM8400_LI12MUTE_MASK 0x0080
468 #define WM8400_LI12MUTE_SHIFT 7
469 #define WM8400_LI12MUTE_WIDTH 1
470 #define WM8400_LI12ZC 0x0040
471 #define WM8400_LI12ZC_MASK 0x0040
472 #define WM8400_LI12ZC_SHIFT 6
473 #define WM8400_LI12ZC_WIDTH 1
474 #define WM8400_LIN12VOL_MASK 0x001F
475 #define WM8400_LIN12VOL_SHIFT 0
476 #define WM8400_LIN12VOL_WIDTH 5
477
478
479
480
481 #define WM8400_IPVU 0x0100
482 #define WM8400_IPVU_MASK 0x0100
483 #define WM8400_IPVU_SHIFT 8
484 #define WM8400_IPVU_WIDTH 1
485 #define WM8400_LI34MUTE 0x0080
486 #define WM8400_LI34MUTE_MASK 0x0080
487 #define WM8400_LI34MUTE_SHIFT 7
488 #define WM8400_LI34MUTE_WIDTH 1
489 #define WM8400_LI34ZC 0x0040
490 #define WM8400_LI34ZC_MASK 0x0040
491 #define WM8400_LI34ZC_SHIFT 6
492 #define WM8400_LI34ZC_WIDTH 1
493 #define WM8400_LIN34VOL_MASK 0x001F
494 #define WM8400_LIN34VOL_SHIFT 0
495 #define WM8400_LIN34VOL_WIDTH 5
496
497
498
499
500 #define WM8400_IPVU 0x0100
501 #define WM8400_IPVU_MASK 0x0100
502 #define WM8400_IPVU_SHIFT 8
503 #define WM8400_IPVU_WIDTH 1
504 #define WM8400_RI12MUTE 0x0080
505 #define WM8400_RI12MUTE_MASK 0x0080
506 #define WM8400_RI12MUTE_SHIFT 7
507 #define WM8400_RI12MUTE_WIDTH 1
508 #define WM8400_RI12ZC 0x0040
509 #define WM8400_RI12ZC_MASK 0x0040
510 #define WM8400_RI12ZC_SHIFT 6
511 #define WM8400_RI12ZC_WIDTH 1
512 #define WM8400_RIN12VOL_MASK 0x001F
513 #define WM8400_RIN12VOL_SHIFT 0
514 #define WM8400_RIN12VOL_WIDTH 5
515
516
517
518
519 #define WM8400_IPVU 0x0100
520 #define WM8400_IPVU_MASK 0x0100
521 #define WM8400_IPVU_SHIFT 8
522 #define WM8400_IPVU_WIDTH 1
523 #define WM8400_RI34MUTE 0x0080
524 #define WM8400_RI34MUTE_MASK 0x0080
525 #define WM8400_RI34MUTE_SHIFT 7
526 #define WM8400_RI34MUTE_WIDTH 1
527 #define WM8400_RI34ZC 0x0040
528 #define WM8400_RI34ZC_MASK 0x0040
529 #define WM8400_RI34ZC_SHIFT 6
530 #define WM8400_RI34ZC_WIDTH 1
531 #define WM8400_RIN34VOL_MASK 0x001F
532 #define WM8400_RIN34VOL_SHIFT 0
533 #define WM8400_RIN34VOL_WIDTH 5
534
535
536
537
538 #define WM8400_OPVU 0x0100
539 #define WM8400_OPVU_MASK 0x0100
540 #define WM8400_OPVU_SHIFT 8
541 #define WM8400_OPVU_WIDTH 1
542 #define WM8400_LOZC 0x0080
543 #define WM8400_LOZC_MASK 0x0080
544 #define WM8400_LOZC_SHIFT 7
545 #define WM8400_LOZC_WIDTH 1
546 #define WM8400_LOUTVOL_MASK 0x007F
547 #define WM8400_LOUTVOL_SHIFT 0
548 #define WM8400_LOUTVOL_WIDTH 7
549
550
551
552
553 #define WM8400_OPVU 0x0100
554 #define WM8400_OPVU_MASK 0x0100
555 #define WM8400_OPVU_SHIFT 8
556 #define WM8400_OPVU_WIDTH 1
557 #define WM8400_ROZC 0x0080
558 #define WM8400_ROZC_MASK 0x0080
559 #define WM8400_ROZC_SHIFT 7
560 #define WM8400_ROZC_WIDTH 1
561 #define WM8400_ROUTVOL_MASK 0x007F
562 #define WM8400_ROUTVOL_SHIFT 0
563 #define WM8400_ROUTVOL_WIDTH 7
564
565
566
567
568 #define WM8400_LONMUTE 0x0040
569 #define WM8400_LONMUTE_MASK 0x0040
570 #define WM8400_LONMUTE_SHIFT 6
571 #define WM8400_LONMUTE_WIDTH 1
572 #define WM8400_LOPMUTE 0x0020
573 #define WM8400_LOPMUTE_MASK 0x0020
574 #define WM8400_LOPMUTE_SHIFT 5
575 #define WM8400_LOPMUTE_WIDTH 1
576 #define WM8400_LOATTN 0x0010
577 #define WM8400_LOATTN_MASK 0x0010
578 #define WM8400_LOATTN_SHIFT 4
579 #define WM8400_LOATTN_WIDTH 1
580 #define WM8400_RONMUTE 0x0004
581 #define WM8400_RONMUTE_MASK 0x0004
582 #define WM8400_RONMUTE_SHIFT 2
583 #define WM8400_RONMUTE_WIDTH 1
584 #define WM8400_ROPMUTE 0x0002
585 #define WM8400_ROPMUTE_MASK 0x0002
586 #define WM8400_ROPMUTE_SHIFT 1
587 #define WM8400_ROPMUTE_WIDTH 1
588 #define WM8400_ROATTN 0x0001
589 #define WM8400_ROATTN_MASK 0x0001
590 #define WM8400_ROATTN_SHIFT 0
591 #define WM8400_ROATTN_WIDTH 1
592
593
594
595
596 #define WM8400_OUT3MUTE 0x0020
597 #define WM8400_OUT3MUTE_MASK 0x0020
598 #define WM8400_OUT3MUTE_SHIFT 5
599 #define WM8400_OUT3MUTE_WIDTH 1
600 #define WM8400_OUT3ATTN 0x0010
601 #define WM8400_OUT3ATTN_MASK 0x0010
602 #define WM8400_OUT3ATTN_SHIFT 4
603 #define WM8400_OUT3ATTN_WIDTH 1
604 #define WM8400_OUT4MUTE 0x0002
605 #define WM8400_OUT4MUTE_MASK 0x0002
606 #define WM8400_OUT4MUTE_SHIFT 1
607 #define WM8400_OUT4MUTE_WIDTH 1
608 #define WM8400_OUT4ATTN 0x0001
609 #define WM8400_OUT4ATTN_MASK 0x0001
610 #define WM8400_OUT4ATTN_SHIFT 0
611 #define WM8400_OUT4ATTN_WIDTH 1
612
613
614
615
616 #define WM8400_OPVU 0x0100
617 #define WM8400_OPVU_MASK 0x0100
618 #define WM8400_OPVU_SHIFT 8
619 #define WM8400_OPVU_WIDTH 1
620 #define WM8400_LOPGAZC 0x0080
621 #define WM8400_LOPGAZC_MASK 0x0080
622 #define WM8400_LOPGAZC_SHIFT 7
623 #define WM8400_LOPGAZC_WIDTH 1
624 #define WM8400_LOPGAVOL_MASK 0x007F
625 #define WM8400_LOPGAVOL_SHIFT 0
626 #define WM8400_LOPGAVOL_WIDTH 7
627
628
629
630
631 #define WM8400_OPVU 0x0100
632 #define WM8400_OPVU_MASK 0x0100
633 #define WM8400_OPVU_SHIFT 8
634 #define WM8400_OPVU_WIDTH 1
635 #define WM8400_ROPGAZC 0x0080
636 #define WM8400_ROPGAZC_MASK 0x0080
637 #define WM8400_ROPGAZC_SHIFT 7
638 #define WM8400_ROPGAZC_WIDTH 1
639 #define WM8400_ROPGAVOL_MASK 0x007F
640 #define WM8400_ROPGAVOL_SHIFT 0
641 #define WM8400_ROPGAVOL_WIDTH 7
642
643
644
645
646 #define WM8400_SPKATTN_MASK 0x0003
647 #define WM8400_SPKATTN_SHIFT 0
648 #define WM8400_SPKATTN_WIDTH 2
649
650
651
652
653 #define WM8400_CDMODE 0x0100
654 #define WM8400_CDMODE_MASK 0x0100
655 #define WM8400_CDMODE_SHIFT 8
656 #define WM8400_CDMODE_WIDTH 1
657 #define WM8400_CLASSD_CLK_SEL 0x0080
658 #define WM8400_CLASSD_CLK_SEL_MASK 0x0080
659 #define WM8400_CLASSD_CLK_SEL_SHIFT 7
660 #define WM8400_CLASSD_CLK_SEL_WIDTH 1
661 #define WM8400_CD_SRCTRL 0x0040
662 #define WM8400_CD_SRCTRL_MASK 0x0040
663 #define WM8400_CD_SRCTRL_SHIFT 6
664 #define WM8400_CD_SRCTRL_WIDTH 1
665 #define WM8400_SPKNOPOP 0x0020
666 #define WM8400_SPKNOPOP_MASK 0x0020
667 #define WM8400_SPKNOPOP_SHIFT 5
668 #define WM8400_SPKNOPOP_WIDTH 1
669 #define WM8400_DBLERATE 0x0010
670 #define WM8400_DBLERATE_MASK 0x0010
671 #define WM8400_DBLERATE_SHIFT 4
672 #define WM8400_DBLERATE_WIDTH 1
673 #define WM8400_LOOPTEST 0x0008
674 #define WM8400_LOOPTEST_MASK 0x0008
675 #define WM8400_LOOPTEST_SHIFT 3
676 #define WM8400_LOOPTEST_WIDTH 1
677 #define WM8400_HALFABBIAS 0x0004
678 #define WM8400_HALFABBIAS_MASK 0x0004
679 #define WM8400_HALFABBIAS_SHIFT 2
680 #define WM8400_HALFABBIAS_WIDTH 1
681 #define WM8400_TRIDEL_MASK 0x0003
682 #define WM8400_TRIDEL_SHIFT 0
683 #define WM8400_TRIDEL_WIDTH 2
684
685
686
687
688 #define WM8400_DCGAIN_MASK 0x0038
689 #define WM8400_DCGAIN_SHIFT 3
690 #define WM8400_DCGAIN_WIDTH 3
691 #define WM8400_ACGAIN_MASK 0x0007
692 #define WM8400_ACGAIN_SHIFT 0
693 #define WM8400_ACGAIN_WIDTH 3
694
695
696
697
698 #define WM8400_AINLMODE_MASK 0x000C
699 #define WM8400_AINLMODE_SHIFT 2
700 #define WM8400_AINLMODE_WIDTH 2
701 #define WM8400_AINRMODE_MASK 0x0003
702 #define WM8400_AINRMODE_SHIFT 0
703 #define WM8400_AINRMODE_WIDTH 2
704
705
706
707
708 #define WM8400_LMP4 0x0080
709 #define WM8400_LMP4_MASK 0x0080
710 #define WM8400_LMP4_SHIFT 7
711 #define WM8400_LMP4_WIDTH 1
712 #define WM8400_LMN3 0x0040
713 #define WM8400_LMN3_MASK 0x0040
714 #define WM8400_LMN3_SHIFT 6
715 #define WM8400_LMN3_WIDTH 1
716 #define WM8400_LMP2 0x0020
717 #define WM8400_LMP2_MASK 0x0020
718 #define WM8400_LMP2_SHIFT 5
719 #define WM8400_LMP2_WIDTH 1
720 #define WM8400_LMN1 0x0010
721 #define WM8400_LMN1_MASK 0x0010
722 #define WM8400_LMN1_SHIFT 4
723 #define WM8400_LMN1_WIDTH 1
724 #define WM8400_RMP4 0x0008
725 #define WM8400_RMP4_MASK 0x0008
726 #define WM8400_RMP4_SHIFT 3
727 #define WM8400_RMP4_WIDTH 1
728 #define WM8400_RMN3 0x0004
729 #define WM8400_RMN3_MASK 0x0004
730 #define WM8400_RMN3_SHIFT 2
731 #define WM8400_RMN3_WIDTH 1
732 #define WM8400_RMP2 0x0002
733 #define WM8400_RMP2_MASK 0x0002
734 #define WM8400_RMP2_SHIFT 1
735 #define WM8400_RMP2_WIDTH 1
736 #define WM8400_RMN1 0x0001
737 #define WM8400_RMN1_MASK 0x0001
738 #define WM8400_RMN1_SHIFT 0
739 #define WM8400_RMN1_WIDTH 1
740
741
742
743
744 #define WM8400_L34MNB 0x0100
745 #define WM8400_L34MNB_MASK 0x0100
746 #define WM8400_L34MNB_SHIFT 8
747 #define WM8400_L34MNB_WIDTH 1
748 #define WM8400_L34MNBST 0x0080
749 #define WM8400_L34MNBST_MASK 0x0080
750 #define WM8400_L34MNBST_SHIFT 7
751 #define WM8400_L34MNBST_WIDTH 1
752 #define WM8400_L12MNB 0x0020
753 #define WM8400_L12MNB_MASK 0x0020
754 #define WM8400_L12MNB_SHIFT 5
755 #define WM8400_L12MNB_WIDTH 1
756 #define WM8400_L12MNBST 0x0010
757 #define WM8400_L12MNBST_MASK 0x0010
758 #define WM8400_L12MNBST_SHIFT 4
759 #define WM8400_L12MNBST_WIDTH 1
760 #define WM8400_LDBVOL_MASK 0x0007
761 #define WM8400_LDBVOL_SHIFT 0
762 #define WM8400_LDBVOL_WIDTH 3
763
764
765
766
767 #define WM8400_R34MNB 0x0100
768 #define WM8400_R34MNB_MASK 0x0100
769 #define WM8400_R34MNB_SHIFT 8
770 #define WM8400_R34MNB_WIDTH 1
771 #define WM8400_R34MNBST 0x0080
772 #define WM8400_R34MNBST_MASK 0x0080
773 #define WM8400_R34MNBST_SHIFT 7
774 #define WM8400_R34MNBST_WIDTH 1
775 #define WM8400_R12MNB 0x0020
776 #define WM8400_R12MNB_MASK 0x0020
777 #define WM8400_R12MNB_SHIFT 5
778 #define WM8400_R12MNB_WIDTH 1
779 #define WM8400_R12MNBST 0x0010
780 #define WM8400_R12MNBST_MASK 0x0010
781 #define WM8400_R12MNBST_SHIFT 4
782 #define WM8400_R12MNBST_WIDTH 1
783 #define WM8400_RDBVOL_MASK 0x0007
784 #define WM8400_RDBVOL_SHIFT 0
785 #define WM8400_RDBVOL_WIDTH 3
786
787
788
789
790 #define WM8400_LI2BVOL_MASK 0x01C0
791 #define WM8400_LI2BVOL_SHIFT 6
792 #define WM8400_LI2BVOL_WIDTH 3
793 #define WM8400_LR4BVOL_MASK 0x0038
794 #define WM8400_LR4BVOL_SHIFT 3
795 #define WM8400_LR4BVOL_WIDTH 3
796 #define WM8400_LL4BVOL_MASK 0x0007
797 #define WM8400_LL4BVOL_SHIFT 0
798 #define WM8400_LL4BVOL_WIDTH 3
799
800
801
802
803 #define WM8400_RI2BVOL_MASK 0x01C0
804 #define WM8400_RI2BVOL_SHIFT 6
805 #define WM8400_RI2BVOL_WIDTH 3
806 #define WM8400_RL4BVOL_MASK 0x0038
807 #define WM8400_RL4BVOL_SHIFT 3
808 #define WM8400_RL4BVOL_WIDTH 3
809 #define WM8400_RR4BVOL_MASK 0x0007
810 #define WM8400_RR4BVOL_SHIFT 0
811 #define WM8400_RR4BVOL_WIDTH 3
812
813
814
815
816 #define WM8400_LRBLO 0x0080
817 #define WM8400_LRBLO_MASK 0x0080
818 #define WM8400_LRBLO_SHIFT 7
819 #define WM8400_LRBLO_WIDTH 1
820 #define WM8400_LLBLO 0x0040
821 #define WM8400_LLBLO_MASK 0x0040
822 #define WM8400_LLBLO_SHIFT 6
823 #define WM8400_LLBLO_WIDTH 1
824 #define WM8400_LRI3LO 0x0020
825 #define WM8400_LRI3LO_MASK 0x0020
826 #define WM8400_LRI3LO_SHIFT 5
827 #define WM8400_LRI3LO_WIDTH 1
828 #define WM8400_LLI3LO 0x0010
829 #define WM8400_LLI3LO_MASK 0x0010
830 #define WM8400_LLI3LO_SHIFT 4
831 #define WM8400_LLI3LO_WIDTH 1
832 #define WM8400_LR12LO 0x0008
833 #define WM8400_LR12LO_MASK 0x0008
834 #define WM8400_LR12LO_SHIFT 3
835 #define WM8400_LR12LO_WIDTH 1
836 #define WM8400_LL12LO 0x0004
837 #define WM8400_LL12LO_MASK 0x0004
838 #define WM8400_LL12LO_SHIFT 2
839 #define WM8400_LL12LO_WIDTH 1
840 #define WM8400_LDLO 0x0001
841 #define WM8400_LDLO_MASK 0x0001
842 #define WM8400_LDLO_SHIFT 0
843 #define WM8400_LDLO_WIDTH 1
844
845
846
847
848 #define WM8400_RLBRO 0x0080
849 #define WM8400_RLBRO_MASK 0x0080
850 #define WM8400_RLBRO_SHIFT 7
851 #define WM8400_RLBRO_WIDTH 1
852 #define WM8400_RRBRO 0x0040
853 #define WM8400_RRBRO_MASK 0x0040
854 #define WM8400_RRBRO_SHIFT 6
855 #define WM8400_RRBRO_WIDTH 1
856 #define WM8400_RLI3RO 0x0020
857 #define WM8400_RLI3RO_MASK 0x0020
858 #define WM8400_RLI3RO_SHIFT 5
859 #define WM8400_RLI3RO_WIDTH 1
860 #define WM8400_RRI3RO 0x0010
861 #define WM8400_RRI3RO_MASK 0x0010
862 #define WM8400_RRI3RO_SHIFT 4
863 #define WM8400_RRI3RO_WIDTH 1
864 #define WM8400_RL12RO 0x0008
865 #define WM8400_RL12RO_MASK 0x0008
866 #define WM8400_RL12RO_SHIFT 3
867 #define WM8400_RL12RO_WIDTH 1
868 #define WM8400_RR12RO 0x0004
869 #define WM8400_RR12RO_MASK 0x0004
870 #define WM8400_RR12RO_SHIFT 2
871 #define WM8400_RR12RO_WIDTH 1
872 #define WM8400_RDRO 0x0001
873 #define WM8400_RDRO_MASK 0x0001
874 #define WM8400_RDRO_SHIFT 0
875 #define WM8400_RDRO_WIDTH 1
876
877
878
879
880 #define WM8400_LLI3LOVOL_MASK 0x01C0
881 #define WM8400_LLI3LOVOL_SHIFT 6
882 #define WM8400_LLI3LOVOL_WIDTH 3
883 #define WM8400_LR12LOVOL_MASK 0x0038
884 #define WM8400_LR12LOVOL_SHIFT 3
885 #define WM8400_LR12LOVOL_WIDTH 3
886 #define WM8400_LL12LOVOL_MASK 0x0007
887 #define WM8400_LL12LOVOL_SHIFT 0
888 #define WM8400_LL12LOVOL_WIDTH 3
889
890
891
892
893 #define WM8400_RRI3ROVOL_MASK 0x01C0
894 #define WM8400_RRI3ROVOL_SHIFT 6
895 #define WM8400_RRI3ROVOL_WIDTH 3
896 #define WM8400_RL12ROVOL_MASK 0x0038
897 #define WM8400_RL12ROVOL_SHIFT 3
898 #define WM8400_RL12ROVOL_WIDTH 3
899 #define WM8400_RR12ROVOL_MASK 0x0007
900 #define WM8400_RR12ROVOL_SHIFT 0
901 #define WM8400_RR12ROVOL_WIDTH 3
902
903
904
905
906 #define WM8400_LRI3LOVOL_MASK 0x01C0
907 #define WM8400_LRI3LOVOL_SHIFT 6
908 #define WM8400_LRI3LOVOL_WIDTH 3
909 #define WM8400_LRBLOVOL_MASK 0x0038
910 #define WM8400_LRBLOVOL_SHIFT 3
911 #define WM8400_LRBLOVOL_WIDTH 3
912 #define WM8400_LLBLOVOL_MASK 0x0007
913 #define WM8400_LLBLOVOL_SHIFT 0
914 #define WM8400_LLBLOVOL_WIDTH 3
915
916
917
918
919 #define WM8400_RLI3ROVOL_MASK 0x01C0
920 #define WM8400_RLI3ROVOL_SHIFT 6
921 #define WM8400_RLI3ROVOL_WIDTH 3
922 #define WM8400_RLBROVOL_MASK 0x0038
923 #define WM8400_RLBROVOL_SHIFT 3
924 #define WM8400_RLBROVOL_WIDTH 3
925 #define WM8400_RRBROVOL_MASK 0x0007
926 #define WM8400_RRBROVOL_SHIFT 0
927 #define WM8400_RRBROVOL_WIDTH 3
928
929
930
931
932 #define WM8400_VSEL_MASK 0x0180
933 #define WM8400_VSEL_SHIFT 7
934 #define WM8400_VSEL_WIDTH 2
935 #define WM8400_LI4O3 0x0020
936 #define WM8400_LI4O3_MASK 0x0020
937 #define WM8400_LI4O3_SHIFT 5
938 #define WM8400_LI4O3_WIDTH 1
939 #define WM8400_LPGAO3 0x0010
940 #define WM8400_LPGAO3_MASK 0x0010
941 #define WM8400_LPGAO3_SHIFT 4
942 #define WM8400_LPGAO3_WIDTH 1
943 #define WM8400_RI4O4 0x0002
944 #define WM8400_RI4O4_MASK 0x0002
945 #define WM8400_RI4O4_SHIFT 1
946 #define WM8400_RI4O4_WIDTH 1
947 #define WM8400_RPGAO4 0x0001
948 #define WM8400_RPGAO4_MASK 0x0001
949 #define WM8400_RPGAO4_SHIFT 0
950 #define WM8400_RPGAO4_WIDTH 1
951
952
953
954
955 #define WM8400_LLOPGALON 0x0040
956 #define WM8400_LLOPGALON_MASK 0x0040
957 #define WM8400_LLOPGALON_SHIFT 6
958 #define WM8400_LLOPGALON_WIDTH 1
959 #define WM8400_LROPGALON 0x0020
960 #define WM8400_LROPGALON_MASK 0x0020
961 #define WM8400_LROPGALON_SHIFT 5
962 #define WM8400_LROPGALON_WIDTH 1
963 #define WM8400_LOPLON 0x0010
964 #define WM8400_LOPLON_MASK 0x0010
965 #define WM8400_LOPLON_SHIFT 4
966 #define WM8400_LOPLON_WIDTH 1
967 #define WM8400_LR12LOP 0x0004
968 #define WM8400_LR12LOP_MASK 0x0004
969 #define WM8400_LR12LOP_SHIFT 2
970 #define WM8400_LR12LOP_WIDTH 1
971 #define WM8400_LL12LOP 0x0002
972 #define WM8400_LL12LOP_MASK 0x0002
973 #define WM8400_LL12LOP_SHIFT 1
974 #define WM8400_LL12LOP_WIDTH 1
975 #define WM8400_LLOPGALOP 0x0001
976 #define WM8400_LLOPGALOP_MASK 0x0001
977 #define WM8400_LLOPGALOP_SHIFT 0
978 #define WM8400_LLOPGALOP_WIDTH 1
979
980
981
982
983 #define WM8400_RROPGARON 0x0040
984 #define WM8400_RROPGARON_MASK 0x0040
985 #define WM8400_RROPGARON_SHIFT 6
986 #define WM8400_RROPGARON_WIDTH 1
987 #define WM8400_RLOPGARON 0x0020
988 #define WM8400_RLOPGARON_MASK 0x0020
989 #define WM8400_RLOPGARON_SHIFT 5
990 #define WM8400_RLOPGARON_WIDTH 1
991 #define WM8400_ROPRON 0x0010
992 #define WM8400_ROPRON_MASK 0x0010
993 #define WM8400_ROPRON_SHIFT 4
994 #define WM8400_ROPRON_WIDTH 1
995 #define WM8400_RL12ROP 0x0004
996 #define WM8400_RL12ROP_MASK 0x0004
997 #define WM8400_RL12ROP_SHIFT 2
998 #define WM8400_RL12ROP_WIDTH 1
999 #define WM8400_RR12ROP 0x0002
1000 #define WM8400_RR12ROP_MASK 0x0002
1001 #define WM8400_RR12ROP_SHIFT 1
1002 #define WM8400_RR12ROP_WIDTH 1
1003 #define WM8400_RROPGAROP 0x0001
1004 #define WM8400_RROPGAROP_MASK 0x0001
1005 #define WM8400_RROPGAROP_SHIFT 0
1006 #define WM8400_RROPGAROP_WIDTH 1
1007
1008
1009
1010
1011 #define WM8400_LB2SPK 0x0080
1012 #define WM8400_LB2SPK_MASK 0x0080
1013 #define WM8400_LB2SPK_SHIFT 7
1014 #define WM8400_LB2SPK_WIDTH 1
1015 #define WM8400_RB2SPK 0x0040
1016 #define WM8400_RB2SPK_MASK 0x0040
1017 #define WM8400_RB2SPK_SHIFT 6
1018 #define WM8400_RB2SPK_WIDTH 1
1019 #define WM8400_LI2SPK 0x0020
1020 #define WM8400_LI2SPK_MASK 0x0020
1021 #define WM8400_LI2SPK_SHIFT 5
1022 #define WM8400_LI2SPK_WIDTH 1
1023 #define WM8400_RI2SPK 0x0010
1024 #define WM8400_RI2SPK_MASK 0x0010
1025 #define WM8400_RI2SPK_SHIFT 4
1026 #define WM8400_RI2SPK_WIDTH 1
1027 #define WM8400_LOPGASPK 0x0008
1028 #define WM8400_LOPGASPK_MASK 0x0008
1029 #define WM8400_LOPGASPK_SHIFT 3
1030 #define WM8400_LOPGASPK_WIDTH 1
1031 #define WM8400_ROPGASPK 0x0004
1032 #define WM8400_ROPGASPK_MASK 0x0004
1033 #define WM8400_ROPGASPK_SHIFT 2
1034 #define WM8400_ROPGASPK_WIDTH 1
1035 #define WM8400_LDSPK 0x0002
1036 #define WM8400_LDSPK_MASK 0x0002
1037 #define WM8400_LDSPK_SHIFT 1
1038 #define WM8400_LDSPK_WIDTH 1
1039 #define WM8400_RDSPK 0x0001
1040 #define WM8400_RDSPK_MASK 0x0001
1041 #define WM8400_RDSPK_SHIFT 0
1042 #define WM8400_RDSPK_WIDTH 1
1043
1044
1045
1046
1047 #define WM8400_VROI 0x0001
1048 #define WM8400_VROI_MASK 0x0001
1049 #define WM8400_VROI_SHIFT 0
1050 #define WM8400_VROI_WIDTH 1
1051
1052
1053
1054
1055 #define WM8400_DIS_LLINE 0x0020
1056 #define WM8400_DIS_LLINE_MASK 0x0020
1057 #define WM8400_DIS_LLINE_SHIFT 5
1058 #define WM8400_DIS_LLINE_WIDTH 1
1059 #define WM8400_DIS_RLINE 0x0010
1060 #define WM8400_DIS_RLINE_MASK 0x0010
1061 #define WM8400_DIS_RLINE_SHIFT 4
1062 #define WM8400_DIS_RLINE_WIDTH 1
1063 #define WM8400_DIS_OUT3 0x0008
1064 #define WM8400_DIS_OUT3_MASK 0x0008
1065 #define WM8400_DIS_OUT3_SHIFT 3
1066 #define WM8400_DIS_OUT3_WIDTH 1
1067 #define WM8400_DIS_OUT4 0x0004
1068 #define WM8400_DIS_OUT4_MASK 0x0004
1069 #define WM8400_DIS_OUT4_SHIFT 2
1070 #define WM8400_DIS_OUT4_WIDTH 1
1071 #define WM8400_DIS_LOUT 0x0002
1072 #define WM8400_DIS_LOUT_MASK 0x0002
1073 #define WM8400_DIS_LOUT_SHIFT 1
1074 #define WM8400_DIS_LOUT_WIDTH 1
1075 #define WM8400_DIS_ROUT 0x0001
1076 #define WM8400_DIS_ROUT_MASK 0x0001
1077 #define WM8400_DIS_ROUT_SHIFT 0
1078 #define WM8400_DIS_ROUT_WIDTH 1
1079
1080
1081
1082
1083 #define WM8400_SOFTST 0x0040
1084 #define WM8400_SOFTST_MASK 0x0040
1085 #define WM8400_SOFTST_SHIFT 6
1086 #define WM8400_SOFTST_WIDTH 1
1087 #define WM8400_BUFIOEN 0x0008
1088 #define WM8400_BUFIOEN_MASK 0x0008
1089 #define WM8400_BUFIOEN_SHIFT 3
1090 #define WM8400_BUFIOEN_WIDTH 1
1091 #define WM8400_BUFDCOPEN 0x0004
1092 #define WM8400_BUFDCOPEN_MASK 0x0004
1093 #define WM8400_BUFDCOPEN_SHIFT 2
1094 #define WM8400_BUFDCOPEN_WIDTH 1
1095 #define WM8400_POBCTRL 0x0002
1096 #define WM8400_POBCTRL_MASK 0x0002
1097 #define WM8400_POBCTRL_SHIFT 1
1098 #define WM8400_POBCTRL_WIDTH 1
1099 #define WM8400_VMIDTOG 0x0001
1100 #define WM8400_VMIDTOG_MASK 0x0001
1101 #define WM8400_VMIDTOG_SHIFT 0
1102 #define WM8400_VMIDTOG_WIDTH 1
1103
1104
1105
1106
1107 #define WM8400_MCDSCTH_MASK 0x00C0
1108 #define WM8400_MCDSCTH_SHIFT 6
1109 #define WM8400_MCDSCTH_WIDTH 2
1110 #define WM8400_MCDTHR_MASK 0x0038
1111 #define WM8400_MCDTHR_SHIFT 3
1112 #define WM8400_MCDTHR_WIDTH 3
1113 #define WM8400_MCD 0x0004
1114 #define WM8400_MCD_MASK 0x0004
1115 #define WM8400_MCD_SHIFT 2
1116 #define WM8400_MCD_WIDTH 1
1117 #define WM8400_MBSEL 0x0001
1118 #define WM8400_MBSEL_MASK 0x0001
1119 #define WM8400_MBSEL_SHIFT 0
1120 #define WM8400_MBSEL_WIDTH 1
1121
1122
1123
1124
1125 #define WM8400_FLL_REF_FREQ 0x1000
1126 #define WM8400_FLL_REF_FREQ_MASK 0x1000
1127 #define WM8400_FLL_REF_FREQ_SHIFT 12
1128 #define WM8400_FLL_REF_FREQ_WIDTH 1
1129 #define WM8400_FLL_CLK_SRC_MASK 0x0C00
1130 #define WM8400_FLL_CLK_SRC_SHIFT 10
1131 #define WM8400_FLL_CLK_SRC_WIDTH 2
1132 #define WM8400_FLL_FRAC 0x0200
1133 #define WM8400_FLL_FRAC_MASK 0x0200
1134 #define WM8400_FLL_FRAC_SHIFT 9
1135 #define WM8400_FLL_FRAC_WIDTH 1
1136 #define WM8400_FLL_OSC_ENA 0x0100
1137 #define WM8400_FLL_OSC_ENA_MASK 0x0100
1138 #define WM8400_FLL_OSC_ENA_SHIFT 8
1139 #define WM8400_FLL_OSC_ENA_WIDTH 1
1140 #define WM8400_FLL_CTRL_RATE_MASK 0x00E0
1141 #define WM8400_FLL_CTRL_RATE_SHIFT 5
1142 #define WM8400_FLL_CTRL_RATE_WIDTH 3
1143 #define WM8400_FLL_FRATIO_MASK 0x001F
1144 #define WM8400_FLL_FRATIO_SHIFT 0
1145 #define WM8400_FLL_FRATIO_WIDTH 5
1146
1147
1148
1149
1150 #define WM8400_FLL_K_MASK 0xFFFF
1151 #define WM8400_FLL_K_SHIFT 0
1152 #define WM8400_FLL_K_WIDTH 16
1153
1154
1155
1156
1157 #define WM8400_FLL_N_MASK 0x03FF
1158 #define WM8400_FLL_N_SHIFT 0
1159 #define WM8400_FLL_N_WIDTH 10
1160
1161
1162
1163
1164 #define WM8400_FLL_TRK_GAIN_MASK 0x0078
1165 #define WM8400_FLL_TRK_GAIN_SHIFT 3
1166 #define WM8400_FLL_TRK_GAIN_WIDTH 4
1167 #define WM8400_FLL_OUTDIV_MASK 0x0007
1168 #define WM8400_FLL_OUTDIV_SHIFT 0
1169 #define WM8400_FLL_OUTDIV_WIDTH 3
1170
1171 struct wm8400;
1172 void wm8400_reset_codec_reg_cache(struct wm8400 *wm8400);
1173
1174 #endif