diff options
Diffstat (limited to 'target/linux/adm5120/files/arch/mips/adm5120/boards/zyxel.c')
-rw-r--r-- | target/linux/adm5120/files/arch/mips/adm5120/boards/zyxel.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/target/linux/adm5120/files/arch/mips/adm5120/boards/zyxel.c b/target/linux/adm5120/files/arch/mips/adm5120/boards/zyxel.c index f6c3183dfa..0e766a8568 100644 --- a/target/linux/adm5120/files/arch/mips/adm5120/boards/zyxel.c +++ b/target/linux/adm5120/files/arch/mips/adm5120/boards/zyxel.c @@ -29,8 +29,9 @@ #include <asm/bootinfo.h> #include <asm/gpio.h> -#include <asm/mach-adm5120/adm5120_board.h> -#include <asm/mach-adm5120/adm5120_platform.h> +#include <adm5120_board.h> +#include <adm5120_platform.h> +#include <adm5120_irq.h> static void switch_bank_gpio5(unsigned bank) { @@ -44,6 +45,10 @@ static void switch_bank_gpio5(unsigned bank) } } +static struct adm5120_pci_irq p33x_pci_irqs[] __initdata = { + PCIIRQ(2, 0, 1, ADM5120_IRQ_PCI0), +}; + static struct mtd_partition p33x_partitions[] = { { .name = "bootbase", @@ -105,6 +110,8 @@ static struct adm5120_board p334wt_board __initdata = { .eth_vlans = p33x_vlans, .num_devices = ARRAY_SIZE(p334_devices), .devices = p334_devices, + .pci_nr_irqs = ARRAY_SIZE(p33x_pci_irqs), + .pci_irq_map = p33x_pci_irqs, }; static struct adm5120_board p335_board __initdata = { @@ -115,6 +122,8 @@ static struct adm5120_board p335_board __initdata = { .eth_vlans = p33x_vlans, .num_devices = ARRAY_SIZE(p335_devices), .devices = p335_devices, + .pci_nr_irqs = ARRAY_SIZE(p33x_pci_irqs), + .pci_irq_map = p33x_pci_irqs, }; static int __init register_boards(void) |