Skip to contentSkip to conversation

Input: synaptics-rmi4: Add support for F12

PATCH Superseded Andrew Duggan 1 participant 1 message Jan 14, 2016

Subsystems (2)

v2 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 6/10 Input: synaptics-rmi4: Add support for F12

Function 12 implements 2D touch position sensor for newer Synaptics touch devices. It replaces F11 and no device will contain both functions.

---
 drivers/input/rmi4/Kconfig      |  11 +
 drivers/input/rmi4/Makefile     |   1 +
 drivers/input/rmi4/rmi_bus.c    |   3 +
 drivers/input/rmi4/rmi_driver.h |   1 +
 drivers/input/rmi4/rmi_f12.c    | 462 ++++++++++++++++++++++++++++++++++++++++
 5 files changed, 478 insertions(+)
 create mode 100644 drivers/input/rmi4/rmi_f12.c
drivers/input/rmi4/Kconfig +11 -0
index 8d57646..8b6acc9 100644
@@ -51,3 +51,14 @@ config RMI4_F11_PEN
 	  If your system is not recognizing pen touches and you know your
 	  sensor supports pen input, you probably want to turn this feature
 	  off.
+
+config RMI4_F12
+	bool "RMI4 Function 12 (2D pointing)"
+	select RMI4_2D_SENSOR
+	depends on RMI4_CORE
+	help
+	  Say Y here if you want to add support for RMI4 function 12.
+
+	  Function 12 provides 2D multifinger pointing for touchscreens and
+	  touchpads. For sensors that support relative pointing, F12 also
+	  provides mouse input.
drivers/input/rmi4/Makefile +1 -0
index 9e7424a..d01e703 100644
@@ -5,6 +5,7 @@ rmi_core-$(CONFIG_RMI4_2D_SENSOR) += rmi_2d_sensor.o
 
 # Function drivers
 rmi_core-$(CONFIG_RMI4_F11) += rmi_f11.o
+rmi_core-$(CONFIG_RMI4_F12) += rmi_f12.o
 
 # Transports
 obj-$(CONFIG_RMI4_I2C) += rmi_i2c.o
drivers/input/rmi4/rmi_bus.c +3 -0
index 440b564..e6bb1af 100644
@@ -309,6 +309,9 @@ static struct rmi_function_handler *fn_handlers[] = {
 #ifdef CONFIG_RMI4_F11
 	&rmi_f11_handler,
 #endif
+#ifdef CONFIG_RMI4_F12
+	&rmi_f12_handler,
+#endif
 };
 
 #define RMI_FN_HANDLER_ARRAY_SIZE \
drivers/input/rmi4/rmi_driver.h +1 -0
index 5ab4ed5..79e3419 100644
@@ -100,4 +100,5 @@ char *rmi_f01_get_product_ID(struct rmi_function *fn);
 
 extern struct rmi_function_handler rmi_f01_handler;
 extern struct rmi_function_handler rmi_f11_handler;
+extern struct rmi_function_handler rmi_f12_handler;
 #endif
drivers/input/rmi4/rmi_f12.c new file +462 -0

462 lines not on this page · raw message

Signature · 1 line
2.5.0