summaryrefslogtreecommitdiffstats
path: root/include/asm-avr32/arch-at32ap/at32ap700x.h
diff options
context:
space:
mode:
authorHaavard Skinnemoen2007-10-29 15:28:07 +0100
committerHaavard Skinnemoen2008-01-25 08:31:41 +0100
commit438ff3f3cc33833206a48492e9d6674e4e82bed8 (patch)
tree5159b43453c6a86949798af889d3cb0200818b74 /include/asm-avr32/arch-at32ap/at32ap700x.h
parent[AVR32] Provide more CPU information in /proc/cpuinfo and dmesg (diff)
downloadkernel-qcow2-linux-438ff3f3cc33833206a48492e9d6674e4e82bed8.tar.gz
kernel-qcow2-linux-438ff3f3cc33833206a48492e9d6674e4e82bed8.tar.xz
kernel-qcow2-linux-438ff3f3cc33833206a48492e9d6674e4e82bed8.zip
[AVR32] Add support for AT32AP7001 and AT32AP7002
These are derivatives of the AT32AP7000 chip, which means that most of the code stays the same. Rename a few files, functions, definitions and config symbols to reflect that they apply to all AP700x chips, and exclude some platform devices from chips where they aren't present. Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
Diffstat (limited to 'include/asm-avr32/arch-at32ap/at32ap700x.h')
-rw-r--r--include/asm-avr32/arch-at32ap/at32ap700x.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/include/asm-avr32/arch-at32ap/at32ap700x.h b/include/asm-avr32/arch-at32ap/at32ap700x.h
new file mode 100644
index 000000000000..99684d6f3967
--- /dev/null
+++ b/include/asm-avr32/arch-at32ap/at32ap700x.h
@@ -0,0 +1,35 @@
+/*
+ * Pin definitions for AT32AP7000.
+ *
+ * Copyright (C) 2006 Atmel Corporation
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+#ifndef __ASM_ARCH_AT32AP700X_H__
+#define __ASM_ARCH_AT32AP700X_H__
+
+#define GPIO_PERIPH_A 0
+#define GPIO_PERIPH_B 1
+
+#define NR_GPIO_CONTROLLERS 4
+
+/*
+ * Pin numbers identifying specific GPIO pins on the chip. They can
+ * also be converted to IRQ numbers by passing them through
+ * gpio_to_irq().
+ */
+#define GPIO_PIOA_BASE (0)
+#define GPIO_PIOB_BASE (GPIO_PIOA_BASE + 32)
+#define GPIO_PIOC_BASE (GPIO_PIOB_BASE + 32)
+#define GPIO_PIOD_BASE (GPIO_PIOC_BASE + 32)
+#define GPIO_PIOE_BASE (GPIO_PIOD_BASE + 32)
+
+#define GPIO_PIN_PA(N) (GPIO_PIOA_BASE + (N))
+#define GPIO_PIN_PB(N) (GPIO_PIOB_BASE + (N))
+#define GPIO_PIN_PC(N) (GPIO_PIOC_BASE + (N))
+#define GPIO_PIN_PD(N) (GPIO_PIOD_BASE + (N))
+#define GPIO_PIN_PE(N) (GPIO_PIOE_BASE + (N))
+
+#endif /* __ASM_ARCH_AT32AP700X_H__ */