Input: synaptics-rmi4: Add support for 2D sensors and F11
Subsystems (2)
PATCH v3 4/10 Input: synaptics-rmi4: Add support for 2D sensors and F11
RMI4 currently defines two functions for reporting data for 2D sensors (F11 and F12). This patch adds the common functionality which is shared by devices with 2D reporting along with implementing functionality for F11.
Signed-off-by Andrew Duggan <[email protected]>
Signed-off-by Christopher Heiny <[email protected]>
--- drivers/input/rmi4/Kconfig | 15 + drivers/input/rmi4/Makefile | 5 + drivers/input/rmi4/rmi_2d_sensor.c | 221 ++++++ drivers/input/rmi4/rmi_2d_sensor.h | 84 +++ drivers/input/rmi4/rmi_bus.c | 3 + drivers/input/rmi4/rmi_driver.h | 2 +- drivers/input/rmi4/rmi_f11.c | 1312 ++++++++++++++++++++++++++++++++++++ include/linux/rmi.h | 83 +++ 8 files changed, 1724 insertions(+), 1 deletion(-) create mode 100644 drivers/input/rmi4/rmi_2d_sensor.c create mode 100644 drivers/input/rmi4/rmi_2d_sensor.h create mode 100644 drivers/input/rmi4/rmi_f11.c
drivers/input/rmi4/Kconfig +15 -0
@@ -17,3 +17,18 @@ config RMI4_I2C bus. If unsure, say Y. + +config RMI4_2D_SENSOR + bool + depends on RMI4_CORE + +config RMI4_F11 + bool "RMI4 Function 11 (2D pointing)" + select RMI4_2D_SENSOR + depends on RMI4_CORE + help + Say Y here if you want to add support for RMI4 function 11. + + Function 11 provides 2D multifinger pointing for touchscreens and + touchpads. For sensors that support relative pointing, F11 also + provides mouse input.
drivers/input/rmi4/Makefile +5 -0
@@ -1,5 +1,10 @@ obj-$(CONFIG_RMI4_CORE) += rmi_core.o rmi_core-y := rmi_bus.o rmi_driver.o rmi_f01.o +rmi_core-$(CONFIG_RMI4_2D_SENSOR) += rmi_2d_sensor.o + +# Function drivers +rmi_core-$(CONFIG_RMI4_F11) += rmi_f11.o + # Transports obj-$(CONFIG_RMI4_I2C) += rmi_i2c.o
drivers/input/rmi4/rmi_2d_sensor.c new file +221 -0
221 lines not on this page · raw message
drivers/input/rmi4/rmi_2d_sensor.h new file +84 -0
84 lines not on this page · raw message
drivers/input/rmi4/rmi_bus.c +3 -0
@@ -306,6 +306,9 @@ struct bus_type rmi_bus_type = {static struct rmi_function_handler *fn_handlers[] = { &rmi_f01_handler, +#ifdef CONFIG_RMI4_F11 + &rmi_f11_handler, +#endif };#define RMI_FN_HANDLER_ARRAY_SIZE \
drivers/input/rmi4/rmi_driver.h +1 -1
@@ -99,5 +99,5 @@ void rmi_unregister_physical_driver(void);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;#endif
drivers/input/rmi4/rmi_f11.c new file +1312 -0
1,312 lines not on this page · raw message
include/linux/rmi.h +83 -0
95 lines not on this page · raw message
Signature · 6 lines
2.5.0 -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html