Rabin Vincent | 39ae702 | 2010-07-26 11:12:15 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) ST-Ericsson SA 2010 |
| 3 | * |
| 4 | * Author: Rabin Vincent <rabin.vincent@stericsson.com> |
| 5 | * License terms: GNU General Public License (GPL) version 2 |
| 6 | */ |
| 7 | |
| 8 | #ifndef __MACH_IRQS_BOARD_MOP500_H |
| 9 | #define __MACH_IRQS_BOARD_MOP500_H |
| 10 | |
| 11 | #define AB8500_NR_IRQS 104 |
| 12 | |
| 13 | #define MOP500_AB8500_IRQ_BASE IRQ_BOARD_START |
| 14 | #define MOP500_AB8500_IRQ_END (MOP500_AB8500_IRQ_BASE \ |
| 15 | + AB8500_NR_IRQS) |
Rabin Vincent | b8410a1 | 2010-08-09 19:18:17 +0530 | [diff] [blame^] | 16 | |
| 17 | #define TC35892_NR_INTERNAL_IRQS 8 |
| 18 | #define TC35892_INT_GPIO(x) (TC35892_NR_INTERNAL_IRQS + (x)) |
| 19 | #define TC35892_NR_GPIOS 24 |
| 20 | #define TC35892_NR_IRQS TC35892_INT_GPIO(TC35892_NR_GPIOS) |
| 21 | |
| 22 | #define MOP500_EGPIO_NR_IRQS TC35892_NR_IRQS |
| 23 | |
| 24 | #define MOP500_EGPIO_IRQ_BASE MOP500_AB8500_IRQ_END |
| 25 | #define MOP500_EGPIO_IRQ_END (MOP500_EGPIO_IRQ_BASE \ |
| 26 | + MOP500_EGPIO_NR_IRQS) |
| 27 | |
| 28 | #define MOP500_IRQ_END MOP500_EGPIO_IRQ_END |
Rabin Vincent | 39ae702 | 2010-07-26 11:12:15 +0100 | [diff] [blame] | 29 | |
| 30 | #if MOP500_IRQ_END > IRQ_BOARD_END |
| 31 | #undef IRQ_BOARD_END |
| 32 | #define IRQ_BOARD_END MOP500_IRQ_END |
| 33 | #endif |
| 34 | |
| 35 | #endif |