diff options
Diffstat (limited to 'include/asm-arm/arch-pxa/irqs.h')
-rw-r--r-- | include/asm-arm/arch-pxa/irqs.h | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/include/asm-arm/arch-pxa/irqs.h b/include/asm-arm/arch-pxa/irqs.h index a07fe0f928cd..6238dbf7a236 100644 --- a/include/asm-arm/arch-pxa/irqs.h +++ b/include/asm-arm/arch-pxa/irqs.h | |||
@@ -66,12 +66,6 @@ | |||
66 | #define IRQ_TO_GPIO_2_x(i) ((i) - PXA_GPIO_IRQ_BASE) | 66 | #define IRQ_TO_GPIO_2_x(i) ((i) - PXA_GPIO_IRQ_BASE) |
67 | #define IRQ_TO_GPIO(i) (((i) < IRQ_GPIO(2)) ? ((i) - IRQ_GPIO0) : IRQ_TO_GPIO_2_x(i)) | 67 | #define IRQ_TO_GPIO(i) (((i) < IRQ_GPIO(2)) ? ((i) - IRQ_GPIO0) : IRQ_TO_GPIO_2_x(i)) |
68 | 68 | ||
69 | #if defined(CONFIG_PXA25x) | ||
70 | #define PXA_LAST_GPIO 84 | ||
71 | #elif defined(CONFIG_PXA27x) | ||
72 | #define PXA_LAST_GPIO 127 | ||
73 | #endif | ||
74 | |||
75 | /* | 69 | /* |
76 | * The next 16 interrupts are for board specific purposes. Since | 70 | * The next 16 interrupts are for board specific purposes. Since |
77 | * the kernel can only run on one machine at a time, we can re-use | 71 | * the kernel can only run on one machine at a time, we can re-use |
@@ -216,3 +210,24 @@ | |||
216 | #define IRQ_LOCOMO_GPIO_BASE (IRQ_BOARD_START + 1) | 210 | #define IRQ_LOCOMO_GPIO_BASE (IRQ_BOARD_START + 1) |
217 | #define IRQ_LOCOMO_LT_BASE (IRQ_BOARD_START + 2) | 211 | #define IRQ_LOCOMO_LT_BASE (IRQ_BOARD_START + 2) |
218 | #define IRQ_LOCOMO_SPI_BASE (IRQ_BOARD_START + 3) | 212 | #define IRQ_LOCOMO_SPI_BASE (IRQ_BOARD_START + 3) |
213 | |||
214 | /* ITE8152 irqs */ | ||
215 | /* add IT8152 IRQs beyond BOARD_END */ | ||
216 | #ifdef CONFIG_PCI_HOST_ITE8152 | ||
217 | #define IT8152_IRQ(x) (IRQ_GPIO(IRQ_BOARD_END) + 1 + (x)) | ||
218 | |||
219 | /* IRQ-sources in 3 groups - local devices, LPC (serial), and external PCI */ | ||
220 | #define IT8152_LD_IRQ_COUNT 9 | ||
221 | #define IT8152_LP_IRQ_COUNT 16 | ||
222 | #define IT8152_PD_IRQ_COUNT 15 | ||
223 | |||
224 | /* Priorities: */ | ||
225 | #define IT8152_PD_IRQ(i) IT8152_IRQ(i) | ||
226 | #define IT8152_LP_IRQ(i) (IT8152_IRQ(i) + IT8152_PD_IRQ_COUNT) | ||
227 | #define IT8152_LD_IRQ(i) (IT8152_IRQ(i) + IT8152_PD_IRQ_COUNT + IT8152_LP_IRQ_COUNT) | ||
228 | |||
229 | #define IT8152_LAST_IRQ IT8152_LD_IRQ(IT8152_LD_IRQ_COUNT - 1) | ||
230 | |||
231 | #undef NR_IRQS | ||
232 | #define NR_IRQS (IT8152_LAST_IRQ+1) | ||
233 | #endif | ||