Skip to content

Commit

Permalink
MIPS: ralink: add PCI IRQ handling
Browse files Browse the repository at this point in the history
The Ralink IRQ code was not handling the PCI IRQ yet. Add this functionaility
to make PCI work on rt3883.

Signed-off-by: John Crispin <blogic@openwrt.org>
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/5165/
  • Loading branch information
Gabor Juhos authored and Ralf Baechle committed May 7, 2013
1 parent 9169a5d commit 48b4aba
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/mips/ralink/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#define INTC_INT_GLOBAL BIT(31)

#define RALINK_CPU_IRQ_INTC (MIPS_CPU_IRQ_BASE + 2)
#define RALINK_CPU_IRQ_PCI (MIPS_CPU_IRQ_BASE + 4)
#define RALINK_CPU_IRQ_FE (MIPS_CPU_IRQ_BASE + 5)
#define RALINK_CPU_IRQ_WIFI (MIPS_CPU_IRQ_BASE + 6)
#define RALINK_CPU_IRQ_COUNTER (MIPS_CPU_IRQ_BASE + 7)
Expand Down Expand Up @@ -104,6 +105,9 @@ asmlinkage void plat_irq_dispatch(void)
else if (pending & STATUSF_IP6)
do_IRQ(RALINK_CPU_IRQ_WIFI);

else if (pending & STATUSF_IP4)
do_IRQ(RALINK_CPU_IRQ_PCI);

else if (pending & STATUSF_IP2)
do_IRQ(RALINK_CPU_IRQ_INTC);

Expand Down

0 comments on commit 48b4aba

Please sign in to comment.