summaryrefslogtreecommitdiffstats
path: root/include/asm-avr32/arch-at32ap/irq.h
diff options
context:
space:
mode:
authorHaavard Skinnemoen2007-02-05 16:57:13 +0100
committerHaavard Skinnemoen2007-02-09 15:01:58 +0100
commit6a4e5227a33f60f918b30cf2001fb0bb259d9396 (patch)
treea3e8d130fdfb88710872afc9908e1e78644b300f /include/asm-avr32/arch-at32ap/irq.h
parent[AVR32] Use ARRAY_SIZE macro when appropriate (diff)
downloadkernel-qcow2-linux-6a4e5227a33f60f918b30cf2001fb0bb259d9396.tar.gz
kernel-qcow2-linux-6a4e5227a33f60f918b30cf2001fb0bb259d9396.tar.xz
kernel-qcow2-linux-6a4e5227a33f60f918b30cf2001fb0bb259d9396.zip
[AVR32] GPIO API implementation
Arch-neutral GPIO calls for AVR32. GPIO IRQ support written by David Brownell. Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Diffstat (limited to 'include/asm-avr32/arch-at32ap/irq.h')
-rw-r--r--include/asm-avr32/arch-at32ap/irq.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/asm-avr32/arch-at32ap/irq.h b/include/asm-avr32/arch-at32ap/irq.h
new file mode 100644
index 000000000000..f8f7f4571e44
--- /dev/null
+++ b/include/asm-avr32/arch-at32ap/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_IRQS (4 * 32)
+
+#define NR_IRQS (GPIO_IRQ_BASE + NR_GPIO_IRQS)
+
+#endif /* __ASM_AVR32_ARCH_IRQ_H */