[ARM] 4435/1: PXA: remove PXA_INTERNAL_IRQS
1. define PXA_GPIO_IRQ_BASE to be right after the internal IRQs, and define PXA_GPIO_IRQ_NUM to be 128 for all PXA2xx variants 2. make the code specific to the high IRQ numbers (32..64) to be PXA27x specific 3. add a function pxa_init_irq_high() to initialize the internal high IRQ chip, the invoke of this function could be moved to PXA27x specific initialization code Signed-off-by: eric miao <eric.miao@marvell.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
486c955118
commit
c08b7b3ef6
2 changed files with 22 additions and 19 deletions
|
|
@ -55,18 +55,15 @@
|
|||
#ifdef CONFIG_PXA27x
|
||||
#define IRQ_TPM PXA_IRQ(32) /* TPM interrupt */
|
||||
#define IRQ_CAMERA PXA_IRQ(33) /* Camera Interface */
|
||||
|
||||
#define PXA_INTERNAL_IRQS 34
|
||||
#else
|
||||
#define PXA_INTERNAL_IRQS 32
|
||||
#endif
|
||||
|
||||
#define GPIO_2_x_TO_IRQ(x) \
|
||||
PXA_IRQ((x) - 2 + PXA_INTERNAL_IRQS)
|
||||
#define PXA_GPIO_IRQ_BASE (64)
|
||||
#define PXA_GPIO_IRQ_NUM (128)
|
||||
|
||||
#define GPIO_2_x_TO_IRQ(x) (PXA_GPIO_IRQ_BASE + (x))
|
||||
#define IRQ_GPIO(x) (((x) < 2) ? (IRQ_GPIO0 + (x)) : GPIO_2_x_TO_IRQ(x))
|
||||
|
||||
#define IRQ_TO_GPIO_2_x(i) \
|
||||
((i) - IRQ_GPIO(2) + 2)
|
||||
#define IRQ_TO_GPIO_2_x(i) ((i) - PXA_GPIO_IRQ_BASE)
|
||||
#define IRQ_TO_GPIO(i) (((i) < IRQ_GPIO(2)) ? ((i) - IRQ_GPIO0) : IRQ_TO_GPIO_2_x(i))
|
||||
|
||||
#if defined(CONFIG_PXA25x)
|
||||
|
|
@ -81,7 +78,7 @@
|
|||
* these. If you need more, increase IRQ_BOARD_END, but keep it
|
||||
* within sensible limits.
|
||||
*/
|
||||
#define IRQ_BOARD_START (IRQ_GPIO(PXA_LAST_GPIO) + 1)
|
||||
#define IRQ_BOARD_START (PXA_GPIO_IRQ_BASE + PXA_GPIO_IRQ_NUM)
|
||||
#define IRQ_BOARD_END (IRQ_BOARD_START + 16)
|
||||
|
||||
#define IRQ_SA1111_START (IRQ_BOARD_END)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue