summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-10-21 10:48:14 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-10-21 10:48:14 +0200
commit6f13282949ac68ab39a307998e66749a0fc084d7 (patch)
tree263300a1b959fbc83c37d0f55b4a61cbff942690 /include
parent2d9b136ef1b7bcfdf624e2c222824c5c8cf42a3d (diff)
parent5043fc33acf0c3679be22b5563ed68c295a8d4ec (diff)
downloadbarebox-6f13282949ac68ab39a307998e66749a0fc084d7.tar.gz
barebox-6f13282949ac68ab39a307998e66749a0fc084d7.tar.xz
Merge branch 'for-next/gpio' into for-next/bcm2835
Diffstat (limited to 'include')
-rw-r--r--include/asm-generic/gpio.h10
-rw-r--r--include/linux/amba/pl061.h12
2 files changed, 22 insertions, 0 deletions
diff --git a/include/asm-generic/gpio.h b/include/asm-generic/gpio.h
new file mode 100644
index 0000000000..1997888bbb
--- /dev/null
+++ b/include/asm-generic/gpio.h
@@ -0,0 +1,10 @@
+#ifndef __ASM_GENERIC_GPIO_H
+#define __ASM_GENERIC_GPIO_H
+
+void gpio_set_value(unsigned gpio, int value);
+int gpio_get_value(unsigned gpio);
+int gpio_direction_output(unsigned gpio, int value);
+int gpio_direction_input(unsigned gpio);
+
+#endif /* __ASM_GENERIC_GPIO_H */
+
diff --git a/include/linux/amba/pl061.h b/include/linux/amba/pl061.h
new file mode 100644
index 0000000000..d498cd7a8c
--- /dev/null
+++ b/include/linux/amba/pl061.h
@@ -0,0 +1,12 @@
+#ifndef __AMBA_PL061_H__
+#define __AMBA_PL061_H__
+
+#include <linux/types.h>
+
+/* platform data for the PL061 GPIO driver */
+
+struct pl061_platform_data {
+ /* number of the first GPIO */
+ unsigned gpio_base;
+};
+#endif /* __AMBA_PL061_H__ */