diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2011-06-05 17:38:45 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2011-12-07 17:02:44 -0500 |
commit | d2b4ac1e5d34648cc56785f6bd11bfa020ad4f02 (patch) | |
tree | 74f043b6ffa5f01994edbc3dd95c614bc7996574 /arch/mips/ath79 | |
parent | 2f8501b9b81b23e99206e31b3eff65e68b56b24b (diff) |
MIPS: ath79: Handle more MISC IRQs
The AR724X SoCs have more IRQ sources hooked into the MISC IRQ controller.
The patch adds support for them.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2440/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/ath79')
-rw-r--r-- | arch/mips/ath79/irq.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/mips/ath79/irq.c b/arch/mips/ath79/irq.c index ac610d5fe3ba..0d98114cbf4d 100644 --- a/arch/mips/ath79/irq.c +++ b/arch/mips/ath79/irq.c | |||
@@ -46,6 +46,15 @@ static void ath79_misc_irq_handler(unsigned int irq, struct irq_desc *desc) | |||
46 | else if (pending & MISC_INT_TIMER) | 46 | else if (pending & MISC_INT_TIMER) |
47 | generic_handle_irq(ATH79_MISC_IRQ_TIMER); | 47 | generic_handle_irq(ATH79_MISC_IRQ_TIMER); |
48 | 48 | ||
49 | else if (pending & MISC_INT_TIMER2) | ||
50 | generic_handle_irq(ATH79_MISC_IRQ_TIMER2); | ||
51 | |||
52 | else if (pending & MISC_INT_TIMER3) | ||
53 | generic_handle_irq(ATH79_MISC_IRQ_TIMER3); | ||
54 | |||
55 | else if (pending & MISC_INT_TIMER4) | ||
56 | generic_handle_irq(ATH79_MISC_IRQ_TIMER4); | ||
57 | |||
49 | else if (pending & MISC_INT_OHCI) | 58 | else if (pending & MISC_INT_OHCI) |
50 | generic_handle_irq(ATH79_MISC_IRQ_OHCI); | 59 | generic_handle_irq(ATH79_MISC_IRQ_OHCI); |
51 | 60 | ||
@@ -58,6 +67,9 @@ static void ath79_misc_irq_handler(unsigned int irq, struct irq_desc *desc) | |||
58 | else if (pending & MISC_INT_WDOG) | 67 | else if (pending & MISC_INT_WDOG) |
59 | generic_handle_irq(ATH79_MISC_IRQ_WDOG); | 68 | generic_handle_irq(ATH79_MISC_IRQ_WDOG); |
60 | 69 | ||
70 | else if (pending & MISC_INT_ETHSW) | ||
71 | generic_handle_irq(ATH79_MISC_IRQ_ETHSW); | ||
72 | |||
61 | else | 73 | else |
62 | spurious_interrupt(); | 74 | spurious_interrupt(); |
63 | } | 75 | } |