13 #include <linux/module.h>
20 #define WM5102_NUM_AOD_ISR 2
21 #define WM5102_NUM_ISR 5
23 static const struct reg_default wm5102_reva_patch[] = {
62 switch (arizona->
rev) {
86 .irqs = wm5102_aod_irqs,
201 .name =
"wm5102 IRQ",
210 static const struct reg_default wm5102_reg_default[] = {
211 { 0x00000008, 0x0019 },
212 { 0x00000009, 0x0001 },
213 { 0x0000000D, 0x0000 },
214 { 0x00000016, 0x0000 },
215 { 0x00000017, 0x0000 },
216 { 0x00000018, 0x0000 },
217 { 0x0000001A, 0x0000 },
218 { 0x00000020, 0x0000 },
219 { 0x00000021, 0x1000 },
220 { 0x00000022, 0x0000 },
221 { 0x00000023, 0x1000 },
222 { 0x00000024, 0x0000 },
223 { 0x00000030, 0x0000 },
224 { 0x00000031, 0x0100 },
225 { 0x00000032, 0x0100 },
226 { 0x00000040, 0x0000 },
227 { 0x00000041, 0x0000 },
228 { 0x00000061, 0x01FF },
229 { 0x00000062, 0x01FF },
230 { 0x00000063, 0x01FF },
231 { 0x00000064, 0x01FF },
232 { 0x00000068, 0x01FF },
233 { 0x00000069, 0x01FF },
234 { 0x0000006A, 0x01FF },
235 { 0x0000006B, 0x01FF },
236 { 0x0000006C, 0x01FF },
237 { 0x0000006D, 0x01FF },
238 { 0x00000070, 0x0000 },
239 { 0x00000090, 0x0000 },
240 { 0x00000091, 0x7FFF },
241 { 0x00000092, 0x0000 },
242 { 0x00000093, 0x0000 },
243 { 0x00000094, 0x0000 },
244 { 0x00000095, 0x0000 },
245 { 0x00000096, 0x0000 },
246 { 0x00000097, 0x0000 },
247 { 0x00000100, 0x0001 },
248 { 0x00000101, 0x0304 },
249 { 0x00000102, 0x0011 },
250 { 0x00000103, 0x0011 },
251 { 0x00000104, 0x0011 },
252 { 0x00000112, 0x0305 },
253 { 0x00000113, 0x0011 },
254 { 0x00000149, 0x0000 },
255 { 0x0000014A, 0x0000 },
256 { 0x00000152, 0x0000 },
257 { 0x00000153, 0x0000 },
258 { 0x00000154, 0x0000 },
259 { 0x00000155, 0x0000 },
260 { 0x00000156, 0x0000 },
261 { 0x00000171, 0x0000 },
262 { 0x00000172, 0x0008 },
263 { 0x00000173, 0x0018 },
264 { 0x00000174, 0x007D },
265 { 0x00000175, 0x0004 },
266 { 0x00000176, 0x0000 },
267 { 0x00000177, 0x0181 },
268 { 0x00000181, 0x0000 },
269 { 0x00000182, 0x0000 },
270 { 0x00000183, 0x0000 },
271 { 0x00000184, 0x0000 },
272 { 0x00000185, 0x0000 },
273 { 0x00000186, 0x0000 },
274 { 0x00000189, 0x0000 },
275 { 0x0000018A, 0x0004 },
276 { 0x00000191, 0x0000 },
277 { 0x00000192, 0x0008 },
278 { 0x00000193, 0x0018 },
279 { 0x00000194, 0x007D },
280 { 0x00000195, 0x0004 },
281 { 0x00000196, 0x0000 },
282 { 0x00000197, 0x0000 },
283 { 0x000001A1, 0x0000 },
284 { 0x000001A2, 0x0000 },
285 { 0x000001A3, 0x0000 },
286 { 0x000001A4, 0x0000 },
287 { 0x000001A5, 0x0000 },
288 { 0x000001A6, 0x0000 },
289 { 0x000001A9, 0x0000 },
290 { 0x000001AA, 0x0004 },
291 { 0x00000200, 0x0006 },
292 { 0x00000210, 0x00D4 },
293 { 0x00000213, 0x0344 },
294 { 0x00000218, 0x01A6 },
295 { 0x00000219, 0x01A6 },
296 { 0x0000021A, 0x01A6 },
297 { 0x00000293, 0x0000 },
298 { 0x0000029B, 0x0020 },
299 { 0x000002A3, 0x1102 },
300 { 0x000002A4, 0x009F },
301 { 0x000002A5, 0x0000 },
302 { 0x000002C3, 0x0000 },
303 { 0x000002CB, 0x0000 },
304 { 0x000002D3, 0x0000 },
305 { 0x00000300, 0x0000 },
306 { 0x00000308, 0x0000 },
307 { 0x00000309, 0x0022 },
308 { 0x00000310, 0x2080 },
309 { 0x00000311, 0x0180 },
310 { 0x00000312, 0x0000 },
311 { 0x00000314, 0x0080 },
312 { 0x00000315, 0x0180 },
313 { 0x00000316, 0x0000 },
314 { 0x00000318, 0x2080 },
315 { 0x00000319, 0x0180 },
316 { 0x0000031A, 0x0000 },
317 { 0x0000031C, 0x0080 },
318 { 0x0000031D, 0x0180 },
319 { 0x0000031E, 0x0000 },
320 { 0x00000320, 0x2080 },
321 { 0x00000321, 0x0180 },
322 { 0x00000322, 0x0000 },
323 { 0x00000324, 0x0080 },
324 { 0x00000325, 0x0180 },
325 { 0x00000326, 0x0000 },
326 { 0x00000400, 0x0000 },
327 { 0x00000408, 0x0000 },
328 { 0x00000409, 0x0022 },
329 { 0x00000410, 0x0080 },
330 { 0x00000411, 0x0180 },
331 { 0x00000412, 0x0080 },
332 { 0x00000413, 0x0001 },
333 { 0x00000414, 0x0080 },
334 { 0x00000415, 0x0180 },
335 { 0x00000416, 0x0080 },
336 { 0x00000417, 0x0002 },
337 { 0x00000418, 0x0080 },
338 { 0x00000419, 0x0180 },
339 { 0x0000041A, 0x0080 },
340 { 0x0000041B, 0x0004 },
341 { 0x0000041C, 0x0080 },
342 { 0x0000041D, 0x0180 },
343 { 0x0000041E, 0x0080 },
344 { 0x0000041F, 0x0008 },
345 { 0x00000420, 0x0080 },
346 { 0x00000421, 0x0180 },
347 { 0x00000422, 0x0080 },
348 { 0x00000423, 0x0010 },
349 { 0x00000424, 0x0080 },
350 { 0x00000425, 0x0180 },
351 { 0x00000426, 0x0080 },
352 { 0x00000428, 0x0000 },
353 { 0x00000429, 0x0180 },
354 { 0x0000042A, 0x0080 },
355 { 0x0000042B, 0x0040 },
356 { 0x0000042C, 0x0000 },
357 { 0x0000042D, 0x0180 },
358 { 0x0000042E, 0x0080 },
359 { 0x0000042F, 0x0080 },
360 { 0x00000430, 0x0000 },
361 { 0x00000431, 0x0180 },
362 { 0x00000432, 0x0080 },
363 { 0x00000433, 0x0100 },
364 { 0x00000434, 0x0000 },
365 { 0x00000435, 0x0180 },
366 { 0x00000436, 0x0080 },
367 { 0x00000437, 0x0200 },
368 { 0x00000450, 0x0000 },
369 { 0x00000458, 0x0001 },
370 { 0x00000490, 0x0069 },
371 { 0x00000491, 0x0000 },
372 { 0x000004DC, 0x0000 },
373 { 0x000004DD, 0x0000 },
374 { 0x000004DE, 0x0000 },
375 { 0x000004DF, 0x0000 },
376 { 0x00000500, 0x000C },
377 { 0x00000501, 0x0008 },
378 { 0x00000502, 0x0000 },
379 { 0x00000503, 0x0000 },
380 { 0x00000504, 0x0000 },
381 { 0x00000505, 0x0040 },
382 { 0x00000506, 0x0040 },
383 { 0x00000507, 0x1818 },
384 { 0x00000508, 0x1818 },
385 { 0x00000509, 0x0000 },
386 { 0x0000050A, 0x0001 },
387 { 0x0000050B, 0x0002 },
388 { 0x0000050C, 0x0003 },
389 { 0x0000050D, 0x0004 },
390 { 0x0000050E, 0x0005 },
391 { 0x0000050F, 0x0006 },
392 { 0x00000510, 0x0007 },
393 { 0x00000511, 0x0000 },
394 { 0x00000512, 0x0001 },
395 { 0x00000513, 0x0002 },
396 { 0x00000514, 0x0003 },
397 { 0x00000515, 0x0004 },
398 { 0x00000516, 0x0005 },
399 { 0x00000517, 0x0006 },
400 { 0x00000518, 0x0007 },
401 { 0x00000519, 0x0000 },
402 { 0x0000051A, 0x0000 },
403 { 0x0000051B, 0x0000 },
404 { 0x00000540, 0x000C },
405 { 0x00000541, 0x0008 },
406 { 0x00000542, 0x0000 },
407 { 0x00000543, 0x0000 },
408 { 0x00000544, 0x0000 },
409 { 0x00000545, 0x0040 },
410 { 0x00000546, 0x0040 },
411 { 0x00000547, 0x1818 },
412 { 0x00000548, 0x1818 },
413 { 0x00000549, 0x0000 },
414 { 0x0000054A, 0x0001 },
415 { 0x00000551, 0x0000 },
416 { 0x00000552, 0x0001 },
417 { 0x00000559, 0x0000 },
418 { 0x0000055A, 0x0000 },
419 { 0x0000055B, 0x0000 },
420 { 0x00000580, 0x000C },
421 { 0x00000581, 0x0008 },
422 { 0x00000582, 0x0000 },
423 { 0x00000583, 0x0000 },
424 { 0x00000584, 0x0000 },
425 { 0x00000585, 0x0040 },
426 { 0x00000586, 0x0040 },
427 { 0x00000587, 0x1818 },
428 { 0x00000588, 0x1818 },
429 { 0x00000589, 0x0000 },
430 { 0x0000058A, 0x0001 },
431 { 0x00000591, 0x0000 },
432 { 0x00000592, 0x0001 },
433 { 0x00000599, 0x0000 },
434 { 0x0000059A, 0x0000 },
435 { 0x0000059B, 0x0000 },
436 { 0x000005E3, 0x0004 },
437 { 0x000005E5, 0x0000 },
438 { 0x000005E6, 0x0000 },
439 { 0x000005E7, 0x0000 },
440 { 0x000005E8, 0x0000 },
441 { 0x000005E9, 0x0000 },
442 { 0x000005EA, 0x0000 },
443 { 0x000005EB, 0x0000 },
444 { 0x000005EC, 0x0000 },
445 { 0x000005F5, 0x0000 },
446 { 0x000005F6, 0x0000 },
447 { 0x00000640, 0x0000 },
448 { 0x00000641, 0x0080 },
449 { 0x00000642, 0x0000 },
450 { 0x00000643, 0x0080 },
451 { 0x00000644, 0x0000 },
452 { 0x00000645, 0x0080 },
453 { 0x00000646, 0x0000 },
454 { 0x00000647, 0x0080 },
455 { 0x00000648, 0x0000 },
456 { 0x00000649, 0x0080 },
457 { 0x0000064A, 0x0000 },
458 { 0x0000064B, 0x0080 },
459 { 0x0000064C, 0x0000 },
460 { 0x0000064D, 0x0080 },
461 { 0x0000064E, 0x0000 },
462 { 0x0000064F, 0x0080 },
463 { 0x00000660, 0x0000 },
464 { 0x00000661, 0x0080 },
465 { 0x00000662, 0x0000 },
466 { 0x00000663, 0x0080 },
467 { 0x00000664, 0x0000 },
468 { 0x00000665, 0x0080 },
469 { 0x00000666, 0x0000 },
470 { 0x00000667, 0x0080 },
471 { 0x00000668, 0x0000 },
472 { 0x00000669, 0x0080 },
473 { 0x0000066A, 0x0000 },
474 { 0x0000066B, 0x0080 },
475 { 0x0000066C, 0x0000 },
476 { 0x0000066D, 0x0080 },
477 { 0x0000066E, 0x0000 },
478 { 0x0000066F, 0x0080 },
479 { 0x00000680, 0x0000 },
480 { 0x00000681, 0x0080 },
481 { 0x00000682, 0x0000 },
482 { 0x00000683, 0x0080 },
483 { 0x00000684, 0x0000 },
484 { 0x00000685, 0x0080 },
485 { 0x00000686, 0x0000 },
486 { 0x00000687, 0x0080 },
487 { 0x00000688, 0x0000 },
488 { 0x00000689, 0x0080 },
489 { 0x0000068A, 0x0000 },
490 { 0x0000068B, 0x0080 },
491 { 0x0000068C, 0x0000 },
492 { 0x0000068D, 0x0080 },
493 { 0x0000068E, 0x0000 },
494 { 0x0000068F, 0x0080 },
495 { 0x00000690, 0x0000 },
496 { 0x00000691, 0x0080 },
497 { 0x00000692, 0x0000 },
498 { 0x00000693, 0x0080 },
499 { 0x00000694, 0x0000 },
500 { 0x00000695, 0x0080 },
501 { 0x00000696, 0x0000 },
502 { 0x00000697, 0x0080 },
503 { 0x00000698, 0x0000 },
504 { 0x00000699, 0x0080 },
505 { 0x0000069A, 0x0000 },
506 { 0x0000069B, 0x0080 },
507 { 0x0000069C, 0x0000 },
508 { 0x0000069D, 0x0080 },
509 { 0x0000069E, 0x0000 },
510 { 0x0000069F, 0x0080 },
511 { 0x000006A0, 0x0000 },
512 { 0x000006A1, 0x0080 },
513 { 0x000006A2, 0x0000 },
514 { 0x000006A3, 0x0080 },
515 { 0x000006A4, 0x0000 },
516 { 0x000006A5, 0x0080 },
517 { 0x000006A6, 0x0000 },
518 { 0x000006A7, 0x0080 },
519 { 0x000006B0, 0x0000 },
520 { 0x000006B1, 0x0080 },
521 { 0x000006B2, 0x0000 },
522 { 0x000006B3, 0x0080 },
523 { 0x000006B4, 0x0000 },
524 { 0x000006B5, 0x0080 },
525 { 0x000006B6, 0x0000 },
526 { 0x000006B7, 0x0080 },
527 { 0x000006B8, 0x0000 },
528 { 0x000006B9, 0x0080 },
529 { 0x000006BA, 0x0000 },
530 { 0x000006BB, 0x0080 },
531 { 0x000006BC, 0x0000 },
532 { 0x000006BD, 0x0080 },
533 { 0x000006BE, 0x0000 },
534 { 0x000006BF, 0x0080 },
535 { 0x000006C0, 0x0000 },
536 { 0x000006C1, 0x0080 },
537 { 0x000006C2, 0x0000 },
538 { 0x000006C3, 0x0080 },
539 { 0x000006C4, 0x0000 },
540 { 0x000006C5, 0x0080 },
541 { 0x000006C6, 0x0000 },
542 { 0x000006C7, 0x0080 },
543 { 0x000006C8, 0x0000 },
544 { 0x000006C9, 0x0080 },
545 { 0x000006CA, 0x0000 },
546 { 0x000006CB, 0x0080 },
547 { 0x000006CC, 0x0000 },
548 { 0x000006CD, 0x0080 },
549 { 0x000006CE, 0x0000 },
550 { 0x000006CF, 0x0080 },
551 { 0x00000700, 0x0000 },
552 { 0x00000701, 0x0080 },
553 { 0x00000702, 0x0000 },
554 { 0x00000703, 0x0080 },
555 { 0x00000704, 0x0000 },
556 { 0x00000705, 0x0080 },
557 { 0x00000706, 0x0000 },
558 { 0x00000707, 0x0080 },
559 { 0x00000708, 0x0000 },
560 { 0x00000709, 0x0080 },
561 { 0x0000070A, 0x0000 },
562 { 0x0000070B, 0x0080 },
563 { 0x0000070C, 0x0000 },
564 { 0x0000070D, 0x0080 },
565 { 0x0000070E, 0x0000 },
566 { 0x0000070F, 0x0080 },
567 { 0x00000710, 0x0000 },
568 { 0x00000711, 0x0080 },
569 { 0x00000712, 0x0000 },
570 { 0x00000713, 0x0080 },
571 { 0x00000714, 0x0000 },
572 { 0x00000715, 0x0080 },
573 { 0x00000716, 0x0000 },
574 { 0x00000717, 0x0080 },
575 { 0x00000718, 0x0000 },
576 { 0x00000719, 0x0080 },
577 { 0x0000071A, 0x0000 },
578 { 0x0000071B, 0x0080 },
579 { 0x0000071C, 0x0000 },
580 { 0x0000071D, 0x0080 },
581 { 0x0000071E, 0x0000 },
582 { 0x0000071F, 0x0080 },
583 { 0x00000720, 0x0000 },
584 { 0x00000721, 0x0080 },
585 { 0x00000722, 0x0000 },
586 { 0x00000723, 0x0080 },
587 { 0x00000724, 0x0000 },
588 { 0x00000725, 0x0080 },
589 { 0x00000726, 0x0000 },
590 { 0x00000727, 0x0080 },
591 { 0x00000728, 0x0000 },
592 { 0x00000729, 0x0080 },
593 { 0x0000072A, 0x0000 },
594 { 0x0000072B, 0x0080 },
595 { 0x0000072C, 0x0000 },
596 { 0x0000072D, 0x0080 },
597 { 0x0000072E, 0x0000 },
598 { 0x0000072F, 0x0080 },
599 { 0x00000730, 0x0000 },
600 { 0x00000731, 0x0080 },
601 { 0x00000732, 0x0000 },
602 { 0x00000733, 0x0080 },
603 { 0x00000734, 0x0000 },
604 { 0x00000735, 0x0080 },
605 { 0x00000736, 0x0000 },
606 { 0x00000737, 0x0080 },
607 { 0x00000738, 0x0000 },
608 { 0x00000739, 0x0080 },
609 { 0x0000073A, 0x0000 },
610 { 0x0000073B, 0x0080 },
611 { 0x0000073C, 0x0000 },
612 { 0x0000073D, 0x0080 },
613 { 0x0000073E, 0x0000 },
614 { 0x0000073F, 0x0080 },
615 { 0x00000740, 0x0000 },
616 { 0x00000741, 0x0080 },
617 { 0x00000742, 0x0000 },
618 { 0x00000743, 0x0080 },
619 { 0x00000744, 0x0000 },
620 { 0x00000745, 0x0080 },
621 { 0x00000746, 0x0000 },
622 { 0x00000747, 0x0080 },
623 { 0x00000748, 0x0000 },
624 { 0x00000749, 0x0080 },
625 { 0x0000074A, 0x0000 },
626 { 0x0000074B, 0x0080 },
627 { 0x0000074C, 0x0000 },
628 { 0x0000074D, 0x0080 },
629 { 0x0000074E, 0x0000 },
630 { 0x0000074F, 0x0080 },
631 { 0x00000780, 0x0000 },
632 { 0x00000781, 0x0080 },
633 { 0x00000782, 0x0000 },
634 { 0x00000783, 0x0080 },
635 { 0x00000784, 0x0000 },
636 { 0x00000785, 0x0080 },
637 { 0x00000786, 0x0000 },
638 { 0x00000787, 0x0080 },
639 { 0x00000788, 0x0000 },
640 { 0x00000789, 0x0080 },
641 { 0x0000078A, 0x0000 },
642 { 0x0000078B, 0x0080 },
643 { 0x0000078C, 0x0000 },
644 { 0x0000078D, 0x0080 },
645 { 0x0000078E, 0x0000 },
646 { 0x0000078F, 0x0080 },
647 { 0x000007C0, 0x0000 },
648 { 0x000007C1, 0x0080 },
649 { 0x000007C2, 0x0000 },
650 { 0x000007C3, 0x0080 },
651 { 0x000007C4, 0x0000 },
652 { 0x000007C5, 0x0080 },
653 { 0x000007C6, 0x0000 },
654 { 0x000007C7, 0x0080 },
655 { 0x000007C8, 0x0000 },
656 { 0x000007C9, 0x0080 },
657 { 0x000007CA, 0x0000 },
658 { 0x000007CB, 0x0080 },
659 { 0x000007CC, 0x0000 },
660 { 0x000007CD, 0x0080 },
661 { 0x000007CE, 0x0000 },
662 { 0x000007CF, 0x0080 },
663 { 0x000007D0, 0x0000 },
664 { 0x000007D1, 0x0080 },
665 { 0x000007D2, 0x0000 },
666 { 0x000007D3, 0x0080 },
667 { 0x000007D4, 0x0000 },
668 { 0x000007D5, 0x0080 },
669 { 0x000007D6, 0x0000 },
670 { 0x000007D7, 0x0080 },
671 { 0x000007D8, 0x0000 },
672 { 0x000007D9, 0x0080 },
673 { 0x000007DA, 0x0000 },
674 { 0x000007DB, 0x0080 },
675 { 0x000007DC, 0x0000 },
676 { 0x000007DD, 0x0080 },
677 { 0x000007DE, 0x0000 },
678 { 0x000007DF, 0x0080 },
679 { 0x000007E0, 0x0000 },
680 { 0x000007E1, 0x0080 },
681 { 0x000007E2, 0x0000 },
682 { 0x000007E3, 0x0080 },
683 { 0x000007E4, 0x0000 },
684 { 0x000007E5, 0x0080 },
685 { 0x000007E6, 0x0000 },
686 { 0x000007E7, 0x0080 },
687 { 0x000007E8, 0x0000 },
688 { 0x000007E9, 0x0080 },
689 { 0x000007EA, 0x0000 },
690 { 0x000007EB, 0x0080 },
691 { 0x000007EC, 0x0000 },
692 { 0x000007ED, 0x0080 },
693 { 0x000007EE, 0x0000 },
694 { 0x000007EF, 0x0080 },
695 { 0x000007F0, 0x0000 },
696 { 0x000007F1, 0x0080 },
697 { 0x000007F2, 0x0000 },
698 { 0x000007F3, 0x0080 },
699 { 0x000007F4, 0x0000 },
700 { 0x000007F5, 0x0080 },
701 { 0x000007F6, 0x0000 },
702 { 0x000007F7, 0x0080 },
703 { 0x000007F8, 0x0000 },
704 { 0x000007F9, 0x0080 },
705 { 0x000007FA, 0x0000 },
706 { 0x000007FB, 0x0080 },
707 { 0x000007FC, 0x0000 },
708 { 0x000007FD, 0x0080 },
709 { 0x000007FE, 0x0000 },
710 { 0x000007FF, 0x0080 },
711 { 0x00000880, 0x0000 },
712 { 0x00000881, 0x0080 },
713 { 0x00000882, 0x0000 },
714 { 0x00000883, 0x0080 },
715 { 0x00000884, 0x0000 },
716 { 0x00000885, 0x0080 },
717 { 0x00000886, 0x0000 },
718 { 0x00000887, 0x0080 },
719 { 0x00000888, 0x0000 },
720 { 0x00000889, 0x0080 },
721 { 0x0000088A, 0x0000 },
722 { 0x0000088B, 0x0080 },
723 { 0x0000088C, 0x0000 },
724 { 0x0000088D, 0x0080 },
725 { 0x0000088E, 0x0000 },
726 { 0x0000088F, 0x0080 },
727 { 0x00000890, 0x0000 },
728 { 0x00000891, 0x0080 },
729 { 0x00000892, 0x0000 },
730 { 0x00000893, 0x0080 },
731 { 0x00000894, 0x0000 },
732 { 0x00000895, 0x0080 },
733 { 0x00000896, 0x0000 },
734 { 0x00000897, 0x0080 },
735 { 0x00000898, 0x0000 },
736 { 0x00000899, 0x0080 },
737 { 0x0000089A, 0x0000 },
738 { 0x0000089B, 0x0080 },
739 { 0x0000089C, 0x0000 },
740 { 0x0000089D, 0x0080 },
741 { 0x0000089E, 0x0000 },
742 { 0x0000089F, 0x0080 },
743 { 0x000008C0, 0x0000 },
744 { 0x000008C1, 0x0080 },
745 { 0x000008C2, 0x0000 },
746 { 0x000008C3, 0x0080 },
747 { 0x000008C4, 0x0000 },
748 { 0x000008C5, 0x0080 },
749 { 0x000008C6, 0x0000 },
750 { 0x000008C7, 0x0080 },
751 { 0x000008C8, 0x0000 },
752 { 0x000008C9, 0x0080 },
753 { 0x000008CA, 0x0000 },
754 { 0x000008CB, 0x0080 },
755 { 0x000008CC, 0x0000 },
756 { 0x000008CD, 0x0080 },
757 { 0x000008CE, 0x0000 },
758 { 0x000008CF, 0x0080 },
759 { 0x000008D0, 0x0000 },
760 { 0x000008D1, 0x0080 },
761 { 0x000008D2, 0x0000 },
762 { 0x000008D3, 0x0080 },
763 { 0x000008D4, 0x0000 },
764 { 0x000008D5, 0x0080 },
765 { 0x000008D6, 0x0000 },
766 { 0x000008D7, 0x0080 },
767 { 0x000008D8, 0x0000 },
768 { 0x000008D9, 0x0080 },
769 { 0x000008DA, 0x0000 },
770 { 0x000008DB, 0x0080 },
771 { 0x000008DC, 0x0000 },
772 { 0x000008DD, 0x0080 },
773 { 0x000008DE, 0x0000 },
774 { 0x000008DF, 0x0080 },
775 { 0x00000900, 0x0000 },
776 { 0x00000901, 0x0080 },
777 { 0x00000902, 0x0000 },
778 { 0x00000903, 0x0080 },
779 { 0x00000904, 0x0000 },
780 { 0x00000905, 0x0080 },
781 { 0x00000906, 0x0000 },
782 { 0x00000907, 0x0080 },
783 { 0x00000908, 0x0000 },
784 { 0x00000909, 0x0080 },
785 { 0x0000090A, 0x0000 },
786 { 0x0000090B, 0x0080 },
787 { 0x0000090C, 0x0000 },
788 { 0x0000090D, 0x0080 },
789 { 0x0000090E, 0x0000 },
790 { 0x0000090F, 0x0080 },
791 { 0x00000910, 0x0000 },
792 { 0x00000911, 0x0080 },
793 { 0x00000912, 0x0000 },
794 { 0x00000913, 0x0080 },
795 { 0x00000914, 0x0000 },
796 { 0x00000915, 0x0080 },
797 { 0x00000916, 0x0000 },
798 { 0x00000917, 0x0080 },
799 { 0x00000918, 0x0000 },
800 { 0x00000919, 0x0080 },
801 { 0x0000091A, 0x0000 },
802 { 0x0000091B, 0x0080 },
803 { 0x0000091C, 0x0000 },
804 { 0x0000091D, 0x0080 },
805 { 0x0000091E, 0x0000 },
806 { 0x0000091F, 0x0080 },
807 { 0x00000940, 0x0000 },
808 { 0x00000941, 0x0080 },
809 { 0x00000942, 0x0000 },
810 { 0x00000943, 0x0080 },
811 { 0x00000944, 0x0000 },
812 { 0x00000945, 0x0080 },
813 { 0x00000946, 0x0000 },
814 { 0x00000947, 0x0080 },
815 { 0x00000948, 0x0000 },
816 { 0x00000949, 0x0080 },
817 { 0x0000094A, 0x0000 },
818 { 0x0000094B, 0x0080 },
819 { 0x0000094C, 0x0000 },
820 { 0x0000094D, 0x0080 },
821 { 0x0000094E, 0x0000 },
822 { 0x0000094F, 0x0080 },
823 { 0x00000950, 0x0000 },
824 { 0x00000958, 0x0000 },
825 { 0x00000960, 0x0000 },
826 { 0x00000968, 0x0000 },
827 { 0x00000970, 0x0000 },
828 { 0x00000978, 0x0000 },
829 { 0x00000A80, 0x0000 },
830 { 0x00000A88, 0x0000 },
831 { 0x00000A90, 0x0000 },
832 { 0x00000A98, 0x0000 },
833 { 0x00000B00, 0x0000 },
834 { 0x00000B08, 0x0000 },
835 { 0x00000B20, 0x0000 },
836 { 0x00000B28, 0x0000 },
837 { 0x00000B40, 0x0000 },
838 { 0x00000B48, 0x0000 },
839 { 0x00000B60, 0x0000 },
840 { 0x00000B68, 0x0000 },
841 { 0x00000C00, 0xA101 },
842 { 0x00000C01, 0xA101 },
843 { 0x00000C02, 0xA101 },
844 { 0x00000C03, 0xA101 },
845 { 0x00000C04, 0xA101 },
846 { 0x00000C0F, 0x0400 },
847 { 0x00000C10, 0x1000 },
848 { 0x00000C20, 0x8002 },
849 { 0x00000C21, 0x8001 },
850 { 0x00000C22, 0x0000 },
851 { 0x00000C23, 0x0000 },
852 { 0x00000C24, 0x0000 },
853 { 0x00000C25, 0x0000 },
854 { 0x00000D08, 0xFFFF },
855 { 0x00000D09, 0xFFFF },
856 { 0x00000D0A, 0xFFFF },
857 { 0x00000D0B, 0xFFFF },
858 { 0x00000D0C, 0xFEFF },
859 { 0x00000D0F, 0x0000 },
860 { 0x00000D18, 0xFFFF },
861 { 0x00000D19, 0xFFFF },
862 { 0x00000D1A, 0xFFFF },
863 { 0x00000D1B, 0xFFFF },
864 { 0x00000D1C, 0xFFFF },
865 { 0x00000D1F, 0x0000 },
866 { 0x00000D41, 0x0000 },
867 { 0x00000D53, 0xFFFF },
868 { 0x00000D54, 0xFFFF },
869 { 0x00000D56, 0x0000 },
870 { 0x00000E00, 0x0000 },
871 { 0x00000E01, 0x0000 },
872 { 0x00000E10, 0x6318 },
873 { 0x00000E11, 0x6300 },
874 { 0x00000E12, 0x0FC8 },
875 { 0x00000E13, 0x03FE },
876 { 0x00000E14, 0x00E0 },
877 { 0x00000E15, 0x1EC4 },
878 { 0x00000E16, 0xF136 },
879 { 0x00000E17, 0x0409 },
880 { 0x00000E18, 0x04CC },
881 { 0x00000E19, 0x1C9B },
882 { 0x00000E1A, 0xF337 },
883 { 0x00000E1B, 0x040B },
884 { 0x00000E1C, 0x0CBB },
885 { 0x00000E1D, 0x16F8 },
886 { 0x00000E1E, 0xF7D9 },
887 { 0x00000E1F, 0x040A },
888 { 0x00000E20, 0x1F14 },
889 { 0x00000E21, 0x058C },
890 { 0x00000E22, 0x0563 },
891 { 0x00000E23, 0x4000 },
892 { 0x00000E24, 0x0B75 },
893 { 0x00000E26, 0x6318 },
894 { 0x00000E27, 0x6300 },
895 { 0x00000E28, 0x0FC8 },
896 { 0x00000E29, 0x03FE },
897 { 0x00000E2A, 0x00E0 },
898 { 0x00000E2B, 0x1EC4 },
899 { 0x00000E2C, 0xF136 },
900 { 0x00000E2D, 0x0409 },
901 { 0x00000E2E, 0x04CC },
902 { 0x00000E2F, 0x1C9B },
903 { 0x00000E30, 0xF337 },
904 { 0x00000E31, 0x040B },
905 { 0x00000E32, 0x0CBB },
906 { 0x00000E33, 0x16F8 },
907 { 0x00000E34, 0xF7D9 },
908 { 0x00000E35, 0x040A },
909 { 0x00000E36, 0x1F14 },
910 { 0x00000E37, 0x058C },
911 { 0x00000E38, 0x0563 },
912 { 0x00000E39, 0x4000 },
913 { 0x00000E3A, 0x0B75 },
914 { 0x00000E3C, 0x6318 },
915 { 0x00000E3D, 0x6300 },
916 { 0x00000E3E, 0x0FC8 },
917 { 0x00000E3F, 0x03FE },
918 { 0x00000E40, 0x00E0 },
919 { 0x00000E41, 0x1EC4 },
920 { 0x00000E42, 0xF136 },
921 { 0x00000E43, 0x0409 },
922 { 0x00000E44, 0x04CC },
923 { 0x00000E45, 0x1C9B },
924 { 0x00000E46, 0xF337 },
925 { 0x00000E47, 0x040B },
926 { 0x00000E48, 0x0CBB },
927 { 0x00000E49, 0x16F8 },
928 { 0x00000E4A, 0xF7D9 },
929 { 0x00000E4B, 0x040A },
930 { 0x00000E4C, 0x1F14 },
931 { 0x00000E4D, 0x058C },
932 { 0x00000E4E, 0x0563 },
933 { 0x00000E4F, 0x4000 },
934 { 0x00000E50, 0x0B75 },
935 { 0x00000E52, 0x6318 },
936 { 0x00000E53, 0x6300 },
937 { 0x00000E54, 0x0FC8 },
938 { 0x00000E55, 0x03FE },
939 { 0x00000E56, 0x00E0 },
940 { 0x00000E57, 0x1EC4 },
941 { 0x00000E58, 0xF136 },
942 { 0x00000E59, 0x0409 },
943 { 0x00000E5A, 0x04CC },
944 { 0x00000E5B, 0x1C9B },
945 { 0x00000E5C, 0xF337 },
946 { 0x00000E5D, 0x040B },
947 { 0x00000E5E, 0x0CBB },
948 { 0x00000E5F, 0x16F8 },
949 { 0x00000E60, 0xF7D9 },
950 { 0x00000E61, 0x040A },
951 { 0x00000E62, 0x1F14 },
952 { 0x00000E63, 0x058C },
953 { 0x00000E64, 0x0563 },
954 { 0x00000E65, 0x4000 },
955 { 0x00000E66, 0x0B75 },
956 { 0x00000E80, 0x0018 },
957 { 0x00000E81, 0x0933 },
958 { 0x00000E82, 0x0018 },
959 { 0x00000E83, 0x0000 },
960 { 0x00000E84, 0x0000 },
961 { 0x00000E89, 0x0018 },
962 { 0x00000E8A, 0x0933 },
963 { 0x00000E8B, 0x0018 },
964 { 0x00000E8C, 0x0000 },
965 { 0x00000E8D, 0x0000 },
966 { 0x00000EC0, 0x0000 },
967 { 0x00000EC1, 0x0000 },
968 { 0x00000EC4, 0x0000 },
969 { 0x00000EC5, 0x0000 },
970 { 0x00000EC8, 0x0000 },
971 { 0x00000EC9, 0x0000 },
972 { 0x00000ECC, 0x0000 },
973 { 0x00000ECD, 0x0000 },
974 { 0x00000EE0, 0x0000 },
975 { 0x00000EE2, 0x0000 },
976 { 0x00000EE3, 0x4000 },
977 { 0x00000EF0, 0x0000 },
978 { 0x00000EF1, 0x0000 },
979 { 0x00000EF2, 0x0000 },
980 { 0x00000EF3, 0x0000 },
981 { 0x00000EF4, 0x0000 },
982 { 0x00000EF5, 0x0000 },
983 { 0x00000EF6, 0x0000 },
984 { 0x00000EF7, 0x0000 },
985 { 0x00000EF8, 0x0000 },
986 { 0x00001100, 0x0010 },
987 { 0x00001101, 0x0000 },
990 static bool wm5102_readable_register(
struct device *
dev,
unsigned int reg)
1811 static bool wm5102_volatile_register(
struct device *dev,
unsigned int reg)
1861 .readable_reg = wm5102_readable_register,
1862 .volatile_reg = wm5102_volatile_register,
1865 .reg_defaults = wm5102_reg_default,
1866 .num_reg_defaults =
ARRAY_SIZE(wm5102_reg_default),
1875 .readable_reg = wm5102_readable_register,
1876 .volatile_reg = wm5102_volatile_register,
1879 .reg_defaults = wm5102_reg_default,
1880 .num_reg_defaults =
ARRAY_SIZE(wm5102_reg_default),