diff options
author | Bibek Basu <bibek.basu@stericsson.com> | 2011-02-15 12:56:16 +0530 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2011-03-28 08:47:18 +0200 |
commit | 3ef374a22bdf91fb3b4213200aadd054f81c3499 (patch) | |
tree | c89057633a516b558b2ef830ee5c53d482df4328 /arch/arm/mach-ux500/include/mach/irqs-board-mop500.h | |
parent | 0cb3fcd72cc3e6dd88f0e769746d294e5e6bafa9 (diff) | |
download | blackbird-op-linux-3ef374a22bdf91fb3b4213200aadd054f81c3499.tar.gz blackbird-op-linux-3ef374a22bdf91fb3b4213200aadd054f81c3499.zip |
mach-ux500: board support for AB8500 GPIO driver
This is the board support patch for ab8500 gpio driver
on mach-ux500.Patch implements 16 virtual
IRQ mapped to 16 interrupt capable AB8500 GPIOs.
Signed-off-by: Bibek Basu <bibek.basu@stericsson.com>
[Modify for header file placement]
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/mach-ux500/include/mach/irqs-board-mop500.h')
-rw-r--r-- | arch/arm/mach-ux500/include/mach/irqs-board-mop500.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/arch/arm/mach-ux500/include/mach/irqs-board-mop500.h b/arch/arm/mach-ux500/include/mach/irqs-board-mop500.h index 7cdeb2af0ebb..97ef55f84934 100644 --- a/arch/arm/mach-ux500/include/mach/irqs-board-mop500.h +++ b/arch/arm/mach-ux500/include/mach/irqs-board-mop500.h @@ -35,9 +35,20 @@ #define MOP500_STMPE1601_IRQBASE MOP500_EGPIO_IRQ_END #define MOP500_STMPE1601_IRQ(x) (MOP500_STMPE1601_IRQBASE + (x)) -#define MOP500_NR_IRQS MOP500_STMPE1601_IRQ(STMPE_NR_INTERNAL_IRQS) +#define MOP500_STMPE1601_IRQ_END \ + MOP500_STMPE1601_IRQ(STMPE_NR_INTERNAL_IRQS) -#define MOP500_IRQ_END MOP500_NR_IRQS +/* AB8500 virtual gpio IRQ */ +#define AB8500_VIR_GPIO_NR_IRQS 16 + +#define MOP500_AB8500_VIR_GPIO_IRQ_BASE \ + MOP500_STMPE1601_IRQ_END +#define MOP500_AB8500_VIR_GPIO_IRQ_END \ + (MOP500_AB8500_VIR_GPIO_IRQ_BASE + AB8500_VIR_GPIO_NR_IRQS) + +#define MOP500_NR_IRQS MOP500_AB8500_VIR_GPIO_IRQ_END + +#define MOP500_IRQ_END MOP500_NR_IRQS #if MOP500_IRQ_END > IRQ_BOARD_END #undef IRQ_BOARD_END |