aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/netlogic
diff options
context:
space:
mode:
authorJayachandran C <jchandra@broadcom.com>2013-12-21 06:22:27 -0500
committerRalf Baechle <ralf@linux-mips.org>2014-01-24 16:39:49 -0500
commitb6ba1c5294c3f51fd4cf8b0d60de4ba82ef2a1c9 (patch)
treef7d2f610de3852e8ded2d485c24bb52327039dea /arch/mips/netlogic
parent98d4884ca55883e8b16180bd969a8bccaa885c80 (diff)
MIPS: PCI: Netlogic XLP9XX support
Add PCI support for Netlogic XLP9XX. The PCI registers and SoC bus numbers have changed in XLP9XX. Also skip a few (bus,dev,fn) combinations which have issues when read. Signed-off-by: Jayachandran C <jchandra@broadcom.com> Signed-off-by: John Crispin <blogic@openwrt.org> Patchwork: http://patchwork.linux-mips.org/patch/6284/
Diffstat (limited to 'arch/mips/netlogic')
-rw-r--r--arch/mips/netlogic/xlp/nlm_hal.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/mips/netlogic/xlp/nlm_hal.c b/arch/mips/netlogic/xlp/nlm_hal.c
index efd64ac1f407..e7ff2d37a464 100644
--- a/arch/mips/netlogic/xlp/nlm_hal.c
+++ b/arch/mips/netlogic/xlp/nlm_hal.c
@@ -76,6 +76,11 @@ int nlm_irq_to_irt(int irq)
76 return 133; 76 return 133;
77 case PIC_UART_1_IRQ: 77 case PIC_UART_1_IRQ:
78 return 134; 78 return 134;
79 case PIC_PCIE_LINK_LEGACY_IRQ(0):
80 case PIC_PCIE_LINK_LEGACY_IRQ(1):
81 case PIC_PCIE_LINK_LEGACY_IRQ(2):
82 case PIC_PCIE_LINK_LEGACY_IRQ(3):
83 return 191 + irq - PIC_PCIE_LINK_LEGACY_IRQ_BASE;
79 } 84 }
80 return -1; 85 return -1;
81 } 86 }