Commit | Line | Data |
---|---|---|
3085de6a | 1 | /* |
9dd0b194 | 2 | * arch/arm/mach-orion5x/irq.c |
3085de6a TP |
3 | * |
4 | * Core IRQ functions for Marvell Orion System On Chip | |
5 | * | |
6 | * Maintainer: Tzachi Perelstein <tzachi@marvell.com> | |
7 | * | |
8 | * This file is licensed under the terms of the GNU General Public | |
159ffb3a | 9 | * License version 2. This program is licensed "as is" without any |
3085de6a TP |
10 | * warranty of any kind, whether express or implied. |
11 | */ | |
2f8163ba | 12 | #include <linux/gpio.h> |
3085de6a | 13 | #include <linux/kernel.h> |
3085de6a | 14 | #include <linux/irq.h> |
3904a393 | 15 | #include <linux/io.h> |
fdd8b079 | 16 | #include <mach/bridge-regs.h> |
ce91574c | 17 | #include <plat/orion-gpio.h> |
6f088f1d | 18 | #include <plat/irq.h> |
3085de6a | 19 | |
278b45b0 AL |
20 | static int __initdata gpio0_irqs[4] = { |
21 | IRQ_ORION5X_GPIO_0_7, | |
22 | IRQ_ORION5X_GPIO_8_15, | |
23 | IRQ_ORION5X_GPIO_16_23, | |
24 | IRQ_ORION5X_GPIO_24_31, | |
25 | }; | |
3085de6a | 26 | |
07332318 | 27 | void __init orion5x_init_irq(void) |
3085de6a | 28 | { |
3904a393 | 29 | orion_irq_init(0, MAIN_IRQ_MASK); |
3085de6a TP |
30 | |
31 | /* | |
9eac6d0a | 32 | * Initialize gpiolib for GPIOs 0-31. |
3085de6a | 33 | */ |
3904a393 | 34 | orion_gpio_init(NULL, 0, 32, GPIO_VIRT_BASE, 0, |
278b45b0 | 35 | IRQ_ORION5X_GPIO_START, gpio0_irqs); |
3085de6a | 36 | } |