Skip to contentSkip to conversation

Input: synaptics-rmi4: Add SPI transport driver

PATCH Superseded Andrew Duggan 1 participant 1 message Feb 10, 2016

Subsystems (2)

v4 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v4 8/10 Input: synaptics-rmi4: Add SPI transport driver

Add the transport driver for devices using RMI4 over SPI.

---
 drivers/input/rmi4/Kconfig   |   9 +
 drivers/input/rmi4/Makefile  |   1 +
 drivers/input/rmi4/rmi_spi.c | 548 +++++++++++++++++++++++++++++++++++++++++++
 include/linux/rmi.h          |  51 ++++
 4 files changed, 609 insertions(+)
 create mode 100644 drivers/input/rmi4/rmi_spi.c
drivers/input/rmi4/Kconfig +9 -0
index 284faec..f73df24 100644
@@ -18,6 +18,15 @@ config RMI4_I2C
 
 	  If unsure, say Y.
 
+config RMI4_SPI
+	tristate "RMI4 SPI Support"
+	depends on RMI4_CORE && SPI
+	help
+	  Say Y here if you want to support RMI4 devices connected to a SPI
+	  bus.
+
+	  If unsure, say N.
+
 config RMI4_2D_SENSOR
 	bool
 	depends on RMI4_CORE
drivers/input/rmi4/Makefile +1 -0
index ad7156d..95c00a7 100644
@@ -10,3 +10,4 @@ rmi_core-$(CONFIG_RMI4_F30) += rmi_f30.o
 
 # Transports
 obj-$(CONFIG_RMI4_I2C) += rmi_i2c.o
+obj-$(CONFIG_RMI4_SPI) += rmi_spi.o
drivers/input/rmi4/rmi_spi.c new file +548 -0

548 lines not on this page · raw message

include/linux/rmi.h +51 -0

63 lines not on this page · raw message

Signature · 1 line
2.5.0