diff options
author | Charles Keepax <ckeepax@opensource.wolfsonmicro.com> | 2014-07-15 06:21:48 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-07-28 06:01:42 -0400 |
commit | 3215501fc90e109c7b854423e02eb05bc638b555 (patch) | |
tree | 60d49ff4ca35532f71a5b1b99030dab7ee42be53 /drivers/mfd | |
parent | c0fe2c5b3f730e3d56d37f7b731a5b1191a4e8bf (diff) |
mfd: wm5110: Add new interrupt register definitions
Newer versions of the IP have a lot of new interrupts and move several
existing interrupts. This patch adds the register definitions and regmap
hookup for these interrupts.
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd')
-rw-r--r-- | drivers/mfd/arizona-irq.c | 10 | ||||
-rw-r--r-- | drivers/mfd/arizona.h | 1 | ||||
-rw-r--r-- | drivers/mfd/wm5110-tables.c | 213 |
3 files changed, 223 insertions, 1 deletions
diff --git a/drivers/mfd/arizona-irq.c b/drivers/mfd/arizona-irq.c index 17102f589100..e780bc40165d 100644 --- a/drivers/mfd/arizona-irq.c +++ b/drivers/mfd/arizona-irq.c | |||
@@ -203,7 +203,15 @@ int arizona_irq_init(struct arizona *arizona) | |||
203 | #ifdef CONFIG_MFD_WM5110 | 203 | #ifdef CONFIG_MFD_WM5110 |
204 | case WM5110: | 204 | case WM5110: |
205 | aod = &wm5110_aod; | 205 | aod = &wm5110_aod; |
206 | irq = &wm5110_irq; | 206 | |
207 | switch (arizona->rev) { | ||
208 | case 0 ... 2: | ||
209 | irq = &wm5110_irq; | ||
210 | break; | ||
211 | default: | ||
212 | irq = &wm5110_revd_irq; | ||
213 | break; | ||
214 | } | ||
207 | 215 | ||
208 | ctrlif_error = false; | 216 | ctrlif_error = false; |
209 | break; | 217 | break; |
diff --git a/drivers/mfd/arizona.h b/drivers/mfd/arizona.h index 2951498ab9a1..fbe2843271c5 100644 --- a/drivers/mfd/arizona.h +++ b/drivers/mfd/arizona.h | |||
@@ -36,6 +36,7 @@ extern const struct regmap_irq_chip wm5102_irq; | |||
36 | 36 | ||
37 | extern const struct regmap_irq_chip wm5110_aod; | 37 | extern const struct regmap_irq_chip wm5110_aod; |
38 | extern const struct regmap_irq_chip wm5110_irq; | 38 | extern const struct regmap_irq_chip wm5110_irq; |
39 | extern const struct regmap_irq_chip wm5110_revd_irq; | ||
39 | 40 | ||
40 | extern const struct regmap_irq_chip wm8997_aod; | 41 | extern const struct regmap_irq_chip wm8997_aod; |
41 | extern const struct regmap_irq_chip wm8997_irq; | 42 | extern const struct regmap_irq_chip wm8997_irq; |
diff --git a/drivers/mfd/wm5110-tables.c b/drivers/mfd/wm5110-tables.c index 2822768f2df1..9b98ee559188 100644 --- a/drivers/mfd/wm5110-tables.c +++ b/drivers/mfd/wm5110-tables.c | |||
@@ -457,6 +457,209 @@ const struct regmap_irq_chip wm5110_irq = { | |||
457 | }; | 457 | }; |
458 | EXPORT_SYMBOL_GPL(wm5110_irq); | 458 | EXPORT_SYMBOL_GPL(wm5110_irq); |
459 | 459 | ||
460 | static const struct regmap_irq wm5110_revd_irqs[ARIZONA_NUM_IRQ] = { | ||
461 | [ARIZONA_IRQ_GP4] = { .reg_offset = 0, .mask = ARIZONA_GP4_EINT1 }, | ||
462 | [ARIZONA_IRQ_GP3] = { .reg_offset = 0, .mask = ARIZONA_GP3_EINT1 }, | ||
463 | [ARIZONA_IRQ_GP2] = { .reg_offset = 0, .mask = ARIZONA_GP2_EINT1 }, | ||
464 | [ARIZONA_IRQ_GP1] = { .reg_offset = 0, .mask = ARIZONA_GP1_EINT1 }, | ||
465 | |||
466 | [ARIZONA_IRQ_DSP4_RAM_RDY] = { | ||
467 | .reg_offset = 1, .mask = ARIZONA_DSP4_RAM_RDY_EINT1 | ||
468 | }, | ||
469 | [ARIZONA_IRQ_DSP3_RAM_RDY] = { | ||
470 | .reg_offset = 1, .mask = ARIZONA_DSP3_RAM_RDY_EINT1 | ||
471 | }, | ||
472 | [ARIZONA_IRQ_DSP2_RAM_RDY] = { | ||
473 | .reg_offset = 1, .mask = ARIZONA_DSP2_RAM_RDY_EINT1 | ||
474 | }, | ||
475 | [ARIZONA_IRQ_DSP1_RAM_RDY] = { | ||
476 | .reg_offset = 1, .mask = ARIZONA_DSP1_RAM_RDY_EINT1 | ||
477 | }, | ||
478 | [ARIZONA_IRQ_DSP_IRQ8] = { | ||
479 | .reg_offset = 1, .mask = ARIZONA_DSP_IRQ8_EINT1 | ||
480 | }, | ||
481 | [ARIZONA_IRQ_DSP_IRQ7] = { | ||
482 | .reg_offset = 1, .mask = ARIZONA_DSP_IRQ7_EINT1 | ||
483 | }, | ||
484 | [ARIZONA_IRQ_DSP_IRQ6] = { | ||
485 | .reg_offset = 1, .mask = ARIZONA_DSP_IRQ6_EINT1 | ||
486 | }, | ||
487 | [ARIZONA_IRQ_DSP_IRQ5] = { | ||
488 | .reg_offset = 1, .mask = ARIZONA_DSP_IRQ5_EINT1 | ||
489 | }, | ||
490 | [ARIZONA_IRQ_DSP_IRQ4] = { | ||
491 | .reg_offset = 1, .mask = ARIZONA_DSP_IRQ4_EINT1 | ||
492 | }, | ||
493 | [ARIZONA_IRQ_DSP_IRQ3] = { | ||
494 | .reg_offset = 1, .mask = ARIZONA_DSP_IRQ3_EINT1 | ||
495 | }, | ||
496 | [ARIZONA_IRQ_DSP_IRQ2] = { | ||
497 | .reg_offset = 1, .mask = ARIZONA_DSP_IRQ2_EINT1 | ||
498 | }, | ||
499 | [ARIZONA_IRQ_DSP_IRQ1] = { | ||
500 | .reg_offset = 1, .mask = ARIZONA_DSP_IRQ1_EINT1 | ||
501 | }, | ||
502 | |||
503 | [ARIZONA_IRQ_SPK_OVERHEAT_WARN] = { | ||
504 | .reg_offset = 2, .mask = ARIZONA_SPK_OVERHEAT_WARN_EINT1 | ||
505 | }, | ||
506 | [ARIZONA_IRQ_SPK_OVERHEAT] = { | ||
507 | .reg_offset = 2, .mask = ARIZONA_SPK_OVERHEAT_EINT1 | ||
508 | }, | ||
509 | [ARIZONA_IRQ_HPDET] = { | ||
510 | .reg_offset = 2, .mask = ARIZONA_HPDET_EINT1 | ||
511 | }, | ||
512 | [ARIZONA_IRQ_MICDET] = { | ||
513 | .reg_offset = 2, .mask = ARIZONA_MICDET_EINT1 | ||
514 | }, | ||
515 | [ARIZONA_IRQ_WSEQ_DONE] = { | ||
516 | .reg_offset = 2, .mask = ARIZONA_WSEQ_DONE_EINT1 | ||
517 | }, | ||
518 | [ARIZONA_IRQ_DRC2_SIG_DET] = { | ||
519 | .reg_offset = 2, .mask = ARIZONA_DRC2_SIG_DET_EINT1 | ||
520 | }, | ||
521 | [ARIZONA_IRQ_DRC1_SIG_DET] = { | ||
522 | .reg_offset = 2, .mask = ARIZONA_DRC1_SIG_DET_EINT1 | ||
523 | }, | ||
524 | [ARIZONA_IRQ_ASRC2_LOCK] = { | ||
525 | .reg_offset = 2, .mask = ARIZONA_ASRC2_LOCK_EINT1 | ||
526 | }, | ||
527 | [ARIZONA_IRQ_ASRC1_LOCK] = { | ||
528 | .reg_offset = 2, .mask = ARIZONA_ASRC1_LOCK_EINT1 | ||
529 | }, | ||
530 | [ARIZONA_IRQ_UNDERCLOCKED] = { | ||
531 | .reg_offset = 2, .mask = ARIZONA_UNDERCLOCKED_EINT1 | ||
532 | }, | ||
533 | [ARIZONA_IRQ_OVERCLOCKED] = { | ||
534 | .reg_offset = 2, .mask = ARIZONA_OVERCLOCKED_EINT1 | ||
535 | }, | ||
536 | [ARIZONA_IRQ_FLL2_LOCK] = { | ||
537 | .reg_offset = 2, .mask = ARIZONA_FLL2_LOCK_EINT1 | ||
538 | }, | ||
539 | [ARIZONA_IRQ_FLL1_LOCK] = { | ||
540 | .reg_offset = 2, .mask = ARIZONA_FLL1_LOCK_EINT1 | ||
541 | }, | ||
542 | [ARIZONA_IRQ_CLKGEN_ERR] = { | ||
543 | .reg_offset = 2, .mask = ARIZONA_CLKGEN_ERR_EINT1 | ||
544 | }, | ||
545 | [ARIZONA_IRQ_CLKGEN_ERR_ASYNC] = { | ||
546 | .reg_offset = 2, .mask = ARIZONA_CLKGEN_ERR_ASYNC_EINT1 | ||
547 | }, | ||
548 | |||
549 | [ARIZONA_IRQ_CTRLIF_ERR] = { | ||
550 | .reg_offset = 3, .mask = ARIZONA_V2_CTRLIF_ERR_EINT1 | ||
551 | }, | ||
552 | [ARIZONA_IRQ_MIXER_DROPPED_SAMPLES] = { | ||
553 | .reg_offset = 3, .mask = ARIZONA_V2_MIXER_DROPPED_SAMPLE_EINT1 | ||
554 | }, | ||
555 | [ARIZONA_IRQ_ASYNC_CLK_ENA_LOW] = { | ||
556 | .reg_offset = 3, .mask = ARIZONA_V2_ASYNC_CLK_ENA_LOW_EINT1 | ||
557 | }, | ||
558 | [ARIZONA_IRQ_SYSCLK_ENA_LOW] = { | ||
559 | .reg_offset = 3, .mask = ARIZONA_V2_SYSCLK_ENA_LOW_EINT1 | ||
560 | }, | ||
561 | [ARIZONA_IRQ_ISRC1_CFG_ERR] = { | ||
562 | .reg_offset = 3, .mask = ARIZONA_V2_ISRC1_CFG_ERR_EINT1 | ||
563 | }, | ||
564 | [ARIZONA_IRQ_ISRC2_CFG_ERR] = { | ||
565 | .reg_offset = 3, .mask = ARIZONA_V2_ISRC2_CFG_ERR_EINT1 | ||
566 | }, | ||
567 | [ARIZONA_IRQ_ISRC3_CFG_ERR] = { | ||
568 | .reg_offset = 3, .mask = ARIZONA_V2_ISRC3_CFG_ERR_EINT1 | ||
569 | }, | ||
570 | [ARIZONA_IRQ_HP3R_DONE] = { | ||
571 | .reg_offset = 3, .mask = ARIZONA_HP3R_DONE_EINT1 | ||
572 | }, | ||
573 | [ARIZONA_IRQ_HP3L_DONE] = { | ||
574 | .reg_offset = 3, .mask = ARIZONA_HP3L_DONE_EINT1 | ||
575 | }, | ||
576 | [ARIZONA_IRQ_HP2R_DONE] = { | ||
577 | .reg_offset = 3, .mask = ARIZONA_HP2R_DONE_EINT1 | ||
578 | }, | ||
579 | [ARIZONA_IRQ_HP2L_DONE] = { | ||
580 | .reg_offset = 3, .mask = ARIZONA_HP2L_DONE_EINT1 | ||
581 | }, | ||
582 | [ARIZONA_IRQ_HP1R_DONE] = { | ||
583 | .reg_offset = 3, .mask = ARIZONA_HP1R_DONE_EINT1 | ||
584 | }, | ||
585 | [ARIZONA_IRQ_HP1L_DONE] = { | ||
586 | .reg_offset = 3, .mask = ARIZONA_HP1L_DONE_EINT1 | ||
587 | }, | ||
588 | |||
589 | [ARIZONA_IRQ_BOOT_DONE] = { | ||
590 | .reg_offset = 4, .mask = ARIZONA_BOOT_DONE_EINT1 | ||
591 | }, | ||
592 | [ARIZONA_IRQ_ASRC_CFG_ERR] = { | ||
593 | .reg_offset = 4, .mask = ARIZONA_V2_ASRC_CFG_ERR_EINT1 | ||
594 | }, | ||
595 | [ARIZONA_IRQ_FLL2_CLOCK_OK] = { | ||
596 | .reg_offset = 4, .mask = ARIZONA_FLL2_CLOCK_OK_EINT1 | ||
597 | }, | ||
598 | [ARIZONA_IRQ_FLL1_CLOCK_OK] = { | ||
599 | .reg_offset = 4, .mask = ARIZONA_FLL1_CLOCK_OK_EINT1 | ||
600 | }, | ||
601 | |||
602 | [ARIZONA_IRQ_DSP_SHARED_WR_COLL] = { | ||
603 | .reg_offset = 5, .mask = ARIZONA_DSP_SHARED_WR_COLL_EINT1 | ||
604 | }, | ||
605 | [ARIZONA_IRQ_SPK_SHUTDOWN] = { | ||
606 | .reg_offset = 5, .mask = ARIZONA_SPK_SHUTDOWN_EINT1 | ||
607 | }, | ||
608 | [ARIZONA_IRQ_SPK1R_SHORT] = { | ||
609 | .reg_offset = 5, .mask = ARIZONA_SPK1R_SHORT_EINT1 | ||
610 | }, | ||
611 | [ARIZONA_IRQ_SPK1L_SHORT] = { | ||
612 | .reg_offset = 5, .mask = ARIZONA_SPK1L_SHORT_EINT1 | ||
613 | }, | ||
614 | [ARIZONA_IRQ_HP3R_SC_NEG] = { | ||
615 | .reg_offset = 5, .mask = ARIZONA_HP3R_SC_NEG_EINT1 | ||
616 | }, | ||
617 | [ARIZONA_IRQ_HP3R_SC_POS] = { | ||
618 | .reg_offset = 5, .mask = ARIZONA_HP3R_SC_POS_EINT1 | ||
619 | }, | ||
620 | [ARIZONA_IRQ_HP3L_SC_NEG] = { | ||
621 | .reg_offset = 5, .mask = ARIZONA_HP3L_SC_NEG_EINT1 | ||
622 | }, | ||
623 | [ARIZONA_IRQ_HP3L_SC_POS] = { | ||
624 | .reg_offset = 5, .mask = ARIZONA_HP3L_SC_POS_EINT1 | ||
625 | }, | ||
626 | [ARIZONA_IRQ_HP2R_SC_NEG] = { | ||
627 | .reg_offset = 5, .mask = ARIZONA_HP2R_SC_NEG_EINT1 | ||
628 | }, | ||
629 | [ARIZONA_IRQ_HP2R_SC_POS] = { | ||
630 | .reg_offset = 5, .mask = ARIZONA_HP2R_SC_POS_EINT1 | ||
631 | }, | ||
632 | [ARIZONA_IRQ_HP2L_SC_NEG] = { | ||
633 | .reg_offset = 5, .mask = ARIZONA_HP2L_SC_NEG_EINT1 | ||
634 | }, | ||
635 | [ARIZONA_IRQ_HP2L_SC_POS] = { | ||
636 | .reg_offset = 5, .mask = ARIZONA_HP2L_SC_POS_EINT1 | ||
637 | }, | ||
638 | [ARIZONA_IRQ_HP1R_SC_NEG] = { | ||
639 | .reg_offset = 5, .mask = ARIZONA_HP1R_SC_NEG_EINT1 | ||
640 | }, | ||
641 | [ARIZONA_IRQ_HP1R_SC_POS] = { | ||
642 | .reg_offset = 5, .mask = ARIZONA_HP1R_SC_POS_EINT1 | ||
643 | }, | ||
644 | [ARIZONA_IRQ_HP1L_SC_NEG] = { | ||
645 | .reg_offset = 5, .mask = ARIZONA_HP1L_SC_NEG_EINT1 | ||
646 | }, | ||
647 | [ARIZONA_IRQ_HP1L_SC_POS] = { | ||
648 | .reg_offset = 5, .mask = ARIZONA_HP1L_SC_POS_EINT1 | ||
649 | }, | ||
650 | }; | ||
651 | |||
652 | const struct regmap_irq_chip wm5110_revd_irq = { | ||
653 | .name = "wm5110 IRQ", | ||
654 | .status_base = ARIZONA_INTERRUPT_STATUS_1, | ||
655 | .mask_base = ARIZONA_INTERRUPT_STATUS_1_MASK, | ||
656 | .ack_base = ARIZONA_INTERRUPT_STATUS_1, | ||
657 | .num_regs = 6, | ||
658 | .irqs = wm5110_revd_irqs, | ||
659 | .num_irqs = ARRAY_SIZE(wm5110_revd_irqs), | ||
660 | }; | ||
661 | EXPORT_SYMBOL_GPL(wm5110_revd_irq); | ||
662 | |||
460 | static const struct reg_default wm5110_reg_default[] = { | 663 | static const struct reg_default wm5110_reg_default[] = { |
461 | { 0x00000008, 0x0019 }, /* R8 - Ctrl IF SPI CFG 1 */ | 664 | { 0x00000008, 0x0019 }, /* R8 - Ctrl IF SPI CFG 1 */ |
462 | { 0x00000009, 0x0001 }, /* R9 - Ctrl IF I2C1 CFG 1 */ | 665 | { 0x00000009, 0x0001 }, /* R9 - Ctrl IF I2C1 CFG 1 */ |
@@ -1286,12 +1489,14 @@ static const struct reg_default wm5110_reg_default[] = { | |||
1286 | { 0x00000D0A, 0xFFFF }, /* R3338 - Interrupt Status 3 Mask */ | 1489 | { 0x00000D0A, 0xFFFF }, /* R3338 - Interrupt Status 3 Mask */ |
1287 | { 0x00000D0B, 0xFFFF }, /* R3339 - Interrupt Status 4 Mask */ | 1490 | { 0x00000D0B, 0xFFFF }, /* R3339 - Interrupt Status 4 Mask */ |
1288 | { 0x00000D0C, 0xFEFF }, /* R3340 - Interrupt Status 5 Mask */ | 1491 | { 0x00000D0C, 0xFEFF }, /* R3340 - Interrupt Status 5 Mask */ |
1492 | { 0x00000D0D, 0xFFFF }, /* R3341 - Interrupt Status 6 Mask */ | ||
1289 | { 0x00000D0F, 0x0000 }, /* R3343 - Interrupt Control */ | 1493 | { 0x00000D0F, 0x0000 }, /* R3343 - Interrupt Control */ |
1290 | { 0x00000D18, 0xFFFF }, /* R3352 - IRQ2 Status 1 Mask */ | 1494 | { 0x00000D18, 0xFFFF }, /* R3352 - IRQ2 Status 1 Mask */ |
1291 | { 0x00000D19, 0xFFFF }, /* R3353 - IRQ2 Status 2 Mask */ | 1495 | { 0x00000D19, 0xFFFF }, /* R3353 - IRQ2 Status 2 Mask */ |
1292 | { 0x00000D1A, 0xFFFF }, /* R3354 - IRQ2 Status 3 Mask */ | 1496 | { 0x00000D1A, 0xFFFF }, /* R3354 - IRQ2 Status 3 Mask */ |
1293 | { 0x00000D1B, 0xFFFF }, /* R3355 - IRQ2 Status 4 Mask */ | 1497 | { 0x00000D1B, 0xFFFF }, /* R3355 - IRQ2 Status 4 Mask */ |
1294 | { 0x00000D1C, 0xFFFF }, /* R3356 - IRQ2 Status 5 Mask */ | 1498 | { 0x00000D1C, 0xFFFF }, /* R3356 - IRQ2 Status 5 Mask */ |
1499 | { 0x00000D1D, 0xFFFF }, /* R3357 - IRQ2 Status 6 Mask */ | ||
1295 | { 0x00000D1F, 0x0000 }, /* R3359 - IRQ2 Control */ | 1500 | { 0x00000D1F, 0x0000 }, /* R3359 - IRQ2 Control */ |
1296 | { 0x00000D53, 0xFFFF }, /* R3411 - AOD IRQ Mask IRQ1 */ | 1501 | { 0x00000D53, 0xFFFF }, /* R3411 - AOD IRQ Mask IRQ1 */ |
1297 | { 0x00000D54, 0xFFFF }, /* R3412 - AOD IRQ Mask IRQ2 */ | 1502 | { 0x00000D54, 0xFFFF }, /* R3412 - AOD IRQ Mask IRQ2 */ |
@@ -2323,22 +2528,26 @@ static bool wm5110_readable_register(struct device *dev, unsigned int reg) | |||
2323 | case ARIZONA_INTERRUPT_STATUS_3: | 2528 | case ARIZONA_INTERRUPT_STATUS_3: |
2324 | case ARIZONA_INTERRUPT_STATUS_4: | 2529 | case ARIZONA_INTERRUPT_STATUS_4: |
2325 | case ARIZONA_INTERRUPT_STATUS_5: | 2530 | case ARIZONA_INTERRUPT_STATUS_5: |
2531 | case ARIZONA_INTERRUPT_STATUS_6: | ||
2326 | case ARIZONA_INTERRUPT_STATUS_1_MASK: | 2532 | case ARIZONA_INTERRUPT_STATUS_1_MASK: |
2327 | case ARIZONA_INTERRUPT_STATUS_2_MASK: | 2533 | case ARIZONA_INTERRUPT_STATUS_2_MASK: |
2328 | case ARIZONA_INTERRUPT_STATUS_3_MASK: | 2534 | case ARIZONA_INTERRUPT_STATUS_3_MASK: |
2329 | case ARIZONA_INTERRUPT_STATUS_4_MASK: | 2535 | case ARIZONA_INTERRUPT_STATUS_4_MASK: |
2330 | case ARIZONA_INTERRUPT_STATUS_5_MASK: | 2536 | case ARIZONA_INTERRUPT_STATUS_5_MASK: |
2537 | case ARIZONA_INTERRUPT_STATUS_6_MASK: | ||
2331 | case ARIZONA_INTERRUPT_CONTROL: | 2538 | case ARIZONA_INTERRUPT_CONTROL: |
2332 | case ARIZONA_IRQ2_STATUS_1: | 2539 | case ARIZONA_IRQ2_STATUS_1: |
2333 | case ARIZONA_IRQ2_STATUS_2: | 2540 | case ARIZONA_IRQ2_STATUS_2: |
2334 | case ARIZONA_IRQ2_STATUS_3: | 2541 | case ARIZONA_IRQ2_STATUS_3: |
2335 | case ARIZONA_IRQ2_STATUS_4: | 2542 | case ARIZONA_IRQ2_STATUS_4: |
2336 | case ARIZONA_IRQ2_STATUS_5: | 2543 | case ARIZONA_IRQ2_STATUS_5: |
2544 | case ARIZONA_IRQ2_STATUS_6: | ||
2337 | case ARIZONA_IRQ2_STATUS_1_MASK: | 2545 | case ARIZONA_IRQ2_STATUS_1_MASK: |
2338 | case ARIZONA_IRQ2_STATUS_2_MASK: | 2546 | case ARIZONA_IRQ2_STATUS_2_MASK: |
2339 | case ARIZONA_IRQ2_STATUS_3_MASK: | 2547 | case ARIZONA_IRQ2_STATUS_3_MASK: |
2340 | case ARIZONA_IRQ2_STATUS_4_MASK: | 2548 | case ARIZONA_IRQ2_STATUS_4_MASK: |
2341 | case ARIZONA_IRQ2_STATUS_5_MASK: | 2549 | case ARIZONA_IRQ2_STATUS_5_MASK: |
2550 | case ARIZONA_IRQ2_STATUS_6_MASK: | ||
2342 | case ARIZONA_IRQ2_CONTROL: | 2551 | case ARIZONA_IRQ2_CONTROL: |
2343 | case ARIZONA_INTERRUPT_RAW_STATUS_2: | 2552 | case ARIZONA_INTERRUPT_RAW_STATUS_2: |
2344 | case ARIZONA_INTERRUPT_RAW_STATUS_3: | 2553 | case ARIZONA_INTERRUPT_RAW_STATUS_3: |
@@ -2347,6 +2556,7 @@ static bool wm5110_readable_register(struct device *dev, unsigned int reg) | |||
2347 | case ARIZONA_INTERRUPT_RAW_STATUS_6: | 2556 | case ARIZONA_INTERRUPT_RAW_STATUS_6: |
2348 | case ARIZONA_INTERRUPT_RAW_STATUS_7: | 2557 | case ARIZONA_INTERRUPT_RAW_STATUS_7: |
2349 | case ARIZONA_INTERRUPT_RAW_STATUS_8: | 2558 | case ARIZONA_INTERRUPT_RAW_STATUS_8: |
2559 | case ARIZONA_INTERRUPT_RAW_STATUS_9: | ||
2350 | case ARIZONA_IRQ_PIN_STATUS: | 2560 | case ARIZONA_IRQ_PIN_STATUS: |
2351 | case ARIZONA_AOD_WKUP_AND_TRIG: | 2561 | case ARIZONA_AOD_WKUP_AND_TRIG: |
2352 | case ARIZONA_AOD_IRQ1: | 2562 | case ARIZONA_AOD_IRQ1: |
@@ -2622,11 +2832,13 @@ static bool wm5110_volatile_register(struct device *dev, unsigned int reg) | |||
2622 | case ARIZONA_INTERRUPT_STATUS_3: | 2832 | case ARIZONA_INTERRUPT_STATUS_3: |
2623 | case ARIZONA_INTERRUPT_STATUS_4: | 2833 | case ARIZONA_INTERRUPT_STATUS_4: |
2624 | case ARIZONA_INTERRUPT_STATUS_5: | 2834 | case ARIZONA_INTERRUPT_STATUS_5: |
2835 | case ARIZONA_INTERRUPT_STATUS_6: | ||
2625 | case ARIZONA_IRQ2_STATUS_1: | 2836 | case ARIZONA_IRQ2_STATUS_1: |
2626 | case ARIZONA_IRQ2_STATUS_2: | 2837 | case ARIZONA_IRQ2_STATUS_2: |
2627 | case ARIZONA_IRQ2_STATUS_3: | 2838 | case ARIZONA_IRQ2_STATUS_3: |
2628 | case ARIZONA_IRQ2_STATUS_4: | 2839 | case ARIZONA_IRQ2_STATUS_4: |
2629 | case ARIZONA_IRQ2_STATUS_5: | 2840 | case ARIZONA_IRQ2_STATUS_5: |
2841 | case ARIZONA_IRQ2_STATUS_6: | ||
2630 | case ARIZONA_INTERRUPT_RAW_STATUS_2: | 2842 | case ARIZONA_INTERRUPT_RAW_STATUS_2: |
2631 | case ARIZONA_INTERRUPT_RAW_STATUS_3: | 2843 | case ARIZONA_INTERRUPT_RAW_STATUS_3: |
2632 | case ARIZONA_INTERRUPT_RAW_STATUS_4: | 2844 | case ARIZONA_INTERRUPT_RAW_STATUS_4: |
@@ -2634,6 +2846,7 @@ static bool wm5110_volatile_register(struct device *dev, unsigned int reg) | |||
2634 | case ARIZONA_INTERRUPT_RAW_STATUS_6: | 2846 | case ARIZONA_INTERRUPT_RAW_STATUS_6: |
2635 | case ARIZONA_INTERRUPT_RAW_STATUS_7: | 2847 | case ARIZONA_INTERRUPT_RAW_STATUS_7: |
2636 | case ARIZONA_INTERRUPT_RAW_STATUS_8: | 2848 | case ARIZONA_INTERRUPT_RAW_STATUS_8: |
2849 | case ARIZONA_INTERRUPT_RAW_STATUS_9: | ||
2637 | case ARIZONA_IRQ_PIN_STATUS: | 2850 | case ARIZONA_IRQ_PIN_STATUS: |
2638 | case ARIZONA_AOD_WKUP_AND_TRIG: | 2851 | case ARIZONA_AOD_WKUP_AND_TRIG: |
2639 | case ARIZONA_AOD_IRQ1: | 2852 | case ARIZONA_AOD_IRQ1: |