summaryrefslogtreecommitdiff
path: root/include/linux/input
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2016-03-02 11:43:32 +0530
committerStefan Agner <stefan.agner@toradex.com>2016-03-02 17:53:41 -0800
commitc09ec67b3dba50e6e769512d6689c720929f2438 (patch)
treedd4ef3e12fed11e5cd3851f880b1d3e99abd5141 /include/linux/input
parentc37f0cf10825b26ff438b13640030a2100700fab (diff)
input: touchscreen: added platform data for Fusion touchscreen
Added platform data struct to define interrupt and reset GPIO. This allows to initialize the touchscreen controller inside the driver rather than in each platform and use the driver as a module. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
Diffstat (limited to 'include/linux/input')
-rw-r--r--include/linux/input/fusion_F0710A.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/linux/input/fusion_F0710A.h b/include/linux/input/fusion_F0710A.h
new file mode 100644
index 000000000000..7d152cbdd06e
--- /dev/null
+++ b/include/linux/input/fusion_F0710A.h
@@ -0,0 +1,20 @@
+/* linux/input/fusion_F0710A.h
+ *
+ * Platform data for Fusion F0710A driver
+ *
+ * Copyright (c) 2013 Toradex AG (stefan.agner@toradex.ch)
+ *
+ * For licencing details see kernel-base/COPYING
+ */
+
+#ifndef __LINUX_I2C_FUSION_F0710A_H
+#define __LINUX_I2C_FUSION_F0710A_H
+
+/* Board specific touch screen initial values */
+struct fusion_f0710a_init_data {
+ int (*pinmux_fusion_pins)(void);
+ int gpio_int;
+ int gpio_reset;
+};
+
+#endif /* __LINUX_I2C_FUSION_F0710A_H */