diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2009-02-27 17:06:29 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2009-02-27 17:06:29 +0000 |
commit | 58070e228a65ae6d10ea9d0160c39f758c1067c4 (patch) | |
tree | 0e1b341ec9c8540c2fff777558808c157fbea741 /target/linux/ar71xx/files | |
parent | a94c151a9288f9b1878f36af8483055a383a859f (diff) | |
download | master-187ad058-58070e228a65ae6d10ea9d0160c39f758c1067c4.tar.gz master-187ad058-58070e228a65ae6d10ea9d0160c39f758c1067c4.tar.bz2 master-187ad058-58070e228a65ae6d10ea9d0160c39f758c1067c4.zip |
[ar71xx] aw-nr580: add support for the PCI slot
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14686 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ar71xx/mach-aw-nr580.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-aw-nr580.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-aw-nr580.c index 1ab5584e72..c7258632ad 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-aw-nr580.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-aw-nr580.c @@ -54,6 +54,15 @@ static struct gpio_button aw_nr580_gpio_buttons[] __initdata = { } }; +static struct ar71xx_pci_irq aw_nr580_pci_irqs[] __initdata = { + { + .slot = 1, + .pin = 1, + .irq = AR71XX_PCI_IRQ_DEV1, + } +}; + + static void __init aw_nr580_setup(void) { ar71xx_add_device_mdio(0x0); @@ -65,6 +74,8 @@ static void __init aw_nr580_setup(void) ar71xx_add_device_eth(0); + ar71xx_pci_init(ARRAY_SIZE(aw_nr580_pci_irqs), aw_nr580_pci_irqs); + ar71xx_add_device_spi(NULL, aw_nr580_spi_info, ARRAY_SIZE(aw_nr580_spi_info)); |