/* * linux/arch/arm/mach-ftvpci/core.c * * Architecture specific fixups. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */ #include #include #include #include #include #include #include #include #include #include #include extern unsigned long soft_irq_mask; static const unsigned char irq_cmd[] = { INTCONT_IRQ_DUART, INTCONT_IRQ_PLX, INTCONT_IRQ_D, INTCONT_IRQ_C, INTCONT_IRQ_B, INTCONT_IRQ_A, INTCONT_IRQ_SYSERR }; static void ftvpci_mask_irq(unsigned int irq) { __raw_writel(irq_cmd[irq], INTCONT_BASE); soft_irq_mask &= ~(1<= FIRST_IRQ && i <= LAST_IRQ) { irq_desc[i].valid = 1; irq_desc[i].probe_ok = 1; irq_desc[i].mask_ack = ftvpci_mask_irq; irq_desc[i].mask = ftvpci_mask_irq; irq_desc[i].unmask = ftvpci_unmask_irq; ftvpci_mask_irq(i); } else { irq_desc[i].valid = 0; irq_desc[i].probe_ok = 0; } } } static struct map_desc ftvpci_io_desc[] __initdata = { { INTCONT_BASE, INTCONT_START, 0x00001000, MT_DEVICE }, { PLX_BASE, PLX_START, 0x00001000, MT_DEVICE }, { PCIO_BASE, PLX_IO_START, 0x00100000, MT_DEVICE }, { DUART_BASE, DUART_START, 0x00001000, MT_DEVICE }, { STATUS_BASE, STATUS_START, 0x00001000, MT_DEVICE } }; static void __init ftvpci_map_io(void) { iotable_init(ftvpci_io_desc, ARRAY_SIZE(ftvpci_io_desc)); } MACHINE_START(NEXUSPCI, "FTV/PCI") MAINTAINER("Philip Blundell") BOOT_MEM(0x40000000, 0x10000000, 0xe0000000) MAPIO(ftvpci_map_io) INITIRQ(ftvpci_init_irq) MACHINE_END