aboutsummaryrefslogtreecommitdiff
path: root/arch/blackfin/include/asm/mach-bf533/gpio.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-06-02 04:17:26 -0400
committerMike Frysinger <vapier@gentoo.org>2010-07-05 05:30:07 -0400
commit4638b21f2ebc3781def51e82fb4e425a468f2e49 (patch)
tree266a39ad5d1f0b849a5352530fcf45f9f7ea1fe0 /arch/blackfin/include/asm/mach-bf533/gpio.h
parent5cbbabc2b74f544f5b41c9e32c3f3ca42d6fe5dd (diff)
downloadu-boot-linaro-stable-4638b21f2ebc3781def51e82fb4e425a468f2e49.tar.gz
Blackfin: import gpio/portmux layer from Linux
The current pinmux handling has spread throughout Blackfin drivers and board code and is getting hideous to maintain. So import the gpio and portmux layer from the Blackfin Linux code. This should spur a serious of cleanups across the Blackfin tree. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/include/asm/mach-bf533/gpio.h')
-rw-r--r--arch/blackfin/include/asm/mach-bf533/gpio.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/arch/blackfin/include/asm/mach-bf533/gpio.h b/arch/blackfin/include/asm/mach-bf533/gpio.h
new file mode 100644
index 000000000..e02416db4
--- /dev/null
+++ b/arch/blackfin/include/asm/mach-bf533/gpio.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright (C) 2008 Analog Devices Inc.
+ * Licensed under the GPL-2 or later.
+ */
+
+
+#ifndef _MACH_GPIO_H_
+#define _MACH_GPIO_H_
+
+#define MAX_BLACKFIN_GPIOS 16
+
+#define GPIO_PF0 0
+#define GPIO_PF1 1
+#define GPIO_PF2 2
+#define GPIO_PF3 3
+#define GPIO_PF4 4
+#define GPIO_PF5 5
+#define GPIO_PF6 6
+#define GPIO_PF7 7
+#define GPIO_PF8 8
+#define GPIO_PF9 9
+#define GPIO_PF10 10
+#define GPIO_PF11 11
+#define GPIO_PF12 12
+#define GPIO_PF13 13
+#define GPIO_PF14 14
+#define GPIO_PF15 15
+
+#define PORT_F GPIO_PF0
+
+#endif /* _MACH_GPIO_H_ */