Viresh Kumar | b31e237 | 2012-04-19 22:23:13 +0530 | [diff] [blame] | 1 | /* |
Arnd Bergmann | 5447521 | 2013-03-12 17:00:03 +0100 | [diff] [blame] | 2 | * IRQ helper macros for spear machine family |
Viresh Kumar | b31e237 | 2012-04-19 22:23:13 +0530 | [diff] [blame] | 3 | * |
Arnd Bergmann | 5447521 | 2013-03-12 17:00:03 +0100 | [diff] [blame] | 4 | * Copyright (C) 2009-2012 ST Microelectronics |
| 5 | * Rajeev Kumar <rajeev-dlh.kumar@st.com> |
Viresh Kumar | 10d8935 | 2012-06-20 12:53:02 -0700 | [diff] [blame] | 6 | * Viresh Kumar <viresh.linux@gmail.com> |
Viresh Kumar | b31e237 | 2012-04-19 22:23:13 +0530 | [diff] [blame] | 7 | * |
| 8 | * This file is licensed under the terms of the GNU General Public |
| 9 | * License version 2. This program is licensed "as is" without any |
| 10 | * warranty of any kind, whether express or implied. |
| 11 | */ |
| 12 | |
| 13 | #ifndef __MACH_IRQS_H |
| 14 | #define __MACH_IRQS_H |
| 15 | |
Arnd Bergmann | 5447521 | 2013-03-12 17:00:03 +0100 | [diff] [blame] | 16 | #ifdef CONFIG_ARCH_SPEAR3XX |
| 17 | #define NR_IRQS 256 |
| 18 | #endif |
| 19 | |
| 20 | #ifdef CONFIG_ARCH_SPEAR6XX |
| 21 | /* IRQ definitions */ |
| 22 | /* VIC 1 */ |
| 23 | #define IRQ_VIC_END 64 |
| 24 | |
| 25 | /* GPIO pins virtual irqs */ |
| 26 | #define VIRTUAL_IRQS 24 |
| 27 | #define NR_IRQS (IRQ_VIC_END + VIRTUAL_IRQS) |
| 28 | #endif |
| 29 | |
| 30 | #ifdef CONFIG_ARCH_SPEAR13XX |
Viresh Kumar | b31e237 | 2012-04-19 22:23:13 +0530 | [diff] [blame] | 31 | #define IRQ_GIC_END 160 |
| 32 | #define NR_IRQS IRQ_GIC_END |
Arnd Bergmann | 5447521 | 2013-03-12 17:00:03 +0100 | [diff] [blame] | 33 | #endif |
Viresh Kumar | b31e237 | 2012-04-19 22:23:13 +0530 | [diff] [blame] | 34 | |
| 35 | #endif /* __MACH_IRQS_H */ |