diff options
author | Ludovic Desroches <ludovic.desroches@atmel.com> | 2012-06-21 08:47:27 -0400 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2012-07-02 08:26:59 -0400 |
commit | 8fe82a5550a8e97b3f59c74f994b88ed6b3544a3 (patch) | |
tree | 0b46bdd7cfe2bb0691bf8c3243f803b478fe4379 /arch/arm/mach-at91/include | |
parent | 3e135466745a62b1814edef74c7b4a25e6bda707 (diff) |
ARM: at91: sparse irq support
Enable sparse irq support for multisoc image. It involves to add the
NR_IRQS_LEGACY offset to static SoC irq number definitions since NR_IRQS_LEGACY
irq descs are allocated before AIC requests irq descs allocation.
Move NR_AIC_IRQS macro to a more appropiate place with the purpose to
remove mach/irqs.h later.
Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'arch/arm/mach-at91/include')
-rw-r--r-- | arch/arm/mach-at91/include/mach/at91_aic.h | 3 | ||||
-rw-r--r-- | arch/arm/mach-at91/include/mach/irqs.h | 12 |
2 files changed, 3 insertions, 12 deletions
diff --git a/arch/arm/mach-at91/include/mach/at91_aic.h b/arch/arm/mach-at91/include/mach/at91_aic.h index 78673784bc64..fd42a85b7eb1 100644 --- a/arch/arm/mach-at91/include/mach/at91_aic.h +++ b/arch/arm/mach-at91/include/mach/at91_aic.h | |||
@@ -28,6 +28,9 @@ extern void __iomem *at91_aic_base; | |||
28 | .extern at91_aic_base | 28 | .extern at91_aic_base |
29 | #endif | 29 | #endif |
30 | 30 | ||
31 | /* Number of irq lines managed by AIC */ | ||
32 | #define NR_AIC_IRQS 32 | ||
33 | |||
31 | #define AT91_AIC_IRQ_MIN_PRIORITY 0 | 34 | #define AT91_AIC_IRQ_MIN_PRIORITY 0 |
32 | #define AT91_AIC_IRQ_MAX_PRIORITY 7 | 35 | #define AT91_AIC_IRQ_MAX_PRIORITY 7 |
33 | 36 | ||
diff --git a/arch/arm/mach-at91/include/mach/irqs.h b/arch/arm/mach-at91/include/mach/irqs.h index 2d510ee6ac03..cab60d550771 100644 --- a/arch/arm/mach-at91/include/mach/irqs.h +++ b/arch/arm/mach-at91/include/mach/irqs.h | |||
@@ -22,18 +22,6 @@ | |||
22 | #define __ASM_ARCH_IRQS_H | 22 | #define __ASM_ARCH_IRQS_H |
23 | 23 | ||
24 | #include <linux/io.h> | 24 | #include <linux/io.h> |
25 | #include <mach/at91_aic.h> | ||
26 | |||
27 | #define NR_AIC_IRQS 32 | ||
28 | |||
29 | |||
30 | /* | ||
31 | * IRQ interrupt symbols are the AT91xxx_ID_* symbols | ||
32 | * for IRQs handled directly through the AIC, or else the AT91_PIN_* | ||
33 | * symbols in gpio.h for ones handled indirectly as GPIOs. | ||
34 | * We make provision for 5 banks of GPIO. | ||
35 | */ | ||
36 | #define NR_IRQS (NR_AIC_IRQS + (5 * 32)) | ||
37 | 25 | ||
38 | /* FIQ is AIC source 0. */ | 26 | /* FIQ is AIC source 0. */ |
39 | #define FIQ_START AT91_ID_FIQ | 27 | #define FIQ_START AT91_ID_FIQ |