summaryrefslogtreecommitdiffstats
path: root/arch/avr32/mach-at32ap/include/mach/irq.h
diff options
context:
space:
mode:
authorHaavard Skinnemoen <haavard.skinnemoen@atmel.com>2008-08-05 13:49:09 +0200
committerHaavard Skinnemoen <haavard.skinnemoen@atmel.com>2008-08-05 13:49:09 +0200
commit964d219b6a8a79ea4c8d77b6dcdcbbcda403c392 (patch)
treee83c41834dec8650362689573eb4e35619d4350f /arch/avr32/mach-at32ap/include/mach/irq.h
parent84db8d7cdb072866f5a6c6ac2c9a74c5c48dd22f (diff)
downloadtalos-op-linux-964d219b6a8a79ea4c8d77b6dcdcbbcda403c392.tar.gz
talos-op-linux-964d219b6a8a79ea4c8d77b6dcdcbbcda403c392.zip
avr32: Introduce arch/avr32/mach-*/include/mach
Add arch/avr32/mach-*/include to include search path and copy all the files from include/asm/arch there. The old files will be removed once ARM does the same change and all common drivers are converted. Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Diffstat (limited to 'arch/avr32/mach-at32ap/include/mach/irq.h')
-rw-r--r--arch/avr32/mach-at32ap/include/mach/irq.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/avr32/mach-at32ap/include/mach/irq.h b/arch/avr32/mach-at32ap/include/mach/irq.h
new file mode 100644
index 000000000000..608e350368c7
--- /dev/null
+++ b/arch/avr32/mach-at32ap/include/mach/irq.h
@@ -0,0 +1,14 @@
+#ifndef __ASM_AVR32_ARCH_IRQ_H
+#define __ASM_AVR32_ARCH_IRQ_H
+
+#define EIM_IRQ_BASE NR_INTERNAL_IRQS
+#define NR_EIM_IRQS 32
+#define AT32_EXTINT(n) (EIM_IRQ_BASE + (n))
+
+#define GPIO_IRQ_BASE (EIM_IRQ_BASE + NR_EIM_IRQS)
+#define NR_GPIO_CTLR (5 /*internal*/ + 1 /*external*/)
+#define NR_GPIO_IRQS (NR_GPIO_CTLR * 32)
+
+#define NR_IRQS (GPIO_IRQ_BASE + NR_GPIO_IRQS)
+
+#endif /* __ASM_AVR32_ARCH_IRQ_H */
OpenPOWER on IntegriCloud