Input: synaptics-rmi4-add support for F21.
Subsystems (2)
PATCH 1/1 Input: synaptics-rmi4-add support for F21.
From: Marge Yang <[email protected]>
RMI4 F21 supports the forcepad click feature.
Signed-off-by Marge Yang <[email protected]>
--- drivers/input/rmi4/Kconfig | 8 +++ drivers/input/rmi4/Makefile | 1 + drivers/input/rmi4/rmi_bus.c | 3 ++ drivers/input/rmi4/rmi_driver.h | 5 +- drivers/input/rmi4/rmi_f21.c | 110 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 126 insertions(+), 1 deletion(-) create mode 100644 drivers/input/rmi4/rmi_f21.c
drivers/input/rmi4/Kconfig +8 -0
@@ -108,6 +108,14 @@ config RMI4_F3A Function 3A provides GPIO support for RMI4 devices. This includes support for buttons on TouchPads and ClickPads. +config RMI4_F21 + bool "RMI4 Function 21 (PRESSURE)" + help + Say Y here if you want to add support for RMI4 function 21. + + Function 21 provides buttons/pressure for RMI4 devices. This includes + support for buttons/pressure on PressurePad. + config RMI4_F54 bool "RMI4 Function 54 (Analog diagnostics)" depends on VIDEO_DEV=y || (RMI4_CORE=m && VIDEO_DEV=m)
drivers/input/rmi4/Makefile +1 -0
@@ -11,6 +11,7 @@ rmi_core-$(CONFIG_RMI4_F12) += rmi_f12.o rmi_core-$(CONFIG_RMI4_F30) += rmi_f30.o rmi_core-$(CONFIG_RMI4_F34) += rmi_f34.o rmi_f34v7.o rmi_core-$(CONFIG_RMI4_F3A) += rmi_f3a.o +rmi_core-$(CONFIG_RMI4_F21) += rmi_f21.o rmi_core-$(CONFIG_RMI4_F54) += rmi_f54.o rmi_core-$(CONFIG_RMI4_F55) += rmi_f55.o
drivers/input/rmi4/rmi_bus.c +3 -0
@@ -369,6 +369,9 @@ static struct rmi_function_handler *fn_handlers[] = {#ifdef CONFIG_RMI4_F3A &rmi_f3a_handler,#endif +#ifdef CONFIG_RMI4_F21 + &rmi_f21_handler, +#endif #ifdef CONFIG_RMI4_F54 &rmi_f54_handler,#endif
drivers/input/rmi4/rmi_driver.h +4 -1
@@ -114,7 +114,9 @@ static inline int rmi_f03_overwrite_button(struct rmi_function *fn, }static inline void rmi_f03_commit_buttons (struct rmi_function *fn) {}#endif - +#ifdef CONFIG_RMI4_F21 +int rmi_f21_report_pressure (struct rmi_function *fn,int i); +#endif #ifdef CONFIG_RMI4_F34 int rmi_f34_create_sysfs (struct rmi_device *rmi_dev);void rmi_f34_remove_sysfs (struct rmi_device *rmi_dev);
@@ -136,6 +138,7 @@ extern struct rmi_function_handler rmi_f12_handler;extern struct rmi_function_handler rmi_f30_handler;extern struct rmi_function_handler rmi_f34_handler;extern struct rmi_function_handler rmi_f3a_handler; +extern struct rmi_function_handler rmi_f21_handler;extern struct rmi_function_handler rmi_f54_handler;extern struct rmi_function_handler rmi_f55_handler;#endif
drivers/input/rmi4/rmi_f21.c new file +110 -0
110 lines not on this page · raw message
Signature · 1 line
2.7.4