[v3 3/3] 3/3 spi: Cypress TTSP G3 MTDEV SPI Device Driver

Previous thread: [v3 1/3] 1/3 Touchscreen: Cypress TTSP G3 MTDEV Core Driver by Kevin McNeely on Wednesday, December 29, 2010 - 12:17 pm. (10 messages)

Next thread: [v3 2/3] 2/3 i2c: Cypress TTSP G3 MTDEV I2C Device Driver by Kevin McNeely on Wednesday, December 29, 2010 - 12:17 pm. (2 messages)
From: Kevin McNeely
Date: Wednesday, December 29, 2010 - 12:17 pm

Cypress TTSP Gen3 SPI Device Driver.
Provides spi communications modules for the
Cypress TTSP Gen3 MTDEV Core Driver.

Signed-off-by: Kevin McNeely <kev@cypress.com>
---
Changes since v2:
- Fixed first line of multi-line comments to follow style guide

 drivers/input/touchscreen/Kconfig      |   12 ++
 drivers/input/touchscreen/Makefile     |    1 +
 drivers/input/touchscreen/cyttsp_spi.c |  314 ++++++++++++++++++++++++++++++++
 3 files changed, 327 insertions(+), 0 deletions(-)
 create mode 100644 drivers/input/touchscreen/cyttsp_spi.c

diff --git a/drivers/input/touchscreen/Kconfig b/drivers/input/touchscreen/Kconfig
index e1a37f5..ba3b3c5 100644
--- a/drivers/input/touchscreen/Kconfig
+++ b/drivers/input/touchscreen/Kconfig
@@ -141,6 +141,18 @@ config TOUCHSCREEN_CYTTSP_I2C
 	  To compile this driver as a module, choose M here: the
 	  module will be called cyttsp-i2c.
 
+config TOUCHSCREEN_CYTTSP_SPI
+	tristate "Cypress TTSP spi touchscreen"
+	depends on SPI_MASTER && TOUCHSCREEN_CYTTSP_CORE
+	help
+	  Say Y here if you have a Cypress TTSP touchscreen
+	  connected to your  with an SPI interface.
+
+	  If unsure, say N.
+
+	  To compile this driver as a module, choose M here: the
+	  module will be called cyttsp-spi.
+
 config TOUCHSCREEN_DA9034
 	tristate "Touchscreen support for Dialog Semiconductor DA9034"
 	depends on PMIC_DA903X
diff --git a/drivers/input/touchscreen/Makefile b/drivers/input/touchscreen/Makefile
index 88ee091..6c6d4bb 100644
--- a/drivers/input/touchscreen/Makefile
+++ b/drivers/input/touchscreen/Makefile
@@ -18,6 +18,7 @@ obj-$(CONFIG_TOUCHSCREEN_BU21013)       += bu21013_ts.o
 obj-$(CONFIG_TOUCHSCREEN_CY8CTMG110)	+= cy8ctmg110_ts.o
 obj-$(CONFIG_TOUCHSCREEN_CYTTSP_CORE)   += cyttsp_core.o
 obj-$(CONFIG_TOUCHSCREEN_CYTTSP_I2C)    += cyttsp_i2c.o
+obj-$(CONFIG_TOUCHSCREEN_CYTTSP_SPI)    += cyttsp_spi.o
 obj-$(CONFIG_TOUCHSCREEN_DA9034)	+= da9034-ts.o
 obj-$(CONFIG_TOUCHSCREEN_DYNAPRO)	+= dynapro.o
 ...
Previous thread: [v3 1/3] 1/3 Touchscreen: Cypress TTSP G3 MTDEV Core Driver by Kevin McNeely on Wednesday, December 29, 2010 - 12:17 pm. (10 messages)

Next thread: [v3 2/3] 2/3 i2c: Cypress TTSP G3 MTDEV I2C Device Driver by Kevin McNeely on Wednesday, December 29, 2010 - 12:17 pm. (2 messages)