2012-04-19 18:53:13 +02:00
|
|
|
/*
|
2013-03-12 17:00:03 +01:00
|
|
|
* IRQ helper macros for spear machine family
|
2012-04-19 18:53:13 +02:00
|
|
|
*
|
2013-03-12 17:00:03 +01:00
|
|
|
* Copyright (C) 2009-2012 ST Microelectronics
|
|
|
|
* Rajeev Kumar <rajeev-dlh.kumar@st.com>
|
2012-06-20 21:53:02 +02:00
|
|
|
* Viresh Kumar <viresh.linux@gmail.com>
|
2012-04-19 18:53:13 +02:00
|
|
|
*
|
|
|
|
* This file is licensed under the terms of the GNU General Public
|
|
|
|
* License version 2. This program is licensed "as is" without any
|
|
|
|
* warranty of any kind, whether express or implied.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __MACH_IRQS_H
|
|
|
|
#define __MACH_IRQS_H
|
|
|
|
|
2013-03-12 17:00:03 +01:00
|
|
|
#ifdef CONFIG_ARCH_SPEAR3XX
|
|
|
|
#define NR_IRQS 256
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_ARCH_SPEAR6XX
|
|
|
|
/* IRQ definitions */
|
|
|
|
/* VIC 1 */
|
|
|
|
#define IRQ_VIC_END 64
|
|
|
|
|
|
|
|
/* GPIO pins virtual irqs */
|
|
|
|
#define VIRTUAL_IRQS 24
|
|
|
|
#define NR_IRQS (IRQ_VIC_END + VIRTUAL_IRQS)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_ARCH_SPEAR13XX
|
2012-04-19 18:53:13 +02:00
|
|
|
#define IRQ_GIC_END 160
|
|
|
|
#define NR_IRQS IRQ_GIC_END
|
2013-03-12 17:00:03 +01:00
|
|
|
#endif
|
2012-04-19 18:53:13 +02:00
|
|
|
|
|
|
|
#endif /* __MACH_IRQS_H */
|