19dd0b194SLennert Buytenhek /* 29dd0b194SLennert Buytenhek * arch/arm/mach-orion5x/irq.c 39dd0b194SLennert Buytenhek * 49dd0b194SLennert Buytenhek * Core IRQ functions for Marvell Orion System On Chip 59dd0b194SLennert Buytenhek * 69dd0b194SLennert Buytenhek * Maintainer: Tzachi Perelstein <tzachi@marvell.com> 79dd0b194SLennert Buytenhek * 89dd0b194SLennert Buytenhek * This file is licensed under the terms of the GNU General Public 99dd0b194SLennert Buytenhek * License version 2. This program is licensed "as is" without any 109dd0b194SLennert Buytenhek * warranty of any kind, whether express or implied. 119dd0b194SLennert Buytenhek */ 122f8163baSRussell King #include <linux/gpio.h> 139dd0b194SLennert Buytenhek #include <linux/kernel.h> 149dd0b194SLennert Buytenhek #include <linux/irq.h> 15fdd8b079SNicolas Pitre #include <mach/bridge-regs.h> 166f088f1dSLennert Buytenhek #include <plat/irq.h> 179dd0b194SLennert Buytenhek 18278b45b0SAndrew Lunn static int __initdata gpio0_irqs[4] = { 19278b45b0SAndrew Lunn IRQ_ORION5X_GPIO_0_7, 20278b45b0SAndrew Lunn IRQ_ORION5X_GPIO_8_15, 21278b45b0SAndrew Lunn IRQ_ORION5X_GPIO_16_23, 22278b45b0SAndrew Lunn IRQ_ORION5X_GPIO_24_31, 23278b45b0SAndrew Lunn }; 249dd0b194SLennert Buytenhek 2507332318SLennert Buytenhek void __init orion5x_init_irq(void) 269dd0b194SLennert Buytenhek { 2707332318SLennert Buytenhek orion_irq_init(0, (void __iomem *)MAIN_IRQ_MASK); 289dd0b194SLennert Buytenhek 299dd0b194SLennert Buytenhek /* 309eac6d0aSLennert Buytenhek * Initialize gpiolib for GPIOs 0-31. 319dd0b194SLennert Buytenhek */ 32278b45b0SAndrew Lunn orion_gpio_init(NULL, 0, 32, (void __iomem *)GPIO_VIRT_BASE, 0, 33278b45b0SAndrew Lunn IRQ_ORION5X_GPIO_START, gpio0_irqs); 349dd0b194SLennert Buytenhek } 35