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 CS47L24_NUM_ISR 5
19
20static const struct reg_sequence cs47l24_reva_patch[] = {
21 { 0x80, 0x3 },
22 { 0x27C, 0x0010 },
23 { 0x221, 0x0070 },
24 { 0x80, 0x0 },
25};
26
27int cs47l24_patch(struct arizona *arizona)
28{
29 return regmap_register_patch(arizona->regmap,
30 cs47l24_reva_patch,
31 ARRAY_SIZE(cs47l24_reva_patch));
32}
33EXPORT_SYMBOL_GPL(cs47l24_patch);
34
35static const struct regmap_irq cs47l24_irqs[ARIZONA_NUM_IRQ] = {
36 [ARIZONA_IRQ_GP2] = { .reg_offset = 0, .mask = ARIZONA_GP2_EINT1 },
37 [ARIZONA_IRQ_GP1] = { .reg_offset = 0, .mask = ARIZONA_GP1_EINT1 },
38
39 [ARIZONA_IRQ_DSP3_RAM_RDY] = {
40 .reg_offset = 1, .mask = ARIZONA_DSP3_RAM_RDY_EINT1
41 },
42 [ARIZONA_IRQ_DSP2_RAM_RDY] = {
43 .reg_offset = 1, .mask = ARIZONA_DSP2_RAM_RDY_EINT1
44 },
45 [ARIZONA_IRQ_DSP_IRQ8] = {
46 .reg_offset = 1, .mask = ARIZONA_DSP_IRQ8_EINT1
47 },
48 [ARIZONA_IRQ_DSP_IRQ7] = {
49 .reg_offset = 1, .mask = ARIZONA_DSP_IRQ7_EINT1
50 },
51 [ARIZONA_IRQ_DSP_IRQ6] = {
52 .reg_offset = 1, .mask = ARIZONA_DSP_IRQ6_EINT1
53 },
54 [ARIZONA_IRQ_DSP_IRQ5] = {
55 .reg_offset = 1, .mask = ARIZONA_DSP_IRQ5_EINT1
56 },
57 [ARIZONA_IRQ_DSP_IRQ4] = {
58 .reg_offset = 1, .mask = ARIZONA_DSP_IRQ4_EINT1
59 },
60 [ARIZONA_IRQ_DSP_IRQ3] = {
61 .reg_offset = 1, .mask = ARIZONA_DSP_IRQ3_EINT1
62 },
63 [ARIZONA_IRQ_DSP_IRQ2] = {
64 .reg_offset = 1, .mask = ARIZONA_DSP_IRQ2_EINT1
65 },
66 [ARIZONA_IRQ_DSP_IRQ1] = {
67 .reg_offset = 1, .mask = ARIZONA_DSP_IRQ1_EINT1
68 },
69
70 [ARIZONA_IRQ_SPK_OVERHEAT_WARN] = {
71 .reg_offset = 2, .mask = ARIZONA_SPK_OVERHEAT_WARN_EINT1
72 },
73 [ARIZONA_IRQ_SPK_OVERHEAT] = {
74 .reg_offset = 2, .mask = ARIZONA_SPK_OVERHEAT_EINT1
75 },
76 [ARIZONA_IRQ_WSEQ_DONE] = {
77 .reg_offset = 2, .mask = ARIZONA_WSEQ_DONE_EINT1
78 },
79 [ARIZONA_IRQ_DRC2_SIG_DET] = {
80 .reg_offset = 2, .mask = ARIZONA_DRC2_SIG_DET_EINT1
81 },
82 [ARIZONA_IRQ_DRC1_SIG_DET] = {
83 .reg_offset = 2, .mask = ARIZONA_DRC1_SIG_DET_EINT1
84 },
85 [ARIZONA_IRQ_ASRC2_LOCK] = {
86 .reg_offset = 2, .mask = ARIZONA_ASRC2_LOCK_EINT1
87 },
88 [ARIZONA_IRQ_ASRC1_LOCK] = {
89 .reg_offset = 2, .mask = ARIZONA_ASRC1_LOCK_EINT1
90 },
91 [ARIZONA_IRQ_UNDERCLOCKED] = {
92 .reg_offset = 2, .mask = ARIZONA_UNDERCLOCKED_EINT1
93 },
94 [ARIZONA_IRQ_OVERCLOCKED] = {
95 .reg_offset = 2, .mask = ARIZONA_OVERCLOCKED_EINT1
96 },
97 [ARIZONA_IRQ_FLL2_LOCK] = {
98 .reg_offset = 2, .mask = ARIZONA_FLL2_LOCK_EINT1
99 },
100 [ARIZONA_IRQ_FLL1_LOCK] = {
101 .reg_offset = 2, .mask = ARIZONA_FLL1_LOCK_EINT1
102 },
103 [ARIZONA_IRQ_CLKGEN_ERR] = {
104 .reg_offset = 2, .mask = ARIZONA_CLKGEN_ERR_EINT1
105 },
106 [ARIZONA_IRQ_CLKGEN_ERR_ASYNC] = {
107 .reg_offset = 2, .mask = ARIZONA_CLKGEN_ERR_ASYNC_EINT1
108 },
109
110 [ARIZONA_IRQ_CTRLIF_ERR] = {
111 .reg_offset = 3, .mask = ARIZONA_V2_CTRLIF_ERR_EINT1
112 },
113 [ARIZONA_IRQ_MIXER_DROPPED_SAMPLES] = {
114 .reg_offset = 3, .mask = ARIZONA_V2_MIXER_DROPPED_SAMPLE_EINT1
115 },
116 [ARIZONA_IRQ_ASYNC_CLK_ENA_LOW] = {
117 .reg_offset = 3, .mask = ARIZONA_V2_ASYNC_CLK_ENA_LOW_EINT1
118 },
119 [ARIZONA_IRQ_SYSCLK_ENA_LOW] = {
120 .reg_offset = 3, .mask = ARIZONA_V2_SYSCLK_ENA_LOW_EINT1
121 },
122 [ARIZONA_IRQ_ISRC1_CFG_ERR] = {
123 .reg_offset = 3, .mask = ARIZONA_V2_ISRC1_CFG_ERR_EINT1
124 },
125 [ARIZONA_IRQ_ISRC2_CFG_ERR] = {
126 .reg_offset = 3, .mask = ARIZONA_V2_ISRC2_CFG_ERR_EINT1
127 },
128 [ARIZONA_IRQ_ISRC3_CFG_ERR] = {
129 .reg_offset = 3, .mask = ARIZONA_V2_ISRC3_CFG_ERR_EINT1
130 },
131 [ARIZONA_IRQ_HP1R_DONE] = {
132 .reg_offset = 3, .mask = ARIZONA_HP1R_DONE_EINT1
133 },
134 [ARIZONA_IRQ_HP1L_DONE] = {
135 .reg_offset = 3, .mask = ARIZONA_HP1L_DONE_EINT1
136 },
137
138 [ARIZONA_IRQ_BOOT_DONE] = {
139 .reg_offset = 4, .mask = ARIZONA_BOOT_DONE_EINT1
140 },
141 [ARIZONA_IRQ_ASRC_CFG_ERR] = {
142 .reg_offset = 4, .mask = ARIZONA_V2_ASRC_CFG_ERR_EINT1
143 },
144 [ARIZONA_IRQ_FLL2_CLOCK_OK] = {
145 .reg_offset = 4, .mask = ARIZONA_FLL2_CLOCK_OK_EINT1
146 },
147 [ARIZONA_IRQ_FLL1_CLOCK_OK] = {
148 .reg_offset = 4, .mask = ARIZONA_FLL1_CLOCK_OK_EINT1
149 },
150
151 [ARIZONA_IRQ_DSP_SHARED_WR_COLL] = {
152 .reg_offset = 5, .mask = ARIZONA_DSP_SHARED_WR_COLL_EINT1
153 },
154 [ARIZONA_IRQ_SPK_SHUTDOWN] = {
155 .reg_offset = 5, .mask = ARIZONA_SPK_SHUTDOWN_EINT1
156 },
157 [ARIZONA_IRQ_SPK1R_SHORT] = {
158 .reg_offset = 5, .mask = ARIZONA_SPK1R_SHORT_EINT1
159 },
160 [ARIZONA_IRQ_SPK1L_SHORT] = {
161 .reg_offset = 5, .mask = ARIZONA_SPK1L_SHORT_EINT1
162 },
163 [ARIZONA_IRQ_HP1R_SC_POS] = {
164 .reg_offset = 5, .mask = ARIZONA_HP1R_SC_POS_EINT1
165 },
166 [ARIZONA_IRQ_HP1L_SC_POS] = {
167 .reg_offset = 5, .mask = ARIZONA_HP1L_SC_POS_EINT1
168 },
169};
170
171const struct regmap_irq_chip cs47l24_irq = {
172 .name = "cs47l24 IRQ",
173 .status_base = ARIZONA_INTERRUPT_STATUS_1,
174 .mask_base = ARIZONA_INTERRUPT_STATUS_1_MASK,
175 .ack_base = ARIZONA_INTERRUPT_STATUS_1,
176 .num_regs = 6,
177 .irqs = cs47l24_irqs,
178 .num_irqs = ARRAY_SIZE(cs47l24_irqs),
179};
180EXPORT_SYMBOL_GPL(cs47l24_irq);
181
182static const struct reg_default cs47l24_reg_default[] = {
183 { 0x00000008, 0x0019 },
184 { 0x00000020, 0x0000 },
185 { 0x00000021, 0x1000 },
186 { 0x00000022, 0x0000 },
187 { 0x00000023, 0x1000 },
188 { 0x00000024, 0x0000 },
189 { 0x00000030, 0x0000 },
190 { 0x00000031, 0x0100 },
191 { 0x00000032, 0x0100 },
192 { 0x00000041, 0x0000 },
193 { 0x00000061, 0x01FF },
194 { 0x00000062, 0x01FF },
195 { 0x00000063, 0x01FF },
196 { 0x00000064, 0x01FF },
197 { 0x00000070, 0x0000 },
198 { 0x00000090, 0x0000 },
199 { 0x00000091, 0x7FFF },
200 { 0x00000092, 0x0000 },
201 { 0x00000093, 0x0000 },
202 { 0x00000094, 0x0000 },
203 { 0x00000095, 0x0000 },
204 { 0x00000096, 0x0000 },
205 { 0x00000097, 0x0000 },
206 { 0x00000100, 0x0002 },
207 { 0x00000101, 0x0504 },
208 { 0x00000102, 0x0011 },
209 { 0x00000103, 0x0011 },
210 { 0x00000104, 0x0011 },
211 { 0x00000112, 0x0305 },
212 { 0x00000113, 0x0011 },
213 { 0x00000114, 0x0011 },
214 { 0x00000149, 0x0000 },
215 { 0x0000014A, 0x0000 },
216 { 0x00000152, 0x0000 },
217 { 0x00000153, 0x0000 },
218 { 0x00000154, 0x0000 },
219 { 0x00000155, 0x0000 },
220 { 0x00000156, 0x0000 },
221 { 0x00000171, 0x0002 },
222 { 0x00000172, 0x0008 },
223 { 0x00000173, 0x0018 },
224 { 0x00000174, 0x007D },
225 { 0x00000175, 0x0006 },
226 { 0x00000176, 0x0000 },
227 { 0x00000179, 0x0000 },
228 { 0x00000181, 0x0000 },
229 { 0x00000182, 0x0000 },
230 { 0x00000183, 0x0000 },
231 { 0x00000184, 0x0000 },
232 { 0x00000185, 0x0000 },
233 { 0x00000186, 0x0000 },
234 { 0x00000187, 0x0001 },
235 { 0x00000189, 0x0000 },
236 { 0x0000018A, 0x000C },
237 { 0x00000191, 0x0002 },
238 { 0x00000192, 0x0008 },
239 { 0x00000193, 0x0018 },
240 { 0x00000194, 0x007D },
241 { 0x00000195, 0x000C },
242 { 0x00000196, 0x0000 },
243 { 0x00000199, 0x0000 },
244 { 0x000001A1, 0x0000 },
245 { 0x000001A2, 0x0000 },
246 { 0x000001A3, 0x0000 },
247 { 0x000001A4, 0x0000 },
248 { 0x000001A5, 0x0000 },
249 { 0x000001A6, 0x0000 },
250 { 0x000001A7, 0x0001 },
251 { 0x000001A9, 0x0000 },
252 { 0x000001AA, 0x000C },
253 { 0x00000218, 0x00E6 },
254 { 0x00000219, 0x00E6 },
255 { 0x00000300, 0x0000 },
256 { 0x00000308, 0x0000 },
257 { 0x00000309, 0x0022 },
258 { 0x0000030C, 0x0002 },
259 { 0x00000310, 0x2000 },
260 { 0x00000311, 0x0180 },
261 { 0x00000312, 0x0000 },
262 { 0x00000314, 0x0000 },
263 { 0x00000315, 0x0180 },
264 { 0x00000316, 0x0000 },
265 { 0x00000318, 0x2000 },
266 { 0x00000319, 0x0180 },
267 { 0x0000031A, 0x0000 },
268 { 0x0000031C, 0x0000 },
269 { 0x0000031D, 0x0180 },
270 { 0x0000031E, 0x0000 },
271 { 0x00000400, 0x0000 },
272 { 0x00000408, 0x0000 },
273 { 0x00000409, 0x0022 },
274 { 0x00000410, 0x0080 },
275 { 0x00000411, 0x0180 },
276 { 0x00000412, 0x0081 },
277 { 0x00000413, 0x0001 },
278 { 0x00000415, 0x0180 },
279 { 0x00000416, 0x0081 },
280 { 0x00000417, 0x0002 },
281 { 0x00000429, 0x0180 },
282 { 0x0000042A, 0x0081 },
283 { 0x0000042B, 0x0040 },
284 { 0x00000450, 0x0000 },
285 { 0x00000458, 0x0000 },
286 { 0x000004A0, 0x3480 },
287 { 0x00000500, 0x000C },
288 { 0x00000501, 0x0008 },
289 { 0x00000502, 0x0000 },
290 { 0x00000503, 0x0000 },
291 { 0x00000504, 0x0000 },
292 { 0x00000505, 0x0040 },
293 { 0x00000506, 0x0040 },
294 { 0x00000507, 0x1818 },
295 { 0x00000508, 0x1818 },
296 { 0x00000509, 0x0000 },
297 { 0x0000050A, 0x0001 },
298 { 0x0000050B, 0x0002 },
299 { 0x0000050C, 0x0003 },
300 { 0x0000050D, 0x0004 },
301 { 0x0000050E, 0x0005 },
302 { 0x0000050F, 0x0006 },
303 { 0x00000510, 0x0007 },
304 { 0x00000511, 0x0000 },
305 { 0x00000512, 0x0001 },
306 { 0x00000513, 0x0002 },
307 { 0x00000514, 0x0003 },
308 { 0x00000515, 0x0004 },
309 { 0x00000516, 0x0005 },
310 { 0x00000517, 0x0006 },
311 { 0x00000518, 0x0007 },
312 { 0x00000519, 0x0000 },
313 { 0x0000051A, 0x0000 },
314 { 0x00000540, 0x000C },
315 { 0x00000541, 0x0008 },
316 { 0x00000542, 0x0000 },
317 { 0x00000543, 0x0000 },
318 { 0x00000544, 0x0000 },
319 { 0x00000545, 0x0040 },
320 { 0x00000546, 0x0040 },
321 { 0x00000547, 0x1818 },
322 { 0x00000548, 0x1818 },
323 { 0x00000549, 0x0000 },
324 { 0x0000054A, 0x0001 },
325 { 0x0000054B, 0x0002 },
326 { 0x0000054C, 0x0003 },
327 { 0x0000054D, 0x0004 },
328 { 0x0000054E, 0x0005 },
329 { 0x00000551, 0x0000 },
330 { 0x00000552, 0x0001 },
331 { 0x00000553, 0x0002 },
332 { 0x00000554, 0x0003 },
333 { 0x00000555, 0x0004 },
334 { 0x00000556, 0x0005 },
335 { 0x00000559, 0x0000 },
336 { 0x0000055A, 0x0000 },
337 { 0x00000580, 0x000C },
338 { 0x00000581, 0x0008 },
339 { 0x00000582, 0x0000 },
340 { 0x00000583, 0x0000 },
341 { 0x00000584, 0x0000 },
342 { 0x00000585, 0x0040 },
343 { 0x00000586, 0x0040 },
344 { 0x00000587, 0x1818 },
345 { 0x00000588, 0x1818 },
346 { 0x00000589, 0x0000 },
347 { 0x0000058A, 0x0001 },
348 { 0x00000591, 0x0000 },
349 { 0x00000592, 0x0001 },
350 { 0x00000599, 0x0000 },
351 { 0x0000059A, 0x0000 },
352 { 0x00000640, 0x0000 },
353 { 0x00000641, 0x0080 },
354 { 0x00000642, 0x0000 },
355 { 0x00000643, 0x0080 },
356 { 0x00000644, 0x0000 },
357 { 0x00000645, 0x0080 },
358 { 0x00000646, 0x0000 },
359 { 0x00000647, 0x0080 },
360 { 0x00000648, 0x0000 },
361 { 0x00000649, 0x0080 },
362 { 0x0000064A, 0x0000 },
363 { 0x0000064B, 0x0080 },
364 { 0x0000064C, 0x0000 },
365 { 0x0000064D, 0x0080 },
366 { 0x0000064E, 0x0000 },
367 { 0x0000064F, 0x0080 },
368 { 0x00000680, 0x0000 },
369 { 0x00000681, 0x0080 },
370 { 0x00000682, 0x0000 },
371 { 0x00000683, 0x0080 },
372 { 0x00000684, 0x0000 },
373 { 0x00000685, 0x0080 },
374 { 0x00000686, 0x0000 },
375 { 0x00000687, 0x0080 },
376 { 0x00000688, 0x0000 },
377 { 0x00000689, 0x0080 },
378 { 0x0000068A, 0x0000 },
379 { 0x0000068B, 0x0080 },
380 { 0x0000068C, 0x0000 },
381 { 0x0000068D, 0x0080 },
382 { 0x0000068E, 0x0000 },
383 { 0x0000068F, 0x0080 },
384 { 0x000006B0, 0x0000 },
385 { 0x000006B1, 0x0080 },
386 { 0x000006B2, 0x0000 },
387 { 0x000006B3, 0x0080 },
388 { 0x000006B4, 0x0000 },
389 { 0x000006B5, 0x0080 },
390 { 0x000006B6, 0x0000 },
391 { 0x000006B7, 0x0080 },
392 { 0x00000700, 0x0000 },
393 { 0x00000701, 0x0080 },
394 { 0x00000702, 0x0000 },
395 { 0x00000703, 0x0080 },
396 { 0x00000704, 0x0000 },
397 { 0x00000705, 0x0080 },
398 { 0x00000706, 0x0000 },
399 { 0x00000707, 0x0080 },
400 { 0x00000708, 0x0000 },
401 { 0x00000709, 0x0080 },
402 { 0x0000070A, 0x0000 },
403 { 0x0000070B, 0x0080 },
404 { 0x0000070C, 0x0000 },
405 { 0x0000070D, 0x0080 },
406 { 0x0000070E, 0x0000 },
407 { 0x0000070F, 0x0080 },
408 { 0x00000710, 0x0000 },
409 { 0x00000711, 0x0080 },
410 { 0x00000712, 0x0000 },
411 { 0x00000713, 0x0080 },
412 { 0x00000714, 0x0000 },
413 { 0x00000715, 0x0080 },
414 { 0x00000716, 0x0000 },
415 { 0x00000717, 0x0080 },
416 { 0x00000718, 0x0000 },
417 { 0x00000719, 0x0080 },
418 { 0x0000071A, 0x0000 },
419 { 0x0000071B, 0x0080 },
420 { 0x0000071C, 0x0000 },
421 { 0x0000071D, 0x0080 },
422 { 0x0000071E, 0x0000 },
423 { 0x0000071F, 0x0080 },
424 { 0x00000720, 0x0000 },
425 { 0x00000721, 0x0080 },
426 { 0x00000722, 0x0000 },
427 { 0x00000723, 0x0080 },
428 { 0x00000724, 0x0000 },
429 { 0x00000725, 0x0080 },
430 { 0x00000726, 0x0000 },
431 { 0x00000727, 0x0080 },
432 { 0x00000728, 0x0000 },
433 { 0x00000729, 0x0080 },
434 { 0x0000072A, 0x0000 },
435 { 0x0000072B, 0x0080 },
436 { 0x0000072C, 0x0000 },
437 { 0x0000072D, 0x0080 },
438 { 0x0000072E, 0x0000 },
439 { 0x0000072F, 0x0080 },
440 { 0x00000730, 0x0000 },
441 { 0x00000731, 0x0080 },
442 { 0x00000732, 0x0000 },
443 { 0x00000733, 0x0080 },
444 { 0x00000734, 0x0000 },
445 { 0x00000735, 0x0080 },
446 { 0x00000736, 0x0000 },
447 { 0x00000737, 0x0080 },
448 { 0x00000738, 0x0000 },
449 { 0x00000739, 0x0080 },
450 { 0x0000073A, 0x0000 },
451 { 0x0000073B, 0x0080 },
452 { 0x0000073C, 0x0000 },
453 { 0x0000073D, 0x0080 },
454 { 0x0000073E, 0x0000 },
455 { 0x0000073F, 0x0080 },
456 { 0x00000740, 0x0000 },
457 { 0x00000741, 0x0080 },
458 { 0x00000742, 0x0000 },
459 { 0x00000743, 0x0080 },
460 { 0x00000744, 0x0000 },
461 { 0x00000745, 0x0080 },
462 { 0x00000746, 0x0000 },
463 { 0x00000747, 0x0080 },
464 { 0x00000748, 0x0000 },
465 { 0x00000749, 0x0080 },
466 { 0x0000074A, 0x0000 },
467 { 0x0000074B, 0x0080 },
468 { 0x0000074C, 0x0000 },
469 { 0x0000074D, 0x0080 },
470 { 0x0000074E, 0x0000 },
471 { 0x0000074F, 0x0080 },
472 { 0x00000750, 0x0000 },
473 { 0x00000751, 0x0080 },
474 { 0x00000752, 0x0000 },
475 { 0x00000753, 0x0080 },
476 { 0x00000754, 0x0000 },
477 { 0x00000755, 0x0080 },
478 { 0x00000756, 0x0000 },
479 { 0x00000757, 0x0080 },
480 { 0x00000758, 0x0000 },
481 { 0x00000759, 0x0080 },
482 { 0x0000075A, 0x0000 },
483 { 0x0000075B, 0x0080 },
484 { 0x0000075C, 0x0000 },
485 { 0x0000075D, 0x0080 },
486 { 0x0000075E, 0x0000 },
487 { 0x0000075F, 0x0080 },
488 { 0x00000760, 0x0000 },
489 { 0x00000761, 0x0080 },
490 { 0x00000762, 0x0000 },
491 { 0x00000763, 0x0080 },
492 { 0x00000764, 0x0000 },
493 { 0x00000765, 0x0080 },
494 { 0x00000766, 0x0000 },
495 { 0x00000767, 0x0080 },
496 { 0x00000768, 0x0000 },
497 { 0x00000769, 0x0080 },
498 { 0x0000076A, 0x0000 },
499 { 0x0000076B, 0x0080 },
500 { 0x0000076C, 0x0000 },
501 { 0x0000076D, 0x0080 },
502 { 0x0000076E, 0x0000 },
503 { 0x0000076F, 0x0080 },
504 { 0x00000780, 0x0000 },
505 { 0x00000781, 0x0080 },
506 { 0x00000782, 0x0000 },
507 { 0x00000783, 0x0080 },
508 { 0x00000784, 0x0000 },
509 { 0x00000785, 0x0080 },
510 { 0x00000786, 0x0000 },
511 { 0x00000787, 0x0080 },
512 { 0x00000788, 0x0000 },
513 { 0x00000789, 0x0080 },
514 { 0x0000078A, 0x0000 },
515 { 0x0000078B, 0x0080 },
516 { 0x0000078C, 0x0000 },
517 { 0x0000078D, 0x0080 },
518 { 0x0000078E, 0x0000 },
519 { 0x0000078F, 0x0080 },
520 { 0x00000880, 0x0000 },
521 { 0x00000881, 0x0080 },
522 { 0x00000882, 0x0000 },
523 { 0x00000883, 0x0080 },
524 { 0x00000884, 0x0000 },
525 { 0x00000885, 0x0080 },
526 { 0x00000886, 0x0000 },
527 { 0x00000887, 0x0080 },
528 { 0x00000888, 0x0000 },
529 { 0x00000889, 0x0080 },
530 { 0x0000088A, 0x0000 },
531 { 0x0000088B, 0x0080 },
532 { 0x0000088C, 0x0000 },
533 { 0x0000088D, 0x0080 },
534 { 0x0000088E, 0x0000 },
535 { 0x0000088F, 0x0080 },
536 { 0x000008C0, 0x0000 },
537 { 0x000008C1, 0x0080 },
538 { 0x000008C2, 0x0000 },
539 { 0x000008C3, 0x0080 },
540 { 0x000008C4, 0x0000 },
541 { 0x000008C5, 0x0080 },
542 { 0x000008C6, 0x0000 },
543 { 0x000008C7, 0x0080 },
544 { 0x000008C8, 0x0000 },
545 { 0x000008C9, 0x0080 },
546 { 0x000008CA, 0x0000 },
547 { 0x000008CB, 0x0080 },
548 { 0x000008CC, 0x0000 },
549 { 0x000008CD, 0x0080 },
550 { 0x000008CE, 0x0000 },
551 { 0x000008CF, 0x0080 },
552 { 0x000008D0, 0x0000 },
553 { 0x000008D1, 0x0080 },
554 { 0x000008D2, 0x0000 },
555 { 0x000008D3, 0x0080 },
556 { 0x000008D4, 0x0000 },
557 { 0x000008D5, 0x0080 },
558 { 0x000008D6, 0x0000 },
559 { 0x000008D7, 0x0080 },
560 { 0x000008D8, 0x0000 },
561 { 0x000008D9, 0x0080 },
562 { 0x000008DA, 0x0000 },
563 { 0x000008DB, 0x0080 },
564 { 0x000008DC, 0x0000 },
565 { 0x000008DD, 0x0080 },
566 { 0x000008DE, 0x0000 },
567 { 0x000008DF, 0x0080 },
568 { 0x00000900, 0x0000 },
569 { 0x00000901, 0x0080 },
570 { 0x00000902, 0x0000 },
571 { 0x00000903, 0x0080 },
572 { 0x00000904, 0x0000 },
573 { 0x00000905, 0x0080 },
574 { 0x00000906, 0x0000 },
575 { 0x00000907, 0x0080 },
576 { 0x00000908, 0x0000 },
577 { 0x00000909, 0x0080 },
578 { 0x0000090A, 0x0000 },
579 { 0x0000090B, 0x0080 },
580 { 0x0000090C, 0x0000 },
581 { 0x0000090D, 0x0080 },
582 { 0x0000090E, 0x0000 },
583 { 0x0000090F, 0x0080 },
584 { 0x00000910, 0x0000 },
585 { 0x00000911, 0x0080 },
586 { 0x00000912, 0x0000 },
587 { 0x00000913, 0x0080 },
588 { 0x00000914, 0x0000 },
589 { 0x00000915, 0x0080 },
590 { 0x00000916, 0x0000 },
591 { 0x00000917, 0x0080 },
592 { 0x00000918, 0x0000 },
593 { 0x00000919, 0x0080 },
594 { 0x0000091A, 0x0000 },
595 { 0x0000091B, 0x0080 },
596 { 0x0000091C, 0x0000 },
597 { 0x0000091D, 0x0080 },
598 { 0x0000091E, 0x0000 },
599 { 0x0000091F, 0x0080 },
600 { 0x00000980, 0x0000 },
601 { 0x00000981, 0x0080 },
602 { 0x00000982, 0x0000 },
603 { 0x00000983, 0x0080 },
604 { 0x00000984, 0x0000 },
605 { 0x00000985, 0x0080 },
606 { 0x00000986, 0x0000 },
607 { 0x00000987, 0x0080 },
608 { 0x00000988, 0x0000 },
609 { 0x00000989, 0x0080 },
610 { 0x0000098A, 0x0000 },
611 { 0x0000098B, 0x0080 },
612 { 0x0000098C, 0x0000 },
613 { 0x0000098D, 0x0080 },
614 { 0x0000098E, 0x0000 },
615 { 0x0000098F, 0x0080 },
616 { 0x00000990, 0x0000 },
617 { 0x00000998, 0x0000 },
618 { 0x000009A0, 0x0000 },
619 { 0x000009A8, 0x0000 },
620 { 0x000009B0, 0x0000 },
621 { 0x000009B8, 0x0000 },
622 { 0x000009C0, 0x0000 },
623 { 0x000009C1, 0x0080 },
624 { 0x000009C2, 0x0000 },
625 { 0x000009C3, 0x0080 },
626 { 0x000009C4, 0x0000 },
627 { 0x000009C5, 0x0080 },
628 { 0x000009C6, 0x0000 },
629 { 0x000009C7, 0x0080 },
630 { 0x000009C8, 0x0000 },
631 { 0x000009C9, 0x0080 },
632 { 0x000009CA, 0x0000 },
633 { 0x000009CB, 0x0080 },
634 { 0x000009CC, 0x0000 },
635 { 0x000009CD, 0x0080 },
636 { 0x000009CE, 0x0000 },
637 { 0x000009CF, 0x0080 },
638 { 0x000009D0, 0x0000 },
639 { 0x000009D8, 0x0000 },
640 { 0x000009E0, 0x0000 },
641 { 0x000009E8, 0x0000 },
642 { 0x000009F0, 0x0000 },
643 { 0x000009F8, 0x0000 },
644 { 0x00000A80, 0x0000 },
645 { 0x00000A88, 0x0000 },
646 { 0x00000A90, 0x0000 },
647 { 0x00000A98, 0x0000 },
648 { 0x00000B00, 0x0000 },
649 { 0x00000B08, 0x0000 },
650 { 0x00000B10, 0x0000 },
651 { 0x00000B18, 0x0000 },
652 { 0x00000B20, 0x0000 },
653 { 0x00000B28, 0x0000 },
654 { 0x00000B30, 0x0000 },
655 { 0x00000B38, 0x0000 },
656 { 0x00000B40, 0x0000 },
657 { 0x00000B48, 0x0000 },
658 { 0x00000B50, 0x0000 },
659 { 0x00000B58, 0x0000 },
660 { 0x00000B60, 0x0000 },
661 { 0x00000B68, 0x0000 },
662 { 0x00000B70, 0x0000 },
663 { 0x00000B78, 0x0000 },
664 { 0x00000B80, 0x0000 },
665 { 0x00000B88, 0x0000 },
666 { 0x00000B90, 0x0000 },
667 { 0x00000B98, 0x0000 },
668 { 0x00000BA0, 0x0000 },
669 { 0x00000BA8, 0x0000 },
670 { 0x00000BB0, 0x0000 },
671 { 0x00000BB8, 0x0000 },
672 { 0x00000C00, 0xA101 },
673 { 0x00000C01, 0xA101 },
674 { 0x00000C0F, 0x0400 },
675 { 0x00000C10, 0x1000 },
676 { 0x00000C20, 0x0002 },
677 { 0x00000C21, 0x0000 },
678 { 0x00000C22, 0x0000 },
679 { 0x00000C23, 0x0000 },
680 { 0x00000C24, 0x0000 },
681 { 0x00000C25, 0x0000 },
682 { 0x00000C30, 0x0404 },
683 { 0x00000C32, 0x0404 },
684 { 0x00000C33, 0x0404 },
685 { 0x00000C34, 0x0404 },
686 { 0x00000C35, 0x0404 },
687 { 0x00000C36, 0x0400 },
688 { 0x00000C37, 0x0404 },
689 { 0x00000C39, 0x0400 },
690 { 0x00000D08, 0x0007 },
691 { 0x00000D09, 0x06FF },
692 { 0x00000D0A, 0xCFEF },
693 { 0x00000D0B, 0xFFC3 },
694 { 0x00000D0C, 0x000B },
695 { 0x00000D0D, 0xD005 },
696 { 0x00000D0F, 0x0000 },
697 { 0x00000D18, 0x0007 },
698 { 0x00000D19, 0x06FF },
699 { 0x00000D1A, 0xCFEF },
700 { 0x00000D1B, 0xFFC3 },
701 { 0x00000D1C, 0x000B },
702 { 0x00000D1D, 0xD005 },
703 { 0x00000D1F, 0x0000 },
704 { 0x00000E00, 0x0000 },
705 { 0x00000E10, 0x6318 },
706 { 0x00000E11, 0x6300 },
707 { 0x00000E12, 0x0FC8 },
708 { 0x00000E13, 0x03FE },
709 { 0x00000E14, 0x00E0 },
710 { 0x00000E15, 0x1EC4 },
711 { 0x00000E16, 0xF136 },
712 { 0x00000E17, 0x0409 },
713 { 0x00000E18, 0x04CC },
714 { 0x00000E19, 0x1C9B },
715 { 0x00000E1A, 0xF337 },
716 { 0x00000E1B, 0x040B },
717 { 0x00000E1C, 0x0CBB },
718 { 0x00000E1D, 0x16F8 },
719 { 0x00000E1E, 0xF7D9 },
720 { 0x00000E1F, 0x040A },
721 { 0x00000E20, 0x1F14 },
722 { 0x00000E21, 0x058C },
723 { 0x00000E22, 0x0563 },
724 { 0x00000E23, 0x4000 },
725 { 0x00000E24, 0x0B75 },
726 { 0x00000E26, 0x6318 },
727 { 0x00000E27, 0x6300 },
728 { 0x00000E28, 0x0FC8 },
729 { 0x00000E29, 0x03FE },
730 { 0x00000E2A, 0x00E0 },
731 { 0x00000E2B, 0x1EC4 },
732 { 0x00000E2C, 0xF136 },
733 { 0x00000E2D, 0x0409 },
734 { 0x00000E2E, 0x04CC },
735 { 0x00000E2F, 0x1C9B },
736 { 0x00000E30, 0xF337 },
737 { 0x00000E31, 0x040B },
738 { 0x00000E32, 0x0CBB },
739 { 0x00000E33, 0x16F8 },
740 { 0x00000E34, 0xF7D9 },
741 { 0x00000E35, 0x040A },
742 { 0x00000E36, 0x1F14 },
743 { 0x00000E37, 0x058C },
744 { 0x00000E38, 0x0563 },
745 { 0x00000E39, 0x4000 },
746 { 0x00000E3A, 0x0B75 },
747 { 0x00000E80, 0x0018 },
748 { 0x00000E81, 0x0933 },
749 { 0x00000E82, 0x0018 },
750 { 0x00000E83, 0x0000 },
751 { 0x00000E84, 0x0000 },
752 { 0x00000E89, 0x0018 },
753 { 0x00000E8A, 0x0933 },
754 { 0x00000E8B, 0x0018 },
755 { 0x00000E8C, 0x0000 },
756 { 0x00000E8D, 0x0000 },
757 { 0x00000EC0, 0x0000 },
758 { 0x00000EC1, 0x0000 },
759 { 0x00000EC4, 0x0000 },
760 { 0x00000EC5, 0x0000 },
761 { 0x00000EC8, 0x0000 },
762 { 0x00000EC9, 0x0000 },
763 { 0x00000ECC, 0x0000 },
764 { 0x00000ECD, 0x0000 },
765 { 0x00000EE0, 0x0000 },
766 { 0x00000EE2, 0x0000 },
767 { 0x00000EE3, 0x4000 },
768 { 0x00000EF0, 0x0000 },
769 { 0x00000EF1, 0x0000 },
770 { 0x00000EF2, 0x0000 },
771 { 0x00000EF3, 0x0000 },
772 { 0x00000EF4, 0x0000 },
773 { 0x00000EF5, 0x0000 },
774 { 0x00000EF6, 0x0000 },
775 { 0x00000EF7, 0x0000 },
776 { 0x00000EF8, 0x0000 },
777 { 0x00001200, 0x0010 },
778 { 0x00001300, 0x0010 },
779};
780
781static bool cs47l24_is_adsp_memory(unsigned int reg)
782{
783 switch (reg) {
784 case 0x200000 ... 0x205fff:
785 case 0x280000 ... 0x281fff:
786 case 0x290000 ... 0x2a7fff:
787 case 0x2a8000 ... 0x2b3fff:
788 case 0x300000 ... 0x308fff:
789 case 0x380000 ... 0x381fff:
790 case 0x390000 ... 0x3a7fff:
791 case 0x3a8000 ... 0x3b3fff:
792 return true;
793 default:
794 return false;
795 }
796}
797
798static bool cs47l24_readable_register(struct device *dev, unsigned int reg)
799{
800 switch (reg) {
801 case ARIZONA_SOFTWARE_RESET:
802 case ARIZONA_DEVICE_REVISION:
803 case ARIZONA_CTRL_IF_SPI_CFG_1:
804 case ARIZONA_WRITE_SEQUENCER_CTRL_0:
805 case ARIZONA_WRITE_SEQUENCER_CTRL_1:
806 case ARIZONA_WRITE_SEQUENCER_CTRL_2:
807 case ARIZONA_TONE_GENERATOR_1:
808 case ARIZONA_TONE_GENERATOR_2:
809 case ARIZONA_TONE_GENERATOR_3:
810 case ARIZONA_TONE_GENERATOR_4:
811 case ARIZONA_TONE_GENERATOR_5:
812 case ARIZONA_PWM_DRIVE_1:
813 case ARIZONA_PWM_DRIVE_2:
814 case ARIZONA_PWM_DRIVE_3:
815 case ARIZONA_SEQUENCE_CONTROL:
816 case ARIZONA_SAMPLE_RATE_SEQUENCE_SELECT_1:
817 case ARIZONA_SAMPLE_RATE_SEQUENCE_SELECT_2:
818 case ARIZONA_SAMPLE_RATE_SEQUENCE_SELECT_3:
819 case ARIZONA_SAMPLE_RATE_SEQUENCE_SELECT_4:
820 case ARIZONA_COMFORT_NOISE_GENERATOR:
821 case ARIZONA_HAPTICS_CONTROL_1:
822 case ARIZONA_HAPTICS_CONTROL_2:
823 case ARIZONA_HAPTICS_PHASE_1_INTENSITY:
824 case ARIZONA_HAPTICS_PHASE_1_DURATION:
825 case ARIZONA_HAPTICS_PHASE_2_INTENSITY:
826 case ARIZONA_HAPTICS_PHASE_2_DURATION:
827 case ARIZONA_HAPTICS_PHASE_3_INTENSITY:
828 case ARIZONA_HAPTICS_PHASE_3_DURATION:
829 case ARIZONA_HAPTICS_STATUS:
830 case ARIZONA_CLOCK_32K_1:
831 case ARIZONA_SYSTEM_CLOCK_1:
832 case ARIZONA_SAMPLE_RATE_1:
833 case ARIZONA_SAMPLE_RATE_2:
834 case ARIZONA_SAMPLE_RATE_3:
835 case ARIZONA_SAMPLE_RATE_1_STATUS:
836 case ARIZONA_SAMPLE_RATE_2_STATUS:
837 case ARIZONA_SAMPLE_RATE_3_STATUS:
838 case ARIZONA_ASYNC_CLOCK_1:
839 case ARIZONA_ASYNC_SAMPLE_RATE_1:
840 case ARIZONA_ASYNC_SAMPLE_RATE_1_STATUS:
841 case ARIZONA_ASYNC_SAMPLE_RATE_2:
842 case ARIZONA_ASYNC_SAMPLE_RATE_2_STATUS:
843 case ARIZONA_OUTPUT_SYSTEM_CLOCK:
844 case ARIZONA_OUTPUT_ASYNC_CLOCK:
845 case ARIZONA_RATE_ESTIMATOR_1:
846 case ARIZONA_RATE_ESTIMATOR_2:
847 case ARIZONA_RATE_ESTIMATOR_3:
848 case ARIZONA_RATE_ESTIMATOR_4:
849 case ARIZONA_RATE_ESTIMATOR_5:
850 case ARIZONA_FLL1_CONTROL_1:
851 case ARIZONA_FLL1_CONTROL_2:
852 case ARIZONA_FLL1_CONTROL_3:
853 case ARIZONA_FLL1_CONTROL_4:
854 case ARIZONA_FLL1_CONTROL_5:
855 case ARIZONA_FLL1_CONTROL_6:
856 case ARIZONA_FLL1_CONTROL_7:
857 case ARIZONA_FLL1_SYNCHRONISER_1:
858 case ARIZONA_FLL1_SYNCHRONISER_2:
859 case ARIZONA_FLL1_SYNCHRONISER_3:
860 case ARIZONA_FLL1_SYNCHRONISER_4:
861 case ARIZONA_FLL1_SYNCHRONISER_5:
862 case ARIZONA_FLL1_SYNCHRONISER_6:
863 case ARIZONA_FLL1_SYNCHRONISER_7:
864 case ARIZONA_FLL1_SPREAD_SPECTRUM:
865 case ARIZONA_FLL1_GPIO_CLOCK:
866 case ARIZONA_FLL2_CONTROL_1:
867 case ARIZONA_FLL2_CONTROL_2:
868 case ARIZONA_FLL2_CONTROL_3:
869 case ARIZONA_FLL2_CONTROL_4:
870 case ARIZONA_FLL2_CONTROL_5:
871 case ARIZONA_FLL2_CONTROL_6:
872 case ARIZONA_FLL2_CONTROL_7:
873 case ARIZONA_FLL2_SYNCHRONISER_1:
874 case ARIZONA_FLL2_SYNCHRONISER_2:
875 case ARIZONA_FLL2_SYNCHRONISER_3:
876 case ARIZONA_FLL2_SYNCHRONISER_4:
877 case ARIZONA_FLL2_SYNCHRONISER_5:
878 case ARIZONA_FLL2_SYNCHRONISER_6:
879 case ARIZONA_FLL2_SYNCHRONISER_7:
880 case ARIZONA_FLL2_SPREAD_SPECTRUM:
881 case ARIZONA_FLL2_GPIO_CLOCK:
882 case ARIZONA_MIC_BIAS_CTRL_1:
883 case ARIZONA_MIC_BIAS_CTRL_2:
884 case ARIZONA_HP_CTRL_1L:
885 case ARIZONA_HP_CTRL_1R:
886 case ARIZONA_INPUT_ENABLES:
887 case ARIZONA_INPUT_ENABLES_STATUS:
888 case ARIZONA_INPUT_RATE:
889 case ARIZONA_INPUT_VOLUME_RAMP:
890 case ARIZONA_HPF_CONTROL:
891 case ARIZONA_IN1L_CONTROL:
892 case ARIZONA_ADC_DIGITAL_VOLUME_1L:
893 case ARIZONA_DMIC1L_CONTROL:
894 case ARIZONA_IN1R_CONTROL:
895 case ARIZONA_ADC_DIGITAL_VOLUME_1R:
896 case ARIZONA_DMIC1R_CONTROL:
897 case ARIZONA_IN2L_CONTROL:
898 case ARIZONA_ADC_DIGITAL_VOLUME_2L:
899 case ARIZONA_DMIC2L_CONTROL:
900 case ARIZONA_IN2R_CONTROL:
901 case ARIZONA_ADC_DIGITAL_VOLUME_2R:
902 case ARIZONA_DMIC2R_CONTROL:
903 case ARIZONA_OUTPUT_ENABLES_1:
904 case ARIZONA_OUTPUT_STATUS_1:
905 case ARIZONA_RAW_OUTPUT_STATUS_1:
906 case ARIZONA_OUTPUT_RATE_1:
907 case ARIZONA_OUTPUT_VOLUME_RAMP:
908 case ARIZONA_OUTPUT_PATH_CONFIG_1L:
909 case ARIZONA_DAC_DIGITAL_VOLUME_1L:
910 case ARIZONA_DAC_VOLUME_LIMIT_1L:
911 case ARIZONA_NOISE_GATE_SELECT_1L:
912 case ARIZONA_DAC_DIGITAL_VOLUME_1R:
913 case ARIZONA_DAC_VOLUME_LIMIT_1R:
914 case ARIZONA_NOISE_GATE_SELECT_1R:
915 case ARIZONA_DAC_DIGITAL_VOLUME_4L:
916 case ARIZONA_OUT_VOLUME_4L:
917 case ARIZONA_NOISE_GATE_SELECT_4L:
918 case ARIZONA_DAC_AEC_CONTROL_1:
919 case ARIZONA_NOISE_GATE_CONTROL:
920 case ARIZONA_HP1_SHORT_CIRCUIT_CTRL:
921 case ARIZONA_AIF1_BCLK_CTRL:
922 case ARIZONA_AIF1_TX_PIN_CTRL:
923 case ARIZONA_AIF1_RX_PIN_CTRL:
924 case ARIZONA_AIF1_RATE_CTRL:
925 case ARIZONA_AIF1_FORMAT:
926 case ARIZONA_AIF1_TX_BCLK_RATE:
927 case ARIZONA_AIF1_RX_BCLK_RATE:
928 case ARIZONA_AIF1_FRAME_CTRL_1:
929 case ARIZONA_AIF1_FRAME_CTRL_2:
930 case ARIZONA_AIF1_FRAME_CTRL_3:
931 case ARIZONA_AIF1_FRAME_CTRL_4:
932 case ARIZONA_AIF1_FRAME_CTRL_5:
933 case ARIZONA_AIF1_FRAME_CTRL_6:
934 case ARIZONA_AIF1_FRAME_CTRL_7:
935 case ARIZONA_AIF1_FRAME_CTRL_8:
936 case ARIZONA_AIF1_FRAME_CTRL_9:
937 case ARIZONA_AIF1_FRAME_CTRL_10:
938 case ARIZONA_AIF1_FRAME_CTRL_11:
939 case ARIZONA_AIF1_FRAME_CTRL_12:
940 case ARIZONA_AIF1_FRAME_CTRL_13:
941 case ARIZONA_AIF1_FRAME_CTRL_14:
942 case ARIZONA_AIF1_FRAME_CTRL_15:
943 case ARIZONA_AIF1_FRAME_CTRL_16:
944 case ARIZONA_AIF1_FRAME_CTRL_17:
945 case ARIZONA_AIF1_FRAME_CTRL_18:
946 case ARIZONA_AIF1_TX_ENABLES:
947 case ARIZONA_AIF1_RX_ENABLES:
948 case ARIZONA_AIF2_BCLK_CTRL:
949 case ARIZONA_AIF2_TX_PIN_CTRL:
950 case ARIZONA_AIF2_RX_PIN_CTRL:
951 case ARIZONA_AIF2_RATE_CTRL:
952 case ARIZONA_AIF2_FORMAT:
953 case ARIZONA_AIF2_TX_BCLK_RATE:
954 case ARIZONA_AIF2_RX_BCLK_RATE:
955 case ARIZONA_AIF2_FRAME_CTRL_1:
956 case ARIZONA_AIF2_FRAME_CTRL_2:
957 case ARIZONA_AIF2_FRAME_CTRL_3:
958 case ARIZONA_AIF2_FRAME_CTRL_4:
959 case ARIZONA_AIF2_FRAME_CTRL_5:
960 case ARIZONA_AIF2_FRAME_CTRL_6:
961 case ARIZONA_AIF2_FRAME_CTRL_7:
962 case ARIZONA_AIF2_FRAME_CTRL_8:
963 case ARIZONA_AIF2_FRAME_CTRL_11:
964 case ARIZONA_AIF2_FRAME_CTRL_12:
965 case ARIZONA_AIF2_FRAME_CTRL_13:
966 case ARIZONA_AIF2_FRAME_CTRL_14:
967 case ARIZONA_AIF2_FRAME_CTRL_15:
968 case ARIZONA_AIF2_FRAME_CTRL_16:
969 case ARIZONA_AIF2_TX_ENABLES:
970 case ARIZONA_AIF2_RX_ENABLES:
971 case ARIZONA_AIF3_BCLK_CTRL:
972 case ARIZONA_AIF3_TX_PIN_CTRL:
973 case ARIZONA_AIF3_RX_PIN_CTRL:
974 case ARIZONA_AIF3_RATE_CTRL:
975 case ARIZONA_AIF3_FORMAT:
976 case ARIZONA_AIF3_TX_BCLK_RATE:
977 case ARIZONA_AIF3_RX_BCLK_RATE:
978 case ARIZONA_AIF3_FRAME_CTRL_1:
979 case ARIZONA_AIF3_FRAME_CTRL_2:
980 case ARIZONA_AIF3_FRAME_CTRL_3:
981 case ARIZONA_AIF3_FRAME_CTRL_4:
982 case ARIZONA_AIF3_FRAME_CTRL_11:
983 case ARIZONA_AIF3_FRAME_CTRL_12:
984 case ARIZONA_AIF3_TX_ENABLES:
985 case ARIZONA_AIF3_RX_ENABLES:
986 case ARIZONA_PWM1MIX_INPUT_1_SOURCE:
987 case ARIZONA_PWM1MIX_INPUT_1_VOLUME:
988 case ARIZONA_PWM1MIX_INPUT_2_SOURCE:
989 case ARIZONA_PWM1MIX_INPUT_2_VOLUME:
990 case ARIZONA_PWM1MIX_INPUT_3_SOURCE:
991 case ARIZONA_PWM1MIX_INPUT_3_VOLUME:
992 case ARIZONA_PWM1MIX_INPUT_4_SOURCE:
993 case ARIZONA_PWM1MIX_INPUT_4_VOLUME:
994 case ARIZONA_PWM2MIX_INPUT_1_SOURCE:
995 case ARIZONA_PWM2MIX_INPUT_1_VOLUME:
996 case ARIZONA_PWM2MIX_INPUT_2_SOURCE:
997 case ARIZONA_PWM2MIX_INPUT_2_VOLUME:
998 case ARIZONA_PWM2MIX_INPUT_3_SOURCE:
999 case ARIZONA_PWM2MIX_INPUT_3_VOLUME:
1000 case ARIZONA_PWM2MIX_INPUT_4_SOURCE:
1001 case ARIZONA_PWM2MIX_INPUT_4_VOLUME:
1002 case ARIZONA_OUT1LMIX_INPUT_1_SOURCE:
1003 case ARIZONA_OUT1LMIX_INPUT_1_VOLUME:
1004 case ARIZONA_OUT1LMIX_INPUT_2_SOURCE:
1005 case ARIZONA_OUT1LMIX_INPUT_2_VOLUME:
1006 case ARIZONA_OUT1LMIX_INPUT_3_SOURCE:
1007 case ARIZONA_OUT1LMIX_INPUT_3_VOLUME:
1008 case ARIZONA_OUT1LMIX_INPUT_4_SOURCE:
1009 case ARIZONA_OUT1LMIX_INPUT_4_VOLUME:
1010 case ARIZONA_OUT1RMIX_INPUT_1_SOURCE:
1011 case ARIZONA_OUT1RMIX_INPUT_1_VOLUME:
1012 case ARIZONA_OUT1RMIX_INPUT_2_SOURCE:
1013 case ARIZONA_OUT1RMIX_INPUT_2_VOLUME:
1014 case ARIZONA_OUT1RMIX_INPUT_3_SOURCE:
1015 case ARIZONA_OUT1RMIX_INPUT_3_VOLUME:
1016 case ARIZONA_OUT1RMIX_INPUT_4_SOURCE:
1017 case ARIZONA_OUT1RMIX_INPUT_4_VOLUME:
1018 case ARIZONA_OUT4LMIX_INPUT_1_SOURCE:
1019 case ARIZONA_OUT4LMIX_INPUT_1_VOLUME:
1020 case ARIZONA_OUT4LMIX_INPUT_2_SOURCE:
1021 case ARIZONA_OUT4LMIX_INPUT_2_VOLUME:
1022 case ARIZONA_OUT4LMIX_INPUT_3_SOURCE:
1023 case ARIZONA_OUT4LMIX_INPUT_3_VOLUME:
1024 case ARIZONA_OUT4LMIX_INPUT_4_SOURCE:
1025 case ARIZONA_OUT4LMIX_INPUT_4_VOLUME:
1026 case ARIZONA_AIF1TX1MIX_INPUT_1_SOURCE:
1027 case ARIZONA_AIF1TX1MIX_INPUT_1_VOLUME:
1028 case ARIZONA_AIF1TX1MIX_INPUT_2_SOURCE:
1029 case ARIZONA_AIF1TX1MIX_INPUT_2_VOLUME:
1030 case ARIZONA_AIF1TX1MIX_INPUT_3_SOURCE:
1031 case ARIZONA_AIF1TX1MIX_INPUT_3_VOLUME:
1032 case ARIZONA_AIF1TX1MIX_INPUT_4_SOURCE:
1033 case ARIZONA_AIF1TX1MIX_INPUT_4_VOLUME:
1034 case ARIZONA_AIF1TX2MIX_INPUT_1_SOURCE:
1035 case ARIZONA_AIF1TX2MIX_INPUT_1_VOLUME:
1036 case ARIZONA_AIF1TX2MIX_INPUT_2_SOURCE:
1037 case ARIZONA_AIF1TX2MIX_INPUT_2_VOLUME:
1038 case ARIZONA_AIF1TX2MIX_INPUT_3_SOURCE:
1039 case ARIZONA_AIF1TX2MIX_INPUT_3_VOLUME:
1040 case ARIZONA_AIF1TX2MIX_INPUT_4_SOURCE:
1041 case ARIZONA_AIF1TX2MIX_INPUT_4_VOLUME:
1042 case ARIZONA_AIF1TX3MIX_INPUT_1_SOURCE:
1043 case ARIZONA_AIF1TX3MIX_INPUT_1_VOLUME:
1044 case ARIZONA_AIF1TX3MIX_INPUT_2_SOURCE:
1045 case ARIZONA_AIF1TX3MIX_INPUT_2_VOLUME:
1046 case ARIZONA_AIF1TX3MIX_INPUT_3_SOURCE:
1047 case ARIZONA_AIF1TX3MIX_INPUT_3_VOLUME:
1048 case ARIZONA_AIF1TX3MIX_INPUT_4_SOURCE:
1049 case ARIZONA_AIF1TX3MIX_INPUT_4_VOLUME:
1050 case ARIZONA_AIF1TX4MIX_INPUT_1_SOURCE:
1051 case ARIZONA_AIF1TX4MIX_INPUT_1_VOLUME:
1052 case ARIZONA_AIF1TX4MIX_INPUT_2_SOURCE:
1053 case ARIZONA_AIF1TX4MIX_INPUT_2_VOLUME:
1054 case ARIZONA_AIF1TX4MIX_INPUT_3_SOURCE:
1055 case ARIZONA_AIF1TX4MIX_INPUT_3_VOLUME:
1056 case ARIZONA_AIF1TX4MIX_INPUT_4_SOURCE:
1057 case ARIZONA_AIF1TX4MIX_INPUT_4_VOLUME:
1058 case ARIZONA_AIF1TX5MIX_INPUT_1_SOURCE:
1059 case ARIZONA_AIF1TX5MIX_INPUT_1_VOLUME:
1060 case ARIZONA_AIF1TX5MIX_INPUT_2_SOURCE:
1061 case ARIZONA_AIF1TX5MIX_INPUT_2_VOLUME:
1062 case ARIZONA_AIF1TX5MIX_INPUT_3_SOURCE:
1063 case ARIZONA_AIF1TX5MIX_INPUT_3_VOLUME:
1064 case ARIZONA_AIF1TX5MIX_INPUT_4_SOURCE:
1065 case ARIZONA_AIF1TX5MIX_INPUT_4_VOLUME:
1066 case ARIZONA_AIF1TX6MIX_INPUT_1_SOURCE:
1067 case ARIZONA_AIF1TX6MIX_INPUT_1_VOLUME:
1068 case ARIZONA_AIF1TX6MIX_INPUT_2_SOURCE:
1069 case ARIZONA_AIF1TX6MIX_INPUT_2_VOLUME:
1070 case ARIZONA_AIF1TX6MIX_INPUT_3_SOURCE:
1071 case ARIZONA_AIF1TX6MIX_INPUT_3_VOLUME:
1072 case ARIZONA_AIF1TX6MIX_INPUT_4_SOURCE:
1073 case ARIZONA_AIF1TX6MIX_INPUT_4_VOLUME:
1074 case ARIZONA_AIF1TX7MIX_INPUT_1_SOURCE:
1075 case ARIZONA_AIF1TX7MIX_INPUT_1_VOLUME:
1076 case ARIZONA_AIF1TX7MIX_INPUT_2_SOURCE:
1077 case ARIZONA_AIF1TX7MIX_INPUT_2_VOLUME:
1078 case ARIZONA_AIF1TX7MIX_INPUT_3_SOURCE:
1079 case ARIZONA_AIF1TX7MIX_INPUT_3_VOLUME:
1080 case ARIZONA_AIF1TX7MIX_INPUT_4_SOURCE:
1081 case ARIZONA_AIF1TX7MIX_INPUT_4_VOLUME:
1082 case ARIZONA_AIF1TX8MIX_INPUT_1_SOURCE:
1083 case ARIZONA_AIF1TX8MIX_INPUT_1_VOLUME:
1084 case ARIZONA_AIF1TX8MIX_INPUT_2_SOURCE:
1085 case ARIZONA_AIF1TX8MIX_INPUT_2_VOLUME:
1086 case ARIZONA_AIF1TX8MIX_INPUT_3_SOURCE:
1087 case ARIZONA_AIF1TX8MIX_INPUT_3_VOLUME:
1088 case ARIZONA_AIF1TX8MIX_INPUT_4_SOURCE:
1089 case ARIZONA_AIF1TX8MIX_INPUT_4_VOLUME:
1090 case ARIZONA_AIF2TX1MIX_INPUT_1_SOURCE:
1091 case ARIZONA_AIF2TX1MIX_INPUT_1_VOLUME:
1092 case ARIZONA_AIF2TX1MIX_INPUT_2_SOURCE:
1093 case ARIZONA_AIF2TX1MIX_INPUT_2_VOLUME:
1094 case ARIZONA_AIF2TX1MIX_INPUT_3_SOURCE:
1095 case ARIZONA_AIF2TX1MIX_INPUT_3_VOLUME:
1096 case ARIZONA_AIF2TX1MIX_INPUT_4_SOURCE:
1097 case ARIZONA_AIF2TX1MIX_INPUT_4_VOLUME:
1098 case ARIZONA_AIF2TX2MIX_INPUT_1_SOURCE:
1099 case ARIZONA_AIF2TX2MIX_INPUT_1_VOLUME:
1100 case ARIZONA_AIF2TX2MIX_INPUT_2_SOURCE:
1101 case ARIZONA_AIF2TX2MIX_INPUT_2_VOLUME:
1102 case ARIZONA_AIF2TX2MIX_INPUT_3_SOURCE:
1103 case ARIZONA_AIF2TX2MIX_INPUT_3_VOLUME:
1104 case ARIZONA_AIF2TX2MIX_INPUT_4_SOURCE:
1105 case ARIZONA_AIF2TX2MIX_INPUT_4_VOLUME:
1106 case ARIZONA_AIF2TX3MIX_INPUT_1_SOURCE:
1107 case ARIZONA_AIF2TX3MIX_INPUT_1_VOLUME:
1108 case ARIZONA_AIF2TX3MIX_INPUT_2_SOURCE:
1109 case ARIZONA_AIF2TX3MIX_INPUT_2_VOLUME:
1110 case ARIZONA_AIF2TX3MIX_INPUT_3_SOURCE:
1111 case ARIZONA_AIF2TX3MIX_INPUT_3_VOLUME:
1112 case ARIZONA_AIF2TX3MIX_INPUT_4_SOURCE:
1113 case ARIZONA_AIF2TX3MIX_INPUT_4_VOLUME:
1114 case ARIZONA_AIF2TX4MIX_INPUT_1_SOURCE:
1115 case ARIZONA_AIF2TX4MIX_INPUT_1_VOLUME:
1116 case ARIZONA_AIF2TX4MIX_INPUT_2_SOURCE:
1117 case ARIZONA_AIF2TX4MIX_INPUT_2_VOLUME:
1118 case ARIZONA_AIF2TX4MIX_INPUT_3_SOURCE:
1119 case ARIZONA_AIF2TX4MIX_INPUT_3_VOLUME:
1120 case ARIZONA_AIF2TX4MIX_INPUT_4_SOURCE:
1121 case ARIZONA_AIF2TX4MIX_INPUT_4_VOLUME:
1122 case ARIZONA_AIF2TX5MIX_INPUT_1_SOURCE:
1123 case ARIZONA_AIF2TX5MIX_INPUT_1_VOLUME:
1124 case ARIZONA_AIF2TX5MIX_INPUT_2_SOURCE:
1125 case ARIZONA_AIF2TX5MIX_INPUT_2_VOLUME:
1126 case ARIZONA_AIF2TX5MIX_INPUT_3_SOURCE:
1127 case ARIZONA_AIF2TX5MIX_INPUT_3_VOLUME:
1128 case ARIZONA_AIF2TX5MIX_INPUT_4_SOURCE:
1129 case ARIZONA_AIF2TX5MIX_INPUT_4_VOLUME:
1130 case ARIZONA_AIF2TX6MIX_INPUT_1_SOURCE:
1131 case ARIZONA_AIF2TX6MIX_INPUT_1_VOLUME:
1132 case ARIZONA_AIF2TX6MIX_INPUT_2_SOURCE:
1133 case ARIZONA_AIF2TX6MIX_INPUT_2_VOLUME:
1134 case ARIZONA_AIF2TX6MIX_INPUT_3_SOURCE:
1135 case ARIZONA_AIF2TX6MIX_INPUT_3_VOLUME:
1136 case ARIZONA_AIF2TX6MIX_INPUT_4_SOURCE:
1137 case ARIZONA_AIF2TX6MIX_INPUT_4_VOLUME:
1138 case ARIZONA_AIF3TX1MIX_INPUT_1_SOURCE:
1139 case ARIZONA_AIF3TX1MIX_INPUT_1_VOLUME:
1140 case ARIZONA_AIF3TX1MIX_INPUT_2_SOURCE:
1141 case ARIZONA_AIF3TX1MIX_INPUT_2_VOLUME:
1142 case ARIZONA_AIF3TX1MIX_INPUT_3_SOURCE:
1143 case ARIZONA_AIF3TX1MIX_INPUT_3_VOLUME:
1144 case ARIZONA_AIF3TX1MIX_INPUT_4_SOURCE:
1145 case ARIZONA_AIF3TX1MIX_INPUT_4_VOLUME:
1146 case ARIZONA_AIF3TX2MIX_INPUT_1_SOURCE:
1147 case ARIZONA_AIF3TX2MIX_INPUT_1_VOLUME:
1148 case ARIZONA_AIF3TX2MIX_INPUT_2_SOURCE:
1149 case ARIZONA_AIF3TX2MIX_INPUT_2_VOLUME:
1150 case ARIZONA_AIF3TX2MIX_INPUT_3_SOURCE:
1151 case ARIZONA_AIF3TX2MIX_INPUT_3_VOLUME:
1152 case ARIZONA_AIF3TX2MIX_INPUT_4_SOURCE:
1153 case ARIZONA_AIF3TX2MIX_INPUT_4_VOLUME:
1154 case ARIZONA_EQ1MIX_INPUT_1_SOURCE:
1155 case ARIZONA_EQ1MIX_INPUT_1_VOLUME:
1156 case ARIZONA_EQ1MIX_INPUT_2_SOURCE:
1157 case ARIZONA_EQ1MIX_INPUT_2_VOLUME:
1158 case ARIZONA_EQ1MIX_INPUT_3_SOURCE:
1159 case ARIZONA_EQ1MIX_INPUT_3_VOLUME:
1160 case ARIZONA_EQ1MIX_INPUT_4_SOURCE:
1161 case ARIZONA_EQ1MIX_INPUT_4_VOLUME:
1162 case ARIZONA_EQ2MIX_INPUT_1_SOURCE:
1163 case ARIZONA_EQ2MIX_INPUT_1_VOLUME:
1164 case ARIZONA_EQ2MIX_INPUT_2_SOURCE:
1165 case ARIZONA_EQ2MIX_INPUT_2_VOLUME:
1166 case ARIZONA_EQ2MIX_INPUT_3_SOURCE:
1167 case ARIZONA_EQ2MIX_INPUT_3_VOLUME:
1168 case ARIZONA_EQ2MIX_INPUT_4_SOURCE:
1169 case ARIZONA_EQ2MIX_INPUT_4_VOLUME:
1170 case ARIZONA_DRC1LMIX_INPUT_1_SOURCE:
1171 case ARIZONA_DRC1LMIX_INPUT_1_VOLUME:
1172 case ARIZONA_DRC1LMIX_INPUT_2_SOURCE:
1173 case ARIZONA_DRC1LMIX_INPUT_2_VOLUME:
1174 case ARIZONA_DRC1LMIX_INPUT_3_SOURCE:
1175 case ARIZONA_DRC1LMIX_INPUT_3_VOLUME:
1176 case ARIZONA_DRC1LMIX_INPUT_4_SOURCE:
1177 case ARIZONA_DRC1LMIX_INPUT_4_VOLUME:
1178 case ARIZONA_DRC1RMIX_INPUT_1_SOURCE:
1179 case ARIZONA_DRC1RMIX_INPUT_1_VOLUME:
1180 case ARIZONA_DRC1RMIX_INPUT_2_SOURCE:
1181 case ARIZONA_DRC1RMIX_INPUT_2_VOLUME:
1182 case ARIZONA_DRC1RMIX_INPUT_3_SOURCE:
1183 case ARIZONA_DRC1RMIX_INPUT_3_VOLUME:
1184 case ARIZONA_DRC1RMIX_INPUT_4_SOURCE:
1185 case ARIZONA_DRC1RMIX_INPUT_4_VOLUME:
1186 case ARIZONA_DRC2LMIX_INPUT_1_SOURCE:
1187 case ARIZONA_DRC2LMIX_INPUT_1_VOLUME:
1188 case ARIZONA_DRC2LMIX_INPUT_2_SOURCE:
1189 case ARIZONA_DRC2LMIX_INPUT_2_VOLUME:
1190 case ARIZONA_DRC2LMIX_INPUT_3_SOURCE:
1191 case ARIZONA_DRC2LMIX_INPUT_3_VOLUME:
1192 case ARIZONA_DRC2LMIX_INPUT_4_SOURCE:
1193 case ARIZONA_DRC2LMIX_INPUT_4_VOLUME:
1194 case ARIZONA_DRC2RMIX_INPUT_1_SOURCE:
1195 case ARIZONA_DRC2RMIX_INPUT_1_VOLUME:
1196 case ARIZONA_DRC2RMIX_INPUT_2_SOURCE:
1197 case ARIZONA_DRC2RMIX_INPUT_2_VOLUME:
1198 case ARIZONA_DRC2RMIX_INPUT_3_SOURCE:
1199 case ARIZONA_DRC2RMIX_INPUT_3_VOLUME:
1200 case ARIZONA_DRC2RMIX_INPUT_4_SOURCE:
1201 case ARIZONA_DRC2RMIX_INPUT_4_VOLUME:
1202 case ARIZONA_HPLP1MIX_INPUT_1_SOURCE:
1203 case ARIZONA_HPLP1MIX_INPUT_1_VOLUME:
1204 case ARIZONA_HPLP1MIX_INPUT_2_SOURCE:
1205 case ARIZONA_HPLP1MIX_INPUT_2_VOLUME:
1206 case ARIZONA_HPLP1MIX_INPUT_3_SOURCE:
1207 case ARIZONA_HPLP1MIX_INPUT_3_VOLUME:
1208 case ARIZONA_HPLP1MIX_INPUT_4_SOURCE:
1209 case ARIZONA_HPLP1MIX_INPUT_4_VOLUME:
1210 case ARIZONA_HPLP2MIX_INPUT_1_SOURCE:
1211 case ARIZONA_HPLP2MIX_INPUT_1_VOLUME:
1212 case ARIZONA_HPLP2MIX_INPUT_2_SOURCE:
1213 case ARIZONA_HPLP2MIX_INPUT_2_VOLUME:
1214 case ARIZONA_HPLP2MIX_INPUT_3_SOURCE:
1215 case ARIZONA_HPLP2MIX_INPUT_3_VOLUME:
1216 case ARIZONA_HPLP2MIX_INPUT_4_SOURCE:
1217 case ARIZONA_HPLP2MIX_INPUT_4_VOLUME:
1218 case ARIZONA_HPLP3MIX_INPUT_1_SOURCE:
1219 case ARIZONA_HPLP3MIX_INPUT_1_VOLUME:
1220 case ARIZONA_HPLP3MIX_INPUT_2_SOURCE:
1221 case ARIZONA_HPLP3MIX_INPUT_2_VOLUME:
1222 case ARIZONA_HPLP3MIX_INPUT_3_SOURCE:
1223 case ARIZONA_HPLP3MIX_INPUT_3_VOLUME:
1224 case ARIZONA_HPLP3MIX_INPUT_4_SOURCE:
1225 case ARIZONA_HPLP3MIX_INPUT_4_VOLUME:
1226 case ARIZONA_HPLP4MIX_INPUT_1_SOURCE:
1227 case ARIZONA_HPLP4MIX_INPUT_1_VOLUME:
1228 case ARIZONA_HPLP4MIX_INPUT_2_SOURCE:
1229 case ARIZONA_HPLP4MIX_INPUT_2_VOLUME:
1230 case ARIZONA_HPLP4MIX_INPUT_3_SOURCE:
1231 case ARIZONA_HPLP4MIX_INPUT_3_VOLUME:
1232 case ARIZONA_HPLP4MIX_INPUT_4_SOURCE:
1233 case ARIZONA_HPLP4MIX_INPUT_4_VOLUME:
1234 case ARIZONA_DSP2LMIX_INPUT_1_SOURCE:
1235 case ARIZONA_DSP2LMIX_INPUT_1_VOLUME:
1236 case ARIZONA_DSP2LMIX_INPUT_2_SOURCE:
1237 case ARIZONA_DSP2LMIX_INPUT_2_VOLUME:
1238 case ARIZONA_DSP2LMIX_INPUT_3_SOURCE:
1239 case ARIZONA_DSP2LMIX_INPUT_3_VOLUME:
1240 case ARIZONA_DSP2LMIX_INPUT_4_SOURCE:
1241 case ARIZONA_DSP2LMIX_INPUT_4_VOLUME:
1242 case ARIZONA_DSP2RMIX_INPUT_1_SOURCE:
1243 case ARIZONA_DSP2RMIX_INPUT_1_VOLUME:
1244 case ARIZONA_DSP2RMIX_INPUT_2_SOURCE:
1245 case ARIZONA_DSP2RMIX_INPUT_2_VOLUME:
1246 case ARIZONA_DSP2RMIX_INPUT_3_SOURCE:
1247 case ARIZONA_DSP2RMIX_INPUT_3_VOLUME:
1248 case ARIZONA_DSP2RMIX_INPUT_4_SOURCE:
1249 case ARIZONA_DSP2RMIX_INPUT_4_VOLUME:
1250 case ARIZONA_DSP2AUX1MIX_INPUT_1_SOURCE:
1251 case ARIZONA_DSP2AUX2MIX_INPUT_1_SOURCE:
1252 case ARIZONA_DSP2AUX3MIX_INPUT_1_SOURCE:
1253 case ARIZONA_DSP2AUX4MIX_INPUT_1_SOURCE:
1254 case ARIZONA_DSP2AUX5MIX_INPUT_1_SOURCE:
1255 case ARIZONA_DSP2AUX6MIX_INPUT_1_SOURCE:
1256 case ARIZONA_DSP3LMIX_INPUT_1_SOURCE:
1257 case ARIZONA_DSP3LMIX_INPUT_1_VOLUME:
1258 case ARIZONA_DSP3LMIX_INPUT_2_SOURCE:
1259 case ARIZONA_DSP3LMIX_INPUT_2_VOLUME:
1260 case ARIZONA_DSP3LMIX_INPUT_3_SOURCE:
1261 case ARIZONA_DSP3LMIX_INPUT_3_VOLUME:
1262 case ARIZONA_DSP3LMIX_INPUT_4_SOURCE:
1263 case ARIZONA_DSP3LMIX_INPUT_4_VOLUME:
1264 case ARIZONA_DSP3RMIX_INPUT_1_SOURCE:
1265 case ARIZONA_DSP3RMIX_INPUT_1_VOLUME:
1266 case ARIZONA_DSP3RMIX_INPUT_2_SOURCE:
1267 case ARIZONA_DSP3RMIX_INPUT_2_VOLUME:
1268 case ARIZONA_DSP3RMIX_INPUT_3_SOURCE:
1269 case ARIZONA_DSP3RMIX_INPUT_3_VOLUME:
1270 case ARIZONA_DSP3RMIX_INPUT_4_SOURCE:
1271 case ARIZONA_DSP3RMIX_INPUT_4_VOLUME:
1272 case ARIZONA_DSP3AUX1MIX_INPUT_1_SOURCE:
1273 case ARIZONA_DSP3AUX2MIX_INPUT_1_SOURCE:
1274 case ARIZONA_DSP3AUX3MIX_INPUT_1_SOURCE:
1275 case ARIZONA_DSP3AUX4MIX_INPUT_1_SOURCE:
1276 case ARIZONA_DSP3AUX5MIX_INPUT_1_SOURCE:
1277 case ARIZONA_DSP3AUX6MIX_INPUT_1_SOURCE:
1278 case ARIZONA_ASRC1LMIX_INPUT_1_SOURCE:
1279 case ARIZONA_ASRC1RMIX_INPUT_1_SOURCE:
1280 case ARIZONA_ASRC2LMIX_INPUT_1_SOURCE:
1281 case ARIZONA_ASRC2RMIX_INPUT_1_SOURCE:
1282 case ARIZONA_ISRC1DEC1MIX_INPUT_1_SOURCE:
1283 case ARIZONA_ISRC1DEC2MIX_INPUT_1_SOURCE:
1284 case ARIZONA_ISRC1DEC3MIX_INPUT_1_SOURCE:
1285 case ARIZONA_ISRC1DEC4MIX_INPUT_1_SOURCE:
1286 case ARIZONA_ISRC1INT1MIX_INPUT_1_SOURCE:
1287 case ARIZONA_ISRC1INT2MIX_INPUT_1_SOURCE:
1288 case ARIZONA_ISRC1INT3MIX_INPUT_1_SOURCE:
1289 case ARIZONA_ISRC1INT4MIX_INPUT_1_SOURCE:
1290 case ARIZONA_ISRC2DEC1MIX_INPUT_1_SOURCE:
1291 case ARIZONA_ISRC2DEC2MIX_INPUT_1_SOURCE:
1292 case ARIZONA_ISRC2DEC3MIX_INPUT_1_SOURCE:
1293 case ARIZONA_ISRC2DEC4MIX_INPUT_1_SOURCE:
1294 case ARIZONA_ISRC2INT1MIX_INPUT_1_SOURCE:
1295 case ARIZONA_ISRC2INT2MIX_INPUT_1_SOURCE:
1296 case ARIZONA_ISRC2INT3MIX_INPUT_1_SOURCE:
1297 case ARIZONA_ISRC2INT4MIX_INPUT_1_SOURCE:
1298 case ARIZONA_ISRC3DEC1MIX_INPUT_1_SOURCE:
1299 case ARIZONA_ISRC3DEC2MIX_INPUT_1_SOURCE:
1300 case ARIZONA_ISRC3DEC3MIX_INPUT_1_SOURCE:
1301 case ARIZONA_ISRC3DEC4MIX_INPUT_1_SOURCE:
1302 case ARIZONA_ISRC3INT1MIX_INPUT_1_SOURCE:
1303 case ARIZONA_ISRC3INT2MIX_INPUT_1_SOURCE:
1304 case ARIZONA_ISRC3INT3MIX_INPUT_1_SOURCE:
1305 case ARIZONA_ISRC3INT4MIX_INPUT_1_SOURCE:
1306 case ARIZONA_GPIO1_CTRL:
1307 case ARIZONA_GPIO2_CTRL:
1308 case ARIZONA_IRQ_CTRL_1:
1309 case ARIZONA_GPIO_DEBOUNCE_CONFIG:
1310 case ARIZONA_MISC_PAD_CTRL_1:
1311 case ARIZONA_MISC_PAD_CTRL_2:
1312 case ARIZONA_MISC_PAD_CTRL_3:
1313 case ARIZONA_MISC_PAD_CTRL_4:
1314 case ARIZONA_MISC_PAD_CTRL_5:
1315 case ARIZONA_MISC_PAD_CTRL_6:
1316 case ARIZONA_MISC_PAD_CTRL_7:
1317 case ARIZONA_MISC_PAD_CTRL_9:
1318 case ARIZONA_MISC_PAD_CTRL_10:
1319 case ARIZONA_MISC_PAD_CTRL_11:
1320 case ARIZONA_MISC_PAD_CTRL_12:
1321 case ARIZONA_MISC_PAD_CTRL_13:
1322 case ARIZONA_MISC_PAD_CTRL_14:
1323 case ARIZONA_MISC_PAD_CTRL_16:
1324 case ARIZONA_INTERRUPT_STATUS_1:
1325 case ARIZONA_INTERRUPT_STATUS_2:
1326 case ARIZONA_INTERRUPT_STATUS_3:
1327 case ARIZONA_INTERRUPT_STATUS_4:
1328 case ARIZONA_INTERRUPT_STATUS_5:
1329 case ARIZONA_INTERRUPT_STATUS_6:
1330 case ARIZONA_INTERRUPT_STATUS_1_MASK:
1331 case ARIZONA_INTERRUPT_STATUS_2_MASK:
1332 case ARIZONA_INTERRUPT_STATUS_3_MASK:
1333 case ARIZONA_INTERRUPT_STATUS_4_MASK:
1334 case ARIZONA_INTERRUPT_STATUS_5_MASK:
1335 case ARIZONA_INTERRUPT_STATUS_6_MASK:
1336 case ARIZONA_INTERRUPT_CONTROL:
1337 case ARIZONA_IRQ2_STATUS_1:
1338 case ARIZONA_IRQ2_STATUS_2:
1339 case ARIZONA_IRQ2_STATUS_3:
1340 case ARIZONA_IRQ2_STATUS_4:
1341 case ARIZONA_IRQ2_STATUS_5:
1342 case ARIZONA_IRQ2_STATUS_6:
1343 case ARIZONA_IRQ2_STATUS_1_MASK:
1344 case ARIZONA_IRQ2_STATUS_2_MASK:
1345 case ARIZONA_IRQ2_STATUS_3_MASK:
1346 case ARIZONA_IRQ2_STATUS_4_MASK:
1347 case ARIZONA_IRQ2_STATUS_5_MASK:
1348 case ARIZONA_IRQ2_STATUS_6_MASK:
1349 case ARIZONA_IRQ2_CONTROL:
1350 case ARIZONA_INTERRUPT_RAW_STATUS_2:
1351 case ARIZONA_INTERRUPT_RAW_STATUS_3:
1352 case ARIZONA_INTERRUPT_RAW_STATUS_4:
1353 case ARIZONA_INTERRUPT_RAW_STATUS_5:
1354 case ARIZONA_INTERRUPT_RAW_STATUS_6:
1355 case ARIZONA_INTERRUPT_RAW_STATUS_7:
1356 case ARIZONA_INTERRUPT_RAW_STATUS_8:
1357 case ARIZONA_INTERRUPT_RAW_STATUS_9:
1358 case ARIZONA_IRQ_PIN_STATUS:
1359 case ARIZONA_FX_CTRL1:
1360 case ARIZONA_FX_CTRL2:
1361 case ARIZONA_EQ1_1:
1362 case ARIZONA_EQ1_2:
1363 case ARIZONA_EQ1_3:
1364 case ARIZONA_EQ1_4:
1365 case ARIZONA_EQ1_5:
1366 case ARIZONA_EQ1_6:
1367 case ARIZONA_EQ1_7:
1368 case ARIZONA_EQ1_8:
1369 case ARIZONA_EQ1_9:
1370 case ARIZONA_EQ1_10:
1371 case ARIZONA_EQ1_11:
1372 case ARIZONA_EQ1_12:
1373 case ARIZONA_EQ1_13:
1374 case ARIZONA_EQ1_14:
1375 case ARIZONA_EQ1_15:
1376 case ARIZONA_EQ1_16:
1377 case ARIZONA_EQ1_17:
1378 case ARIZONA_EQ1_18:
1379 case ARIZONA_EQ1_19:
1380 case ARIZONA_EQ1_20:
1381 case ARIZONA_EQ1_21:
1382 case ARIZONA_EQ2_1:
1383 case ARIZONA_EQ2_2:
1384 case ARIZONA_EQ2_3:
1385 case ARIZONA_EQ2_4:
1386 case ARIZONA_EQ2_5:
1387 case ARIZONA_EQ2_6:
1388 case ARIZONA_EQ2_7:
1389 case ARIZONA_EQ2_8:
1390 case ARIZONA_EQ2_9:
1391 case ARIZONA_EQ2_10:
1392 case ARIZONA_EQ2_11:
1393 case ARIZONA_EQ2_12:
1394 case ARIZONA_EQ2_13:
1395 case ARIZONA_EQ2_14:
1396 case ARIZONA_EQ2_15:
1397 case ARIZONA_EQ2_16:
1398 case ARIZONA_EQ2_17:
1399 case ARIZONA_EQ2_18:
1400 case ARIZONA_EQ2_19:
1401 case ARIZONA_EQ2_20:
1402 case ARIZONA_EQ2_21:
1403 case ARIZONA_DRC1_CTRL1:
1404 case ARIZONA_DRC1_CTRL2:
1405 case ARIZONA_DRC1_CTRL3:
1406 case ARIZONA_DRC1_CTRL4:
1407 case ARIZONA_DRC1_CTRL5:
1408 case ARIZONA_DRC2_CTRL1:
1409 case ARIZONA_DRC2_CTRL2:
1410 case ARIZONA_DRC2_CTRL3:
1411 case ARIZONA_DRC2_CTRL4:
1412 case ARIZONA_DRC2_CTRL5:
1413 case ARIZONA_HPLPF1_1:
1414 case ARIZONA_HPLPF1_2:
1415 case ARIZONA_HPLPF2_1:
1416 case ARIZONA_HPLPF2_2:
1417 case ARIZONA_HPLPF3_1:
1418 case ARIZONA_HPLPF3_2:
1419 case ARIZONA_HPLPF4_1:
1420 case ARIZONA_HPLPF4_2:
1421 case ARIZONA_ASRC_ENABLE:
1422 case ARIZONA_ASRC_STATUS:
1423 case ARIZONA_ASRC_RATE1:
1424 case ARIZONA_ASRC_RATE2:
1425 case ARIZONA_ISRC_1_CTRL_1:
1426 case ARIZONA_ISRC_1_CTRL_2:
1427 case ARIZONA_ISRC_1_CTRL_3:
1428 case ARIZONA_ISRC_2_CTRL_1:
1429 case ARIZONA_ISRC_2_CTRL_2:
1430 case ARIZONA_ISRC_2_CTRL_3:
1431 case ARIZONA_ISRC_3_CTRL_1:
1432 case ARIZONA_ISRC_3_CTRL_2:
1433 case ARIZONA_ISRC_3_CTRL_3:
1434 case ARIZONA_DSP2_CONTROL_1:
1435 case ARIZONA_DSP2_CLOCKING_1:
1436 case ARIZONA_DSP2_STATUS_1:
1437 case ARIZONA_DSP2_STATUS_2:
1438 case ARIZONA_DSP2_STATUS_3:
1439 case ARIZONA_DSP2_STATUS_4:
1440 case ARIZONA_DSP2_WDMA_BUFFER_1:
1441 case ARIZONA_DSP2_WDMA_BUFFER_2:
1442 case ARIZONA_DSP2_WDMA_BUFFER_3:
1443 case ARIZONA_DSP2_WDMA_BUFFER_4:
1444 case ARIZONA_DSP2_WDMA_BUFFER_5:
1445 case ARIZONA_DSP2_WDMA_BUFFER_6:
1446 case ARIZONA_DSP2_WDMA_BUFFER_7:
1447 case ARIZONA_DSP2_WDMA_BUFFER_8:
1448 case ARIZONA_DSP2_RDMA_BUFFER_1:
1449 case ARIZONA_DSP2_RDMA_BUFFER_2:
1450 case ARIZONA_DSP2_RDMA_BUFFER_3:
1451 case ARIZONA_DSP2_RDMA_BUFFER_4:
1452 case ARIZONA_DSP2_RDMA_BUFFER_5:
1453 case ARIZONA_DSP2_RDMA_BUFFER_6:
1454 case ARIZONA_DSP2_WDMA_CONFIG_1:
1455 case ARIZONA_DSP2_WDMA_CONFIG_2:
1456 case ARIZONA_DSP2_WDMA_OFFSET_1:
1457 case ARIZONA_DSP2_RDMA_CONFIG_1:
1458 case ARIZONA_DSP2_RDMA_OFFSET_1:
1459 case ARIZONA_DSP2_EXTERNAL_START_SELECT_1:
1460 case ARIZONA_DSP2_SCRATCH_0:
1461 case ARIZONA_DSP2_SCRATCH_1:
1462 case ARIZONA_DSP2_SCRATCH_2:
1463 case ARIZONA_DSP2_SCRATCH_3:
1464 case ARIZONA_DSP3_CONTROL_1:
1465 case ARIZONA_DSP3_CLOCKING_1:
1466 case ARIZONA_DSP3_STATUS_1:
1467 case ARIZONA_DSP3_STATUS_2:
1468 case ARIZONA_DSP3_STATUS_3:
1469 case ARIZONA_DSP3_STATUS_4:
1470 case ARIZONA_DSP3_WDMA_BUFFER_1:
1471 case ARIZONA_DSP3_WDMA_BUFFER_2:
1472 case ARIZONA_DSP3_WDMA_BUFFER_3:
1473 case ARIZONA_DSP3_WDMA_BUFFER_4:
1474 case ARIZONA_DSP3_WDMA_BUFFER_5:
1475 case ARIZONA_DSP3_WDMA_BUFFER_6:
1476 case ARIZONA_DSP3_WDMA_BUFFER_7:
1477 case ARIZONA_DSP3_WDMA_BUFFER_8:
1478 case ARIZONA_DSP3_RDMA_BUFFER_1:
1479 case ARIZONA_DSP3_RDMA_BUFFER_2:
1480 case ARIZONA_DSP3_RDMA_BUFFER_3:
1481 case ARIZONA_DSP3_RDMA_BUFFER_4:
1482 case ARIZONA_DSP3_RDMA_BUFFER_5:
1483 case ARIZONA_DSP3_RDMA_BUFFER_6:
1484 case ARIZONA_DSP3_WDMA_CONFIG_1:
1485 case ARIZONA_DSP3_WDMA_CONFIG_2:
1486 case ARIZONA_DSP3_WDMA_OFFSET_1:
1487 case ARIZONA_DSP3_RDMA_CONFIG_1:
1488 case ARIZONA_DSP3_RDMA_OFFSET_1:
1489 case ARIZONA_DSP3_EXTERNAL_START_SELECT_1:
1490 case ARIZONA_DSP3_SCRATCH_0:
1491 case ARIZONA_DSP3_SCRATCH_1:
1492 case ARIZONA_DSP3_SCRATCH_2:
1493 case ARIZONA_DSP3_SCRATCH_3:
1494 return true;
1495 default:
1496 return cs47l24_is_adsp_memory(reg);
1497 }
1498}
1499
1500static bool cs47l24_volatile_register(struct device *dev, unsigned int reg)
1501{
1502 switch (reg) {
1503 case ARIZONA_SOFTWARE_RESET:
1504 case ARIZONA_DEVICE_REVISION:
1505 case ARIZONA_WRITE_SEQUENCER_CTRL_0:
1506 case ARIZONA_WRITE_SEQUENCER_CTRL_1:
1507 case ARIZONA_WRITE_SEQUENCER_CTRL_2:
1508 case ARIZONA_HAPTICS_STATUS:
1509 case ARIZONA_SAMPLE_RATE_1_STATUS:
1510 case ARIZONA_SAMPLE_RATE_2_STATUS:
1511 case ARIZONA_SAMPLE_RATE_3_STATUS:
1512 case ARIZONA_ASYNC_SAMPLE_RATE_1_STATUS:
1513 case ARIZONA_ASYNC_SAMPLE_RATE_2_STATUS:
1514 case ARIZONA_HP_CTRL_1L:
1515 case ARIZONA_HP_CTRL_1R:
1516 case ARIZONA_INPUT_ENABLES_STATUS:
1517 case ARIZONA_OUTPUT_STATUS_1:
1518 case ARIZONA_RAW_OUTPUT_STATUS_1:
1519 case ARIZONA_INTERRUPT_STATUS_1:
1520 case ARIZONA_INTERRUPT_STATUS_2:
1521 case ARIZONA_INTERRUPT_STATUS_3:
1522 case ARIZONA_INTERRUPT_STATUS_4:
1523 case ARIZONA_INTERRUPT_STATUS_5:
1524 case ARIZONA_INTERRUPT_STATUS_6:
1525 case ARIZONA_IRQ2_STATUS_1:
1526 case ARIZONA_IRQ2_STATUS_2:
1527 case ARIZONA_IRQ2_STATUS_3:
1528 case ARIZONA_IRQ2_STATUS_4:
1529 case ARIZONA_IRQ2_STATUS_5:
1530 case ARIZONA_IRQ2_STATUS_6:
1531 case ARIZONA_INTERRUPT_RAW_STATUS_2:
1532 case ARIZONA_INTERRUPT_RAW_STATUS_3:
1533 case ARIZONA_INTERRUPT_RAW_STATUS_4:
1534 case ARIZONA_INTERRUPT_RAW_STATUS_5:
1535 case ARIZONA_INTERRUPT_RAW_STATUS_6:
1536 case ARIZONA_INTERRUPT_RAW_STATUS_7:
1537 case ARIZONA_INTERRUPT_RAW_STATUS_8:
1538 case ARIZONA_INTERRUPT_RAW_STATUS_9:
1539 case ARIZONA_IRQ_PIN_STATUS:
1540 case ARIZONA_FX_CTRL2:
1541 case ARIZONA_ASRC_STATUS:
1542 case ARIZONA_DSP2_STATUS_1:
1543 case ARIZONA_DSP2_STATUS_2:
1544 case ARIZONA_DSP2_STATUS_3:
1545 case ARIZONA_DSP2_STATUS_4:
1546 case ARIZONA_DSP2_WDMA_BUFFER_1:
1547 case ARIZONA_DSP2_WDMA_BUFFER_2:
1548 case ARIZONA_DSP2_WDMA_BUFFER_3:
1549 case ARIZONA_DSP2_WDMA_BUFFER_4:
1550 case ARIZONA_DSP2_WDMA_BUFFER_5:
1551 case ARIZONA_DSP2_WDMA_BUFFER_6:
1552 case ARIZONA_DSP2_WDMA_BUFFER_7:
1553 case ARIZONA_DSP2_WDMA_BUFFER_8:
1554 case ARIZONA_DSP2_RDMA_BUFFER_1:
1555 case ARIZONA_DSP2_RDMA_BUFFER_2:
1556 case ARIZONA_DSP2_RDMA_BUFFER_3:
1557 case ARIZONA_DSP2_RDMA_BUFFER_4:
1558 case ARIZONA_DSP2_RDMA_BUFFER_5:
1559 case ARIZONA_DSP2_RDMA_BUFFER_6:
1560 case ARIZONA_DSP2_WDMA_CONFIG_1:
1561 case ARIZONA_DSP2_WDMA_CONFIG_2:
1562 case ARIZONA_DSP2_WDMA_OFFSET_1:
1563 case ARIZONA_DSP2_RDMA_CONFIG_1:
1564 case ARIZONA_DSP2_RDMA_OFFSET_1:
1565 case ARIZONA_DSP2_EXTERNAL_START_SELECT_1:
1566 case ARIZONA_DSP2_SCRATCH_0:
1567 case ARIZONA_DSP2_SCRATCH_1:
1568 case ARIZONA_DSP2_SCRATCH_2:
1569 case ARIZONA_DSP2_SCRATCH_3:
1570 case ARIZONA_DSP2_CLOCKING_1:
1571 case ARIZONA_DSP3_STATUS_1:
1572 case ARIZONA_DSP3_STATUS_2:
1573 case ARIZONA_DSP3_STATUS_3:
1574 case ARIZONA_DSP3_STATUS_4:
1575 case ARIZONA_DSP3_WDMA_BUFFER_1:
1576 case ARIZONA_DSP3_WDMA_BUFFER_2:
1577 case ARIZONA_DSP3_WDMA_BUFFER_3:
1578 case ARIZONA_DSP3_WDMA_BUFFER_4:
1579 case ARIZONA_DSP3_WDMA_BUFFER_5:
1580 case ARIZONA_DSP3_WDMA_BUFFER_6:
1581 case ARIZONA_DSP3_WDMA_BUFFER_7:
1582 case ARIZONA_DSP3_WDMA_BUFFER_8:
1583 case ARIZONA_DSP3_RDMA_BUFFER_1:
1584 case ARIZONA_DSP3_RDMA_BUFFER_2:
1585 case ARIZONA_DSP3_RDMA_BUFFER_3:
1586 case ARIZONA_DSP3_RDMA_BUFFER_4:
1587 case ARIZONA_DSP3_RDMA_BUFFER_5:
1588 case ARIZONA_DSP3_RDMA_BUFFER_6:
1589 case ARIZONA_DSP3_WDMA_CONFIG_1:
1590 case ARIZONA_DSP3_WDMA_CONFIG_2:
1591 case ARIZONA_DSP3_WDMA_OFFSET_1:
1592 case ARIZONA_DSP3_RDMA_CONFIG_1:
1593 case ARIZONA_DSP3_RDMA_OFFSET_1:
1594 case ARIZONA_DSP3_EXTERNAL_START_SELECT_1:
1595 case ARIZONA_DSP3_SCRATCH_0:
1596 case ARIZONA_DSP3_SCRATCH_1:
1597 case ARIZONA_DSP3_SCRATCH_2:
1598 case ARIZONA_DSP3_SCRATCH_3:
1599 case ARIZONA_DSP3_CLOCKING_1:
1600 return true;
1601 default:
1602 return cs47l24_is_adsp_memory(reg);
1603 }
1604}
1605
1606#define CS47L24_MAX_REGISTER 0x3b3fff
1607
1608const struct regmap_config cs47l24_spi_regmap = {
1609 .reg_bits = 32,
1610 .pad_bits = 16,
1611 .val_bits = 16,
1612 .reg_format_endian = REGMAP_ENDIAN_BIG,
1613 .val_format_endian = REGMAP_ENDIAN_BIG,
1614
1615 .max_register = CS47L24_MAX_REGISTER,
1616 .readable_reg = cs47l24_readable_register,
1617 .volatile_reg = cs47l24_volatile_register,
1618
1619 .cache_type = REGCACHE_RBTREE,
1620 .reg_defaults = cs47l24_reg_default,
1621 .num_reg_defaults = ARRAY_SIZE(cs47l24_reg_default),
1622};
1623EXPORT_SYMBOL_GPL(cs47l24_spi_regmap);
1624
1625