diff options
| author | Robert Jarzmik <robert.jarzmik@free.fr> | 2014-11-24 17:18:22 -0500 |
|---|---|---|
| committer | Robert Jarzmik <robert.jarzmik@free.fr> | 2014-12-26 12:03:20 -0500 |
| commit | 3ad32229bed9953dd2085ef992adb161ed0c9194 (patch) | |
| tree | df3af4431fd05ad5a88f4d9dab7494eeb507e852 | |
| parent | 95d8c4c8499f8a868af719ecfb005f55c959c73a (diff) | |
ARM: pxa: arbitrarily set first interrupt number
As IRQ0, the legacy timer interrupt should not be used as an interrupt
number, shift the interrupts by a fixed number.
As we had in a special case a shift of 16 when ISA bus was used on a
PXA, use that value as the first interrupt number, regardless of ISA or
not.
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
| -rw-r--r-- | arch/arm/mach-pxa/Kconfig | 5 | ||||
| -rw-r--r-- | arch/arm/mach-pxa/include/mach/irqs.h | 9 |
2 files changed, 2 insertions, 12 deletions
diff --git a/arch/arm/mach-pxa/Kconfig b/arch/arm/mach-pxa/Kconfig index 5f71c06a4b5b..8896e71586f5 100644 --- a/arch/arm/mach-pxa/Kconfig +++ b/arch/arm/mach-pxa/Kconfig | |||
| @@ -83,14 +83,12 @@ config ARCH_VIPER | |||
| 83 | select I2C_GPIO if I2C=y | 83 | select I2C_GPIO if I2C=y |
| 84 | select ISA | 84 | select ISA |
| 85 | select PXA25x | 85 | select PXA25x |
| 86 | select PXA_HAVE_ISA_IRQS | ||
| 87 | 86 | ||
| 88 | config MACH_ARCOM_ZEUS | 87 | config MACH_ARCOM_ZEUS |
| 89 | bool "Arcom/Eurotech ZEUS SBC" | 88 | bool "Arcom/Eurotech ZEUS SBC" |
| 90 | select ARCOM_PCMCIA | 89 | select ARCOM_PCMCIA |
| 91 | select ISA | 90 | select ISA |
| 92 | select PXA27x | 91 | select PXA27x |
| 93 | select PXA_HAVE_ISA_IRQS | ||
| 94 | 92 | ||
| 95 | config MACH_BALLOON3 | 93 | config MACH_BALLOON3 |
| 96 | bool "Balloon 3 board" | 94 | bool "Balloon 3 board" |
| @@ -690,9 +688,6 @@ config SHARPSL_PM_MAX1111 | |||
| 690 | select SPI | 688 | select SPI |
| 691 | select SPI_MASTER | 689 | select SPI_MASTER |
| 692 | 690 | ||
| 693 | config PXA_HAVE_ISA_IRQS | ||
| 694 | bool | ||
| 695 | |||
| 696 | config PXA310_ULPI | 691 | config PXA310_ULPI |
| 697 | bool | 692 | bool |
| 698 | 693 | ||
diff --git a/arch/arm/mach-pxa/include/mach/irqs.h b/arch/arm/mach-pxa/include/mach/irqs.h index 48c2fd851686..83e04d4e72a8 100644 --- a/arch/arm/mach-pxa/include/mach/irqs.h +++ b/arch/arm/mach-pxa/include/mach/irqs.h | |||
| @@ -12,14 +12,9 @@ | |||
| 12 | #ifndef __ASM_MACH_IRQS_H | 12 | #ifndef __ASM_MACH_IRQS_H |
| 13 | #define __ASM_MACH_IRQS_H | 13 | #define __ASM_MACH_IRQS_H |
| 14 | 14 | ||
| 15 | #ifdef CONFIG_PXA_HAVE_ISA_IRQS | 15 | #include <asm/irq.h> |
| 16 | #define PXA_ISA_IRQ(x) (x) | ||
| 17 | #define PXA_ISA_IRQ_NUM (16) | ||
| 18 | #else | ||
| 19 | #define PXA_ISA_IRQ_NUM (0) | ||
| 20 | #endif | ||
| 21 | 16 | ||
| 22 | #define PXA_IRQ(x) (PXA_ISA_IRQ_NUM + (x)) | 17 | #define PXA_IRQ(x) (NR_IRQS_LEGACY + (x)) |
| 23 | 18 | ||
| 24 | #define IRQ_SSP3 PXA_IRQ(0) /* SSP3 service request */ | 19 | #define IRQ_SSP3 PXA_IRQ(0) /* SSP3 service request */ |
| 25 | #define IRQ_MSL PXA_IRQ(1) /* MSL Interface interrupt */ | 20 | #define IRQ_MSL PXA_IRQ(1) /* MSL Interface interrupt */ |
