summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-spear/include/mach/irqs.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2012-12-02 15:12:47 +0100
committerArnd Bergmann <arnd@arndb.de>2013-03-12 17:39:47 +0100
commita7ed099ffc8edf2a6dccd8a22469347f5cdcfa57 (patch)
treeb56901430602574233ad23008cfd7c23babd20c3 /arch/arm/mach-spear/include/mach/irqs.h
parent0ec05c3e4ac6548fcab4b6a74254a22ef251e1fd (diff)
downloadlinux-a7ed099ffc8edf2a6dccd8a22469347f5cdcfa57.tar.gz
linux-a7ed099ffc8edf2a6dccd8a22469347f5cdcfa57.tar.bz2
linux-a7ed099ffc8edf2a6dccd8a22469347f5cdcfa57.zip
ARM: spear: move all files to mach-spear
There are no conflicting files between the three mach-spear* directories and plat-spear any more, so we can now move all file to a common mach-spear directory. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'arch/arm/mach-spear/include/mach/irqs.h')
-rw-r--r--arch/arm/mach-spear/include/mach/irqs.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/arch/arm/mach-spear/include/mach/irqs.h b/arch/arm/mach-spear/include/mach/irqs.h
new file mode 100644
index 000000000000..92da0a8c6bce
--- /dev/null
+++ b/arch/arm/mach-spear/include/mach/irqs.h
@@ -0,0 +1,35 @@
+/*
+ * IRQ helper macros for spear machine family
+ *
+ * Copyright (C) 2009-2012 ST Microelectronics
+ * Rajeev Kumar <rajeev-dlh.kumar@st.com>
+ * Viresh Kumar <viresh.linux@gmail.com>
+ *
+ * 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
+
+#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
+#define IRQ_GIC_END 160
+#define NR_IRQS IRQ_GIC_END
+#endif
+
+#endif /* __MACH_IRQS_H */