diff options
author | Charles Keepax <ckeepax@opensource.wolfsonmicro.com> | 2014-07-15 10:21:48 (GMT) |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-07-28 10:01:42 (GMT) |
commit | 3215501fc90e109c7b854423e02eb05bc638b555 (patch) | |
tree | 60d49ff4ca35532f71a5b1b99030dab7ee42be53 /drivers/mfd/arizona-irq.c | |
parent | c0fe2c5b3f730e3d56d37f7b731a5b1191a4e8bf (diff) | |
download | linux-3215501fc90e109c7b854423e02eb05bc638b555.tar.xz |
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.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/mfd/arizona-irq.c b/drivers/mfd/arizona-irq.c index 17102f5..e780bc4 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; |