This source file includes following definitions.
- wm8997_patch
- wm8997_readable_register
- wm8997_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
15 #include "arizona.h"
16
17 static const struct reg_sequence wm8997_reva_patch[] = {
18 { 0x80, 0x0003 },
19 { 0x214, 0x0008 },
20 { 0x458, 0x0000 },
21 { 0x0081, 0xE022 },
22 { 0x294, 0x0000 },
23 { 0x80, 0x0000 },
24 { 0x171, 0x0000 },
25 };
26
27
28 int wm8997_patch(struct arizona *arizona)
29 {
30 switch (arizona->rev) {
31 case 0:
32 return regmap_register_patch(arizona->regmap,
33 wm8997_reva_patch,
34 ARRAY_SIZE(wm8997_reva_patch));
35 default:
36 return 0;
37 }
38 }
39 EXPORT_SYMBOL_GPL(wm8997_patch);
40
41 static const struct regmap_irq wm8997_aod_irqs[ARIZONA_NUM_IRQ] = {
42 [ARIZONA_IRQ_GP5_FALL] = { .mask = ARIZONA_GP5_FALL_EINT1 },
43 [ARIZONA_IRQ_GP5_RISE] = { .mask = ARIZONA_GP5_RISE_EINT1 },
44 [ARIZONA_IRQ_JD_FALL] = { .mask = ARIZONA_JD1_FALL_EINT1 },
45 [ARIZONA_IRQ_JD_RISE] = { .mask = ARIZONA_JD1_RISE_EINT1 },
46 };
47
48 const struct regmap_irq_chip wm8997_aod = {
49 .name = "wm8997 AOD",
50 .status_base = ARIZONA_AOD_IRQ1,
51 .mask_base = ARIZONA_AOD_IRQ_MASK_IRQ1,
52 .ack_base = ARIZONA_AOD_IRQ1,
53 .num_regs = 1,
54 .irqs = wm8997_aod_irqs,
55 .num_irqs = ARRAY_SIZE(wm8997_aod_irqs),
56 };
57 EXPORT_SYMBOL_GPL(wm8997_aod);
58
59 static const struct regmap_irq wm8997_irqs[ARIZONA_NUM_IRQ] = {
60 [ARIZONA_IRQ_GP4] = { .reg_offset = 0, .mask = ARIZONA_GP4_EINT1 },
61 [ARIZONA_IRQ_GP3] = { .reg_offset = 0, .mask = ARIZONA_GP3_EINT1 },
62 [ARIZONA_IRQ_GP2] = { .reg_offset = 0, .mask = ARIZONA_GP2_EINT1 },
63 [ARIZONA_IRQ_GP1] = { .reg_offset = 0, .mask = ARIZONA_GP1_EINT1 },
64
65 [ARIZONA_IRQ_SPK_OVERHEAT_WARN] = {
66 .reg_offset = 2, .mask = ARIZONA_SPK_OVERHEAT_WARN_EINT1
67 },
68 [ARIZONA_IRQ_SPK_OVERHEAT] = {
69 .reg_offset = 2, .mask = ARIZONA_SPK_OVERHEAT_EINT1
70 },
71 [ARIZONA_IRQ_HPDET] = {
72 .reg_offset = 2, .mask = ARIZONA_HPDET_EINT1
73 },
74 [ARIZONA_IRQ_MICDET] = {
75 .reg_offset = 2, .mask = ARIZONA_MICDET_EINT1
76 },
77 [ARIZONA_IRQ_WSEQ_DONE] = {
78 .reg_offset = 2, .mask = ARIZONA_WSEQ_DONE_EINT1
79 },
80 [ARIZONA_IRQ_DRC1_SIG_DET] = {
81 .reg_offset = 2, .mask = ARIZONA_DRC1_SIG_DET_EINT1
82 },
83 [ARIZONA_IRQ_UNDERCLOCKED] = {
84 .reg_offset = 2, .mask = ARIZONA_UNDERCLOCKED_EINT1
85 },
86 [ARIZONA_IRQ_OVERCLOCKED] = {
87 .reg_offset = 2, .mask = ARIZONA_OVERCLOCKED_EINT1
88 },
89 [ARIZONA_IRQ_FLL2_LOCK] = {
90 .reg_offset = 2, .mask = ARIZONA_FLL2_LOCK_EINT1
91 },
92 [ARIZONA_IRQ_FLL1_LOCK] = {
93 .reg_offset = 2, .mask = ARIZONA_FLL1_LOCK_EINT1
94 },
95 [ARIZONA_IRQ_CLKGEN_ERR] = {
96 .reg_offset = 2, .mask = ARIZONA_CLKGEN_ERR_EINT1
97 },
98 [ARIZONA_IRQ_CLKGEN_ERR_ASYNC] = {
99 .reg_offset = 2, .mask = ARIZONA_CLKGEN_ERR_ASYNC_EINT1
100 },
101
102 [ARIZONA_IRQ_AIF2_ERR] = {
103 .reg_offset = 3, .mask = ARIZONA_AIF2_ERR_EINT1
104 },
105 [ARIZONA_IRQ_AIF1_ERR] = {
106 .reg_offset = 3, .mask = ARIZONA_AIF1_ERR_EINT1
107 },
108 [ARIZONA_IRQ_CTRLIF_ERR] = {
109 .reg_offset = 3, .mask = ARIZONA_CTRLIF_ERR_EINT1
110 },
111 [ARIZONA_IRQ_MIXER_DROPPED_SAMPLES] = {
112 .reg_offset = 3, .mask = ARIZONA_MIXER_DROPPED_SAMPLE_EINT1
113 },
114 [ARIZONA_IRQ_ASYNC_CLK_ENA_LOW] = {
115 .reg_offset = 3, .mask = ARIZONA_ASYNC_CLK_ENA_LOW_EINT1
116 },
117 [ARIZONA_IRQ_SYSCLK_ENA_LOW] = {
118 .reg_offset = 3, .mask = ARIZONA_SYSCLK_ENA_LOW_EINT1
119 },
120 [ARIZONA_IRQ_ISRC1_CFG_ERR] = {
121 .reg_offset = 3, .mask = ARIZONA_ISRC1_CFG_ERR_EINT1
122 },
123 [ARIZONA_IRQ_ISRC2_CFG_ERR] = {
124 .reg_offset = 3, .mask = ARIZONA_ISRC2_CFG_ERR_EINT1
125 },
126
127 [ARIZONA_IRQ_BOOT_DONE] = {
128 .reg_offset = 4, .mask = ARIZONA_BOOT_DONE_EINT1
129 },
130 [ARIZONA_IRQ_DCS_DAC_DONE] = {
131 .reg_offset = 4, .mask = ARIZONA_DCS_DAC_DONE_EINT1
132 },
133 [ARIZONA_IRQ_DCS_HP_DONE] = {
134 .reg_offset = 4, .mask = ARIZONA_DCS_HP_DONE_EINT1
135 },
136 [ARIZONA_IRQ_FLL2_CLOCK_OK] = {
137 .reg_offset = 4, .mask = ARIZONA_FLL2_CLOCK_OK_EINT1
138 },
139 [ARIZONA_IRQ_FLL1_CLOCK_OK] = {
140 .reg_offset = 4, .mask = ARIZONA_FLL1_CLOCK_OK_EINT1
141 },
142 };
143
144 const struct regmap_irq_chip wm8997_irq = {
145 .name = "wm8997 IRQ",
146 .status_base = ARIZONA_INTERRUPT_STATUS_1,
147 .mask_base = ARIZONA_INTERRUPT_STATUS_1_MASK,
148 .ack_base = ARIZONA_INTERRUPT_STATUS_1,
149 .num_regs = 5,
150 .irqs = wm8997_irqs,
151 .num_irqs = ARRAY_SIZE(wm8997_irqs),
152 };
153 EXPORT_SYMBOL_GPL(wm8997_irq);
154
155 static const struct reg_default wm8997_reg_default[] = {
156 { 0x00000009, 0x0001 },
157 { 0x00000016, 0x0000 },
158 { 0x00000017, 0x0000 },
159 { 0x00000018, 0x0000 },
160 { 0x00000020, 0x0000 },
161 { 0x00000021, 0x1000 },
162 { 0x00000022, 0x0000 },
163 { 0x00000023, 0x1000 },
164 { 0x00000024, 0x0000 },
165 { 0x00000030, 0x0000 },
166 { 0x00000031, 0x0100 },
167 { 0x00000032, 0x0100 },
168 { 0x00000040, 0x0000 },
169 { 0x00000041, 0x0000 },
170 { 0x00000061, 0x01FF },
171 { 0x00000062, 0x01FF },
172 { 0x00000063, 0x01FF },
173 { 0x00000064, 0x01FF },
174 { 0x00000068, 0x01FF },
175 { 0x00000069, 0x01FF },
176 { 0x0000006A, 0x01FF },
177 { 0x0000006B, 0x01FF },
178 { 0x00000070, 0x0000 },
179 { 0x00000090, 0x0000 },
180 { 0x00000091, 0x7FFF },
181 { 0x00000092, 0x0000 },
182 { 0x00000093, 0x0000 },
183 { 0x00000094, 0x0000 },
184 { 0x00000095, 0x0000 },
185 { 0x00000096, 0x0000 },
186 { 0x00000097, 0x0000 },
187 { 0x00000100, 0x0002 },
188 { 0x00000101, 0x0304 },
189 { 0x00000102, 0x0011 },
190 { 0x00000103, 0x0011 },
191 { 0x00000104, 0x0011 },
192 { 0x00000112, 0x0305 },
193 { 0x00000113, 0x0011 },
194 { 0x00000149, 0x0000 },
195 { 0x0000014A, 0x0000 },
196 { 0x00000152, 0x0000 },
197 { 0x00000153, 0x0000 },
198 { 0x00000154, 0x0000 },
199 { 0x00000155, 0x0000 },
200 { 0x00000156, 0x0000 },
201 { 0x00000161, 0x0000 },
202 { 0x00000171, 0x0000 },
203 { 0x00000172, 0x0008 },
204 { 0x00000173, 0x0018 },
205 { 0x00000174, 0x007D },
206 { 0x00000175, 0x0004 },
207 { 0x00000176, 0x0000 },
208 { 0x00000177, 0x0181 },
209 { 0x00000181, 0x0000 },
210 { 0x00000182, 0x0000 },
211 { 0x00000183, 0x0000 },
212 { 0x00000184, 0x0000 },
213 { 0x00000185, 0x0000 },
214 { 0x00000186, 0x0000 },
215 { 0x00000189, 0x0000 },
216 { 0x0000018A, 0x0004 },
217 { 0x00000191, 0x0000 },
218 { 0x00000192, 0x0008 },
219 { 0x00000193, 0x0018 },
220 { 0x00000194, 0x007D },
221 { 0x00000195, 0x0004 },
222 { 0x00000196, 0x0000 },
223 { 0x00000197, 0x0000 },
224 { 0x000001A1, 0x0000 },
225 { 0x000001A2, 0x0000 },
226 { 0x000001A3, 0x0000 },
227 { 0x000001A4, 0x0000 },
228 { 0x000001A5, 0x0000 },
229 { 0x000001A6, 0x0000 },
230 { 0x000001A9, 0x0000 },
231 { 0x000001AA, 0x0004 },
232 { 0x00000200, 0x0006 },
233 { 0x00000210, 0x00D4 },
234 { 0x00000212, 0x0000 },
235 { 0x00000213, 0x0344 },
236 { 0x00000218, 0x01A6 },
237 { 0x00000219, 0x01A6 },
238 { 0x0000021A, 0x01A6 },
239 { 0x00000293, 0x0000 },
240 { 0x0000029B, 0x0020 },
241 { 0x000002A3, 0x1102 },
242 { 0x000002A4, 0x009F },
243 { 0x000002C3, 0x0000 },
244 { 0x000002CB, 0x0000 },
245 { 0x000002D3, 0x0000 },
246 { 0x00000300, 0x0000 },
247 { 0x00000308, 0x0000 },
248 { 0x00000309, 0x0022 },
249 { 0x00000310, 0x2080 },
250 { 0x00000311, 0x0180 },
251 { 0x00000312, 0x0000 },
252 { 0x00000314, 0x0080 },
253 { 0x00000315, 0x0180 },
254 { 0x00000316, 0x0000 },
255 { 0x00000318, 0x2080 },
256 { 0x00000319, 0x0180 },
257 { 0x0000031A, 0x0000 },
258 { 0x0000031C, 0x0080 },
259 { 0x0000031D, 0x0180 },
260 { 0x0000031E, 0x0000 },
261 { 0x00000400, 0x0000 },
262 { 0x00000408, 0x0000 },
263 { 0x00000409, 0x0022 },
264 { 0x00000410, 0x0080 },
265 { 0x00000411, 0x0180 },
266 { 0x00000412, 0x0080 },
267 { 0x00000413, 0x0001 },
268 { 0x00000414, 0x0080 },
269 { 0x00000415, 0x0180 },
270 { 0x00000416, 0x0080 },
271 { 0x00000417, 0x0002 },
272 { 0x00000420, 0x0080 },
273 { 0x00000421, 0x0180 },
274 { 0x00000422, 0x0080 },
275 { 0x00000423, 0x0010 },
276 { 0x00000428, 0x0000 },
277 { 0x00000429, 0x0180 },
278 { 0x0000042A, 0x0080 },
279 { 0x0000042B, 0x0040 },
280 { 0x00000430, 0x0000 },
281 { 0x00000431, 0x0180 },
282 { 0x00000432, 0x0080 },
283 { 0x00000433, 0x0100 },
284 { 0x00000435, 0x0180 },
285 { 0x00000436, 0x0080 },
286 { 0x00000437, 0x0200 },
287 { 0x00000450, 0x0000 },
288 { 0x00000458, 0x0000 },
289 { 0x00000490, 0x0069 },
290 { 0x00000491, 0x0000 },
291 { 0x00000500, 0x000C },
292 { 0x00000501, 0x0008 },
293 { 0x00000502, 0x0000 },
294 { 0x00000503, 0x0000 },
295 { 0x00000504, 0x0000 },
296 { 0x00000505, 0x0040 },
297 { 0x00000506, 0x0040 },
298 { 0x00000507, 0x1818 },
299 { 0x00000508, 0x1818 },
300 { 0x00000509, 0x0000 },
301 { 0x0000050A, 0x0001 },
302 { 0x0000050B, 0x0002 },
303 { 0x0000050C, 0x0003 },
304 { 0x0000050D, 0x0004 },
305 { 0x0000050E, 0x0005 },
306 { 0x0000050F, 0x0006 },
307 { 0x00000510, 0x0007 },
308 { 0x00000511, 0x0000 },
309 { 0x00000512, 0x0001 },
310 { 0x00000513, 0x0002 },
311 { 0x00000514, 0x0003 },
312 { 0x00000515, 0x0004 },
313 { 0x00000516, 0x0005 },
314 { 0x00000517, 0x0006 },
315 { 0x00000518, 0x0007 },
316 { 0x00000519, 0x0000 },
317 { 0x0000051A, 0x0000 },
318 { 0x00000540, 0x000C },
319 { 0x00000541, 0x0008 },
320 { 0x00000542, 0x0000 },
321 { 0x00000543, 0x0000 },
322 { 0x00000544, 0x0000 },
323 { 0x00000545, 0x0040 },
324 { 0x00000546, 0x0040 },
325 { 0x00000547, 0x1818 },
326 { 0x00000548, 0x1818 },
327 { 0x00000549, 0x0000 },
328 { 0x0000054A, 0x0001 },
329 { 0x00000551, 0x0000 },
330 { 0x00000552, 0x0001 },
331 { 0x00000559, 0x0000 },
332 { 0x0000055A, 0x0000 },
333 { 0x000005E3, 0x0004 },
334 { 0x000005E5, 0x0000 },
335 { 0x000005E6, 0x0000 },
336 { 0x000005E7, 0x0000 },
337 { 0x000005E8, 0x0000 },
338 { 0x000005E9, 0x0000 },
339 { 0x000005EA, 0x0000 },
340 { 0x000005EB, 0x0000 },
341 { 0x000005EC, 0x0000 },
342 { 0x000005F5, 0x0000 },
343 { 0x000005F6, 0x0000 },
344 { 0x00000640, 0x0000 },
345 { 0x00000641, 0x0080 },
346 { 0x00000642, 0x0000 },
347 { 0x00000643, 0x0080 },
348 { 0x00000644, 0x0000 },
349 { 0x00000645, 0x0080 },
350 { 0x00000646, 0x0000 },
351 { 0x00000647, 0x0080 },
352 { 0x00000648, 0x0000 },
353 { 0x00000649, 0x0080 },
354 { 0x0000064A, 0x0000 },
355 { 0x0000064B, 0x0080 },
356 { 0x0000064C, 0x0000 },
357 { 0x0000064D, 0x0080 },
358 { 0x0000064E, 0x0000 },
359 { 0x0000064F, 0x0080 },
360 { 0x00000660, 0x0000 },
361 { 0x00000661, 0x0080 },
362 { 0x00000662, 0x0000 },
363 { 0x00000663, 0x0080 },
364 { 0x00000664, 0x0000 },
365 { 0x00000665, 0x0080 },
366 { 0x00000666, 0x0000 },
367 { 0x00000667, 0x0080 },
368 { 0x00000668, 0x0000 },
369 { 0x00000669, 0x0080 },
370 { 0x0000066A, 0x0000 },
371 { 0x0000066B, 0x0080 },
372 { 0x0000066C, 0x0000 },
373 { 0x0000066D, 0x0080 },
374 { 0x0000066E, 0x0000 },
375 { 0x0000066F, 0x0080 },
376 { 0x00000680, 0x0000 },
377 { 0x00000681, 0x0080 },
378 { 0x00000682, 0x0000 },
379 { 0x00000683, 0x0080 },
380 { 0x00000684, 0x0000 },
381 { 0x00000685, 0x0080 },
382 { 0x00000686, 0x0000 },
383 { 0x00000687, 0x0080 },
384 { 0x00000688, 0x0000 },
385 { 0x00000689, 0x0080 },
386 { 0x0000068A, 0x0000 },
387 { 0x0000068B, 0x0080 },
388 { 0x0000068C, 0x0000 },
389 { 0x0000068D, 0x0080 },
390 { 0x0000068E, 0x0000 },
391 { 0x0000068F, 0x0080 },
392 { 0x000006A0, 0x0000 },
393 { 0x000006A1, 0x0080 },
394 { 0x000006A2, 0x0000 },
395 { 0x000006A3, 0x0080 },
396 { 0x000006A4, 0x0000 },
397 { 0x000006A5, 0x0080 },
398 { 0x000006A6, 0x0000 },
399 { 0x000006A7, 0x0080 },
400 { 0x000006B0, 0x0000 },
401 { 0x000006B1, 0x0080 },
402 { 0x000006B2, 0x0000 },
403 { 0x000006B3, 0x0080 },
404 { 0x000006B4, 0x0000 },
405 { 0x000006B5, 0x0080 },
406 { 0x000006B6, 0x0000 },
407 { 0x000006B7, 0x0080 },
408 { 0x000006C0, 0x0000 },
409 { 0x000006C1, 0x0080 },
410 { 0x000006C2, 0x0000 },
411 { 0x000006C3, 0x0080 },
412 { 0x000006C4, 0x0000 },
413 { 0x000006C5, 0x0080 },
414 { 0x000006C6, 0x0000 },
415 { 0x000006C7, 0x0080 },
416 { 0x000006C8, 0x0000 },
417 { 0x000006C9, 0x0080 },
418 { 0x000006CA, 0x0000 },
419 { 0x000006CB, 0x0080 },
420 { 0x000006CC, 0x0000 },
421 { 0x000006CD, 0x0080 },
422 { 0x000006CE, 0x0000 },
423 { 0x000006CF, 0x0080 },
424 { 0x00000700, 0x0000 },
425 { 0x00000701, 0x0080 },
426 { 0x00000702, 0x0000 },
427 { 0x00000703, 0x0080 },
428 { 0x00000704, 0x0000 },
429 { 0x00000705, 0x0080 },
430 { 0x00000706, 0x0000 },
431 { 0x00000707, 0x0080 },
432 { 0x00000708, 0x0000 },
433 { 0x00000709, 0x0080 },
434 { 0x0000070A, 0x0000 },
435 { 0x0000070B, 0x0080 },
436 { 0x0000070C, 0x0000 },
437 { 0x0000070D, 0x0080 },
438 { 0x0000070E, 0x0000 },
439 { 0x0000070F, 0x0080 },
440 { 0x00000710, 0x0000 },
441 { 0x00000711, 0x0080 },
442 { 0x00000712, 0x0000 },
443 { 0x00000713, 0x0080 },
444 { 0x00000714, 0x0000 },
445 { 0x00000715, 0x0080 },
446 { 0x00000716, 0x0000 },
447 { 0x00000717, 0x0080 },
448 { 0x00000718, 0x0000 },
449 { 0x00000719, 0x0080 },
450 { 0x0000071A, 0x0000 },
451 { 0x0000071B, 0x0080 },
452 { 0x0000071C, 0x0000 },
453 { 0x0000071D, 0x0080 },
454 { 0x0000071E, 0x0000 },
455 { 0x0000071F, 0x0080 },
456 { 0x00000720, 0x0000 },
457 { 0x00000721, 0x0080 },
458 { 0x00000722, 0x0000 },
459 { 0x00000723, 0x0080 },
460 { 0x00000724, 0x0000 },
461 { 0x00000725, 0x0080 },
462 { 0x00000726, 0x0000 },
463 { 0x00000727, 0x0080 },
464 { 0x00000728, 0x0000 },
465 { 0x00000729, 0x0080 },
466 { 0x0000072A, 0x0000 },
467 { 0x0000072B, 0x0080 },
468 { 0x0000072C, 0x0000 },
469 { 0x0000072D, 0x0080 },
470 { 0x0000072E, 0x0000 },
471 { 0x0000072F, 0x0080 },
472 { 0x00000730, 0x0000 },
473 { 0x00000731, 0x0080 },
474 { 0x00000732, 0x0000 },
475 { 0x00000733, 0x0080 },
476 { 0x00000734, 0x0000 },
477 { 0x00000735, 0x0080 },
478 { 0x00000736, 0x0000 },
479 { 0x00000737, 0x0080 },
480 { 0x00000738, 0x0000 },
481 { 0x00000739, 0x0080 },
482 { 0x0000073A, 0x0000 },
483 { 0x0000073B, 0x0080 },
484 { 0x0000073C, 0x0000 },
485 { 0x0000073D, 0x0080 },
486 { 0x0000073E, 0x0000 },
487 { 0x0000073F, 0x0080 },
488 { 0x00000740, 0x0000 },
489 { 0x00000741, 0x0080 },
490 { 0x00000742, 0x0000 },
491 { 0x00000743, 0x0080 },
492 { 0x00000744, 0x0000 },
493 { 0x00000745, 0x0080 },
494 { 0x00000746, 0x0000 },
495 { 0x00000747, 0x0080 },
496 { 0x00000748, 0x0000 },
497 { 0x00000749, 0x0080 },
498 { 0x0000074A, 0x0000 },
499 { 0x0000074B, 0x0080 },
500 { 0x0000074C, 0x0000 },
501 { 0x0000074D, 0x0080 },
502 { 0x0000074E, 0x0000 },
503 { 0x0000074F, 0x0080 },
504 { 0x000007C0, 0x0000 },
505 { 0x000007C1, 0x0080 },
506 { 0x000007C2, 0x0000 },
507 { 0x000007C3, 0x0080 },
508 { 0x000007C4, 0x0000 },
509 { 0x000007C5, 0x0080 },
510 { 0x000007C6, 0x0000 },
511 { 0x000007C7, 0x0080 },
512 { 0x000007C8, 0x0000 },
513 { 0x000007C9, 0x0080 },
514 { 0x000007CA, 0x0000 },
515 { 0x000007CB, 0x0080 },
516 { 0x000007CC, 0x0000 },
517 { 0x000007CD, 0x0080 },
518 { 0x000007CE, 0x0000 },
519 { 0x000007CF, 0x0080 },
520 { 0x000007D0, 0x0000 },
521 { 0x000007D1, 0x0080 },
522 { 0x000007D2, 0x0000 },
523 { 0x000007D3, 0x0080 },
524 { 0x000007D4, 0x0000 },
525 { 0x000007D5, 0x0080 },
526 { 0x000007D6, 0x0000 },
527 { 0x000007D7, 0x0080 },
528 { 0x000007D8, 0x0000 },
529 { 0x000007D9, 0x0080 },
530 { 0x000007DA, 0x0000 },
531 { 0x000007DB, 0x0080 },
532 { 0x000007DC, 0x0000 },
533 { 0x000007DD, 0x0080 },
534 { 0x000007DE, 0x0000 },
535 { 0x000007DF, 0x0080 },
536 { 0x000007E0, 0x0000 },
537 { 0x000007E1, 0x0080 },
538 { 0x000007E2, 0x0000 },
539 { 0x000007E3, 0x0080 },
540 { 0x000007E4, 0x0000 },
541 { 0x000007E5, 0x0080 },
542 { 0x000007E6, 0x0000 },
543 { 0x000007E7, 0x0080 },
544 { 0x000007E8, 0x0000 },
545 { 0x000007E9, 0x0080 },
546 { 0x000007EA, 0x0000 },
547 { 0x000007EB, 0x0080 },
548 { 0x000007EC, 0x0000 },
549 { 0x000007ED, 0x0080 },
550 { 0x000007EE, 0x0000 },
551 { 0x000007EF, 0x0080 },
552 { 0x000007F0, 0x0000 },
553 { 0x000007F1, 0x0080 },
554 { 0x000007F2, 0x0000 },
555 { 0x000007F3, 0x0080 },
556 { 0x000007F4, 0x0000 },
557 { 0x000007F5, 0x0080 },
558 { 0x000007F6, 0x0000 },
559 { 0x000007F7, 0x0080 },
560 { 0x000007F8, 0x0000 },
561 { 0x000007F9, 0x0080 },
562 { 0x000007FA, 0x0000 },
563 { 0x000007FB, 0x0080 },
564 { 0x000007FC, 0x0000 },
565 { 0x000007FD, 0x0080 },
566 { 0x000007FE, 0x0000 },
567 { 0x000007FF, 0x0080 },
568 { 0x00000880, 0x0000 },
569 { 0x00000881, 0x0080 },
570 { 0x00000882, 0x0000 },
571 { 0x00000883, 0x0080 },
572 { 0x00000884, 0x0000 },
573 { 0x00000885, 0x0080 },
574 { 0x00000886, 0x0000 },
575 { 0x00000887, 0x0080 },
576 { 0x00000888, 0x0000 },
577 { 0x00000889, 0x0080 },
578 { 0x0000088A, 0x0000 },
579 { 0x0000088B, 0x0080 },
580 { 0x0000088C, 0x0000 },
581 { 0x0000088D, 0x0080 },
582 { 0x0000088E, 0x0000 },
583 { 0x0000088F, 0x0080 },
584 { 0x00000890, 0x0000 },
585 { 0x00000891, 0x0080 },
586 { 0x00000892, 0x0000 },
587 { 0x00000893, 0x0080 },
588 { 0x00000894, 0x0000 },
589 { 0x00000895, 0x0080 },
590 { 0x00000896, 0x0000 },
591 { 0x00000897, 0x0080 },
592 { 0x00000898, 0x0000 },
593 { 0x00000899, 0x0080 },
594 { 0x0000089A, 0x0000 },
595 { 0x0000089B, 0x0080 },
596 { 0x0000089C, 0x0000 },
597 { 0x0000089D, 0x0080 },
598 { 0x0000089E, 0x0000 },
599 { 0x0000089F, 0x0080 },
600 { 0x000008C0, 0x0000 },
601 { 0x000008C1, 0x0080 },
602 { 0x000008C2, 0x0000 },
603 { 0x000008C3, 0x0080 },
604 { 0x000008C4, 0x0000 },
605 { 0x000008C5, 0x0080 },
606 { 0x000008C6, 0x0000 },
607 { 0x000008C7, 0x0080 },
608 { 0x000008C8, 0x0000 },
609 { 0x000008C9, 0x0080 },
610 { 0x000008CA, 0x0000 },
611 { 0x000008CB, 0x0080 },
612 { 0x000008CC, 0x0000 },
613 { 0x000008CD, 0x0080 },
614 { 0x000008CE, 0x0000 },
615 { 0x000008CF, 0x0080 },
616 { 0x00000900, 0x0000 },
617 { 0x00000901, 0x0080 },
618 { 0x00000902, 0x0000 },
619 { 0x00000903, 0x0080 },
620 { 0x00000904, 0x0000 },
621 { 0x00000905, 0x0080 },
622 { 0x00000906, 0x0000 },
623 { 0x00000907, 0x0080 },
624 { 0x00000908, 0x0000 },
625 { 0x00000909, 0x0080 },
626 { 0x0000090A, 0x0000 },
627 { 0x0000090B, 0x0080 },
628 { 0x0000090C, 0x0000 },
629 { 0x0000090D, 0x0080 },
630 { 0x0000090E, 0x0000 },
631 { 0x0000090F, 0x0080 },
632 { 0x00000910, 0x0000 },
633 { 0x00000911, 0x0080 },
634 { 0x00000912, 0x0000 },
635 { 0x00000913, 0x0080 },
636 { 0x00000914, 0x0000 },
637 { 0x00000915, 0x0080 },
638 { 0x00000916, 0x0000 },
639 { 0x00000917, 0x0080 },
640 { 0x00000918, 0x0000 },
641 { 0x00000919, 0x0080 },
642 { 0x0000091A, 0x0000 },
643 { 0x0000091B, 0x0080 },
644 { 0x0000091C, 0x0000 },
645 { 0x0000091D, 0x0080 },
646 { 0x0000091E, 0x0000 },
647 { 0x0000091F, 0x0080 },
648 { 0x00000B00, 0x0000 },
649 { 0x00000B08, 0x0000 },
650 { 0x00000B20, 0x0000 },
651 { 0x00000B28, 0x0000 },
652 { 0x00000B40, 0x0000 },
653 { 0x00000B48, 0x0000 },
654 { 0x00000B60, 0x0000 },
655 { 0x00000B68, 0x0000 },
656 { 0x00000C00, 0xA101 },
657 { 0x00000C01, 0xA101 },
658 { 0x00000C02, 0xA101 },
659 { 0x00000C03, 0xA101 },
660 { 0x00000C04, 0xA101 },
661 { 0x00000C0F, 0x0400 },
662 { 0x00000C10, 0x1000 },
663 { 0x00000C20, 0x8002 },
664 { 0x00000C21, 0x0001 },
665 { 0x00000C22, 0x0000 },
666 { 0x00000C23, 0x0000 },
667 { 0x00000C24, 0x0000 },
668 { 0x00000D08, 0xFFFF },
669 { 0x00000D09, 0xFFFF },
670 { 0x00000D0A, 0xFFFF },
671 { 0x00000D0B, 0xFFFF },
672 { 0x00000D0C, 0xFEFF },
673 { 0x00000D0F, 0x0000 },
674 { 0x00000D18, 0xFFFF },
675 { 0x00000D1A, 0xFFFF },
676 { 0x00000D1B, 0xFFFF },
677 { 0x00000D1C, 0xFFFF },
678 { 0x00000D1F, 0x0000 },
679 { 0x00000D53, 0xFFFF },
680 { 0x00000D54, 0xFFFF },
681 { 0x00000D56, 0x0000 },
682 { 0x00000E00, 0x0000 },
683 { 0x00000E10, 0x6318 },
684 { 0x00000E11, 0x6300 },
685 { 0x00000E12, 0x0FC8 },
686 { 0x00000E13, 0x03FE },
687 { 0x00000E14, 0x00E0 },
688 { 0x00000E15, 0x1EC4 },
689 { 0x00000E16, 0xF136 },
690 { 0x00000E17, 0x0409 },
691 { 0x00000E18, 0x04CC },
692 { 0x00000E19, 0x1C9B },
693 { 0x00000E1A, 0xF337 },
694 { 0x00000E1B, 0x040B },
695 { 0x00000E1C, 0x0CBB },
696 { 0x00000E1D, 0x16F8 },
697 { 0x00000E1E, 0xF7D9 },
698 { 0x00000E1F, 0x040A },
699 { 0x00000E20, 0x1F14 },
700 { 0x00000E21, 0x058C },
701 { 0x00000E22, 0x0563 },
702 { 0x00000E23, 0x4000 },
703 { 0x00000E24, 0x0B75 },
704 { 0x00000E26, 0x6318 },
705 { 0x00000E27, 0x6300 },
706 { 0x00000E28, 0x0FC8 },
707 { 0x00000E29, 0x03FE },
708 { 0x00000E2A, 0x00E0 },
709 { 0x00000E2B, 0x1EC4 },
710 { 0x00000E2C, 0xF136 },
711 { 0x00000E2D, 0x0409 },
712 { 0x00000E2E, 0x04CC },
713 { 0x00000E2F, 0x1C9B },
714 { 0x00000E30, 0xF337 },
715 { 0x00000E31, 0x040B },
716 { 0x00000E32, 0x0CBB },
717 { 0x00000E33, 0x16F8 },
718 { 0x00000E34, 0xF7D9 },
719 { 0x00000E35, 0x040A },
720 { 0x00000E36, 0x1F14 },
721 { 0x00000E37, 0x058C },
722 { 0x00000E38, 0x0563 },
723 { 0x00000E39, 0x4000 },
724 { 0x00000E3A, 0x0B75 },
725 { 0x00000E3C, 0x6318 },
726 { 0x00000E3D, 0x6300 },
727 { 0x00000E3E, 0x0FC8 },
728 { 0x00000E3F, 0x03FE },
729 { 0x00000E40, 0x00E0 },
730 { 0x00000E41, 0x1EC4 },
731 { 0x00000E42, 0xF136 },
732 { 0x00000E43, 0x0409 },
733 { 0x00000E44, 0x04CC },
734 { 0x00000E45, 0x1C9B },
735 { 0x00000E46, 0xF337 },
736 { 0x00000E47, 0x040B },
737 { 0x00000E48, 0x0CBB },
738 { 0x00000E49, 0x16F8 },
739 { 0x00000E4A, 0xF7D9 },
740 { 0x00000E4B, 0x040A },
741 { 0x00000E4C, 0x1F14 },
742 { 0x00000E4D, 0x058C },
743 { 0x00000E4E, 0x0563 },
744 { 0x00000E4F, 0x4000 },
745 { 0x00000E50, 0x0B75 },
746 { 0x00000E52, 0x6318 },
747 { 0x00000E53, 0x6300 },
748 { 0x00000E54, 0x0FC8 },
749 { 0x00000E55, 0x03FE },
750 { 0x00000E56, 0x00E0 },
751 { 0x00000E57, 0x1EC4 },
752 { 0x00000E58, 0xF136 },
753 { 0x00000E59, 0x0409 },
754 { 0x00000E5A, 0x04CC },
755 { 0x00000E5B, 0x1C9B },
756 { 0x00000E5C, 0xF337 },
757 { 0x00000E5D, 0x040B },
758 { 0x00000E5E, 0x0CBB },
759 { 0x00000E5F, 0x16F8 },
760 { 0x00000E60, 0xF7D9 },
761 { 0x00000E61, 0x040A },
762 { 0x00000E62, 0x1F14 },
763 { 0x00000E63, 0x058C },
764 { 0x00000E64, 0x0563 },
765 { 0x00000E65, 0x4000 },
766 { 0x00000E66, 0x0B75 },
767 { 0x00000E80, 0x0018 },
768 { 0x00000E81, 0x0933 },
769 { 0x00000E82, 0x0018 },
770 { 0x00000E83, 0x0000 },
771 { 0x00000E84, 0x0000 },
772 { 0x00000EC0, 0x0000 },
773 { 0x00000EC1, 0x0000 },
774 { 0x00000EC4, 0x0000 },
775 { 0x00000EC5, 0x0000 },
776 { 0x00000EC8, 0x0000 },
777 { 0x00000EC9, 0x0000 },
778 { 0x00000ECC, 0x0000 },
779 { 0x00000ECD, 0x0000 },
780 { 0x00000EF0, 0x0000 },
781 { 0x00000EF1, 0x0000 },
782 { 0x00000EF2, 0x0000 },
783 { 0x00000EF3, 0x0000 },
784 { 0x00000EF4, 0x0000 },
785 { 0x00000EF5, 0x0000 },
786 };
787
788 static bool wm8997_readable_register(struct device *dev, unsigned int reg)
789 {
790 switch (reg) {
791 case ARIZONA_SOFTWARE_RESET:
792 case ARIZONA_DEVICE_REVISION:
793 case ARIZONA_CTRL_IF_I2C1_CFG_1:
794 case ARIZONA_WRITE_SEQUENCER_CTRL_0:
795 case ARIZONA_WRITE_SEQUENCER_CTRL_1:
796 case ARIZONA_WRITE_SEQUENCER_CTRL_2:
797 case ARIZONA_TONE_GENERATOR_1:
798 case ARIZONA_TONE_GENERATOR_2:
799 case ARIZONA_TONE_GENERATOR_3:
800 case ARIZONA_TONE_GENERATOR_4:
801 case ARIZONA_TONE_GENERATOR_5:
802 case ARIZONA_PWM_DRIVE_1:
803 case ARIZONA_PWM_DRIVE_2:
804 case ARIZONA_PWM_DRIVE_3:
805 case ARIZONA_WAKE_CONTROL:
806 case ARIZONA_SEQUENCE_CONTROL:
807 case ARIZONA_SAMPLE_RATE_SEQUENCE_SELECT_1:
808 case ARIZONA_SAMPLE_RATE_SEQUENCE_SELECT_2:
809 case ARIZONA_SAMPLE_RATE_SEQUENCE_SELECT_3:
810 case ARIZONA_SAMPLE_RATE_SEQUENCE_SELECT_4:
811 case ARIZONA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_3:
812 case ARIZONA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_4:
813 case ARIZONA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_5:
814 case ARIZONA_ALWAYS_ON_TRIGGERS_SEQUENCE_SELECT_6:
815 case ARIZONA_COMFORT_NOISE_GENERATOR:
816 case ARIZONA_HAPTICS_CONTROL_1:
817 case ARIZONA_HAPTICS_CONTROL_2:
818 case ARIZONA_HAPTICS_PHASE_1_INTENSITY:
819 case ARIZONA_HAPTICS_PHASE_1_DURATION:
820 case ARIZONA_HAPTICS_PHASE_2_INTENSITY:
821 case ARIZONA_HAPTICS_PHASE_2_DURATION:
822 case ARIZONA_HAPTICS_PHASE_3_INTENSITY:
823 case ARIZONA_HAPTICS_PHASE_3_DURATION:
824 case ARIZONA_HAPTICS_STATUS:
825 case ARIZONA_CLOCK_32K_1:
826 case ARIZONA_SYSTEM_CLOCK_1:
827 case ARIZONA_SAMPLE_RATE_1:
828 case ARIZONA_SAMPLE_RATE_2:
829 case ARIZONA_SAMPLE_RATE_3:
830 case ARIZONA_SAMPLE_RATE_1_STATUS:
831 case ARIZONA_SAMPLE_RATE_2_STATUS:
832 case ARIZONA_SAMPLE_RATE_3_STATUS:
833 case ARIZONA_ASYNC_CLOCK_1:
834 case ARIZONA_ASYNC_SAMPLE_RATE_1:
835 case ARIZONA_ASYNC_SAMPLE_RATE_1_STATUS:
836 case ARIZONA_OUTPUT_SYSTEM_CLOCK:
837 case ARIZONA_OUTPUT_ASYNC_CLOCK:
838 case ARIZONA_RATE_ESTIMATOR_1:
839 case ARIZONA_RATE_ESTIMATOR_2:
840 case ARIZONA_RATE_ESTIMATOR_3:
841 case ARIZONA_RATE_ESTIMATOR_4:
842 case ARIZONA_RATE_ESTIMATOR_5:
843 case ARIZONA_DYNAMIC_FREQUENCY_SCALING_1:
844 case ARIZONA_FLL1_CONTROL_1:
845 case ARIZONA_FLL1_CONTROL_2:
846 case ARIZONA_FLL1_CONTROL_3:
847 case ARIZONA_FLL1_CONTROL_4:
848 case ARIZONA_FLL1_CONTROL_5:
849 case ARIZONA_FLL1_CONTROL_6:
850 case ARIZONA_FLL1_LOOP_FILTER_TEST_1:
851 case ARIZONA_FLL1_NCO_TEST_0:
852 case ARIZONA_FLL1_SYNCHRONISER_1:
853 case ARIZONA_FLL1_SYNCHRONISER_2:
854 case ARIZONA_FLL1_SYNCHRONISER_3:
855 case ARIZONA_FLL1_SYNCHRONISER_4:
856 case ARIZONA_FLL1_SYNCHRONISER_5:
857 case ARIZONA_FLL1_SYNCHRONISER_6:
858 case ARIZONA_FLL1_SPREAD_SPECTRUM:
859 case ARIZONA_FLL1_GPIO_CLOCK:
860 case ARIZONA_FLL2_CONTROL_1:
861 case ARIZONA_FLL2_CONTROL_2:
862 case ARIZONA_FLL2_CONTROL_3:
863 case ARIZONA_FLL2_CONTROL_4:
864 case ARIZONA_FLL2_CONTROL_5:
865 case ARIZONA_FLL2_CONTROL_6:
866 case ARIZONA_FLL2_LOOP_FILTER_TEST_1:
867 case ARIZONA_FLL2_NCO_TEST_0:
868 case ARIZONA_FLL2_SYNCHRONISER_1:
869 case ARIZONA_FLL2_SYNCHRONISER_2:
870 case ARIZONA_FLL2_SYNCHRONISER_3:
871 case ARIZONA_FLL2_SYNCHRONISER_4:
872 case ARIZONA_FLL2_SYNCHRONISER_5:
873 case ARIZONA_FLL2_SYNCHRONISER_6:
874 case ARIZONA_FLL2_SPREAD_SPECTRUM:
875 case ARIZONA_FLL2_GPIO_CLOCK:
876 case ARIZONA_MIC_CHARGE_PUMP_1:
877 case ARIZONA_LDO1_CONTROL_1:
878 case ARIZONA_LDO1_CONTROL_2:
879 case ARIZONA_LDO2_CONTROL_1:
880 case ARIZONA_MIC_BIAS_CTRL_1:
881 case ARIZONA_MIC_BIAS_CTRL_2:
882 case ARIZONA_MIC_BIAS_CTRL_3:
883 case ARIZONA_HP_CTRL_1L:
884 case ARIZONA_HP_CTRL_1R:
885 case ARIZONA_ACCESSORY_DETECT_MODE_1:
886 case ARIZONA_HEADPHONE_DETECT_1:
887 case ARIZONA_HEADPHONE_DETECT_2:
888 case ARIZONA_MIC_DETECT_1:
889 case ARIZONA_MIC_DETECT_2:
890 case ARIZONA_MIC_DETECT_3:
891 case ARIZONA_MIC_NOISE_MIX_CONTROL_1:
892 case ARIZONA_ISOLATION_CONTROL:
893 case ARIZONA_JACK_DETECT_ANALOGUE:
894 case ARIZONA_INPUT_ENABLES:
895 case ARIZONA_INPUT_ENABLES_STATUS:
896 case ARIZONA_INPUT_RATE:
897 case ARIZONA_INPUT_VOLUME_RAMP:
898 case ARIZONA_IN1L_CONTROL:
899 case ARIZONA_ADC_DIGITAL_VOLUME_1L:
900 case ARIZONA_DMIC1L_CONTROL:
901 case ARIZONA_IN1R_CONTROL:
902 case ARIZONA_ADC_DIGITAL_VOLUME_1R:
903 case ARIZONA_DMIC1R_CONTROL:
904 case ARIZONA_IN2L_CONTROL:
905 case ARIZONA_ADC_DIGITAL_VOLUME_2L:
906 case ARIZONA_DMIC2L_CONTROL:
907 case ARIZONA_IN2R_CONTROL:
908 case ARIZONA_ADC_DIGITAL_VOLUME_2R:
909 case ARIZONA_DMIC2R_CONTROL:
910 case ARIZONA_OUTPUT_ENABLES_1:
911 case ARIZONA_OUTPUT_STATUS_1:
912 case ARIZONA_RAW_OUTPUT_STATUS_1:
913 case ARIZONA_OUTPUT_RATE_1:
914 case ARIZONA_OUTPUT_VOLUME_RAMP:
915 case ARIZONA_OUTPUT_PATH_CONFIG_1L:
916 case ARIZONA_DAC_DIGITAL_VOLUME_1L:
917 case ARIZONA_DAC_VOLUME_LIMIT_1L:
918 case ARIZONA_NOISE_GATE_SELECT_1L:
919 case ARIZONA_OUTPUT_PATH_CONFIG_1R:
920 case ARIZONA_DAC_DIGITAL_VOLUME_1R:
921 case ARIZONA_DAC_VOLUME_LIMIT_1R:
922 case ARIZONA_NOISE_GATE_SELECT_1R:
923 case ARIZONA_OUTPUT_PATH_CONFIG_3L:
924 case ARIZONA_DAC_DIGITAL_VOLUME_3L:
925 case ARIZONA_DAC_VOLUME_LIMIT_3L:
926 case ARIZONA_NOISE_GATE_SELECT_3L:
927 case ARIZONA_OUTPUT_PATH_CONFIG_4L:
928 case ARIZONA_DAC_DIGITAL_VOLUME_4L:
929 case ARIZONA_OUT_VOLUME_4L:
930 case ARIZONA_NOISE_GATE_SELECT_4L:
931 case ARIZONA_OUTPUT_PATH_CONFIG_5L:
932 case ARIZONA_DAC_DIGITAL_VOLUME_5L:
933 case ARIZONA_DAC_VOLUME_LIMIT_5L:
934 case ARIZONA_NOISE_GATE_SELECT_5L:
935 case ARIZONA_DAC_DIGITAL_VOLUME_5R:
936 case ARIZONA_DAC_VOLUME_LIMIT_5R:
937 case ARIZONA_NOISE_GATE_SELECT_5R:
938 case ARIZONA_DAC_AEC_CONTROL_1:
939 case ARIZONA_NOISE_GATE_CONTROL:
940 case ARIZONA_PDM_SPK1_CTRL_1:
941 case ARIZONA_PDM_SPK1_CTRL_2:
942 case ARIZONA_AIF1_BCLK_CTRL:
943 case ARIZONA_AIF1_TX_PIN_CTRL:
944 case ARIZONA_AIF1_RX_PIN_CTRL:
945 case ARIZONA_AIF1_RATE_CTRL:
946 case ARIZONA_AIF1_FORMAT:
947 case ARIZONA_AIF1_TX_BCLK_RATE:
948 case ARIZONA_AIF1_RX_BCLK_RATE:
949 case ARIZONA_AIF1_FRAME_CTRL_1:
950 case ARIZONA_AIF1_FRAME_CTRL_2:
951 case ARIZONA_AIF1_FRAME_CTRL_3:
952 case ARIZONA_AIF1_FRAME_CTRL_4:
953 case ARIZONA_AIF1_FRAME_CTRL_5:
954 case ARIZONA_AIF1_FRAME_CTRL_6:
955 case ARIZONA_AIF1_FRAME_CTRL_7:
956 case ARIZONA_AIF1_FRAME_CTRL_8:
957 case ARIZONA_AIF1_FRAME_CTRL_9:
958 case ARIZONA_AIF1_FRAME_CTRL_10:
959 case ARIZONA_AIF1_FRAME_CTRL_11:
960 case ARIZONA_AIF1_FRAME_CTRL_12:
961 case ARIZONA_AIF1_FRAME_CTRL_13:
962 case ARIZONA_AIF1_FRAME_CTRL_14:
963 case ARIZONA_AIF1_FRAME_CTRL_15:
964 case ARIZONA_AIF1_FRAME_CTRL_16:
965 case ARIZONA_AIF1_FRAME_CTRL_17:
966 case ARIZONA_AIF1_FRAME_CTRL_18:
967 case ARIZONA_AIF1_TX_ENABLES:
968 case ARIZONA_AIF1_RX_ENABLES:
969 case ARIZONA_AIF2_BCLK_CTRL:
970 case ARIZONA_AIF2_TX_PIN_CTRL:
971 case ARIZONA_AIF2_RX_PIN_CTRL:
972 case ARIZONA_AIF2_RATE_CTRL:
973 case ARIZONA_AIF2_FORMAT:
974 case ARIZONA_AIF2_TX_BCLK_RATE:
975 case ARIZONA_AIF2_RX_BCLK_RATE:
976 case ARIZONA_AIF2_FRAME_CTRL_1:
977 case ARIZONA_AIF2_FRAME_CTRL_2:
978 case ARIZONA_AIF2_FRAME_CTRL_3:
979 case ARIZONA_AIF2_FRAME_CTRL_4:
980 case ARIZONA_AIF2_FRAME_CTRL_11:
981 case ARIZONA_AIF2_FRAME_CTRL_12:
982 case ARIZONA_AIF2_TX_ENABLES:
983 case ARIZONA_AIF2_RX_ENABLES:
984 case ARIZONA_SLIMBUS_FRAMER_REF_GEAR:
985 case ARIZONA_SLIMBUS_RATES_1:
986 case ARIZONA_SLIMBUS_RATES_2:
987 case ARIZONA_SLIMBUS_RATES_3:
988 case ARIZONA_SLIMBUS_RATES_4:
989 case ARIZONA_SLIMBUS_RATES_5:
990 case ARIZONA_SLIMBUS_RATES_6:
991 case ARIZONA_SLIMBUS_RATES_7:
992 case ARIZONA_SLIMBUS_RATES_8:
993 case ARIZONA_SLIMBUS_RX_CHANNEL_ENABLE:
994 case ARIZONA_SLIMBUS_TX_CHANNEL_ENABLE:
995 case ARIZONA_SLIMBUS_RX_PORT_STATUS:
996 case ARIZONA_SLIMBUS_TX_PORT_STATUS:
997 case ARIZONA_PWM1MIX_INPUT_1_SOURCE:
998 case ARIZONA_PWM1MIX_INPUT_1_VOLUME:
999 case ARIZONA_PWM1MIX_INPUT_2_SOURCE:
1000 case ARIZONA_PWM1MIX_INPUT_2_VOLUME:
1001 case ARIZONA_PWM1MIX_INPUT_3_SOURCE:
1002 case ARIZONA_PWM1MIX_INPUT_3_VOLUME:
1003 case ARIZONA_PWM1MIX_INPUT_4_SOURCE:
1004 case ARIZONA_PWM1MIX_INPUT_4_VOLUME:
1005 case ARIZONA_PWM2MIX_INPUT_1_SOURCE:
1006 case ARIZONA_PWM2MIX_INPUT_1_VOLUME:
1007 case ARIZONA_PWM2MIX_INPUT_2_SOURCE:
1008 case ARIZONA_PWM2MIX_INPUT_2_VOLUME:
1009 case ARIZONA_PWM2MIX_INPUT_3_SOURCE:
1010 case ARIZONA_PWM2MIX_INPUT_3_VOLUME:
1011 case ARIZONA_PWM2MIX_INPUT_4_SOURCE:
1012 case ARIZONA_PWM2MIX_INPUT_4_VOLUME:
1013 case ARIZONA_MICMIX_INPUT_1_SOURCE:
1014 case ARIZONA_MICMIX_INPUT_1_VOLUME:
1015 case ARIZONA_MICMIX_INPUT_2_SOURCE:
1016 case ARIZONA_MICMIX_INPUT_2_VOLUME:
1017 case ARIZONA_MICMIX_INPUT_3_SOURCE:
1018 case ARIZONA_MICMIX_INPUT_3_VOLUME:
1019 case ARIZONA_MICMIX_INPUT_4_SOURCE:
1020 case ARIZONA_MICMIX_INPUT_4_VOLUME:
1021 case ARIZONA_NOISEMIX_INPUT_1_SOURCE:
1022 case ARIZONA_NOISEMIX_INPUT_1_VOLUME:
1023 case ARIZONA_NOISEMIX_INPUT_2_SOURCE:
1024 case ARIZONA_NOISEMIX_INPUT_2_VOLUME:
1025 case ARIZONA_NOISEMIX_INPUT_3_SOURCE:
1026 case ARIZONA_NOISEMIX_INPUT_3_VOLUME:
1027 case ARIZONA_NOISEMIX_INPUT_4_SOURCE:
1028 case ARIZONA_NOISEMIX_INPUT_4_VOLUME:
1029 case ARIZONA_OUT1LMIX_INPUT_1_SOURCE:
1030 case ARIZONA_OUT1LMIX_INPUT_1_VOLUME:
1031 case ARIZONA_OUT1LMIX_INPUT_2_SOURCE:
1032 case ARIZONA_OUT1LMIX_INPUT_2_VOLUME:
1033 case ARIZONA_OUT1LMIX_INPUT_3_SOURCE:
1034 case ARIZONA_OUT1LMIX_INPUT_3_VOLUME:
1035 case ARIZONA_OUT1LMIX_INPUT_4_SOURCE:
1036 case ARIZONA_OUT1LMIX_INPUT_4_VOLUME:
1037 case ARIZONA_OUT1RMIX_INPUT_1_SOURCE:
1038 case ARIZONA_OUT1RMIX_INPUT_1_VOLUME:
1039 case ARIZONA_OUT1RMIX_INPUT_2_SOURCE:
1040 case ARIZONA_OUT1RMIX_INPUT_2_VOLUME:
1041 case ARIZONA_OUT1RMIX_INPUT_3_SOURCE:
1042 case ARIZONA_OUT1RMIX_INPUT_3_VOLUME:
1043 case ARIZONA_OUT1RMIX_INPUT_4_SOURCE:
1044 case ARIZONA_OUT1RMIX_INPUT_4_VOLUME:
1045 case ARIZONA_OUT3LMIX_INPUT_1_SOURCE:
1046 case ARIZONA_OUT3LMIX_INPUT_1_VOLUME:
1047 case ARIZONA_OUT3LMIX_INPUT_2_SOURCE:
1048 case ARIZONA_OUT3LMIX_INPUT_2_VOLUME:
1049 case ARIZONA_OUT3LMIX_INPUT_3_SOURCE:
1050 case ARIZONA_OUT3LMIX_INPUT_3_VOLUME:
1051 case ARIZONA_OUT3LMIX_INPUT_4_SOURCE:
1052 case ARIZONA_OUT3LMIX_INPUT_4_VOLUME:
1053 case ARIZONA_OUT4LMIX_INPUT_1_SOURCE:
1054 case ARIZONA_OUT4LMIX_INPUT_1_VOLUME:
1055 case ARIZONA_OUT4LMIX_INPUT_2_SOURCE:
1056 case ARIZONA_OUT4LMIX_INPUT_2_VOLUME:
1057 case ARIZONA_OUT4LMIX_INPUT_3_SOURCE:
1058 case ARIZONA_OUT4LMIX_INPUT_3_VOLUME:
1059 case ARIZONA_OUT4LMIX_INPUT_4_SOURCE:
1060 case ARIZONA_OUT4LMIX_INPUT_4_VOLUME:
1061 case ARIZONA_OUT5LMIX_INPUT_1_SOURCE:
1062 case ARIZONA_OUT5LMIX_INPUT_1_VOLUME:
1063 case ARIZONA_OUT5LMIX_INPUT_2_SOURCE:
1064 case ARIZONA_OUT5LMIX_INPUT_2_VOLUME:
1065 case ARIZONA_OUT5LMIX_INPUT_3_SOURCE:
1066 case ARIZONA_OUT5LMIX_INPUT_3_VOLUME:
1067 case ARIZONA_OUT5LMIX_INPUT_4_SOURCE:
1068 case ARIZONA_OUT5LMIX_INPUT_4_VOLUME:
1069 case ARIZONA_OUT5RMIX_INPUT_1_SOURCE:
1070 case ARIZONA_OUT5RMIX_INPUT_1_VOLUME:
1071 case ARIZONA_OUT5RMIX_INPUT_2_SOURCE:
1072 case ARIZONA_OUT5RMIX_INPUT_2_VOLUME:
1073 case ARIZONA_OUT5RMIX_INPUT_3_SOURCE:
1074 case ARIZONA_OUT5RMIX_INPUT_3_VOLUME:
1075 case ARIZONA_OUT5RMIX_INPUT_4_SOURCE:
1076 case ARIZONA_OUT5RMIX_INPUT_4_VOLUME:
1077 case ARIZONA_AIF1TX1MIX_INPUT_1_SOURCE:
1078 case ARIZONA_AIF1TX1MIX_INPUT_1_VOLUME:
1079 case ARIZONA_AIF1TX1MIX_INPUT_2_SOURCE:
1080 case ARIZONA_AIF1TX1MIX_INPUT_2_VOLUME:
1081 case ARIZONA_AIF1TX1MIX_INPUT_3_SOURCE:
1082 case ARIZONA_AIF1TX1MIX_INPUT_3_VOLUME:
1083 case ARIZONA_AIF1TX1MIX_INPUT_4_SOURCE:
1084 case ARIZONA_AIF1TX1MIX_INPUT_4_VOLUME:
1085 case ARIZONA_AIF1TX2MIX_INPUT_1_SOURCE:
1086 case ARIZONA_AIF1TX2MIX_INPUT_1_VOLUME:
1087 case ARIZONA_AIF1TX2MIX_INPUT_2_SOURCE:
1088 case ARIZONA_AIF1TX2MIX_INPUT_2_VOLUME:
1089 case ARIZONA_AIF1TX2MIX_INPUT_3_SOURCE:
1090 case ARIZONA_AIF1TX2MIX_INPUT_3_VOLUME:
1091 case ARIZONA_AIF1TX2MIX_INPUT_4_SOURCE:
1092 case ARIZONA_AIF1TX2MIX_INPUT_4_VOLUME:
1093 case ARIZONA_AIF1TX3MIX_INPUT_1_SOURCE:
1094 case ARIZONA_AIF1TX3MIX_INPUT_1_VOLUME:
1095 case ARIZONA_AIF1TX3MIX_INPUT_2_SOURCE:
1096 case ARIZONA_AIF1TX3MIX_INPUT_2_VOLUME:
1097 case ARIZONA_AIF1TX3MIX_INPUT_3_SOURCE:
1098 case ARIZONA_AIF1TX3MIX_INPUT_3_VOLUME:
1099 case ARIZONA_AIF1TX3MIX_INPUT_4_SOURCE:
1100 case ARIZONA_AIF1TX3MIX_INPUT_4_VOLUME:
1101 case ARIZONA_AIF1TX4MIX_INPUT_1_SOURCE:
1102 case ARIZONA_AIF1TX4MIX_INPUT_1_VOLUME:
1103 case ARIZONA_AIF1TX4MIX_INPUT_2_SOURCE:
1104 case ARIZONA_AIF1TX4MIX_INPUT_2_VOLUME:
1105 case ARIZONA_AIF1TX4MIX_INPUT_3_SOURCE:
1106 case ARIZONA_AIF1TX4MIX_INPUT_3_VOLUME:
1107 case ARIZONA_AIF1TX4MIX_INPUT_4_SOURCE:
1108 case ARIZONA_AIF1TX4MIX_INPUT_4_VOLUME:
1109 case ARIZONA_AIF1TX5MIX_INPUT_1_SOURCE:
1110 case ARIZONA_AIF1TX5MIX_INPUT_1_VOLUME:
1111 case ARIZONA_AIF1TX5MIX_INPUT_2_SOURCE:
1112 case ARIZONA_AIF1TX5MIX_INPUT_2_VOLUME:
1113 case ARIZONA_AIF1TX5MIX_INPUT_3_SOURCE:
1114 case ARIZONA_AIF1TX5MIX_INPUT_3_VOLUME:
1115 case ARIZONA_AIF1TX5MIX_INPUT_4_SOURCE:
1116 case ARIZONA_AIF1TX5MIX_INPUT_4_VOLUME:
1117 case ARIZONA_AIF1TX6MIX_INPUT_1_SOURCE:
1118 case ARIZONA_AIF1TX6MIX_INPUT_1_VOLUME:
1119 case ARIZONA_AIF1TX6MIX_INPUT_2_SOURCE:
1120 case ARIZONA_AIF1TX6MIX_INPUT_2_VOLUME:
1121 case ARIZONA_AIF1TX6MIX_INPUT_3_SOURCE:
1122 case ARIZONA_AIF1TX6MIX_INPUT_3_VOLUME:
1123 case ARIZONA_AIF1TX6MIX_INPUT_4_SOURCE:
1124 case ARIZONA_AIF1TX6MIX_INPUT_4_VOLUME:
1125 case ARIZONA_AIF1TX7MIX_INPUT_1_SOURCE:
1126 case ARIZONA_AIF1TX7MIX_INPUT_1_VOLUME:
1127 case ARIZONA_AIF1TX7MIX_INPUT_2_SOURCE:
1128 case ARIZONA_AIF1TX7MIX_INPUT_2_VOLUME:
1129 case ARIZONA_AIF1TX7MIX_INPUT_3_SOURCE:
1130 case ARIZONA_AIF1TX7MIX_INPUT_3_VOLUME:
1131 case ARIZONA_AIF1TX7MIX_INPUT_4_SOURCE:
1132 case ARIZONA_AIF1TX7MIX_INPUT_4_VOLUME:
1133 case ARIZONA_AIF1TX8MIX_INPUT_1_SOURCE:
1134 case ARIZONA_AIF1TX8MIX_INPUT_1_VOLUME:
1135 case ARIZONA_AIF1TX8MIX_INPUT_2_SOURCE:
1136 case ARIZONA_AIF1TX8MIX_INPUT_2_VOLUME:
1137 case ARIZONA_AIF1TX8MIX_INPUT_3_SOURCE:
1138 case ARIZONA_AIF1TX8MIX_INPUT_3_VOLUME:
1139 case ARIZONA_AIF1TX8MIX_INPUT_4_SOURCE:
1140 case ARIZONA_AIF1TX8MIX_INPUT_4_VOLUME:
1141 case ARIZONA_AIF2TX1MIX_INPUT_1_SOURCE:
1142 case ARIZONA_AIF2TX1MIX_INPUT_1_VOLUME:
1143 case ARIZONA_AIF2TX1MIX_INPUT_2_SOURCE:
1144 case ARIZONA_AIF2TX1MIX_INPUT_2_VOLUME:
1145 case ARIZONA_AIF2TX1MIX_INPUT_3_SOURCE:
1146 case ARIZONA_AIF2TX1MIX_INPUT_3_VOLUME:
1147 case ARIZONA_AIF2TX1MIX_INPUT_4_SOURCE:
1148 case ARIZONA_AIF2TX1MIX_INPUT_4_VOLUME:
1149 case ARIZONA_AIF2TX2MIX_INPUT_1_SOURCE:
1150 case ARIZONA_AIF2TX2MIX_INPUT_1_VOLUME:
1151 case ARIZONA_AIF2TX2MIX_INPUT_2_SOURCE:
1152 case ARIZONA_AIF2TX2MIX_INPUT_2_VOLUME:
1153 case ARIZONA_AIF2TX2MIX_INPUT_3_SOURCE:
1154 case ARIZONA_AIF2TX2MIX_INPUT_3_VOLUME:
1155 case ARIZONA_AIF2TX2MIX_INPUT_4_SOURCE:
1156 case ARIZONA_AIF2TX2MIX_INPUT_4_VOLUME:
1157 case ARIZONA_SLIMTX1MIX_INPUT_1_SOURCE:
1158 case ARIZONA_SLIMTX1MIX_INPUT_1_VOLUME:
1159 case ARIZONA_SLIMTX1MIX_INPUT_2_SOURCE:
1160 case ARIZONA_SLIMTX1MIX_INPUT_2_VOLUME:
1161 case ARIZONA_SLIMTX1MIX_INPUT_3_SOURCE:
1162 case ARIZONA_SLIMTX1MIX_INPUT_3_VOLUME:
1163 case ARIZONA_SLIMTX1MIX_INPUT_4_SOURCE:
1164 case ARIZONA_SLIMTX1MIX_INPUT_4_VOLUME:
1165 case ARIZONA_SLIMTX2MIX_INPUT_1_SOURCE:
1166 case ARIZONA_SLIMTX2MIX_INPUT_1_VOLUME:
1167 case ARIZONA_SLIMTX2MIX_INPUT_2_SOURCE:
1168 case ARIZONA_SLIMTX2MIX_INPUT_2_VOLUME:
1169 case ARIZONA_SLIMTX2MIX_INPUT_3_SOURCE:
1170 case ARIZONA_SLIMTX2MIX_INPUT_3_VOLUME:
1171 case ARIZONA_SLIMTX2MIX_INPUT_4_SOURCE:
1172 case ARIZONA_SLIMTX2MIX_INPUT_4_VOLUME:
1173 case ARIZONA_SLIMTX3MIX_INPUT_1_SOURCE:
1174 case ARIZONA_SLIMTX3MIX_INPUT_1_VOLUME:
1175 case ARIZONA_SLIMTX3MIX_INPUT_2_SOURCE:
1176 case ARIZONA_SLIMTX3MIX_INPUT_2_VOLUME:
1177 case ARIZONA_SLIMTX3MIX_INPUT_3_SOURCE:
1178 case ARIZONA_SLIMTX3MIX_INPUT_3_VOLUME:
1179 case ARIZONA_SLIMTX3MIX_INPUT_4_SOURCE:
1180 case ARIZONA_SLIMTX3MIX_INPUT_4_VOLUME:
1181 case ARIZONA_SLIMTX4MIX_INPUT_1_SOURCE:
1182 case ARIZONA_SLIMTX4MIX_INPUT_1_VOLUME:
1183 case ARIZONA_SLIMTX4MIX_INPUT_2_SOURCE:
1184 case ARIZONA_SLIMTX4MIX_INPUT_2_VOLUME:
1185 case ARIZONA_SLIMTX4MIX_INPUT_3_SOURCE:
1186 case ARIZONA_SLIMTX4MIX_INPUT_3_VOLUME:
1187 case ARIZONA_SLIMTX4MIX_INPUT_4_SOURCE:
1188 case ARIZONA_SLIMTX4MIX_INPUT_4_VOLUME:
1189 case ARIZONA_SLIMTX5MIX_INPUT_1_SOURCE:
1190 case ARIZONA_SLIMTX5MIX_INPUT_1_VOLUME:
1191 case ARIZONA_SLIMTX5MIX_INPUT_2_SOURCE:
1192 case ARIZONA_SLIMTX5MIX_INPUT_2_VOLUME:
1193 case ARIZONA_SLIMTX5MIX_INPUT_3_SOURCE:
1194 case ARIZONA_SLIMTX5MIX_INPUT_3_VOLUME:
1195 case ARIZONA_SLIMTX5MIX_INPUT_4_SOURCE:
1196 case ARIZONA_SLIMTX5MIX_INPUT_4_VOLUME:
1197 case ARIZONA_SLIMTX6MIX_INPUT_1_SOURCE:
1198 case ARIZONA_SLIMTX6MIX_INPUT_1_VOLUME:
1199 case ARIZONA_SLIMTX6MIX_INPUT_2_SOURCE:
1200 case ARIZONA_SLIMTX6MIX_INPUT_2_VOLUME:
1201 case ARIZONA_SLIMTX6MIX_INPUT_3_SOURCE:
1202 case ARIZONA_SLIMTX6MIX_INPUT_3_VOLUME:
1203 case ARIZONA_SLIMTX6MIX_INPUT_4_SOURCE:
1204 case ARIZONA_SLIMTX6MIX_INPUT_4_VOLUME:
1205 case ARIZONA_SLIMTX7MIX_INPUT_1_SOURCE:
1206 case ARIZONA_SLIMTX7MIX_INPUT_1_VOLUME:
1207 case ARIZONA_SLIMTX7MIX_INPUT_2_SOURCE:
1208 case ARIZONA_SLIMTX7MIX_INPUT_2_VOLUME:
1209 case ARIZONA_SLIMTX7MIX_INPUT_3_SOURCE:
1210 case ARIZONA_SLIMTX7MIX_INPUT_3_VOLUME:
1211 case ARIZONA_SLIMTX7MIX_INPUT_4_SOURCE:
1212 case ARIZONA_SLIMTX7MIX_INPUT_4_VOLUME:
1213 case ARIZONA_SLIMTX8MIX_INPUT_1_SOURCE:
1214 case ARIZONA_SLIMTX8MIX_INPUT_1_VOLUME:
1215 case ARIZONA_SLIMTX8MIX_INPUT_2_SOURCE:
1216 case ARIZONA_SLIMTX8MIX_INPUT_2_VOLUME:
1217 case ARIZONA_SLIMTX8MIX_INPUT_3_SOURCE:
1218 case ARIZONA_SLIMTX8MIX_INPUT_3_VOLUME:
1219 case ARIZONA_SLIMTX8MIX_INPUT_4_SOURCE:
1220 case ARIZONA_SLIMTX8MIX_INPUT_4_VOLUME:
1221 case ARIZONA_EQ1MIX_INPUT_1_SOURCE:
1222 case ARIZONA_EQ1MIX_INPUT_1_VOLUME:
1223 case ARIZONA_EQ1MIX_INPUT_2_SOURCE:
1224 case ARIZONA_EQ1MIX_INPUT_2_VOLUME:
1225 case ARIZONA_EQ1MIX_INPUT_3_SOURCE:
1226 case ARIZONA_EQ1MIX_INPUT_3_VOLUME:
1227 case ARIZONA_EQ1MIX_INPUT_4_SOURCE:
1228 case ARIZONA_EQ1MIX_INPUT_4_VOLUME:
1229 case ARIZONA_EQ2MIX_INPUT_1_SOURCE:
1230 case ARIZONA_EQ2MIX_INPUT_1_VOLUME:
1231 case ARIZONA_EQ2MIX_INPUT_2_SOURCE:
1232 case ARIZONA_EQ2MIX_INPUT_2_VOLUME:
1233 case ARIZONA_EQ2MIX_INPUT_3_SOURCE:
1234 case ARIZONA_EQ2MIX_INPUT_3_VOLUME:
1235 case ARIZONA_EQ2MIX_INPUT_4_SOURCE:
1236 case ARIZONA_EQ2MIX_INPUT_4_VOLUME:
1237 case ARIZONA_EQ3MIX_INPUT_1_SOURCE:
1238 case ARIZONA_EQ3MIX_INPUT_1_VOLUME:
1239 case ARIZONA_EQ3MIX_INPUT_2_SOURCE:
1240 case ARIZONA_EQ3MIX_INPUT_2_VOLUME:
1241 case ARIZONA_EQ3MIX_INPUT_3_SOURCE:
1242 case ARIZONA_EQ3MIX_INPUT_3_VOLUME:
1243 case ARIZONA_EQ3MIX_INPUT_4_SOURCE:
1244 case ARIZONA_EQ3MIX_INPUT_4_VOLUME:
1245 case ARIZONA_EQ4MIX_INPUT_1_SOURCE:
1246 case ARIZONA_EQ4MIX_INPUT_1_VOLUME:
1247 case ARIZONA_EQ4MIX_INPUT_2_SOURCE:
1248 case ARIZONA_EQ4MIX_INPUT_2_VOLUME:
1249 case ARIZONA_EQ4MIX_INPUT_3_SOURCE:
1250 case ARIZONA_EQ4MIX_INPUT_3_VOLUME:
1251 case ARIZONA_EQ4MIX_INPUT_4_SOURCE:
1252 case ARIZONA_EQ4MIX_INPUT_4_VOLUME:
1253 case ARIZONA_DRC1LMIX_INPUT_1_SOURCE:
1254 case ARIZONA_DRC1LMIX_INPUT_1_VOLUME:
1255 case ARIZONA_DRC1LMIX_INPUT_2_SOURCE:
1256 case ARIZONA_DRC1LMIX_INPUT_2_VOLUME:
1257 case ARIZONA_DRC1LMIX_INPUT_3_SOURCE:
1258 case ARIZONA_DRC1LMIX_INPUT_3_VOLUME:
1259 case ARIZONA_DRC1LMIX_INPUT_4_SOURCE:
1260 case ARIZONA_DRC1LMIX_INPUT_4_VOLUME:
1261 case ARIZONA_DRC1RMIX_INPUT_1_SOURCE:
1262 case ARIZONA_DRC1RMIX_INPUT_1_VOLUME:
1263 case ARIZONA_DRC1RMIX_INPUT_2_SOURCE:
1264 case ARIZONA_DRC1RMIX_INPUT_2_VOLUME:
1265 case ARIZONA_DRC1RMIX_INPUT_3_SOURCE:
1266 case ARIZONA_DRC1RMIX_INPUT_3_VOLUME:
1267 case ARIZONA_DRC1RMIX_INPUT_4_SOURCE:
1268 case ARIZONA_DRC1RMIX_INPUT_4_VOLUME:
1269 case ARIZONA_HPLP1MIX_INPUT_1_SOURCE:
1270 case ARIZONA_HPLP1MIX_INPUT_1_VOLUME:
1271 case ARIZONA_HPLP1MIX_INPUT_2_SOURCE:
1272 case ARIZONA_HPLP1MIX_INPUT_2_VOLUME:
1273 case ARIZONA_HPLP1MIX_INPUT_3_SOURCE:
1274 case ARIZONA_HPLP1MIX_INPUT_3_VOLUME:
1275 case ARIZONA_HPLP1MIX_INPUT_4_SOURCE:
1276 case ARIZONA_HPLP1MIX_INPUT_4_VOLUME:
1277 case ARIZONA_HPLP2MIX_INPUT_1_SOURCE:
1278 case ARIZONA_HPLP2MIX_INPUT_1_VOLUME:
1279 case ARIZONA_HPLP2MIX_INPUT_2_SOURCE:
1280 case ARIZONA_HPLP2MIX_INPUT_2_VOLUME:
1281 case ARIZONA_HPLP2MIX_INPUT_3_SOURCE:
1282 case ARIZONA_HPLP2MIX_INPUT_3_VOLUME:
1283 case ARIZONA_HPLP2MIX_INPUT_4_SOURCE:
1284 case ARIZONA_HPLP2MIX_INPUT_4_VOLUME:
1285 case ARIZONA_HPLP3MIX_INPUT_1_SOURCE:
1286 case ARIZONA_HPLP3MIX_INPUT_1_VOLUME:
1287 case ARIZONA_HPLP3MIX_INPUT_2_SOURCE:
1288 case ARIZONA_HPLP3MIX_INPUT_2_VOLUME:
1289 case ARIZONA_HPLP3MIX_INPUT_3_SOURCE:
1290 case ARIZONA_HPLP3MIX_INPUT_3_VOLUME:
1291 case ARIZONA_HPLP3MIX_INPUT_4_SOURCE:
1292 case ARIZONA_HPLP3MIX_INPUT_4_VOLUME:
1293 case ARIZONA_HPLP4MIX_INPUT_1_SOURCE:
1294 case ARIZONA_HPLP4MIX_INPUT_1_VOLUME:
1295 case ARIZONA_HPLP4MIX_INPUT_2_SOURCE:
1296 case ARIZONA_HPLP4MIX_INPUT_2_VOLUME:
1297 case ARIZONA_HPLP4MIX_INPUT_3_SOURCE:
1298 case ARIZONA_HPLP4MIX_INPUT_3_VOLUME:
1299 case ARIZONA_HPLP4MIX_INPUT_4_SOURCE:
1300 case ARIZONA_HPLP4MIX_INPUT_4_VOLUME:
1301 case ARIZONA_ISRC1DEC1MIX_INPUT_1_SOURCE:
1302 case ARIZONA_ISRC1DEC2MIX_INPUT_1_SOURCE:
1303 case ARIZONA_ISRC1INT1MIX_INPUT_1_SOURCE:
1304 case ARIZONA_ISRC1INT2MIX_INPUT_1_SOURCE:
1305 case ARIZONA_ISRC2DEC1MIX_INPUT_1_SOURCE:
1306 case ARIZONA_ISRC2DEC2MIX_INPUT_1_SOURCE:
1307 case ARIZONA_ISRC2INT1MIX_INPUT_1_SOURCE:
1308 case ARIZONA_ISRC2INT2MIX_INPUT_1_SOURCE:
1309 case ARIZONA_GPIO1_CTRL:
1310 case ARIZONA_GPIO2_CTRL:
1311 case ARIZONA_GPIO3_CTRL:
1312 case ARIZONA_GPIO4_CTRL:
1313 case ARIZONA_GPIO5_CTRL:
1314 case ARIZONA_IRQ_CTRL_1:
1315 case ARIZONA_GPIO_DEBOUNCE_CONFIG:
1316 case ARIZONA_MISC_PAD_CTRL_1:
1317 case ARIZONA_MISC_PAD_CTRL_2:
1318 case ARIZONA_MISC_PAD_CTRL_3:
1319 case ARIZONA_MISC_PAD_CTRL_4:
1320 case ARIZONA_MISC_PAD_CTRL_5:
1321 case ARIZONA_INTERRUPT_STATUS_1:
1322 case ARIZONA_INTERRUPT_STATUS_2:
1323 case ARIZONA_INTERRUPT_STATUS_3:
1324 case ARIZONA_INTERRUPT_STATUS_4:
1325 case ARIZONA_INTERRUPT_STATUS_5:
1326 case ARIZONA_INTERRUPT_STATUS_1_MASK:
1327 case ARIZONA_INTERRUPT_STATUS_2_MASK:
1328 case ARIZONA_INTERRUPT_STATUS_3_MASK:
1329 case ARIZONA_INTERRUPT_STATUS_4_MASK:
1330 case ARIZONA_INTERRUPT_STATUS_5_MASK:
1331 case ARIZONA_INTERRUPT_CONTROL:
1332 case ARIZONA_IRQ2_STATUS_1:
1333 case ARIZONA_IRQ2_STATUS_3:
1334 case ARIZONA_IRQ2_STATUS_4:
1335 case ARIZONA_IRQ2_STATUS_5:
1336 case ARIZONA_IRQ2_STATUS_1_MASK:
1337 case ARIZONA_IRQ2_STATUS_3_MASK:
1338 case ARIZONA_IRQ2_STATUS_4_MASK:
1339 case ARIZONA_IRQ2_STATUS_5_MASK:
1340 case ARIZONA_IRQ2_CONTROL:
1341 case ARIZONA_INTERRUPT_RAW_STATUS_3:
1342 case ARIZONA_INTERRUPT_RAW_STATUS_4:
1343 case ARIZONA_INTERRUPT_RAW_STATUS_5:
1344 case ARIZONA_INTERRUPT_RAW_STATUS_6:
1345 case ARIZONA_INTERRUPT_RAW_STATUS_7:
1346 case ARIZONA_INTERRUPT_RAW_STATUS_8:
1347 case ARIZONA_IRQ_PIN_STATUS:
1348 case ARIZONA_AOD_WKUP_AND_TRIG:
1349 case ARIZONA_AOD_IRQ1:
1350 case ARIZONA_AOD_IRQ2:
1351 case ARIZONA_AOD_IRQ_MASK_IRQ1:
1352 case ARIZONA_AOD_IRQ_MASK_IRQ2:
1353 case ARIZONA_AOD_IRQ_RAW_STATUS:
1354 case ARIZONA_JACK_DETECT_DEBOUNCE:
1355 case ARIZONA_FX_CTRL1:
1356 case ARIZONA_FX_CTRL2:
1357 case ARIZONA_EQ1_1:
1358 case ARIZONA_EQ1_2:
1359 case ARIZONA_EQ1_3:
1360 case ARIZONA_EQ1_4:
1361 case ARIZONA_EQ1_5:
1362 case ARIZONA_EQ1_6:
1363 case ARIZONA_EQ1_7:
1364 case ARIZONA_EQ1_8:
1365 case ARIZONA_EQ1_9:
1366 case ARIZONA_EQ1_10:
1367 case ARIZONA_EQ1_11:
1368 case ARIZONA_EQ1_12:
1369 case ARIZONA_EQ1_13:
1370 case ARIZONA_EQ1_14:
1371 case ARIZONA_EQ1_15:
1372 case ARIZONA_EQ1_16:
1373 case ARIZONA_EQ1_17:
1374 case ARIZONA_EQ1_18:
1375 case ARIZONA_EQ1_19:
1376 case ARIZONA_EQ1_20:
1377 case ARIZONA_EQ1_21:
1378 case ARIZONA_EQ2_1:
1379 case ARIZONA_EQ2_2:
1380 case ARIZONA_EQ2_3:
1381 case ARIZONA_EQ2_4:
1382 case ARIZONA_EQ2_5:
1383 case ARIZONA_EQ2_6:
1384 case ARIZONA_EQ2_7:
1385 case ARIZONA_EQ2_8:
1386 case ARIZONA_EQ2_9:
1387 case ARIZONA_EQ2_10:
1388 case ARIZONA_EQ2_11:
1389 case ARIZONA_EQ2_12:
1390 case ARIZONA_EQ2_13:
1391 case ARIZONA_EQ2_14:
1392 case ARIZONA_EQ2_15:
1393 case ARIZONA_EQ2_16:
1394 case ARIZONA_EQ2_17:
1395 case ARIZONA_EQ2_18:
1396 case ARIZONA_EQ2_19:
1397 case ARIZONA_EQ2_20:
1398 case ARIZONA_EQ2_21:
1399 case ARIZONA_EQ3_1:
1400 case ARIZONA_EQ3_2:
1401 case ARIZONA_EQ3_3:
1402 case ARIZONA_EQ3_4:
1403 case ARIZONA_EQ3_5:
1404 case ARIZONA_EQ3_6:
1405 case ARIZONA_EQ3_7:
1406 case ARIZONA_EQ3_8:
1407 case ARIZONA_EQ3_9:
1408 case ARIZONA_EQ3_10:
1409 case ARIZONA_EQ3_11:
1410 case ARIZONA_EQ3_12:
1411 case ARIZONA_EQ3_13:
1412 case ARIZONA_EQ3_14:
1413 case ARIZONA_EQ3_15:
1414 case ARIZONA_EQ3_16:
1415 case ARIZONA_EQ3_17:
1416 case ARIZONA_EQ3_18:
1417 case ARIZONA_EQ3_19:
1418 case ARIZONA_EQ3_20:
1419 case ARIZONA_EQ3_21:
1420 case ARIZONA_EQ4_1:
1421 case ARIZONA_EQ4_2:
1422 case ARIZONA_EQ4_3:
1423 case ARIZONA_EQ4_4:
1424 case ARIZONA_EQ4_5:
1425 case ARIZONA_EQ4_6:
1426 case ARIZONA_EQ4_7:
1427 case ARIZONA_EQ4_8:
1428 case ARIZONA_EQ4_9:
1429 case ARIZONA_EQ4_10:
1430 case ARIZONA_EQ4_11:
1431 case ARIZONA_EQ4_12:
1432 case ARIZONA_EQ4_13:
1433 case ARIZONA_EQ4_14:
1434 case ARIZONA_EQ4_15:
1435 case ARIZONA_EQ4_16:
1436 case ARIZONA_EQ4_17:
1437 case ARIZONA_EQ4_18:
1438 case ARIZONA_EQ4_19:
1439 case ARIZONA_EQ4_20:
1440 case ARIZONA_EQ4_21:
1441 case ARIZONA_DRC1_CTRL1:
1442 case ARIZONA_DRC1_CTRL2:
1443 case ARIZONA_DRC1_CTRL3:
1444 case ARIZONA_DRC1_CTRL4:
1445 case ARIZONA_DRC1_CTRL5:
1446 case ARIZONA_HPLPF1_1:
1447 case ARIZONA_HPLPF1_2:
1448 case ARIZONA_HPLPF2_1:
1449 case ARIZONA_HPLPF2_2:
1450 case ARIZONA_HPLPF3_1:
1451 case ARIZONA_HPLPF3_2:
1452 case ARIZONA_HPLPF4_1:
1453 case ARIZONA_HPLPF4_2:
1454 case ARIZONA_ISRC_1_CTRL_1:
1455 case ARIZONA_ISRC_1_CTRL_2:
1456 case ARIZONA_ISRC_1_CTRL_3:
1457 case ARIZONA_ISRC_2_CTRL_1:
1458 case ARIZONA_ISRC_2_CTRL_2:
1459 case ARIZONA_ISRC_2_CTRL_3:
1460 return true;
1461 default:
1462 return false;
1463 }
1464 }
1465
1466 static bool wm8997_volatile_register(struct device *dev, unsigned int reg)
1467 {
1468 switch (reg) {
1469 case ARIZONA_SOFTWARE_RESET:
1470 case ARIZONA_DEVICE_REVISION:
1471 case ARIZONA_HAPTICS_STATUS:
1472 case ARIZONA_SAMPLE_RATE_1_STATUS:
1473 case ARIZONA_SAMPLE_RATE_2_STATUS:
1474 case ARIZONA_SAMPLE_RATE_3_STATUS:
1475 case ARIZONA_ASYNC_SAMPLE_RATE_1_STATUS:
1476 case ARIZONA_FLL1_NCO_TEST_0:
1477 case ARIZONA_FLL2_NCO_TEST_0:
1478 case ARIZONA_MIC_DETECT_3:
1479 case ARIZONA_HP_CTRL_1L:
1480 case ARIZONA_HP_CTRL_1R:
1481 case ARIZONA_HEADPHONE_DETECT_2:
1482 case ARIZONA_INPUT_ENABLES_STATUS:
1483 case ARIZONA_OUTPUT_STATUS_1:
1484 case ARIZONA_RAW_OUTPUT_STATUS_1:
1485 case ARIZONA_SLIMBUS_RX_PORT_STATUS:
1486 case ARIZONA_SLIMBUS_TX_PORT_STATUS:
1487 case ARIZONA_INTERRUPT_STATUS_1:
1488 case ARIZONA_INTERRUPT_STATUS_2:
1489 case ARIZONA_INTERRUPT_STATUS_3:
1490 case ARIZONA_INTERRUPT_STATUS_4:
1491 case ARIZONA_INTERRUPT_STATUS_5:
1492 case ARIZONA_IRQ2_STATUS_1:
1493 case ARIZONA_IRQ2_STATUS_3:
1494 case ARIZONA_IRQ2_STATUS_4:
1495 case ARIZONA_IRQ2_STATUS_5:
1496 case ARIZONA_INTERRUPT_RAW_STATUS_3:
1497 case ARIZONA_INTERRUPT_RAW_STATUS_4:
1498 case ARIZONA_INTERRUPT_RAW_STATUS_5:
1499 case ARIZONA_INTERRUPT_RAW_STATUS_6:
1500 case ARIZONA_INTERRUPT_RAW_STATUS_7:
1501 case ARIZONA_INTERRUPT_RAW_STATUS_8:
1502 case ARIZONA_IRQ_PIN_STATUS:
1503 case ARIZONA_AOD_WKUP_AND_TRIG:
1504 case ARIZONA_AOD_IRQ1:
1505 case ARIZONA_AOD_IRQ2:
1506 case ARIZONA_AOD_IRQ_RAW_STATUS:
1507 case ARIZONA_FX_CTRL2:
1508 return true;
1509 default:
1510 return false;
1511 }
1512 }
1513
1514 #define WM8997_MAX_REGISTER 0x31ff
1515
1516 const struct regmap_config wm8997_i2c_regmap = {
1517 .reg_bits = 32,
1518 .val_bits = 16,
1519 .reg_format_endian = REGMAP_ENDIAN_BIG,
1520 .val_format_endian = REGMAP_ENDIAN_BIG,
1521
1522 .max_register = WM8997_MAX_REGISTER,
1523 .readable_reg = wm8997_readable_register,
1524 .volatile_reg = wm8997_volatile_register,
1525
1526 .cache_type = REGCACHE_RBTREE,
1527 .reg_defaults = wm8997_reg_default,
1528 .num_reg_defaults = ARRAY_SIZE(wm8997_reg_default),
1529 };
1530 EXPORT_SYMBOL_GPL(wm8997_i2c_regmap);