SPI: Add support for TSC2301 protocol driver
authorJarkko Nikula <jarkko.nikula@nokia.com>
Mon, 2 Apr 2007 17:21:35 +0000 (13:21 -0400)
committerTony Lindgren <tony@atomide.com>
Tue, 8 May 2007 20:39:57 +0000 (13:39 -0700)
This adds a driver for TSC2301 including support for audio, keypad and
touchscreen. Patch is originally developed for Nokia N800 by Imre Deak,
Jarkko Nikula, Jarkko Oikarinen and Juha Yrjola.

Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
drivers/spi/Kconfig
drivers/spi/Makefile
drivers/spi/tsc2301-core.c [new file with mode: 0644]
drivers/spi/tsc2301-mixer.c [new file with mode: 0644]
include/linux/spi/tsc2301.h [new file with mode: 0644]

index bbe203c..7dfcbbc 100644 (file)
@@ -179,6 +179,28 @@ config SPI_TSC2102
          Say Y here if you want support for the TSC2102 chip.  It
         will be needed for the touchscreen driver on some boards.
 
+config SPI_TSC2301
+       tristate "TSC2301 driver"
+       depends on SPI_MASTER
+       help
+         Say Y here if you have a TSC2301 chip connected to an SPI
+         bus on your board.
+
+         The TSC2301 is a highly integrated PDA analog interface circuit.
+         It contains a complete 12-bit A/D resistive touch screen
+         converter (ADC) including drivers, touch pressure measurement
+         capability, keypad controller, and 8-bit D/A converter (DAC) output
+         for LCD contrast control.
+
+         To compile this driver as a module, choose M here: the
+         module will be called tsc2301.
+
+config SPI_TSC2301_AUDIO
+       boolean "TSC2301 audio support"
+       depends on SPI_TSC2301 && SND
+       help
+         Say Y here for if you are using the audio features of TSC2301.
+
 #
 # Add new SPI protocol masters in alphabetical order above this line
 #
index 37be7d9..ddeb81a 100644 (file)
@@ -28,6 +28,9 @@ obj-$(CONFIG_SPI_S3C24XX)             += spi_s3c24xx.o
 obj-$(CONFIG_SPI_AT25)         += at25.o
 obj-$(CONFIG_SPI_TSC2101)      += tsc2101.o
 obj-$(CONFIG_SPI_TSC2102)      += tsc2102.o
+obj-$(CONFIG_SPI_TSC2301)      += tsc2301.o
+tsc2301-objs                   := tsc2301-core.o
+tsc2301-$(CONFIG_SPI_TSC2301_AUDIO)    += tsc2301-mixer.o
 #      ... add above this line ...
 
 # SPI slave controller drivers (upstream link)
Simple merge
Simple merge
Simple merge