]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[POWERPC] fsl: PCIe MSI support for 83xx/85xx/86xx processors.
authorJason Jin <Jason.jin@freescale.com>
Fri, 23 May 2008 08:32:46 +0000 (16:32 +0800)
committerKumar Gala <galak@kernel.crashing.org>
Mon, 2 Jun 2008 19:44:24 +0000 (14:44 -0500)
commit34e36c1541fe70e5b3842a3278c0e7631d31f4cb
treeea713b04c0634af6b446d7c0cf0d1b2f72fa5d34
parentaee1dc73b519227084d77b0b2fc972b68b4153d8
[POWERPC] fsl: PCIe MSI support for 83xx/85xx/86xx processors.

This MSI driver can be used on 83xx/85xx/86xx board.
In this driver, virtual interrupt host and chip were
setup. There are 256 MSI interrupts in this host, Every 32
MSI interrupts cascaded to one IPIC/MPIC interrupt.
The chip was treated as edge sensitive and some necessary
functions were setup for this chip.

Before using the MSI interrupt, PCI/PCIE device need to
ask for a MSI interrupt in the 256 MSI interrupts. A 256bit
bitmap show which MSI interrupt was used, reserve bit in
the bitmap can be used to force the device use some designate
MSI interrupt in the 256 MSI interrupts. Sometimes this is useful
for testing the all the MSI interrupts. The msi-available-ranges
property in the dts file was used for this purpose.

Signed-off-by: Jason Jin <Jason.jin@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/sysdev/Makefile
arch/powerpc/sysdev/fsl_msi.c [new file with mode: 0644]
arch/powerpc/sysdev/fsl_msi.h [new file with mode: 0644]
arch/powerpc/sysdev/fsl_pci.c