MIPS: ath79: separate common PCI code
authorGabor Juhos <juhosg@openwrt.org>
Wed, 14 Mar 2012 09:29:21 +0000 (10:29 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 15 May 2012 15:49:00 +0000 (17:49 +0200)
commite2dbdc436b46250c8682ea57151a7afb45f271e1
tree209d66461e92a9af7f46817ac63cdd6ca26ab1da
parent97bf7a190082457f84467b28baed14c8147476f2
MIPS: ath79: separate common PCI code

The 'pcibios_map_irq' and 'pcibios_plat_dev_init'
are common functions and only instance one of them
can be present in a single kernel.

Currently these functions can be built only if the
CONFIG_SOC_AR724X option is selected. However the
ath79 platform contain support for the AR71XX SoCs,.
The AR71XX SoCs have a differnet PCI controller,
and those will require a different code.

Move the common PCI code into a separeate file in
order to be able to use that with other SoCs as
well.

Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Acked-by: René Bolldorf <xsecute@googlemail.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3485/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/ath79/Makefile
arch/mips/ath79/pci.c [new file with mode: 0644]
arch/mips/pci/pci-ath724x.c