summaryrefslogtreecommitdiff
path: root/kernel/include/linux
diff options
context:
space:
mode:
authorAlexandra Chin <alexandra.chin@tw.synaptics.com>2012-12-24 15:42:30 +0800
committerAbinaya P <abinayap@codeaurora.org>2016-07-25 11:23:29 +0530
commitd13776d16aca04e9313a039585bf6ee19c0ce537 (patch)
tree0cd737117e08f0dab32265e277f24af866245c59 /kernel/include/linux
parentcc915a39313a9c5987f56d4e80fafedbb0ffa913 (diff)
input: touchscreen: Add synaptics v1 driver
This is the initial commit from thirt party project. Git-commit: bedea8a0819fc95acd0222e21e61203c8a08bb16 Git-repo: https://github.com/synaptics-touch/synaptics-dsx-i2c/ Change-Id: I892bc03122b096b43fc7f6b757b1161470597ddb Signed-off-by: Alexandra Chin <alexandra.chin@tw.synaptics.com> Signed-off-by: Amy Maloche <amaloche@codeaurora.org> Signed-off-by: Shantanu Jain <shjain@codeaurora.org> (cherry picked from commit 7d4470e29ce77e62acc14a21210e88207e4692b5)
Diffstat (limited to 'kernel/include/linux')
-rw-r--r--kernel/include/linux/input/synaptics_dsx.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/kernel/include/linux/input/synaptics_dsx.h b/kernel/include/linux/input/synaptics_dsx.h
new file mode 100644
index 000000000000..b779e42a9bac
--- /dev/null
+++ b/kernel/include/linux/input/synaptics_dsx.h
@@ -0,0 +1,59 @@
+/*
+ * Synaptics RMI4 touchscreen driver
+ *
+ * Copyright (C) 2012 Synaptics Incorporated
+ *
+ * Copyright (C) 2012 Alexandra Chin <alexandra.chin@tw.synaptics.com>
+ * Copyright (C) 2012 Scott Lin <scott.lin@tw.synaptics.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ */
+
+#ifndef _SYNAPTICS_DSX_H_
+#define _SYNAPTICS_DSX_H_
+
+/*
+ * struct synaptics_rmi4_capacitance_button_map - 0d button map
+ * @nbuttons: number of buttons
+ * @map: button map
+ */
+struct synaptics_rmi4_capacitance_button_map {
+ unsigned char nbuttons;
+ unsigned char *map;
+};
+
+/*
+ * struct synaptics_rmi4_platform_data - rmi4 platform data
+ * @x_flip: x flip flag
+ * @y_flip: y flip flag
+ * @regulator_en: regulator enable flag
+ * @irq_gpio: attention interrupt gpio
+ * @irq_flags: flags used by the irq
+ * @reset_gpio: reset gpio
+ * @panel_x: panel maximum values on the x
+ * @panel_y: panel maximum values on the y
+ * @gpio_config: pointer to gpio configuration function
+ * @capacitance_button_map: pointer to 0d button map
+ */
+struct synaptics_rmi4_platform_data {
+ bool x_flip;
+ bool y_flip;
+ bool regulator_en;
+ unsigned irq_gpio;
+ unsigned long irq_flags;
+ unsigned reset_gpio;
+ unsigned panel_x;
+ unsigned panel_y;
+ int (*gpio_config)(unsigned gpio, bool configure);
+ struct synaptics_rmi4_capacitance_button_map *capacitance_button_map;
+};
+
+#endif