summaryrefslogtreecommitdiffstats
path: root/arch/mips/include
diff options
context:
space:
mode:
authorGabor Juhos2012-03-14 10:36:10 +0100
committerRalf Baechle2012-05-15 17:49:05 +0200
commitf8365ec4e1b945f70a86e9514dd67ba5f9f2915b (patch)
tree4a2c60a5201b7dcba14dca32d47560919093cf0b /arch/mips/include
parentMIPS: ath79: allow to use board specific pci_plat_dev_init functions (diff)
downloadkernel-qcow2-linux-f8365ec4e1b945f70a86e9514dd67ba5f9f2915b.tar.gz
kernel-qcow2-linux-f8365ec4e1b945f70a86e9514dd67ba5f9f2915b.tar.xz
kernel-qcow2-linux-f8365ec4e1b945f70a86e9514dd67ba5f9f2915b.zip
MIPS: ath79: add support for the PCI host controller of the AR71XX SoCs
The Atheros AR71XX SoCs have a built-in PCI Host Controller. This patch adds a driver for that, and modifies the relevant files in order to allow to register the PCI controller from board specific setup. Signed-off-by: Gabor Juhos <juhosg@openwrt.org> Signed-off-by: Imre Kaloz <kaloz@openwrt.org> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/3498/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include')
-rw-r--r--arch/mips/include/asm/mach-ath79/pci.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/mips/include/asm/mach-ath79/pci.h b/arch/mips/include/asm/mach-ath79/pci.h
index 2eb01815d54e..b12b0870b7ed 100644
--- a/arch/mips/include/asm/mach-ath79/pci.h
+++ b/arch/mips/include/asm/mach-ath79/pci.h
@@ -11,6 +11,12 @@
#ifndef __ASM_MACH_ATH79_PCI_H
#define __ASM_MACH_ATH79_PCI_H
+#if defined(CONFIG_PCI) && defined(CONFIG_SOC_AR71XX)
+int ar71xx_pcibios_init(void);
+#else
+static inline int ar71xx_pcibios_init(void) { return 0; }
+#endif
+
#if defined(CONFIG_PCI) && defined(CONFIG_SOC_AR724X)
int ar724x_pcibios_init(int irq);
#else