This source file includes following definitions.
- wm8998_patch
- wm8998_readable_register
- wm8998_volatile_register
1
2
3
4
5
6
7
8
9
10 #include <linux/module.h>
11
12 #include <linux/mfd/arizona/core.h>
13 #include <linux/mfd/arizona/registers.h>
14 #include <linux/device.h>
15
16 #include "arizona.h"
17
18 #define WM8998_NUM_AOD_ISR 2
19 #define WM8998_NUM_ISR 5
20
21 static const struct reg_sequence wm8998_rev_a_patch[] = {
22 { 0x0212, 0x0000 },
23 { 0x0211, 0x0014 },
24 { 0x04E4, 0x0E0D },
25 { 0x04E5, 0x0E0D },
26 { 0x04E6, 0x0E0D },
27 { 0x04EB, 0x060E },
28 { 0x0441, 0xC759 },
29 { 0x0442, 0x2A08 },
30 { 0x0443, 0x5CFA },
31 { 0x026E, 0x0064 },
32 { 0x026F, 0x00EA },
33 { 0x0270, 0x1F16 },
34 { 0x0410, 0x2080 },
35 { 0x0418, 0x2080 },
36 { 0x0420, 0x2080 },
37 { 0x04B8, 0x1120 },
38 { 0x047E, 0x080E },
39 { 0x0448, 0x03EF },
40 };
41
42
43 int wm8998_patch(struct arizona *arizona)
44 {
45 return regmap_register_patch(arizona->regmap,
46 wm8998_rev_a_patch,
47 ARRAY_SIZE(wm8998_rev_a_patch));
48 }
49
50 static const struct regmap_irq wm8998_aod_irqs[ARIZONA_NUM_IRQ] = {
51 [ARIZONA_IRQ_MICD_CLAMP_FALL] = {
52 .mask = ARIZONA_MICD_CLAMP_FALL_EINT1
53 },
54 [ARIZONA_IRQ_MICD_CLAMP_RISE] = {
55 .mask = ARIZONA_MICD_CLAMP_RISE_EINT1
56 },
57 [ARIZONA_IRQ_GP5_FALL] = { .mask = ARIZONA_GP5_FALL_EINT1 },
58 [ARIZONA_IRQ_GP5_RISE] = { .mask = ARIZONA_GP5_RISE_EINT1 },
59 [ARIZONA_IRQ_JD_FALL] = { .mask = ARIZONA_JD1_FALL_EINT1 },
60 [ARIZONA_IRQ_JD_RISE] = { .mask = ARIZONA_JD1_RISE_EINT1 },
61 };
62
63 struct regmap_irq_chip wm8998_aod = {
64 .name = "wm8998 AOD",
65 .status_base = ARIZONA_AOD_IRQ1,
66 .mask_base = ARIZONA_AOD_IRQ_MASK_IRQ1,
67 .ack_base = ARIZONA_AOD_IRQ1,
68 .wake_base = ARIZONA_WAKE_CONTROL,
69 .wake_invert = 1,
70 .num_regs = 1,
71 .irqs = wm8998_aod_irqs,
72 .num_irqs = ARRAY_SIZE(wm8998_aod_irqs),
73 };
74
75 static const struct regmap_irq wm8998_irqs[ARIZONA_NUM_IRQ] = {
76 [ARIZONA_IRQ_GP4] = { .reg_offset = 0, .mask = ARIZONA_GP4_EINT1 },
77 [ARIZONA_IRQ_GP3] = { .reg_offset = 0, .mask = ARIZONA_GP3_EINT1 },
78 [ARIZONA_IRQ_GP2] = { .reg_offset = 0, .mask = ARIZONA_GP2_EINT1 },
79 [ARIZONA_IRQ_GP1] = { .reg_offset = 0, .mask = ARIZONA_GP1_EINT1 },
80
81 [ARIZONA_IRQ_SPK_OVERHEAT_WARN] = {
82 .reg_offset = 2, .mask = ARIZONA_SPK_OVERHEAT_WARN_EINT1
83 },
84 [ARIZONA_IRQ_SPK_OVERHEAT] = {
85 .reg_offset = 2, .mask = ARIZONA_SPK_OVERHEAT_EINT1
86 },
87 [ARIZONA_IRQ_HPDET] = {
88 .reg_offset = 2, .mask = ARIZONA_HPDET_EINT1
89 },
90 [ARIZONA_IRQ_MICDET] = {
91 .reg_offset = 2, .mask = ARIZONA_MICDET_EINT1
92 },
93 [ARIZONA_IRQ_WSEQ_DONE] = {
94 .reg_offset = 2, .mask = ARIZONA_WSEQ_DONE_EINT1
95 },
96 [ARIZONA_IRQ_DRC1_SIG_DET] = {
97 .reg_offset = 2, .mask = ARIZONA_DRC1_SIG_DET_EINT1
98 },
99 [ARIZONA_IRQ_ASRC2_LOCK] = {
100 .reg_offset = 2, .mask = ARIZONA_ASRC2_LOCK_EINT1
101 },
102 [ARIZONA_IRQ_ASRC1_LOCK] = {
103 .reg_offset = 2, .mask = ARIZONA_ASRC1_LOCK_EINT1
104 },
105 [ARIZONA_IRQ_UNDERCLOCKED] = {
106 .reg_offset = 2, .mask = ARIZONA_UNDERCLOCKED_EINT1
107 },
108 [ARIZONA_IRQ_OVERCLOCKED] = {
109 .reg_offset = 2, .mask = ARIZONA_OVERCLOCKED_EINT1
110 },
111 [ARIZONA_IRQ_FLL2_LOCK] = {
112 .reg_offset = 2, .mask = ARIZONA_FLL2_LOCK_EINT1
113 },
114 [ARIZONA_IRQ_FLL1_LOCK] = {
115 .reg_offset = 2, .mask = ARIZONA_FLL1_LOCK_EINT1
116 },
117 [ARIZONA_IRQ_CLKGEN_ERR] = {
118 .reg_offset = 2, .mask = ARIZONA_CLKGEN_ERR_EINT1
119 },
120 [ARIZONA_IRQ_CLKGEN_ERR_ASYNC] = {
121 .reg_offset = 2, .mask = ARIZONA_CLKGEN_ERR_ASYNC_EINT1
122 },
123
124 [ARIZONA_IRQ_ASRC_CFG_ERR] = {
125 .reg_offset = 3, .mask = ARIZONA_ASRC_CFG_ERR_EINT1
126 },
127 [ARIZONA_IRQ_AIF3_ERR] = {
128 .reg_offset = 3, .mask = ARIZONA_AIF3_ERR_EINT1
129 },
130 [ARIZONA_IRQ_AIF2_ERR] = {
131 .reg_offset = 3, .mask = ARIZONA_AIF2_ERR_EINT1
132 },
133 [ARIZONA_IRQ_AIF1_ERR] = {
134 .reg_offset = 3, .mask = ARIZONA_AIF1_ERR_EINT1
135 },
136 [ARIZONA_IRQ_CTRLIF_ERR] = {
137 .reg_offset = 3, .mask = ARIZONA_CTRLIF_ERR_EINT1
138 },
139 [ARIZONA_IRQ_MIXER_DROPPED_SAMPLES] = {
140 .reg_offset = 3, .mask = ARIZONA_MIXER_DROPPED_SAMPLE_EINT1
141 },
142 [ARIZONA_IRQ_ASYNC_CLK_ENA_LOW] = {
143 .reg_offset = 3, .mask = ARIZONA_ASYNC_CLK_ENA_LOW_EINT1
144 },
145 [ARIZONA_IRQ_SYSCLK_ENA_LOW] = {
146 .reg_offset = 3, .mask = ARIZONA_SYSCLK_ENA_LOW_EINT1
147 },
148 [ARIZONA_IRQ_ISRC1_CFG_ERR] = {
149 .reg_offset = 3, .mask = ARIZONA_ISRC1_CFG_ERR_EINT1
150 },
151 [ARIZONA_IRQ_ISRC2_CFG_ERR] = {
152 .reg_offset = 3, .mask = ARIZONA_ISRC2_CFG_ERR_EINT1
153 },
154
155 [ARIZONA_IRQ_BOOT_DONE] = {
156 .reg_offset = 4, .mask = ARIZONA_BOOT_DONE_EINT1
157 },
158 [ARIZONA_IRQ_FLL2_CLOCK_OK] = {
159 .reg_offset = 4, .mask = ARIZONA_FLL2_CLOCK_OK_EINT1
160 },
161 [ARIZONA_IRQ_FLL1_CLOCK_OK] = {
162 .reg_offset = 4, .mask = ARIZONA_FLL1_CLOCK_OK_EINT1
163 },
164 };
165
166 struct regmap_irq_chip wm8998_irq = {
167 .name = "wm8998 IRQ",
168 .status_base = ARIZONA_INTERRUPT_STATUS_1,
169 .mask_base = ARIZONA_INTERRUPT_STATUS_1_MASK,
170 .ack_base = ARIZONA_INTERRUPT_STATUS_1,
171 .num_regs = 5,
172 .irqs = wm8998_irqs,
173 .num_irqs = ARRAY_SIZE(wm8998_irqs),
174 };
175
176 static const struct reg_default wm8998_reg_default[] = {
177 { 0x00000009, 0x0001 },
178 { 0x0000000B, 0x001A },
179 { 0x00000020, 0x0000 },
180 { 0x00000021, 0x1000 },
181 { 0x00000022, 0x0000 },
182 { 0x00000023, 0x1000 },
183 { 0x00000024, 0x0000 },
184 { 0x00000030, 0x0000 },
185 { 0x00000031, 0x0100 },
186 { 0x00000032, 0x0100 },
187 { 0x00000040, 0x0000 },
188 { 0x00000041, 0x0000 },
189 { 0x00000061, 0x01FF },
190 { 0x00000062, 0x01FF },
191 { 0x00000063, 0x01FF },
192 { 0x00000064, 0x01FF },
193 { 0x00000066, 0x01FF },
194 { 0x00000067, 0x01FF },
195 { 0x00000068, 0x01FF },
196 { 0x00000069, 0x01FF },
197 { 0x0000006A, 0x01FF },
198 { 0x0000006B, 0x01FF },
199 { 0x00000090, 0x0000 },
200 { 0x00000091, 0x7FFF },
201 { 0x00000092, 0x0000 },
202 { 0x00000093, 0x0000 },
203 { 0x00000094, 0x0000 },
204 { 0x00000095, 0x0000 },
205 { 0x00000096, 0x0000 },
206 { 0x00000097, 0x0000 },
207 { 0x00000100, 0x0002 },
208 { 0x00000101, 0x0304 },
209 { 0x00000102, 0x0011 },
210 { 0x00000103, 0x0011 },
211 { 0x00000104, 0x0011 },
212 { 0x00000112, 0x0305 },
213 { 0x00000113, 0x0011 },
214 { 0x00000114, 0x0011 },
215 { 0x00000149, 0x0000 },
216 { 0x0000014A, 0x0000 },
217 { 0x00000152, 0x0000 },
218 { 0x00000153, 0x0000 },
219 { 0x00000154, 0x0000 },
220 { 0x00000155, 0x0000 },
221 { 0x00000156, 0x0000 },
222 { 0x00000161, 0x0000 },
223 { 0x00000171, 0x0002 },
224 { 0x00000172, 0x0008 },
225 { 0x00000173, 0x0018 },
226 { 0x00000174, 0x007D },
227 { 0x00000175, 0x0004 },
228 { 0x00000176, 0x0000 },
229 { 0x00000179, 0x0000 },
230 { 0x00000181, 0x0000 },
231 { 0x00000182, 0x0000 },
232 { 0x00000183, 0x0000 },
233 { 0x00000184, 0x0000 },
234 { 0x00000185, 0x0000 },
235 { 0x00000186, 0x0000 },
236 { 0x00000187, 0x0001 },
237 { 0x00000189, 0x0000 },
238 { 0x0000018A, 0x0004 },
239 { 0x00000191, 0x0000 },
240 { 0x00000192, 0x0008 },
241 { 0x00000193, 0x0018 },
242 { 0x00000194, 0x007D },
243 { 0x00000195, 0x0004 },
244 { 0x00000196, 0x0000 },
245 { 0x00000199, 0x0000 },
246 { 0x000001A1, 0x0000 },
247 { 0x000001A2, 0x0000 },
248 { 0x000001A3, 0x0000 },
249 { 0x000001A4, 0x0000 },
250 { 0x000001A5, 0x0000 },
251 { 0x000001A6, 0x0000 },
252 { 0x000001A7, 0x0001 },
253 { 0x000001A9, 0x0000 },
254 { 0x000001AA, 0x0004 },
255 { 0x00000200, 0x0006 },
256 { 0x00000210, 0x00D4 },
257 { 0x00000212, 0x0000 },
258 { 0x00000213, 0x0344 },
259 { 0x00000218, 0x01A6 },
260 { 0x00000219, 0x01A6 },
261 { 0x0000021A, 0x01A6 },
262 { 0x00000293, 0x0080 },
263 { 0x0000029B, 0x0000 },
264 { 0x000002A2, 0x0000 },
265 { 0x000002A3, 0x1102 },
266 { 0x000002A4, 0x009F },
267 { 0x000002A6, 0x3737 },
268 { 0x000002A7, 0x2C37 },
269 { 0x000002A8, 0x1422 },
270 { 0x000002A9, 0x030A },
271 { 0x000002CB, 0x0000 },
272 { 0x000002D3, 0x0000 },
273 { 0x00000300, 0x0000 },
274 { 0x00000308, 0x0000 },
275 { 0x00000309, 0x0022 },
276 { 0x0000030C, 0x0002 },
277 { 0x00000310, 0x2080 },
278 { 0x00000311, 0x0180 },
279 { 0x00000312, 0x0000 },
280 { 0x00000314, 0x0080 },
281 { 0x00000315, 0x0180 },
282 { 0x00000316, 0x0000 },
283 { 0x00000318, 0x2080 },
284 { 0x00000319, 0x0180 },
285 { 0x0000031A, 0x0000 },
286 { 0x00000400, 0x0000 },
287 { 0x00000408, 0x0000 },
288 { 0x00000409, 0x0022 },
289 { 0x00000410, 0x2080 },
290 { 0x00000411, 0x0180 },
291 { 0x00000413, 0x0001 },
292 { 0x00000414, 0x0080 },
293 { 0x00000415, 0x0180 },
294 { 0x00000417, 0x0002 },
295 { 0x00000418, 0x2080 },
296 { 0x00000419, 0x0180 },
297 { 0x0000041B, 0x0004 },
298 { 0x0000041C, 0x0080 },
299 { 0x0000041D, 0x0180 },
300 { 0x0000041F, 0x0008 },
301 { 0x00000420, 0x2080 },
302 { 0x00000421, 0x0180 },
303 { 0x00000423, 0x0010 },
304 { 0x00000428, 0x0000 },
305 { 0x00000429, 0x0180 },
306 { 0x0000042B, 0x0040 },
307 { 0x0000042C, 0x0000 },
308 { 0x0000042D, 0x0180 },
309 { 0x0000042F, 0x0080 },
310 { 0x00000430, 0x0000 },
311 { 0x00000431, 0x0180 },
312 { 0x00000433, 0x0100 },
313 { 0x00000434, 0x0000 },
314 { 0x00000435, 0x0180 },
315 { 0x00000437, 0x0200 },
316 { 0x00000440, 0x002F },
317 { 0x00000441, 0xC759 },
318 { 0x00000442, 0x2A08 },
319 { 0x00000443, 0x5CFA },
320 { 0x00000448, 0x03EF },
321 { 0x00000450, 0x0000 },
322 { 0x00000451, 0x0000 },
323 { 0x00000458, 0x0000 },
324 { 0x00000490, 0x0069 },
325 { 0x00000491, 0x0000 },
326 { 0x0000049A, 0x0000 },
327 { 0x00000500, 0x000C },
328 { 0x00000501, 0x0008 },
329 { 0x00000502, 0x0000 },
330 { 0x00000503, 0x0000 },
331 { 0x00000504, 0x0000 },
332 { 0x00000506, 0x0040 },
333 { 0x00000507, 0x1818 },
334 { 0x00000508, 0x1818 },
335 { 0x00000509, 0x0000 },
336 { 0x0000050A, 0x0001 },
337 { 0x0000050B, 0x0002 },
338 { 0x0000050C, 0x0003 },
339 { 0x0000050D, 0x0004 },
340 { 0x0000050E, 0x0005 },
341 { 0x00000511, 0x0000 },
342 { 0x00000512, 0x0001 },
343 { 0x00000513, 0x0002 },
344 { 0x00000514, 0x0003 },
345 { 0x00000515, 0x0004 },
346 { 0x00000516, 0x0005 },
347 { 0x00000519, 0x0000 },
348 { 0x0000051A, 0x0000 },
349 { 0x00000540, 0x000C },
350 { 0x00000541, 0x0008 },
351 { 0x00000542, 0x0000 },
352 { 0x00000543, 0x0000 },
353 { 0x00000544, 0x0000 },
354 { 0x00000546, 0x0040 },
355 { 0x00000547, 0x1818 },
356 { 0x00000548, 0x1818 },
357 { 0x00000549, 0x0000 },
358 { 0x0000054A, 0x0001 },
359 { 0x0000054B, 0x0002 },
360 { 0x0000054C, 0x0003 },
361 { 0x0000054D, 0x0004 },
362 { 0x0000054E, 0x0005 },
363 { 0x00000551, 0x0000 },
364 { 0x00000552, 0x0001 },
365 { 0x00000553, 0x0002 },
366 { 0x00000554, 0x0003 },
367 { 0x00000555, 0x0004 },
368 { 0x00000556, 0x0005 },
369 { 0x00000559, 0x0000 },
370 { 0x0000055A, 0x0000 },
371 { 0x00000580, 0x000C },
372 { 0x00000581, 0x0008 },
373 { 0x00000582, 0x0000 },
374 { 0x00000583, 0x0000 },
375 { 0x00000584, 0x0000 },
376 { 0x00000586, 0x0040 },
377 { 0x00000587, 0x1818 },
378 { 0x00000588, 0x1818 },
379 { 0x00000589, 0x0000 },
380 { 0x0000058A, 0x0001 },
381 { 0x00000591, 0x0000 },
382 { 0x00000592, 0x0001 },
383 { 0x00000599, 0x0000 },
384 { 0x0000059A, 0x0000 },
385 { 0x000005C2, 0x0000 },
386 { 0x000005C3, 0x0000 },
387 { 0x000005C4, 0x0B01 },
388 { 0x000005C5, 0x0000 },
389 { 0x000005E3, 0x0004 },
390 { 0x000005E5, 0x0000 },
391 { 0x000005E6, 0x0000 },
392 { 0x000005E9, 0x0000 },
393 { 0x000005EA, 0x0000 },
394 { 0x000005EB, 0x0000 },
395 { 0x000005F5, 0x0000 },
396 { 0x000005F6, 0x0000 },
397 { 0x00000640, 0x0000 },
398 { 0x00000641, 0x0080 },
399 { 0x00000642, 0x0000 },
400 { 0x00000643, 0x0080 },
401 { 0x00000644, 0x0000 },
402 { 0x00000645, 0x0080 },
403 { 0x00000646, 0x0000 },
404 { 0x00000647, 0x0080 },
405 { 0x00000648, 0x0000 },
406 { 0x00000649, 0x0080 },
407 { 0x0000064A, 0x0000 },
408 { 0x0000064B, 0x0080 },
409 { 0x0000064C, 0x0000 },
410 { 0x0000064D, 0x0080 },
411 { 0x0000064E, 0x0000 },
412 { 0x0000064F, 0x0080 },
413 { 0x00000680, 0x0000 },
414 { 0x00000681, 0x0080 },
415 { 0x00000682, 0x0000 },
416 { 0x00000683, 0x0080 },
417 { 0x00000684, 0x0000 },
418 { 0x00000685, 0x0080 },
419 { 0x00000686, 0x0000 },
420 { 0x00000687, 0x0080 },
421 { 0x00000688, 0x0000 },
422 { 0x00000689, 0x0080 },
423 { 0x0000068A, 0x0000 },
424 { 0x0000068B, 0x0080 },
425 { 0x0000068C, 0x0000 },
426 { 0x0000068D, 0x0080 },
427 { 0x0000068E, 0x0000 },
428 { 0x0000068F, 0x0080 },
429 { 0x00000690, 0x0000 },
430 { 0x00000691, 0x0080 },
431 { 0x00000692, 0x0000 },
432 { 0x00000693, 0x0080 },
433 { 0x00000694, 0x0000 },
434 { 0x00000695, 0x0080 },
435 { 0x00000696, 0x0000 },
436 { 0x00000697, 0x0080 },
437 { 0x00000698, 0x0000 },
438 { 0x00000699, 0x0080 },
439 { 0x0000069A, 0x0000 },
440 { 0x0000069B, 0x0080 },
441 { 0x0000069C, 0x0000 },
442 { 0x0000069D, 0x0080 },
443 { 0x0000069E, 0x0000 },
444 { 0x0000069F, 0x0080 },
445 { 0x000006A0, 0x0000 },
446 { 0x000006A1, 0x0080 },
447 { 0x000006A2, 0x0000 },
448 { 0x000006A3, 0x0080 },
449 { 0x000006A4, 0x0000 },
450 { 0x000006A5, 0x0080 },
451 { 0x000006A6, 0x0000 },
452 { 0x000006A7, 0x0080 },
453 { 0x000006B0, 0x0000 },
454 { 0x000006B1, 0x0080 },
455 { 0x000006B2, 0x0000 },
456 { 0x000006B3, 0x0080 },
457 { 0x000006B4, 0x0000 },
458 { 0x000006B5, 0x0080 },
459 { 0x000006B6, 0x0000 },
460 { 0x000006B7, 0x0080 },
461 { 0x000006B8, 0x0000 },
462 { 0x000006B9, 0x0080 },
463 { 0x000006BA, 0x0000 },
464 { 0x000006BB, 0x0080 },
465 { 0x000006BC, 0x0000 },
466 { 0x000006BD, 0x0080 },
467 { 0x000006BE, 0x0000 },
468 { 0x000006BF, 0x0080 },
469 { 0x000006C0, 0x0000 },
470 { 0x000006C1, 0x0080 },
471 { 0x000006C2, 0x0000 },
472 { 0x000006C3, 0x0080 },
473 { 0x000006C4, 0x0000 },
474 { 0x000006C5, 0x0080 },
475 { 0x000006C6, 0x0000 },
476 { 0x000006C7, 0x0080 },
477 { 0x000006C8, 0x0000 },
478 { 0x000006C9, 0x0080 },
479 { 0x000006CA, 0x0000 },
480 { 0x000006CB, 0x0080 },
481 { 0x000006CC, 0x0000 },
482 { 0x000006CD, 0x0080 },
483 { 0x000006CE, 0x0000 },
484 { 0x000006CF, 0x0080 },
485 { 0x00000700, 0x0000 },
486 { 0x00000701, 0x0080 },
487 { 0x00000702, 0x0000 },
488 { 0x00000703, 0x0080 },
489 { 0x00000704, 0x0000 },
490 { 0x00000705, 0x0080 },
491 { 0x00000706, 0x0000 },
492 { 0x00000707, 0x0080 },
493 { 0x00000708, 0x0000 },
494 { 0x00000709, 0x0080 },
495 { 0x0000070A, 0x0000 },
496 { 0x0000070B, 0x0080 },
497 { 0x0000070C, 0x0000 },
498 { 0x0000070D, 0x0080 },
499 { 0x0000070E, 0x0000 },
500 { 0x0000070F, 0x0080 },
501 { 0x00000710, 0x0000 },
502 { 0x00000711, 0x0080 },
503 { 0x00000712, 0x0000 },
504 { 0x00000713, 0x0080 },
505 { 0x00000714, 0x0000 },
506 { 0x00000715, 0x0080 },
507 { 0x00000716, 0x0000 },
508 { 0x00000717, 0x0080 },
509 { 0x00000718, 0x0000 },
510 { 0x00000719, 0x0080 },
511 { 0x0000071A, 0x0000 },
512 { 0x0000071B, 0x0080 },
513 { 0x0000071C, 0x0000 },
514 { 0x0000071D, 0x0080 },
515 { 0x0000071E, 0x0000 },
516 { 0x0000071F, 0x0080 },
517 { 0x00000720, 0x0000 },
518 { 0x00000721, 0x0080 },
519 { 0x00000722, 0x0000 },
520 { 0x00000723, 0x0080 },
521 { 0x00000724, 0x0000 },
522 { 0x00000725, 0x0080 },
523 { 0x00000726, 0x0000 },
524 { 0x00000727, 0x0080 },
525 { 0x00000728, 0x0000 },
526 { 0x00000729, 0x0080 },
527 { 0x0000072A, 0x0000 },
528 { 0x0000072B, 0x0080 },
529 { 0x0000072C, 0x0000 },
530 { 0x0000072D, 0x0080 },
531 { 0x0000072E, 0x0000 },
532 { 0x0000072F, 0x0080 },
533 { 0x00000740, 0x0000 },
534 { 0x00000741, 0x0080 },
535 { 0x00000742, 0x0000 },
536 { 0x00000743, 0x0080 },
537 { 0x00000744, 0x0000 },
538 { 0x00000745, 0x0080 },
539 { 0x00000746, 0x0000 },
540 { 0x00000747, 0x0080 },
541 { 0x00000748, 0x0000 },
542 { 0x00000749, 0x0080 },
543 { 0x0000074A, 0x0000 },
544 { 0x0000074B, 0x0080 },
545 { 0x0000074C, 0x0000 },
546 { 0x0000074D, 0x0080 },
547 { 0x0000074E, 0x0000 },
548 { 0x0000074F, 0x0080 },
549 { 0x00000750, 0x0000 },
550 { 0x00000751, 0x0080 },
551 { 0x00000752, 0x0000 },
552 { 0x00000753, 0x0080 },
553 { 0x00000754, 0x0000 },
554 { 0x00000755, 0x0080 },
555 { 0x00000756, 0x0000 },
556 { 0x00000757, 0x0080 },
557 { 0x00000758, 0x0000 },
558 { 0x00000759, 0x0080 },
559 { 0x0000075A, 0x0000 },
560 { 0x0000075B, 0x0080 },
561 { 0x0000075C, 0x0000 },
562 { 0x0000075D, 0x0080 },
563 { 0x0000075E, 0x0000 },
564 { 0x0000075F, 0x0080 },
565 { 0x00000760, 0x0000 },
566 { 0x00000761, 0x0080 },
567 { 0x00000762, 0x0000 },
568 { 0x00000763, 0x0080 },
569 { 0x00000764, 0x0000 },
570 { 0x00000765, 0x0080 },
571 { 0x00000766, 0x0000 },
572 { 0x00000767, 0x0080 },
573 { 0x00000768, 0x0000 },
574 { 0x00000769, 0x0080 },
575 { 0x0000076A, 0x0000 },
576 { 0x0000076B, 0x0080 },
577 { 0x0000076C, 0x0000 },
578 { 0x0000076D, 0x0080 },
579 { 0x0000076E, 0x0000 },
580 { 0x0000076F, 0x0080 },
581 { 0x00000780, 0x0000 },
582 { 0x00000781, 0x0080 },
583 { 0x00000782, 0x0000 },
584 { 0x00000783, 0x0080 },
585 { 0x00000784, 0x0000 },
586 { 0x00000785, 0x0080 },
587 { 0x00000786, 0x0000 },
588 { 0x00000787, 0x0080 },
589 { 0x00000788, 0x0000 },
590 { 0x00000789, 0x0080 },
591 { 0x0000078A, 0x0000 },
592 { 0x0000078B, 0x0080 },
593 { 0x0000078C, 0x0000 },
594 { 0x0000078D, 0x0080 },
595 { 0x0000078E, 0x0000 },
596 { 0x0000078F, 0x0080 },
597 { 0x000007C0, 0x0000 },
598 { 0x000007C1, 0x0080 },
599 { 0x000007C8, 0x0000 },
600 { 0x000007C9, 0x0080 },
601 { 0x000007D0, 0x0000 },
602 { 0x000007D1, 0x0080 },
603 { 0x000007D8, 0x0000 },
604 { 0x000007D9, 0x0080 },
605 { 0x000007E0, 0x0000 },
606 { 0x000007E1, 0x0080 },
607 { 0x000007E8, 0x0000 },
608 { 0x000007E9, 0x0080 },
609 { 0x00000800, 0x0000 },
610 { 0x00000801, 0x0080 },
611 { 0x00000808, 0x0000 },
612 { 0x00000809, 0x0080 },
613 { 0x00000880, 0x0000 },
614 { 0x00000881, 0x0080 },
615 { 0x00000888, 0x0000 },
616 { 0x00000889, 0x0080 },
617 { 0x00000890, 0x0000 },
618 { 0x00000891, 0x0080 },
619 { 0x00000898, 0x0000 },
620 { 0x00000899, 0x0080 },
621 { 0x000008C0, 0x0000 },
622 { 0x000008C1, 0x0080 },
623 { 0x000008C8, 0x0000 },
624 { 0x000008C9, 0x0080 },
625 { 0x00000900, 0x0000 },
626 { 0x00000901, 0x0080 },
627 { 0x00000902, 0x0000 },
628 { 0x00000903, 0x0080 },
629 { 0x00000904, 0x0000 },
630 { 0x00000905, 0x0080 },
631 { 0x00000906, 0x0000 },
632 { 0x00000907, 0x0080 },
633 { 0x00000908, 0x0000 },
634 { 0x00000909, 0x0080 },
635 { 0x0000090A, 0x0000 },
636 { 0x0000090B, 0x0080 },
637 { 0x0000090C, 0x0000 },
638 { 0x0000090D, 0x0080 },
639 { 0x0000090E, 0x0000 },
640 { 0x0000090F, 0x0080 },
641 { 0x00000910, 0x0000 },
642 { 0x00000911, 0x0080 },
643 { 0x00000912, 0x0000 },
644 { 0x00000913, 0x0080 },
645 { 0x00000914, 0x0000 },
646 { 0x00000915, 0x0080 },
647 { 0x00000916, 0x0000 },
648 { 0x00000917, 0x0080 },
649 { 0x00000918, 0x0000 },
650 { 0x00000919, 0x0080 },
651 { 0x0000091A, 0x0000 },
652 { 0x0000091B, 0x0080 },
653 { 0x0000091C, 0x0000 },
654 { 0x0000091D, 0x0080 },
655 { 0x0000091E, 0x0000 },
656 { 0x0000091F, 0x0080 },
657 { 0x00000A80, 0x0000 },
658 { 0x00000A88, 0x0000 },
659 { 0x00000A90, 0x0000 },
660 { 0x00000A98, 0x0000 },
661 { 0x00000B00, 0x0000 },
662 { 0x00000B08, 0x0000 },
663 { 0x00000B10, 0x0000 },
664 { 0x00000B18, 0x0000 },
665 { 0x00000B20, 0x0000 },
666 { 0x00000B28, 0x0000 },
667 { 0x00000B30, 0x0000 },
668 { 0x00000B38, 0x0000 },
669 { 0x00000B40, 0x0000 },
670 { 0x00000B48, 0x0000 },
671 { 0x00000B60, 0x0000 },
672 { 0x00000B68, 0x0000 },
673 { 0x00000C00, 0xA101 },
674 { 0x00000C01, 0xA101 },
675 { 0x00000C02, 0xA101 },
676 { 0x00000C03, 0xA101 },
677 { 0x00000C04, 0xA101 },
678 { 0x00000C0F, 0x0400 },
679 { 0x00000C10, 0x1000 },
680 { 0x00000C18, 0x0000 },
681 { 0x00000C20, 0x8002 },
682 { 0x00000C21, 0x0001 },
683 { 0x00000C22, 0x0000 },
684 { 0x00000C23, 0x0000 },
685 { 0x00000C24, 0x0000 },
686 { 0x00000C25, 0x0000 },
687 { 0x00000D08, 0xFFFF },
688 { 0x00000D09, 0xFFFF },
689 { 0x00000D0A, 0xFFFF },
690 { 0x00000D0B, 0xFFFF },
691 { 0x00000D0C, 0xFEFF },
692 { 0x00000D0F, 0x0000 },
693 { 0x00000D18, 0xFFFF },
694 { 0x00000D19, 0xFFFF },
695 { 0x00000D1A, 0xFFFF },
696 { 0x00000D1B, 0xFFFF },
697 { 0x00000D1C, 0xFEFF },
698 { 0x00000D1F, 0x0000 },
699 { 0x00000D53, 0xFFFF },
700 { 0x00000D54, 0xFFFF },
701 { 0x00000D56, 0x0000 },
702 { 0x00000E00, 0x0000 },
703 { 0x00000E10, 0x6318 },
704 { 0x00000E11, 0x6300 },
705 { 0x00000E12, 0x0FC8 },
706 { 0x00000E13, 0x03FE },
707 { 0x00000E14, 0x00E0 },
708 { 0x00000E15, 0x1EC4 },
709 { 0x00000E16, 0xF136 },
710 { 0x00000E17, 0x0409 },
711 { 0x00000E18, 0x04CC },
712 { 0x00000E19, 0x1C9B },
713 { 0x00000E1A, 0xF337 },
714 { 0x00000E1B, 0x040B },
715 { 0x00000E1C, 0x0CBB },
716 { 0x00000E1D, 0x16F8 },
717 { 0x00000E1E, 0xF7D9 },
718 { 0x00000E1F, 0x040A },
719 { 0x00000E20, 0x1F14 },
720 { 0x00000E21, 0x058C },
721 { 0x00000E22, 0x0563 },
722 { 0x00000E23, 0x4000 },
723 { 0x00000E24, 0x0B75 },
724 { 0x00000E26, 0x6318 },
725 { 0x00000E27, 0x6300 },
726 { 0x00000E28, 0x0FC8 },
727 { 0x00000E29, 0x03FE },
728 { 0x00000E2A, 0x00E0 },
729 { 0x00000E2B, 0x1EC4 },
730 { 0x00000E2C, 0xF136 },
731 { 0x00000E2D, 0x0409 },
732 { 0x00000E2E, 0x04CC },
733 { 0x00000E2F, 0x1C9B },
734 { 0x00000E30, 0xF337 },
735 { 0x00000E31, 0x040B },
736 { 0x00000E32, 0x0CBB },
737 { 0x00000E33, 0x16F8 },
738 { 0x00000E34, 0xF7D9 },
739 { 0x00000E35, 0x040A },
740 { 0x00000E36, 0x1F14 },
741 { 0x00000E37, 0x058C },
742 { 0x00000E38, 0x0563 },
743 { 0x00000E39, 0x4000 },
744 { 0x00000E3A, 0x0B75 },
745 { 0x00000E3C, 0x6318 },
746 { 0x00000E3D, 0x6300 },
747 { 0x00000E3E, 0x0FC8 },
748 { 0x00000E3F, 0x03FE },
749 { 0x00000E40, 0x00E0 },
750 { 0x00000E41, 0x1EC4 },
751 { 0x00000E42, 0xF136 },
752 { 0x00000E43, 0x0409 },
753 { 0x00000E44, 0x04CC },
754 { 0x00000E45, 0x1C9B },
755 { 0x00000E46, 0xF337 },
756 { 0x00000E47, 0x040B },
757 { 0x00000E48, 0x0CBB },
758 { 0x00000E49, 0x16F8 },
759 { 0x00000E4A, 0xF7D9 },
760 { 0x00000E4B, 0x040A },
761 { 0x00000E4C, 0x1F14 },
762 { 0x00000E4D, 0x058C },
763 { 0x00000E4E, 0x0563 },
764 { 0x00000E4F, 0x4000 },
765 { 0x00000E50, 0x0B75 },
766 { 0x00000E52, 0x6318 },
767 { 0x00000E53, 0x6300 },
768 { 0x00000E54, 0x0FC8 },
769 { 0x00000E55, 0x03FE },
770 { 0x00000E56, 0x00E0 },
771 { 0x00000E57, 0x1EC4 },
772 { 0x00000E58, 0xF136 },
773 { 0x00000E59, 0x0409 },
774 { 0x00000E5A, 0x04CC },
775 { 0x00000E5B, 0x1C9B },
776 { 0x00000E5C, 0xF337 },
777 { 0x00000E5D, 0x040B },
778 { 0x00000E5E, 0x0CBB },
779 { 0x00000E5F, 0x16F8 },
780 { 0x00000E60, 0xF7D9 },
781 { 0x00000E61, 0x040A },
782 { 0x00000E62, 0x1F14 },
783 { 0x00000E63, 0x058C },
784 { 0x00000E64, 0x0563 },
785 { 0x00000E65, 0x4000 },
786 { 0x00000E66, 0x0B75 },
787 { 0x00000E80, 0x0018 },
788 { 0x00000E81, 0x0933 },
789 { 0x00000E82, 0x0018 },
790 { 0x00000E83, 0x0000 },
791 { 0x00000E84, 0x0000 },
792 { 0x00000EC0, 0x0000 },
793 { 0x00000EC1, 0x0000 },
794 { 0x00000EC4, 0x0000 },
795 { 0x00000EC5, 0x0000 },
796 { 0x00000EC8, 0x0000 },
797 { 0x00000EC9, 0x0000 },
798 { 0x00000ECC, 0x0000 },
799 { 0x00000ECD, 0x0000 },
800 { 0x00000EE0, 0x0000 },
801 { 0x00000EE2, 0x0000 },
802 { 0x00000EE3, 0x4000 },
803 { 0x00000EF0, 0x0000 },
804 { 0x00000EF1, 0x0001 },
805 { 0x00000EF2, 0x0000 },
806 { 0x00000EF3, 0x0000 },
807 { 0x00000EF4, 0x0001 },
808 { 0x00000EF5, 0x0000 },
809 { 0x00001700, 0x0000 },
810 { 0x00001701, 0x0000 },
811 { 0x00001702, 0x0000 },
812 { 0x00001703, 0x0000 },
813 { 0x00001704, 0x0000 },
814 { 0x00001705, 0x0000 },
815 };
816
817 static bool wm8998_readable_register(struct device *dev, unsigned int reg)
818 {
819 switch (reg) {
820 case ARIZONA_SOFTWARE_RESET:
821 case ARIZONA_DEVICE_REVISION:
822 case ARIZONA_CTRL_IF_I2C1_CFG_1:
823 case ARIZONA_CTRL_IF_I2C1_CFG_2:
824 case ARIZONA_WRITE_SEQUENCER_CTRL_0:
825 case ARIZONA_WRITE_SEQUENCER_CTRL_1:
826 case ARIZONA_WRITE_SEQUENCER_CTRL_2:
827 case ARIZONA_TONE_GENERATOR_1:
828 case ARIZONA_TONE_GENERATOR_2:
829 case ARIZONA_TONE_GENERATOR_3:
830 case ARIZONA_TONE_GENERATOR_4:
831 case ARIZONA_TONE_GENERATOR_5:
832 case ARIZONA_PWM_DRIVE_1:
833 case ARIZONA_PWM_DRIVE_2:
834 case ARIZONA_PWM_DRIVE_3:
835 case ARIZONA_WAKE_CONTROL:
836 case ARIZONA_SEQUENCE_CONTROL:
837 case ARIZONA_SAMPLE_RATE_SEQUENCE_SELECT_1:
838 case ARIZONA_SAMPLE_RATE_SEQUENCE_SELECT_2:
839 case ARIZONA_SAMPLE_RATE_SEQUENCE_SELECT_3:
840 case ARIZONA_SAMPLE_RATE_SEQUENCE_SELECT_4:
841 case ARIZONA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_1:
842 case ARIZONA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_2:
843 case ARIZONA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_3:
844 case ARIZONA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_4:
845 case ARIZONA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_5:
846 case ARIZONA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_6:
847 case ARIZONA_HAPTICS_CONTROL_1:
848 case ARIZONA_HAPTICS_CONTROL_2:
849 case ARIZONA_HAPTICS_PHASE_1_INTENSITY:
850 case ARIZONA_HAPTICS_PHASE_1_DURATION:
851 case ARIZONA_HAPTICS_PHASE_2_INTENSITY:
852 case ARIZONA_HAPTICS_PHASE_2_DURATION:
853 case ARIZONA_HAPTICS_PHASE_3_INTENSITY:
854 case ARIZONA_HAPTICS_PHASE_3_DURATION:
855 case ARIZONA_HAPTICS_STATUS:
856 case ARIZONA_CLOCK_32K_1:
857 case ARIZONA_SYSTEM_CLOCK_1:
858 case ARIZONA_SAMPLE_RATE_1:
859 case ARIZONA_SAMPLE_RATE_2:
860 case ARIZONA_SAMPLE_RATE_3:
861 case ARIZONA_SAMPLE_RATE_1_STATUS:
862 case ARIZONA_SAMPLE_RATE_2_STATUS:
863 case ARIZONA_SAMPLE_RATE_3_STATUS:
864 case ARIZONA_ASYNC_CLOCK_1:
865 case ARIZONA_ASYNC_SAMPLE_RATE_1:
866 case ARIZONA_ASYNC_SAMPLE_RATE_1_STATUS:
867 case ARIZONA_ASYNC_SAMPLE_RATE_2:
868 case ARIZONA_ASYNC_SAMPLE_RATE_2_STATUS:
869 case ARIZONA_OUTPUT_SYSTEM_CLOCK:
870 case ARIZONA_OUTPUT_ASYNC_CLOCK:
871 case ARIZONA_RATE_ESTIMATOR_1:
872 case ARIZONA_RATE_ESTIMATOR_2:
873 case ARIZONA_RATE_ESTIMATOR_3:
874 case ARIZONA_RATE_ESTIMATOR_4:
875 case ARIZONA_RATE_ESTIMATOR_5:
876 case ARIZONA_DYNAMIC_FREQUENCY_SCALING_1:
877 case ARIZONA_FLL1_CONTROL_1:
878 case ARIZONA_FLL1_CONTROL_2:
879 case ARIZONA_FLL1_CONTROL_3:
880 case ARIZONA_FLL1_CONTROL_4:
881 case ARIZONA_FLL1_CONTROL_5:
882 case ARIZONA_FLL1_CONTROL_6:
883 case ARIZONA_FLL1_CONTROL_7:
884 case ARIZONA_FLL1_SYNCHRONISER_1:
885 case ARIZONA_FLL1_SYNCHRONISER_2:
886 case ARIZONA_FLL1_SYNCHRONISER_3:
887 case ARIZONA_FLL1_SYNCHRONISER_4:
888 case ARIZONA_FLL1_SYNCHRONISER_5:
889 case ARIZONA_FLL1_SYNCHRONISER_6:
890 case ARIZONA_FLL1_SYNCHRONISER_7:
891 case ARIZONA_FLL1_SPREAD_SPECTRUM:
892 case ARIZONA_FLL1_GPIO_CLOCK:
893 case ARIZONA_FLL2_CONTROL_1:
894 case ARIZONA_FLL2_CONTROL_2:
895 case ARIZONA_FLL2_CONTROL_3:
896 case ARIZONA_FLL2_CONTROL_4:
897 case ARIZONA_FLL2_CONTROL_5:
898 case ARIZONA_FLL2_CONTROL_6:
899 case ARIZONA_FLL2_CONTROL_7:
900 case ARIZONA_FLL2_SYNCHRONISER_1:
901 case ARIZONA_FLL2_SYNCHRONISER_2:
902 case ARIZONA_FLL2_SYNCHRONISER_3:
903 case ARIZONA_FLL2_SYNCHRONISER_4:
904 case ARIZONA_FLL2_SYNCHRONISER_5:
905 case ARIZONA_FLL2_SYNCHRONISER_6:
906 case ARIZONA_FLL2_SYNCHRONISER_7:
907 case ARIZONA_FLL2_SPREAD_SPECTRUM:
908 case ARIZONA_FLL2_GPIO_CLOCK:
909 case ARIZONA_MIC_CHARGE_PUMP_1:
910 case ARIZONA_LDO1_CONTROL_1:
911 case ARIZONA_LDO1_CONTROL_2:
912 case ARIZONA_LDO2_CONTROL_1:
913 case ARIZONA_MIC_BIAS_CTRL_1:
914 case ARIZONA_MIC_BIAS_CTRL_2:
915 case ARIZONA_MIC_BIAS_CTRL_3:
916 case ARIZONA_ACCESSORY_DETECT_MODE_1:
917 case ARIZONA_HEADPHONE_DETECT_1:
918 case ARIZONA_HEADPHONE_DETECT_2:
919 case ARIZONA_MICD_CLAMP_CONTROL:
920 case ARIZONA_MIC_DETECT_1:
921 case ARIZONA_MIC_DETECT_2:
922 case ARIZONA_MIC_DETECT_3:
923 case ARIZONA_MIC_DETECT_4:
924 case ARIZONA_MIC_DETECT_LEVEL_1:
925 case ARIZONA_MIC_DETECT_LEVEL_2:
926 case ARIZONA_MIC_DETECT_LEVEL_3:
927 case ARIZONA_MIC_DETECT_LEVEL_4:
928 case ARIZONA_ISOLATION_CONTROL:
929 case ARIZONA_JACK_DETECT_ANALOGUE:
930 case ARIZONA_INPUT_ENABLES:
931 case ARIZONA_INPUT_ENABLES_STATUS:
932 case ARIZONA_INPUT_RATE:
933 case ARIZONA_INPUT_VOLUME_RAMP:
934 case ARIZONA_HPF_CONTROL:
935 case ARIZONA_IN1L_CONTROL:
936 case ARIZONA_ADC_DIGITAL_VOLUME_1L:
937 case ARIZONA_DMIC1L_CONTROL:
938 case ARIZONA_IN1R_CONTROL:
939 case ARIZONA_ADC_DIGITAL_VOLUME_1R:
940 case ARIZONA_DMIC1R_CONTROL:
941 case ARIZONA_IN2L_CONTROL:
942 case ARIZONA_ADC_DIGITAL_VOLUME_2L:
943 case ARIZONA_DMIC2L_CONTROL:
944 case ARIZONA_OUTPUT_ENABLES_1:
945 case ARIZONA_OUTPUT_STATUS_1:
946 case ARIZONA_RAW_OUTPUT_STATUS_1:
947 case ARIZONA_OUTPUT_RATE_1:
948 case ARIZONA_OUTPUT_VOLUME_RAMP:
949 case ARIZONA_OUTPUT_PATH_CONFIG_1L:
950 case ARIZONA_DAC_DIGITAL_VOLUME_1L:
951 case ARIZONA_NOISE_GATE_SELECT_1L:
952 case ARIZONA_OUTPUT_PATH_CONFIG_1R:
953 case ARIZONA_DAC_DIGITAL_VOLUME_1R:
954 case ARIZONA_NOISE_GATE_SELECT_1R:
955 case ARIZONA_OUTPUT_PATH_CONFIG_2L:
956 case ARIZONA_DAC_DIGITAL_VOLUME_2L:
957 case ARIZONA_NOISE_GATE_SELECT_2L:
958 case ARIZONA_OUTPUT_PATH_CONFIG_2R:
959 case ARIZONA_DAC_DIGITAL_VOLUME_2R:
960 case ARIZONA_NOISE_GATE_SELECT_2R:
961 case ARIZONA_OUTPUT_PATH_CONFIG_3L:
962 case ARIZONA_DAC_DIGITAL_VOLUME_3L:
963 case ARIZONA_NOISE_GATE_SELECT_3L:
964 case ARIZONA_OUTPUT_PATH_CONFIG_4L:
965 case ARIZONA_DAC_DIGITAL_VOLUME_4L:
966 case ARIZONA_NOISE_GATE_SELECT_4L:
967 case ARIZONA_OUTPUT_PATH_CONFIG_4R:
968 case ARIZONA_DAC_DIGITAL_VOLUME_4R:
969 case ARIZONA_NOISE_GATE_SELECT_4R:
970 case ARIZONA_OUTPUT_PATH_CONFIG_5L:
971 case ARIZONA_DAC_DIGITAL_VOLUME_5L:
972 case ARIZONA_NOISE_GATE_SELECT_5L:
973 case ARIZONA_OUTPUT_PATH_CONFIG_5R:
974 case ARIZONA_DAC_DIGITAL_VOLUME_5R:
975 case ARIZONA_NOISE_GATE_SELECT_5R:
976 case ARIZONA_DRE_ENABLE:
977 case ARIZONA_DRE_CONTROL_1:
978 case ARIZONA_DRE_CONTROL_2:
979 case ARIZONA_DRE_CONTROL_3:
980 case ARIZONA_EDRE_ENABLE:
981 case ARIZONA_DAC_AEC_CONTROL_1:
982 case ARIZONA_DAC_AEC_CONTROL_2:
983 case ARIZONA_NOISE_GATE_CONTROL:
984 case ARIZONA_PDM_SPK1_CTRL_1:
985 case ARIZONA_PDM_SPK1_CTRL_2:
986 case ARIZONA_HP_TEST_CTRL_13:
987 case ARIZONA_AIF1_BCLK_CTRL:
988 case ARIZONA_AIF1_TX_PIN_CTRL:
989 case ARIZONA_AIF1_RX_PIN_CTRL:
990 case ARIZONA_AIF1_RATE_CTRL:
991 case ARIZONA_AIF1_FORMAT:
992 case ARIZONA_AIF1_RX_BCLK_RATE:
993 case ARIZONA_AIF1_FRAME_CTRL_1:
994 case ARIZONA_AIF1_FRAME_CTRL_2:
995 case ARIZONA_AIF1_FRAME_CTRL_3:
996 case ARIZONA_AIF1_FRAME_CTRL_4:
997 case ARIZONA_AIF1_FRAME_CTRL_5:
998 case ARIZONA_AIF1_FRAME_CTRL_6:
999 case ARIZONA_AIF1_FRAME_CTRL_7:
1000 case ARIZONA_AIF1_FRAME_CTRL_8:
1001 case ARIZONA_AIF1_FRAME_CTRL_11:
1002 case ARIZONA_AIF1_FRAME_CTRL_12:
1003 case ARIZONA_AIF1_FRAME_CTRL_13:
1004 case ARIZONA_AIF1_FRAME_CTRL_14:
1005 case ARIZONA_AIF1_FRAME_CTRL_15:
1006 case ARIZONA_AIF1_FRAME_CTRL_16:
1007 case ARIZONA_AIF1_TX_ENABLES:
1008 case ARIZONA_AIF1_RX_ENABLES:
1009 case ARIZONA_AIF2_BCLK_CTRL:
1010 case ARIZONA_AIF2_TX_PIN_CTRL:
1011 case ARIZONA_AIF2_RX_PIN_CTRL:
1012 case ARIZONA_AIF2_RATE_CTRL:
1013 case ARIZONA_AIF2_FORMAT:
1014 case ARIZONA_AIF2_RX_BCLK_RATE:
1015 case ARIZONA_AIF2_FRAME_CTRL_1:
1016 case ARIZONA_AIF2_FRAME_CTRL_2:
1017 case ARIZONA_AIF2_FRAME_CTRL_3:
1018 case ARIZONA_AIF2_FRAME_CTRL_4:
1019 case ARIZONA_AIF2_FRAME_CTRL_5:
1020 case ARIZONA_AIF2_FRAME_CTRL_6:
1021 case ARIZONA_AIF2_FRAME_CTRL_7:
1022 case ARIZONA_AIF2_FRAME_CTRL_8:
1023 case ARIZONA_AIF2_FRAME_CTRL_11:
1024 case ARIZONA_AIF2_FRAME_CTRL_12:
1025 case ARIZONA_AIF2_FRAME_CTRL_13:
1026 case ARIZONA_AIF2_FRAME_CTRL_14:
1027 case ARIZONA_AIF2_FRAME_CTRL_15:
1028 case ARIZONA_AIF2_FRAME_CTRL_16:
1029 case ARIZONA_AIF2_TX_ENABLES:
1030 case ARIZONA_AIF2_RX_ENABLES:
1031 case ARIZONA_AIF3_BCLK_CTRL:
1032 case ARIZONA_AIF3_TX_PIN_CTRL:
1033 case ARIZONA_AIF3_RX_PIN_CTRL:
1034 case ARIZONA_AIF3_RATE_CTRL:
1035 case ARIZONA_AIF3_FORMAT:
1036 case ARIZONA_AIF3_RX_BCLK_RATE:
1037 case ARIZONA_AIF3_FRAME_CTRL_1:
1038 case ARIZONA_AIF3_FRAME_CTRL_2:
1039 case ARIZONA_AIF3_FRAME_CTRL_3:
1040 case ARIZONA_AIF3_FRAME_CTRL_4:
1041 case ARIZONA_AIF3_FRAME_CTRL_11:
1042 case ARIZONA_AIF3_FRAME_CTRL_12:
1043 case ARIZONA_AIF3_TX_ENABLES:
1044 case ARIZONA_AIF3_RX_ENABLES:
1045 case ARIZONA_SPD1_TX_CONTROL:
1046 case ARIZONA_SPD1_TX_CHANNEL_STATUS_1:
1047 case ARIZONA_SPD1_TX_CHANNEL_STATUS_2:
1048 case ARIZONA_SPD1_TX_CHANNEL_STATUS_3:
1049 case ARIZONA_SLIMBUS_FRAMER_REF_GEAR:
1050 case ARIZONA_SLIMBUS_RATES_1:
1051 case ARIZONA_SLIMBUS_RATES_2:
1052 case ARIZONA_SLIMBUS_RATES_5:
1053 case ARIZONA_SLIMBUS_RATES_6:
1054 case ARIZONA_SLIMBUS_RATES_7:
1055 case ARIZONA_SLIMBUS_RX_CHANNEL_ENABLE:
1056 case ARIZONA_SLIMBUS_TX_CHANNEL_ENABLE:
1057 case ARIZONA_SLIMBUS_RX_PORT_STATUS:
1058 case ARIZONA_SLIMBUS_TX_PORT_STATUS:
1059 case ARIZONA_PWM1MIX_INPUT_1_SOURCE:
1060 case ARIZONA_PWM1MIX_INPUT_1_VOLUME:
1061 case ARIZONA_PWM1MIX_INPUT_2_SOURCE:
1062 case ARIZONA_PWM1MIX_INPUT_2_VOLUME:
1063 case ARIZONA_PWM1MIX_INPUT_3_SOURCE:
1064 case ARIZONA_PWM1MIX_INPUT_3_VOLUME:
1065 case ARIZONA_PWM1MIX_INPUT_4_SOURCE:
1066 case ARIZONA_PWM1MIX_INPUT_4_VOLUME:
1067 case ARIZONA_PWM2MIX_INPUT_1_SOURCE:
1068 case ARIZONA_PWM2MIX_INPUT_1_VOLUME:
1069 case ARIZONA_PWM2MIX_INPUT_2_SOURCE:
1070 case ARIZONA_PWM2MIX_INPUT_2_VOLUME:
1071 case ARIZONA_PWM2MIX_INPUT_3_SOURCE:
1072 case ARIZONA_PWM2MIX_INPUT_3_VOLUME:
1073 case ARIZONA_PWM2MIX_INPUT_4_SOURCE:
1074 case ARIZONA_PWM2MIX_INPUT_4_VOLUME:
1075 case ARIZONA_OUT1LMIX_INPUT_1_SOURCE:
1076 case ARIZONA_OUT1LMIX_INPUT_1_VOLUME:
1077 case ARIZONA_OUT1LMIX_INPUT_2_SOURCE:
1078 case ARIZONA_OUT1LMIX_INPUT_2_VOLUME:
1079 case ARIZONA_OUT1LMIX_INPUT_3_SOURCE:
1080 case ARIZONA_OUT1LMIX_INPUT_3_VOLUME:
1081 case ARIZONA_OUT1LMIX_INPUT_4_SOURCE:
1082 case ARIZONA_OUT1LMIX_INPUT_4_VOLUME:
1083 case ARIZONA_OUT1RMIX_INPUT_1_SOURCE:
1084 case ARIZONA_OUT1RMIX_INPUT_1_VOLUME:
1085 case ARIZONA_OUT1RMIX_INPUT_2_SOURCE:
1086 case ARIZONA_OUT1RMIX_INPUT_2_VOLUME:
1087 case ARIZONA_OUT1RMIX_INPUT_3_SOURCE:
1088 case ARIZONA_OUT1RMIX_INPUT_3_VOLUME:
1089 case ARIZONA_OUT1RMIX_INPUT_4_SOURCE:
1090 case ARIZONA_OUT1RMIX_INPUT_4_VOLUME:
1091 case ARIZONA_OUT2LMIX_INPUT_1_SOURCE:
1092 case ARIZONA_OUT2LMIX_INPUT_1_VOLUME:
1093 case ARIZONA_OUT2LMIX_INPUT_2_SOURCE:
1094 case ARIZONA_OUT2LMIX_INPUT_2_VOLUME:
1095 case ARIZONA_OUT2LMIX_INPUT_3_SOURCE:
1096 case ARIZONA_OUT2LMIX_INPUT_3_VOLUME:
1097 case ARIZONA_OUT2LMIX_INPUT_4_SOURCE:
1098 case ARIZONA_OUT2LMIX_INPUT_4_VOLUME:
1099 case ARIZONA_OUT2RMIX_INPUT_1_SOURCE:
1100 case ARIZONA_OUT2RMIX_INPUT_1_VOLUME:
1101 case ARIZONA_OUT2RMIX_INPUT_2_SOURCE:
1102 case ARIZONA_OUT2RMIX_INPUT_2_VOLUME:
1103 case ARIZONA_OUT2RMIX_INPUT_3_SOURCE:
1104 case ARIZONA_OUT2RMIX_INPUT_3_VOLUME:
1105 case ARIZONA_OUT2RMIX_INPUT_4_SOURCE:
1106 case ARIZONA_OUT2RMIX_INPUT_4_VOLUME:
1107 case ARIZONA_OUT3LMIX_INPUT_1_SOURCE:
1108 case ARIZONA_OUT3LMIX_INPUT_1_VOLUME:
1109 case ARIZONA_OUT3LMIX_INPUT_2_SOURCE:
1110 case ARIZONA_OUT3LMIX_INPUT_2_VOLUME:
1111 case ARIZONA_OUT3LMIX_INPUT_3_SOURCE:
1112 case ARIZONA_OUT3LMIX_INPUT_3_VOLUME:
1113 case ARIZONA_OUT3LMIX_INPUT_4_SOURCE:
1114 case ARIZONA_OUT3LMIX_INPUT_4_VOLUME:
1115 case ARIZONA_OUT4LMIX_INPUT_1_SOURCE:
1116 case ARIZONA_OUT4LMIX_INPUT_1_VOLUME:
1117 case ARIZONA_OUT4LMIX_INPUT_2_SOURCE:
1118 case ARIZONA_OUT4LMIX_INPUT_2_VOLUME:
1119 case ARIZONA_OUT4LMIX_INPUT_3_SOURCE:
1120 case ARIZONA_OUT4LMIX_INPUT_3_VOLUME:
1121 case ARIZONA_OUT4LMIX_INPUT_4_SOURCE:
1122 case ARIZONA_OUT4LMIX_INPUT_4_VOLUME:
1123 case ARIZONA_OUT4RMIX_INPUT_1_SOURCE:
1124 case ARIZONA_OUT4RMIX_INPUT_1_VOLUME:
1125 case ARIZONA_OUT4RMIX_INPUT_2_SOURCE:
1126 case ARIZONA_OUT4RMIX_INPUT_2_VOLUME:
1127 case ARIZONA_OUT4RMIX_INPUT_3_SOURCE:
1128 case ARIZONA_OUT4RMIX_INPUT_3_VOLUME:
1129 case ARIZONA_OUT4RMIX_INPUT_4_SOURCE:
1130 case ARIZONA_OUT4RMIX_INPUT_4_VOLUME:
1131 case ARIZONA_OUT5LMIX_INPUT_1_SOURCE:
1132 case ARIZONA_OUT5LMIX_INPUT_1_VOLUME:
1133 case ARIZONA_OUT5LMIX_INPUT_2_SOURCE:
1134 case ARIZONA_OUT5LMIX_INPUT_2_VOLUME:
1135 case ARIZONA_OUT5LMIX_INPUT_3_SOURCE:
1136 case ARIZONA_OUT5LMIX_INPUT_3_VOLUME:
1137 case ARIZONA_OUT5LMIX_INPUT_4_SOURCE:
1138 case ARIZONA_OUT5LMIX_INPUT_4_VOLUME:
1139 case ARIZONA_OUT5RMIX_INPUT_1_SOURCE:
1140 case ARIZONA_OUT5RMIX_INPUT_1_VOLUME:
1141 case ARIZONA_OUT5RMIX_INPUT_2_SOURCE:
1142 case ARIZONA_OUT5RMIX_INPUT_2_VOLUME:
1143 case ARIZONA_OUT5RMIX_INPUT_3_SOURCE:
1144 case ARIZONA_OUT5RMIX_INPUT_3_VOLUME:
1145 case ARIZONA_OUT5RMIX_INPUT_4_SOURCE:
1146 case ARIZONA_OUT5RMIX_INPUT_4_VOLUME:
1147 case ARIZONA_AIF1TX1MIX_INPUT_1_SOURCE:
1148 case ARIZONA_AIF1TX1MIX_INPUT_1_VOLUME:
1149 case ARIZONA_AIF1TX1MIX_INPUT_2_SOURCE:
1150 case ARIZONA_AIF1TX1MIX_INPUT_2_VOLUME:
1151 case ARIZONA_AIF1TX1MIX_INPUT_3_SOURCE:
1152 case ARIZONA_AIF1TX1MIX_INPUT_3_VOLUME:
1153 case ARIZONA_AIF1TX1MIX_INPUT_4_SOURCE:
1154 case ARIZONA_AIF1TX1MIX_INPUT_4_VOLUME:
1155 case ARIZONA_AIF1TX2MIX_INPUT_1_SOURCE:
1156 case ARIZONA_AIF1TX2MIX_INPUT_1_VOLUME:
1157 case ARIZONA_AIF1TX2MIX_INPUT_2_SOURCE:
1158 case ARIZONA_AIF1TX2MIX_INPUT_2_VOLUME:
1159 case ARIZONA_AIF1TX2MIX_INPUT_3_SOURCE:
1160 case ARIZONA_AIF1TX2MIX_INPUT_3_VOLUME:
1161 case ARIZONA_AIF1TX2MIX_INPUT_4_SOURCE:
1162 case ARIZONA_AIF1TX2MIX_INPUT_4_VOLUME:
1163 case ARIZONA_AIF1TX3MIX_INPUT_1_SOURCE:
1164 case ARIZONA_AIF1TX3MIX_INPUT_1_VOLUME:
1165 case ARIZONA_AIF1TX3MIX_INPUT_2_SOURCE:
1166 case ARIZONA_AIF1TX3MIX_INPUT_2_VOLUME:
1167 case ARIZONA_AIF1TX3MIX_INPUT_3_SOURCE:
1168 case ARIZONA_AIF1TX3MIX_INPUT_3_VOLUME:
1169 case ARIZONA_AIF1TX3MIX_INPUT_4_SOURCE:
1170 case ARIZONA_AIF1TX3MIX_INPUT_4_VOLUME:
1171 case ARIZONA_AIF1TX4MIX_INPUT_1_SOURCE:
1172 case ARIZONA_AIF1TX4MIX_INPUT_1_VOLUME:
1173 case ARIZONA_AIF1TX4MIX_INPUT_2_SOURCE:
1174 case ARIZONA_AIF1TX4MIX_INPUT_2_VOLUME:
1175 case ARIZONA_AIF1TX4MIX_INPUT_3_SOURCE:
1176 case ARIZONA_AIF1TX4MIX_INPUT_3_VOLUME:
1177 case ARIZONA_AIF1TX4MIX_INPUT_4_SOURCE:
1178 case ARIZONA_AIF1TX4MIX_INPUT_4_VOLUME:
1179 case ARIZONA_AIF1TX5MIX_INPUT_1_SOURCE:
1180 case ARIZONA_AIF1TX5MIX_INPUT_1_VOLUME:
1181 case ARIZONA_AIF1TX5MIX_INPUT_2_SOURCE:
1182 case ARIZONA_AIF1TX5MIX_INPUT_2_VOLUME:
1183 case ARIZONA_AIF1TX5MIX_INPUT_3_SOURCE:
1184 case ARIZONA_AIF1TX5MIX_INPUT_3_VOLUME:
1185 case ARIZONA_AIF1TX5MIX_INPUT_4_SOURCE:
1186 case ARIZONA_AIF1TX5MIX_INPUT_4_VOLUME:
1187 case ARIZONA_AIF1TX6MIX_INPUT_1_SOURCE:
1188 case ARIZONA_AIF1TX6MIX_INPUT_1_VOLUME:
1189 case ARIZONA_AIF1TX6MIX_INPUT_2_SOURCE:
1190 case ARIZONA_AIF1TX6MIX_INPUT_2_VOLUME:
1191 case ARIZONA_AIF1TX6MIX_INPUT_3_SOURCE:
1192 case ARIZONA_AIF1TX6MIX_INPUT_3_VOLUME:
1193 case ARIZONA_AIF1TX6MIX_INPUT_4_SOURCE:
1194 case ARIZONA_AIF1TX6MIX_INPUT_4_VOLUME:
1195 case ARIZONA_AIF2TX1MIX_INPUT_1_SOURCE:
1196 case ARIZONA_AIF2TX1MIX_INPUT_1_VOLUME:
1197 case ARIZONA_AIF2TX1MIX_INPUT_2_SOURCE:
1198 case ARIZONA_AIF2TX1MIX_INPUT_2_VOLUME:
1199 case ARIZONA_AIF2TX1MIX_INPUT_3_SOURCE:
1200 case ARIZONA_AIF2TX1MIX_INPUT_3_VOLUME:
1201 case ARIZONA_AIF2TX1MIX_INPUT_4_SOURCE:
1202 case ARIZONA_AIF2TX1MIX_INPUT_4_VOLUME:
1203 case ARIZONA_AIF2TX2MIX_INPUT_1_SOURCE:
1204 case ARIZONA_AIF2TX2MIX_INPUT_1_VOLUME:
1205 case ARIZONA_AIF2TX2MIX_INPUT_2_SOURCE:
1206 case ARIZONA_AIF2TX2MIX_INPUT_2_VOLUME:
1207 case ARIZONA_AIF2TX2MIX_INPUT_3_SOURCE:
1208 case ARIZONA_AIF2TX2MIX_INPUT_3_VOLUME:
1209 case ARIZONA_AIF2TX2MIX_INPUT_4_SOURCE:
1210 case ARIZONA_AIF2TX2MIX_INPUT_4_VOLUME:
1211 case ARIZONA_AIF2TX3MIX_INPUT_1_SOURCE:
1212 case ARIZONA_AIF2TX3MIX_INPUT_1_VOLUME:
1213 case ARIZONA_AIF2TX3MIX_INPUT_2_SOURCE:
1214 case ARIZONA_AIF2TX3MIX_INPUT_2_VOLUME:
1215 case ARIZONA_AIF2TX3MIX_INPUT_3_SOURCE:
1216 case ARIZONA_AIF2TX3MIX_INPUT_3_VOLUME:
1217 case ARIZONA_AIF2TX3MIX_INPUT_4_SOURCE:
1218 case ARIZONA_AIF2TX3MIX_INPUT_4_VOLUME:
1219 case ARIZONA_AIF2TX4MIX_INPUT_1_SOURCE:
1220 case ARIZONA_AIF2TX4MIX_INPUT_1_VOLUME:
1221 case ARIZONA_AIF2TX4MIX_INPUT_2_SOURCE:
1222 case ARIZONA_AIF2TX4MIX_INPUT_2_VOLUME:
1223 case ARIZONA_AIF2TX4MIX_INPUT_3_SOURCE:
1224 case ARIZONA_AIF2TX4MIX_INPUT_3_VOLUME:
1225 case ARIZONA_AIF2TX4MIX_INPUT_4_SOURCE:
1226 case ARIZONA_AIF2TX4MIX_INPUT_4_VOLUME:
1227 case ARIZONA_AIF2TX5MIX_INPUT_1_SOURCE:
1228 case ARIZONA_AIF2TX5MIX_INPUT_1_VOLUME:
1229 case ARIZONA_AIF2TX5MIX_INPUT_2_SOURCE:
1230 case ARIZONA_AIF2TX5MIX_INPUT_2_VOLUME:
1231 case ARIZONA_AIF2TX5MIX_INPUT_3_SOURCE:
1232 case ARIZONA_AIF2TX5MIX_INPUT_3_VOLUME:
1233 case ARIZONA_AIF2TX5MIX_INPUT_4_SOURCE:
1234 case ARIZONA_AIF2TX5MIX_INPUT_4_VOLUME:
1235 case ARIZONA_AIF2TX6MIX_INPUT_1_SOURCE:
1236 case ARIZONA_AIF2TX6MIX_INPUT_1_VOLUME:
1237 case ARIZONA_AIF2TX6MIX_INPUT_2_SOURCE:
1238 case ARIZONA_AIF2TX6MIX_INPUT_2_VOLUME:
1239 case ARIZONA_AIF2TX6MIX_INPUT_3_SOURCE:
1240 case ARIZONA_AIF2TX6MIX_INPUT_3_VOLUME:
1241 case ARIZONA_AIF2TX6MIX_INPUT_4_SOURCE:
1242 case ARIZONA_AIF2TX6MIX_INPUT_4_VOLUME:
1243 case ARIZONA_AIF3TX1MIX_INPUT_1_SOURCE:
1244 case ARIZONA_AIF3TX1MIX_INPUT_1_VOLUME:
1245 case ARIZONA_AIF3TX1MIX_INPUT_2_SOURCE:
1246 case ARIZONA_AIF3TX1MIX_INPUT_2_VOLUME:
1247 case ARIZONA_AIF3TX1MIX_INPUT_3_SOURCE:
1248 case ARIZONA_AIF3TX1MIX_INPUT_3_VOLUME:
1249 case ARIZONA_AIF3TX1MIX_INPUT_4_SOURCE:
1250 case ARIZONA_AIF3TX1MIX_INPUT_4_VOLUME:
1251 case ARIZONA_AIF3TX2MIX_INPUT_1_SOURCE:
1252 case ARIZONA_AIF3TX2MIX_INPUT_1_VOLUME:
1253 case ARIZONA_AIF3TX2MIX_INPUT_2_SOURCE:
1254 case ARIZONA_AIF3TX2MIX_INPUT_2_VOLUME:
1255 case ARIZONA_AIF3TX2MIX_INPUT_3_SOURCE:
1256 case ARIZONA_AIF3TX2MIX_INPUT_3_VOLUME:
1257 case ARIZONA_AIF3TX2MIX_INPUT_4_SOURCE:
1258 case ARIZONA_AIF3TX2MIX_INPUT_4_VOLUME:
1259 case ARIZONA_SLIMTX1MIX_INPUT_1_SOURCE:
1260 case ARIZONA_SLIMTX1MIX_INPUT_1_VOLUME:
1261 case ARIZONA_SLIMTX2MIX_INPUT_1_SOURCE:
1262 case ARIZONA_SLIMTX2MIX_INPUT_1_VOLUME:
1263 case ARIZONA_SLIMTX3MIX_INPUT_1_SOURCE:
1264 case ARIZONA_SLIMTX3MIX_INPUT_1_VOLUME:
1265 case ARIZONA_SLIMTX4MIX_INPUT_1_SOURCE:
1266 case ARIZONA_SLIMTX4MIX_INPUT_1_VOLUME:
1267 case ARIZONA_SLIMTX5MIX_INPUT_1_SOURCE:
1268 case ARIZONA_SLIMTX5MIX_INPUT_1_VOLUME:
1269 case ARIZONA_SLIMTX6MIX_INPUT_1_SOURCE:
1270 case ARIZONA_SLIMTX6MIX_INPUT_1_VOLUME:
1271 case ARIZONA_SPDIFTX1MIX_INPUT_1_SOURCE:
1272 case ARIZONA_SPDIFTX1MIX_INPUT_1_VOLUME:
1273 case ARIZONA_SPDIFTX2MIX_INPUT_1_SOURCE:
1274 case ARIZONA_SPDIFTX2MIX_INPUT_1_VOLUME:
1275 case ARIZONA_EQ1MIX_INPUT_1_SOURCE:
1276 case ARIZONA_EQ1MIX_INPUT_1_VOLUME:
1277 case ARIZONA_EQ2MIX_INPUT_1_SOURCE:
1278 case ARIZONA_EQ2MIX_INPUT_1_VOLUME:
1279 case ARIZONA_EQ3MIX_INPUT_1_SOURCE:
1280 case ARIZONA_EQ3MIX_INPUT_1_VOLUME:
1281 case ARIZONA_EQ4MIX_INPUT_1_SOURCE:
1282 case ARIZONA_EQ4MIX_INPUT_1_VOLUME:
1283 case ARIZONA_DRC1LMIX_INPUT_1_SOURCE:
1284 case ARIZONA_DRC1LMIX_INPUT_1_VOLUME:
1285 case ARIZONA_DRC1RMIX_INPUT_1_SOURCE:
1286 case ARIZONA_DRC1RMIX_INPUT_1_VOLUME:
1287 case ARIZONA_HPLP1MIX_INPUT_1_SOURCE:
1288 case ARIZONA_HPLP1MIX_INPUT_1_VOLUME:
1289 case ARIZONA_HPLP1MIX_INPUT_2_SOURCE:
1290 case ARIZONA_HPLP1MIX_INPUT_2_VOLUME:
1291 case ARIZONA_HPLP1MIX_INPUT_3_SOURCE:
1292 case ARIZONA_HPLP1MIX_INPUT_3_VOLUME:
1293 case ARIZONA_HPLP1MIX_INPUT_4_SOURCE:
1294 case ARIZONA_HPLP1MIX_INPUT_4_VOLUME:
1295 case ARIZONA_HPLP2MIX_INPUT_1_SOURCE:
1296 case ARIZONA_HPLP2MIX_INPUT_1_VOLUME:
1297 case ARIZONA_HPLP2MIX_INPUT_2_SOURCE:
1298 case ARIZONA_HPLP2MIX_INPUT_2_VOLUME:
1299 case ARIZONA_HPLP2MIX_INPUT_3_SOURCE:
1300 case ARIZONA_HPLP2MIX_INPUT_3_VOLUME:
1301 case ARIZONA_HPLP2MIX_INPUT_4_SOURCE:
1302 case ARIZONA_HPLP2MIX_INPUT_4_VOLUME:
1303 case ARIZONA_HPLP3MIX_INPUT_1_SOURCE:
1304 case ARIZONA_HPLP3MIX_INPUT_1_VOLUME:
1305 case ARIZONA_HPLP3MIX_INPUT_2_SOURCE:
1306 case ARIZONA_HPLP3MIX_INPUT_2_VOLUME:
1307 case ARIZONA_HPLP3MIX_INPUT_3_SOURCE:
1308 case ARIZONA_HPLP3MIX_INPUT_3_VOLUME:
1309 case ARIZONA_HPLP3MIX_INPUT_4_SOURCE:
1310 case ARIZONA_HPLP3MIX_INPUT_4_VOLUME:
1311 case ARIZONA_HPLP4MIX_INPUT_1_SOURCE:
1312 case ARIZONA_HPLP4MIX_INPUT_1_VOLUME:
1313 case ARIZONA_HPLP4MIX_INPUT_2_SOURCE:
1314 case ARIZONA_HPLP4MIX_INPUT_2_VOLUME:
1315 case ARIZONA_HPLP4MIX_INPUT_3_SOURCE:
1316 case ARIZONA_HPLP4MIX_INPUT_3_VOLUME:
1317 case ARIZONA_HPLP4MIX_INPUT_4_SOURCE:
1318 case ARIZONA_HPLP4MIX_INPUT_4_VOLUME:
1319 case ARIZONA_ASRC1LMIX_INPUT_1_SOURCE:
1320 case ARIZONA_ASRC1RMIX_INPUT_1_SOURCE:
1321 case ARIZONA_ASRC2LMIX_INPUT_1_SOURCE:
1322 case ARIZONA_ASRC2RMIX_INPUT_1_SOURCE:
1323 case ARIZONA_ISRC1DEC1MIX_INPUT_1_SOURCE:
1324 case ARIZONA_ISRC1DEC2MIX_INPUT_1_SOURCE:
1325 case ARIZONA_ISRC1DEC3MIX_INPUT_1_SOURCE:
1326 case ARIZONA_ISRC1DEC4MIX_INPUT_1_SOURCE:
1327 case ARIZONA_ISRC1INT1MIX_INPUT_1_SOURCE:
1328 case ARIZONA_ISRC1INT2MIX_INPUT_1_SOURCE:
1329 case ARIZONA_ISRC1INT3MIX_INPUT_1_SOURCE:
1330 case ARIZONA_ISRC1INT4MIX_INPUT_1_SOURCE:
1331 case ARIZONA_ISRC2DEC1MIX_INPUT_1_SOURCE:
1332 case ARIZONA_ISRC2DEC2MIX_INPUT_1_SOURCE:
1333 case ARIZONA_ISRC2INT1MIX_INPUT_1_SOURCE:
1334 case ARIZONA_ISRC2INT2MIX_INPUT_1_SOURCE:
1335 case ARIZONA_GPIO1_CTRL:
1336 case ARIZONA_GPIO2_CTRL:
1337 case ARIZONA_GPIO3_CTRL:
1338 case ARIZONA_GPIO4_CTRL:
1339 case ARIZONA_GPIO5_CTRL:
1340 case ARIZONA_IRQ_CTRL_1:
1341 case ARIZONA_GPIO_DEBOUNCE_CONFIG:
1342 case ARIZONA_GP_SWITCH_1:
1343 case ARIZONA_MISC_PAD_CTRL_1:
1344 case ARIZONA_MISC_PAD_CTRL_2:
1345 case ARIZONA_MISC_PAD_CTRL_3:
1346 case ARIZONA_MISC_PAD_CTRL_4:
1347 case ARIZONA_MISC_PAD_CTRL_5:
1348 case ARIZONA_MISC_PAD_CTRL_6:
1349 case ARIZONA_INTERRUPT_STATUS_1:
1350 case ARIZONA_INTERRUPT_STATUS_2:
1351 case ARIZONA_INTERRUPT_STATUS_3:
1352 case ARIZONA_INTERRUPT_STATUS_4:
1353 case ARIZONA_INTERRUPT_STATUS_5:
1354 case ARIZONA_INTERRUPT_STATUS_1_MASK:
1355 case ARIZONA_INTERRUPT_STATUS_2_MASK:
1356 case ARIZONA_INTERRUPT_STATUS_3_MASK:
1357 case ARIZONA_INTERRUPT_STATUS_4_MASK:
1358 case ARIZONA_INTERRUPT_STATUS_5_MASK:
1359 case ARIZONA_INTERRUPT_CONTROL:
1360 case ARIZONA_IRQ2_STATUS_1:
1361 case ARIZONA_IRQ2_STATUS_2:
1362 case ARIZONA_IRQ2_STATUS_3:
1363 case ARIZONA_IRQ2_STATUS_4:
1364 case ARIZONA_IRQ2_STATUS_5:
1365 case ARIZONA_IRQ2_STATUS_1_MASK:
1366 case ARIZONA_IRQ2_STATUS_2_MASK:
1367 case ARIZONA_IRQ2_STATUS_3_MASK:
1368 case ARIZONA_IRQ2_STATUS_4_MASK:
1369 case ARIZONA_IRQ2_STATUS_5_MASK:
1370 case ARIZONA_IRQ2_CONTROL:
1371 case ARIZONA_INTERRUPT_RAW_STATUS_2:
1372 case ARIZONA_INTERRUPT_RAW_STATUS_3:
1373 case ARIZONA_INTERRUPT_RAW_STATUS_4:
1374 case ARIZONA_INTERRUPT_RAW_STATUS_5:
1375 case ARIZONA_INTERRUPT_RAW_STATUS_6:
1376 case ARIZONA_INTERRUPT_RAW_STATUS_7:
1377 case ARIZONA_INTERRUPT_RAW_STATUS_8:
1378 case ARIZONA_IRQ_PIN_STATUS:
1379 case ARIZONA_AOD_WKUP_AND_TRIG:
1380 case ARIZONA_AOD_IRQ1:
1381 case ARIZONA_AOD_IRQ2:
1382 case ARIZONA_AOD_IRQ_MASK_IRQ1:
1383 case ARIZONA_AOD_IRQ_MASK_IRQ2:
1384 case ARIZONA_AOD_IRQ_RAW_STATUS:
1385 case ARIZONA_JACK_DETECT_DEBOUNCE:
1386 case ARIZONA_FX_CTRL1:
1387 case ARIZONA_FX_CTRL2:
1388 case ARIZONA_EQ1_1:
1389 case ARIZONA_EQ1_2:
1390 case ARIZONA_EQ1_3:
1391 case ARIZONA_EQ1_4:
1392 case ARIZONA_EQ1_5:
1393 case ARIZONA_EQ1_6:
1394 case ARIZONA_EQ1_7:
1395 case ARIZONA_EQ1_8:
1396 case ARIZONA_EQ1_9:
1397 case ARIZONA_EQ1_10:
1398 case ARIZONA_EQ1_11:
1399 case ARIZONA_EQ1_12:
1400 case ARIZONA_EQ1_13:
1401 case ARIZONA_EQ1_14:
1402 case ARIZONA_EQ1_15:
1403 case ARIZONA_EQ1_16:
1404 case ARIZONA_EQ1_17:
1405 case ARIZONA_EQ1_18:
1406 case ARIZONA_EQ1_19:
1407 case ARIZONA_EQ1_20:
1408 case ARIZONA_EQ1_21:
1409 case ARIZONA_EQ2_1:
1410 case ARIZONA_EQ2_2:
1411 case ARIZONA_EQ2_3:
1412 case ARIZONA_EQ2_4:
1413 case ARIZONA_EQ2_5:
1414 case ARIZONA_EQ2_6:
1415 case ARIZONA_EQ2_7:
1416 case ARIZONA_EQ2_8:
1417 case ARIZONA_EQ2_9:
1418 case ARIZONA_EQ2_10:
1419 case ARIZONA_EQ2_11:
1420 case ARIZONA_EQ2_12:
1421 case ARIZONA_EQ2_13:
1422 case ARIZONA_EQ2_14:
1423 case ARIZONA_EQ2_15:
1424 case ARIZONA_EQ2_16:
1425 case ARIZONA_EQ2_17:
1426 case ARIZONA_EQ2_18:
1427 case ARIZONA_EQ2_19:
1428 case ARIZONA_EQ2_20:
1429 case ARIZONA_EQ2_21:
1430 case ARIZONA_EQ3_1:
1431 case ARIZONA_EQ3_2:
1432 case ARIZONA_EQ3_3:
1433 case ARIZONA_EQ3_4:
1434 case ARIZONA_EQ3_5:
1435 case ARIZONA_EQ3_6:
1436 case ARIZONA_EQ3_7:
1437 case ARIZONA_EQ3_8:
1438 case ARIZONA_EQ3_9:
1439 case ARIZONA_EQ3_10:
1440 case ARIZONA_EQ3_11:
1441 case ARIZONA_EQ3_12:
1442 case ARIZONA_EQ3_13:
1443 case ARIZONA_EQ3_14:
1444 case ARIZONA_EQ3_15:
1445 case ARIZONA_EQ3_16:
1446 case ARIZONA_EQ3_17:
1447 case ARIZONA_EQ3_18:
1448 case ARIZONA_EQ3_19:
1449 case ARIZONA_EQ3_20:
1450 case ARIZONA_EQ3_21:
1451 case ARIZONA_EQ4_1:
1452 case ARIZONA_EQ4_2:
1453 case ARIZONA_EQ4_3:
1454 case ARIZONA_EQ4_4:
1455 case ARIZONA_EQ4_5:
1456 case ARIZONA_EQ4_6:
1457 case ARIZONA_EQ4_7:
1458 case ARIZONA_EQ4_8:
1459 case ARIZONA_EQ4_9:
1460 case ARIZONA_EQ4_10:
1461 case ARIZONA_EQ4_11:
1462 case ARIZONA_EQ4_12:
1463 case ARIZONA_EQ4_13:
1464 case ARIZONA_EQ4_14:
1465 case ARIZONA_EQ4_15:
1466 case ARIZONA_EQ4_16:
1467 case ARIZONA_EQ4_17:
1468 case ARIZONA_EQ4_18:
1469 case ARIZONA_EQ4_19:
1470 case ARIZONA_EQ4_20:
1471 case ARIZONA_EQ4_21:
1472 case ARIZONA_DRC1_CTRL1:
1473 case ARIZONA_DRC1_CTRL2:
1474 case ARIZONA_DRC1_CTRL3:
1475 case ARIZONA_DRC1_CTRL4:
1476 case ARIZONA_DRC1_CTRL5:
1477 case ARIZONA_HPLPF1_1:
1478 case ARIZONA_HPLPF1_2:
1479 case ARIZONA_HPLPF2_1:
1480 case ARIZONA_HPLPF2_2:
1481 case ARIZONA_HPLPF3_1:
1482 case ARIZONA_HPLPF3_2:
1483 case ARIZONA_HPLPF4_1:
1484 case ARIZONA_HPLPF4_2:
1485 case ARIZONA_ASRC_ENABLE:
1486 case ARIZONA_ASRC_STATUS:
1487 case ARIZONA_ASRC_RATE1:
1488 case ARIZONA_ASRC_RATE2:
1489 case ARIZONA_ISRC_1_CTRL_1:
1490 case ARIZONA_ISRC_1_CTRL_2:
1491 case ARIZONA_ISRC_1_CTRL_3:
1492 case ARIZONA_ISRC_2_CTRL_1:
1493 case ARIZONA_ISRC_2_CTRL_2:
1494 case ARIZONA_ISRC_2_CTRL_3:
1495 case ARIZONA_FRF_COEFF_1:
1496 case ARIZONA_FRF_COEFF_2:
1497 case ARIZONA_FRF_COEFF_3:
1498 case ARIZONA_FRF_COEFF_4:
1499 case ARIZONA_V2_DAC_COMP_1:
1500 case ARIZONA_V2_DAC_COMP_2:
1501 return true;
1502 default:
1503 return false;
1504 }
1505 }
1506
1507 static bool wm8998_volatile_register(struct device *dev, unsigned int reg)
1508 {
1509 switch (reg) {
1510 case ARIZONA_SOFTWARE_RESET:
1511 case ARIZONA_DEVICE_REVISION:
1512 case ARIZONA_WRITE_SEQUENCER_CTRL_0:
1513 case ARIZONA_WRITE_SEQUENCER_CTRL_1:
1514 case ARIZONA_WRITE_SEQUENCER_CTRL_2:
1515 case ARIZONA_HAPTICS_STATUS:
1516 case ARIZONA_SAMPLE_RATE_1_STATUS:
1517 case ARIZONA_SAMPLE_RATE_2_STATUS:
1518 case ARIZONA_SAMPLE_RATE_3_STATUS:
1519 case ARIZONA_ASYNC_SAMPLE_RATE_1_STATUS:
1520 case ARIZONA_ASYNC_SAMPLE_RATE_2_STATUS:
1521 case ARIZONA_MIC_DETECT_3:
1522 case ARIZONA_MIC_DETECT_4:
1523 case ARIZONA_HEADPHONE_DETECT_2:
1524 case ARIZONA_INPUT_ENABLES_STATUS:
1525 case ARIZONA_OUTPUT_STATUS_1:
1526 case ARIZONA_RAW_OUTPUT_STATUS_1:
1527 case ARIZONA_SLIMBUS_RX_PORT_STATUS:
1528 case ARIZONA_SLIMBUS_TX_PORT_STATUS:
1529 case ARIZONA_INTERRUPT_STATUS_1:
1530 case ARIZONA_INTERRUPT_STATUS_2:
1531 case ARIZONA_INTERRUPT_STATUS_3:
1532 case ARIZONA_INTERRUPT_STATUS_4:
1533 case ARIZONA_INTERRUPT_STATUS_5:
1534 case ARIZONA_IRQ2_STATUS_1:
1535 case ARIZONA_IRQ2_STATUS_2:
1536 case ARIZONA_IRQ2_STATUS_3:
1537 case ARIZONA_IRQ2_STATUS_4:
1538 case ARIZONA_IRQ2_STATUS_5:
1539 case ARIZONA_INTERRUPT_RAW_STATUS_2:
1540 case ARIZONA_INTERRUPT_RAW_STATUS_3:
1541 case ARIZONA_INTERRUPT_RAW_STATUS_4:
1542 case ARIZONA_INTERRUPT_RAW_STATUS_5:
1543 case ARIZONA_INTERRUPT_RAW_STATUS_6:
1544 case ARIZONA_INTERRUPT_RAW_STATUS_7:
1545 case ARIZONA_INTERRUPT_RAW_STATUS_8:
1546 case ARIZONA_IRQ_PIN_STATUS:
1547 case ARIZONA_AOD_WKUP_AND_TRIG:
1548 case ARIZONA_AOD_IRQ1:
1549 case ARIZONA_AOD_IRQ2:
1550 case ARIZONA_AOD_IRQ_RAW_STATUS:
1551 case ARIZONA_FX_CTRL2:
1552 case ARIZONA_ASRC_STATUS:
1553 return true;
1554 default:
1555 return false;
1556 }
1557 }
1558
1559 #define WM8998_MAX_REGISTER 0x31ff
1560
1561 const struct regmap_config wm8998_i2c_regmap = {
1562 .reg_bits = 32,
1563 .val_bits = 16,
1564 .reg_format_endian = REGMAP_ENDIAN_BIG,
1565 .val_format_endian = REGMAP_ENDIAN_BIG,
1566
1567 .max_register = WM8998_MAX_REGISTER,
1568 .readable_reg = wm8998_readable_register,
1569 .volatile_reg = wm8998_volatile_register,
1570
1571 .cache_type = REGCACHE_RBTREE,
1572 .reg_defaults = wm8998_reg_default,
1573 .num_reg_defaults = ARRAY_SIZE(wm8998_reg_default),
1574 };
1575 EXPORT_SYMBOL_GPL(wm8998_i2c_regmap);