irq.c (cf9ce948f47640797bd19980e1d99c6d17d0bdc3) irq.c (4236666688e9dbc38d0c7a98b7cfa16c8961f752)
1/*
2 * arch/arm/mach-orion5x/irq.c
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
9 * License version 2. This program is licensed "as is" without any
10 * warranty of any kind, whether express or implied.
11 */
12#include <linux/gpio.h>
13#include <linux/kernel.h>
14#include <linux/irq.h>
15#include <linux/io.h>
16#include <mach/bridge-regs.h>
17#include <plat/orion-gpio.h>
18#include <plat/irq.h>
1/*
2 * arch/arm/mach-orion5x/irq.c
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
9 * License version 2. This program is licensed "as is" without any
10 * warranty of any kind, whether express or implied.
11 */
12#include <linux/gpio.h>
13#include <linux/kernel.h>
14#include <linux/irq.h>
15#include <linux/io.h>
16#include <mach/bridge-regs.h>
17#include <plat/orion-gpio.h>
18#include <plat/irq.h>
19#include "common.h"
19
20static 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};
26
27void __init orion5x_init_irq(void)
28{
29 orion_irq_init(0, MAIN_IRQ_MASK);
30
31 /*
32 * Initialize gpiolib for GPIOs 0-31.
33 */
34 orion_gpio_init(NULL, 0, 32, GPIO_VIRT_BASE, 0,
35 IRQ_ORION5X_GPIO_START, gpio0_irqs);
36}
20
21static int __initdata gpio0_irqs[4] = {
22 IRQ_ORION5X_GPIO_0_7,
23 IRQ_ORION5X_GPIO_8_15,
24 IRQ_ORION5X_GPIO_16_23,
25 IRQ_ORION5X_GPIO_24_31,
26};
27
28void __init orion5x_init_irq(void)
29{
30 orion_irq_init(0, MAIN_IRQ_MASK);
31
32 /*
33 * Initialize gpiolib for GPIOs 0-31.
34 */
35 orion_gpio_init(NULL, 0, 32, GPIO_VIRT_BASE, 0,
36 IRQ_ORION5X_GPIO_START, gpio0_irqs);
37}