summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/arizona-irq.c
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>2014-07-15 11:21:48 +0100
committerLee Jones <lee.jones@linaro.org>2014-07-28 11:01:42 +0100
commit3215501fc90e109c7b854423e02eb05bc638b555 (patch)
tree60d49ff4ca35532f71a5b1b99030dab7ee42be53 /drivers/mfd/arizona-irq.c
parentc0fe2c5b3f730e3d56d37f7b731a5b1191a4e8bf (diff)
downloadlinux-3215501fc90e109c7b854423e02eb05bc638b555.tar.bz2
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/arizona-irq.c')
-rw-r--r--drivers/mfd/arizona-irq.c10
1 files changed, 9 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)
#ifdef CONFIG_MFD_WM5110
case WM5110:
aod = &wm5110_aod;
- irq = &wm5110_irq;
+
+ switch (arizona->rev) {
+ case 0 ... 2:
+ irq = &wm5110_irq;
+ break;
+ default:
+ irq = &wm5110_revd_irq;
+ break;
+ }
ctrlif_error = false;
break;