diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2012-02-26 04:46:48 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-03-24 05:38:56 -0400 |
commit | 695436e3738ec6375a4a1026034d14433be3fb3a (patch) | |
tree | 3255d6fbe91c470f55cc4328b8c4f318a657151e /arch/arm/mach-integrator | |
parent | ddecdfcea0ae891f782ae853771c867ab51024c2 (diff) |
ARM: 7349/1: integrator: convert to sparse irqs
This converts the Integrator AP/CP to use sparse IRQs.
Tested on both machines.
Acked-by: Rob Herring <rob.herring@calxeda.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mach-integrator')
-rw-r--r-- | arch/arm/mach-integrator/core.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-integrator/include/mach/irqs.h | 3 | ||||
-rw-r--r-- | arch/arm/mach-integrator/integrator_ap.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-integrator/integrator_cp.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-integrator/pci.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-integrator/pci_v3.c | 3 |
6 files changed, 12 insertions, 6 deletions
diff --git a/arch/arm/mach-integrator/core.c b/arch/arm/mach-integrator/core.c index 019f0ab08f66..cba1907c2e1c 100644 --- a/arch/arm/mach-integrator/core.c +++ b/arch/arm/mach-integrator/core.c | |||
@@ -25,8 +25,9 @@ | |||
25 | 25 | ||
26 | #include <mach/hardware.h> | 26 | #include <mach/hardware.h> |
27 | #include <mach/platform.h> | 27 | #include <mach/platform.h> |
28 | #include <asm/irq.h> | ||
29 | #include <mach/cm.h> | 28 | #include <mach/cm.h> |
29 | #include <mach/irqs.h> | ||
30 | |||
30 | #include <asm/system.h> | 31 | #include <asm/system.h> |
31 | #include <asm/leds.h> | 32 | #include <asm/leds.h> |
32 | #include <asm/mach-types.h> | 33 | #include <asm/mach-types.h> |
diff --git a/arch/arm/mach-integrator/include/mach/irqs.h b/arch/arm/mach-integrator/include/mach/irqs.h index 1fbe6d190222..a19a1a2fcf6b 100644 --- a/arch/arm/mach-integrator/include/mach/irqs.h +++ b/arch/arm/mach-integrator/include/mach/irqs.h | |||
@@ -78,5 +78,6 @@ | |||
78 | #define IRQ_SIC_CP_LMINT7 46 | 78 | #define IRQ_SIC_CP_LMINT7 46 |
79 | #define IRQ_SIC_END 46 | 79 | #define IRQ_SIC_END 46 |
80 | 80 | ||
81 | #define NR_IRQS 47 | 81 | #define NR_IRQS_INTEGRATOR_AP 34 |
82 | #define NR_IRQS_INTEGRATOR_CP 47 | ||
82 | 83 | ||
diff --git a/arch/arm/mach-integrator/integrator_ap.c b/arch/arm/mach-integrator/integrator_ap.c index 4dde28b9dc07..871f148ffd72 100644 --- a/arch/arm/mach-integrator/integrator_ap.c +++ b/arch/arm/mach-integrator/integrator_ap.c | |||
@@ -38,13 +38,13 @@ | |||
38 | #include <mach/hardware.h> | 38 | #include <mach/hardware.h> |
39 | #include <mach/platform.h> | 39 | #include <mach/platform.h> |
40 | #include <asm/hardware/arm_timer.h> | 40 | #include <asm/hardware/arm_timer.h> |
41 | #include <asm/irq.h> | ||
42 | #include <asm/setup.h> | 41 | #include <asm/setup.h> |
43 | #include <asm/param.h> /* HZ */ | 42 | #include <asm/param.h> /* HZ */ |
44 | #include <asm/mach-types.h> | 43 | #include <asm/mach-types.h> |
45 | #include <asm/sched_clock.h> | 44 | #include <asm/sched_clock.h> |
46 | 45 | ||
47 | #include <mach/lm.h> | 46 | #include <mach/lm.h> |
47 | #include <mach/irqs.h> | ||
48 | 48 | ||
49 | #include <asm/mach/arch.h> | 49 | #include <asm/mach/arch.h> |
50 | #include <asm/mach/irq.h> | 50 | #include <asm/mach/irq.h> |
@@ -475,6 +475,7 @@ MACHINE_START(INTEGRATOR, "ARM-Integrator") | |||
475 | .atag_offset = 0x100, | 475 | .atag_offset = 0x100, |
476 | .reserve = integrator_reserve, | 476 | .reserve = integrator_reserve, |
477 | .map_io = ap_map_io, | 477 | .map_io = ap_map_io, |
478 | .nr_irqs = NR_IRQS_INTEGRATOR_AP, | ||
478 | .init_early = integrator_init_early, | 479 | .init_early = integrator_init_early, |
479 | .init_irq = ap_init_irq, | 480 | .init_irq = ap_init_irq, |
480 | .timer = &ap_timer, | 481 | .timer = &ap_timer, |
diff --git a/arch/arm/mach-integrator/integrator_cp.c b/arch/arm/mach-integrator/integrator_cp.c index a8b6aa6003f3..38d997dc96f8 100644 --- a/arch/arm/mach-integrator/integrator_cp.c +++ b/arch/arm/mach-integrator/integrator_cp.c | |||
@@ -26,7 +26,6 @@ | |||
26 | 26 | ||
27 | #include <mach/hardware.h> | 27 | #include <mach/hardware.h> |
28 | #include <mach/platform.h> | 28 | #include <mach/platform.h> |
29 | #include <asm/irq.h> | ||
30 | #include <asm/setup.h> | 29 | #include <asm/setup.h> |
31 | #include <asm/mach-types.h> | 30 | #include <asm/mach-types.h> |
32 | #include <asm/hardware/arm_timer.h> | 31 | #include <asm/hardware/arm_timer.h> |
@@ -34,6 +33,7 @@ | |||
34 | 33 | ||
35 | #include <mach/cm.h> | 34 | #include <mach/cm.h> |
36 | #include <mach/lm.h> | 35 | #include <mach/lm.h> |
36 | #include <mach/irqs.h> | ||
37 | 37 | ||
38 | #include <asm/mach/arch.h> | 38 | #include <asm/mach/arch.h> |
39 | #include <asm/mach/irq.h> | 39 | #include <asm/mach/irq.h> |
@@ -495,6 +495,7 @@ MACHINE_START(CINTEGRATOR, "ARM-IntegratorCP") | |||
495 | .atag_offset = 0x100, | 495 | .atag_offset = 0x100, |
496 | .reserve = integrator_reserve, | 496 | .reserve = integrator_reserve, |
497 | .map_io = intcp_map_io, | 497 | .map_io = intcp_map_io, |
498 | .nr_irqs = NR_IRQS_INTEGRATOR_CP, | ||
498 | .init_early = intcp_init_early, | 499 | .init_early = intcp_init_early, |
499 | .init_irq = intcp_init_irq, | 500 | .init_irq = intcp_init_irq, |
500 | .timer = &cp_timer, | 501 | .timer = &cp_timer, |
diff --git a/arch/arm/mach-integrator/pci.c b/arch/arm/mach-integrator/pci.c index 520b6bf81bb1..e15aa43cfd27 100644 --- a/arch/arm/mach-integrator/pci.c +++ b/arch/arm/mach-integrator/pci.c | |||
@@ -26,11 +26,12 @@ | |||
26 | #include <linux/interrupt.h> | 26 | #include <linux/interrupt.h> |
27 | #include <linux/init.h> | 27 | #include <linux/init.h> |
28 | 28 | ||
29 | #include <asm/irq.h> | ||
30 | #include <asm/system.h> | 29 | #include <asm/system.h> |
31 | #include <asm/mach/pci.h> | 30 | #include <asm/mach/pci.h> |
32 | #include <asm/mach-types.h> | 31 | #include <asm/mach-types.h> |
33 | 32 | ||
33 | #include <mach/irqs.h> | ||
34 | |||
34 | /* | 35 | /* |
35 | * A small note about bridges and interrupts. The DECchip 21050 (and | 36 | * A small note about bridges and interrupts. The DECchip 21050 (and |
36 | * later) adheres to the PCI-PCI bridge specification. This says that | 37 | * later) adheres to the PCI-PCI bridge specification. This says that |
diff --git a/arch/arm/mach-integrator/pci_v3.c b/arch/arm/mach-integrator/pci_v3.c index 3c82566acece..65e5896630e4 100644 --- a/arch/arm/mach-integrator/pci_v3.c +++ b/arch/arm/mach-integrator/pci_v3.c | |||
@@ -30,7 +30,8 @@ | |||
30 | 30 | ||
31 | #include <mach/hardware.h> | 31 | #include <mach/hardware.h> |
32 | #include <mach/platform.h> | 32 | #include <mach/platform.h> |
33 | #include <asm/irq.h> | 33 | #include <mach/irqs.h> |
34 | |||
34 | #include <asm/signal.h> | 35 | #include <asm/signal.h> |
35 | #include <asm/system.h> | 36 | #include <asm/system.h> |
36 | #include <asm/mach/pci.h> | 37 | #include <asm/mach/pci.h> |