aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2009-10-01 19:41:11 +0000
committerGabor Juhos <juhosg@openwrt.org>2009-10-01 19:41:11 +0000
commit0676846255205464e4b60afe4ca073d70817116a (patch)
tree871ef5991e744c3841ab2e2d66a157430372684c /target
parent9691b4e4680a60cfe62b20776d22a824012ecd17 (diff)
downloadupstream-0676846255205464e4b60afe4ca073d70817116a.tar.gz
upstream-0676846255205464e4b60afe4ca073d70817116a.tar.bz2
upstream-0676846255205464e4b60afe4ca073d70817116a.zip
ar71xx: initialize PCI controller on the Bullet M
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@17812 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ar71xx/mach-ubnt.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ubnt.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ubnt.c
index ff32302fc7..177b264632 100644
--- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ubnt.c
+++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ubnt.c
@@ -244,6 +244,14 @@ static void __init ubnt_lssr71_setup(void)
MIPS_MACHINE(AR71XX_MACH_UBNT_LSSR71, "Ubiquiti LS-SR71", ubnt_lssr71_setup);
+static struct ar71xx_pci_irq ubnt_bullet_m_pci_irqs[] __initdata = {
+ {
+ .slot = 0,
+ .pin = 1,
+ .irq = AR71XX_PCI_IRQ_DEV0,
+ }
+};
+
static void __init ubnt_bullet_m_setup(void)
{
u8 *mac = (u8 *) KSEG1ADDR(0x1fff0000);
@@ -268,6 +276,9 @@ static void __init ubnt_bullet_m_setup(void)
ar71xx_add_device_gpio_buttons(-1, UBNT_BUTTONS_POLL_INTERVAL,
ARRAY_SIZE(ubnt_bullet_m_gpio_buttons),
ubnt_bullet_m_gpio_buttons);
+
+ ar71xx_pci_init(ARRAY_SIZE(ubnt_bullet_m_pci_irqs),
+ ubnt_bullet_m_pci_irqs);
}
MIPS_MACHINE(AR71XX_MACH_UBNT_BULLET_M, "Ubiquiti Bullet M", ubnt_bullet_m_setup);