]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: Netlogic: Add MSI support for XLP
authorJayachandran C <jchandra@broadcom.com>
Sat, 21 Dec 2013 11:22:13 +0000 (16:52 +0530)
committerJohn Crispin <blogic@openwrt.org>
Tue, 14 Jan 2014 20:39:40 +0000 (21:39 +0100)
commit3d31284ec30707324f2e7ad36d4c8810fa988f3c
tree62e057e13ee8747d0cc57497620292a57c06bc7f
parent350227b11515827805b4da5bf31700d9ea8ad018
MIPS: Netlogic: Add MSI support for XLP

Add MSI chip and MSIX chip definitions.

For MSI, we map the link interrupt to a MSI link IRQ which will
do a second level of dispatch based on the MSI status register.

The MSI chip definitions use the MSI enable register to enable
and disable the MSI irqs.

For MSI-X, we split the 32 available MSI-X vectors across the
four PCIe links (8 each). These PIC interrupts generate an IRQ
per link which uses a second level dispatch as well.

The MSI-X chip definition uses the standard functions to enable
and disable interrupts.

Signed-off-by: Jayachandran C <jchandra@broadcom.com>
Acked-by: John Crispin <blogic@openwrt.org>
Patchwork: http://patchwork.linux-mips.org/patch/6270/
arch/mips/Kconfig
arch/mips/include/asm/mach-netlogic/irq.h
arch/mips/include/asm/netlogic/common.h
arch/mips/include/asm/netlogic/xlp-hal/pcibus.h
arch/mips/include/asm/netlogic/xlp-hal/pic.h
arch/mips/include/asm/netlogic/xlp-hal/xlp.h
arch/mips/netlogic/common/irq.c
arch/mips/netlogic/xlp/nlm_hal.c
arch/mips/pci/Makefile
arch/mips/pci/msi-xlp.c [new file with mode: 0644]
arch/mips/pci/pci-xlp.c