MIPS: SGI-IP27: use generic PCI driver
authorThomas Bogendoerfer <tbogendoerfer@suse.de>
Tue, 7 May 2019 21:09:13 +0000 (23:09 +0200)
committerPaul Burton <paul.burton@mips.com>
Thu, 9 May 2019 23:39:27 +0000 (16:39 -0700)
commita57140e9a850582ddafdd8f115b78713baaf0d00
tree5bef10f17e75eb4b9168d7562856cfc9144e12c0
parent8041edb5920902adc9b28f2fcd9ccce395434ead
MIPS: SGI-IP27: use generic PCI driver

Converted bridge code to a platform driver using the PCI generic driver
framework and use adding platform devices during xtalk scan. This allows
easier sharing bridge driver for other SGI platforms like IP30 (Octane) and
IP35 (Origin 3k, Fuel, Tezro).

Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
[paul.burton@mips.com:
  - Leave __phys_to_dma(), __dma_to_phys() & pcibus_to_node() in
    arch/mips/pci/pci-ip27.c since the motivation for moving them
    disappeared when the driver stopped being moved to drivers/pci.]
Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: James Hogan <jhogan@kernel.org>
Cc: linux-mips@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
arch/mips/Kconfig
arch/mips/include/asm/mach-ip27/topology.h
arch/mips/include/asm/pci/bridge.h
arch/mips/include/asm/xtalk/xtalk.h
arch/mips/pci/Makefile
arch/mips/pci/ops-bridge.c [deleted file]
arch/mips/pci/pci-ip27.c
arch/mips/pci/pci-xtalk-bridge.c [new file with mode: 0644]
arch/mips/sgi-ip27/ip27-init.c
arch/mips/sgi-ip27/ip27-xtalk.c
include/linux/platform_data/xtalk-bridge.h [new file with mode: 0644]