Shawn Guo | b0b6e42 | 2010-12-13 20:54:58 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2004-2007 Freescale Semiconductor, Inc. All Rights Reserved. |
| 3 | */ |
| 4 | |
| 5 | /* |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License version 2 as |
| 8 | * published by the Free Software Foundation. |
| 9 | */ |
| 10 | |
| 11 | #ifndef __MACH_MXS_IRQS_H__ |
| 12 | #define __MACH_MXS_IRQS_H__ |
| 13 | |
| 14 | #define MXS_INTERNAL_IRQS 128 |
| 15 | |
| 16 | #define MXS_GPIO_IRQ_START MXS_INTERNAL_IRQS |
| 17 | |
| 18 | /* the maximum for MXS-based */ |
| 19 | #define MXS_GPIO_IRQS (32 * 5) |
| 20 | |
| 21 | /* |
| 22 | * The next 16 interrupts are for board specific purposes. Since |
| 23 | * the kernel can only run on one machine at a time, we can re-use |
| 24 | * these. If you need more, increase MXS_BOARD_IRQS, but keep it |
| 25 | * within sensible limits. |
| 26 | */ |
| 27 | #define MXS_BOARD_IRQ_START (MXS_GPIO_IRQ_START + MXS_GPIO_IRQS) |
| 28 | #define MXS_BOARD_IRQS 16 |
| 29 | |
| 30 | #define NR_IRQS (MXS_BOARD_IRQ_START + MXS_BOARD_IRQS) |
| 31 | |
| 32 | #endif /* __MACH_MXS_IRQS_H__ */ |