diff options
Diffstat (limited to 'arch/arm/mach-mv78xx0/irq.c')
-rw-r--r-- | arch/arm/mach-mv78xx0/irq.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/arm/mach-mv78xx0/irq.c b/arch/arm/mach-mv78xx0/irq.c index eff9a750bbe2..b5c40c4f524e 100644 --- a/arch/arm/mach-mv78xx0/irq.c +++ b/arch/arm/mach-mv78xx0/irq.c | |||
@@ -10,6 +10,7 @@ | |||
10 | #include <linux/gpio.h> | 10 | #include <linux/gpio.h> |
11 | #include <linux/kernel.h> | 11 | #include <linux/kernel.h> |
12 | #include <linux/irq.h> | 12 | #include <linux/irq.h> |
13 | #include <linux/io.h> | ||
13 | #include <mach/bridge-regs.h> | 14 | #include <mach/bridge-regs.h> |
14 | #include <plat/irq.h> | 15 | #include <plat/irq.h> |
15 | #include "common.h" | 16 | #include "common.h" |
@@ -23,16 +24,16 @@ static int __initdata gpio0_irqs[4] = { | |||
23 | 24 | ||
24 | void __init mv78xx0_init_irq(void) | 25 | void __init mv78xx0_init_irq(void) |
25 | { | 26 | { |
26 | orion_irq_init(0, (void __iomem *)(IRQ_VIRT_BASE + IRQ_MASK_LOW_OFF)); | 27 | orion_irq_init(0, IRQ_VIRT_BASE + IRQ_MASK_LOW_OFF); |
27 | orion_irq_init(32, (void __iomem *)(IRQ_VIRT_BASE + IRQ_MASK_HIGH_OFF)); | 28 | orion_irq_init(32, IRQ_VIRT_BASE + IRQ_MASK_HIGH_OFF); |
28 | orion_irq_init(64, (void __iomem *)(IRQ_VIRT_BASE + IRQ_MASK_ERR_OFF)); | 29 | orion_irq_init(64, IRQ_VIRT_BASE + IRQ_MASK_ERR_OFF); |
29 | 30 | ||
30 | /* | 31 | /* |
31 | * Initialize gpiolib for GPIOs 0-31. (The GPIO interrupt mask | 32 | * Initialize gpiolib for GPIOs 0-31. (The GPIO interrupt mask |
32 | * registers for core #1 are at an offset of 0x18 from those of | 33 | * registers for core #1 are at an offset of 0x18 from those of |
33 | * core #0.) | 34 | * core #0.) |
34 | */ | 35 | */ |
35 | orion_gpio_init(NULL, 0, 32, (void __iomem *)GPIO_VIRT_BASE, | 36 | orion_gpio_init(NULL, 0, 32, GPIO_VIRT_BASE, |
36 | mv78xx0_core_index() ? 0x18 : 0, | 37 | mv78xx0_core_index() ? 0x18 : 0, |
37 | IRQ_MV78XX0_GPIO_START, gpio0_irqs); | 38 | IRQ_MV78XX0_GPIO_START, gpio0_irqs); |
38 | } | 39 | } |