PCI: iproc: enable arm64 support for iProc PCIe
authorRay Jui <rjui@broadcom.com>
Mon, 27 Jul 2015 22:42:18 +0000 (15:42 -0700)
committerOlof Johansson <olof@lixom.net>
Wed, 29 Jul 2015 20:07:02 +0000 (22:07 +0200)
commitdb9d6d790968fd6df9faa7fa1f51967e05afd492
treeeede2b62108892ad86a63b49ed91aa7da75c79cb
parentaf429d9ebf70916269bd5ad3e2bd2485fb0f39e6
PCI: iproc: enable arm64 support for iProc PCIe

PCI: iproc: Add arm64 support

Add arm64 support to the iProc PCIe driver.

Note that on arm32, bus->sysdata points to the arm32-specific
pci_sys_data struct, and pci_sys_data.private_data contains the
iproc_pcie pointer. For arm64, there's nothing corresponding to
pci_sys_data, so we keep the iproc_pcie pointer directly in
bus->sysdata.

In addition, arm64 does IRQ mapping in pcibios_add_device(), so it
doesn't need pci_fixup_irqs() as arm32 does.

Signed-off-by: Ray Jui <rjui@broadcom.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Scott Branden <sbranden@broadcom.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
drivers/pci/host/pcie-iproc.c
drivers/pci/host/pcie-iproc.h