Skip to contentSkip to conversation

input: add wm97xx accelerated driver for AVR32 AT32AP700X microprocessors

PATCH New [email protected] 1 participant 1 message Jun 10, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 5/5 input: add wm97xx accelerated driver for AVR32 AT32AP700X microprocessors

From: Hans-Christian Egtvedt <[email protected]>

Add an accelerated driver for Atmel AVR32 AT32AP700X microprocessors. It uses interrupts on the channel B in the AC97 controller. Thus, offloading the work queue in the wm97xx-ts driver.

The driver has been tested with Atmel AVR32 AT32AP7000 and Wolfson WM9712 codec.

---

 drivers/input/touchscreen/Kconfig       |   15 
 drivers/input/touchscreen/Makefile      |    1 
 drivers/input/touchscreen/at32-wm97xx.c |  416 ++++++++++++++++++++++
 drivers/input/touchscreen/at32-wm97xx.h |   48 ++
 4 files changed, 480 insertions(+)
drivers/input/touchscreen/Kconfig renamed from drivers/input/touchscreen/Kconfig~input-add-wm97xx-accelerated-driver-for-avr32-at32ap700x-microprocessors +15 -0
diff -puN drivers/input/touchscreen/Kconfig~input-add-wm97xx-accelerated-driver-for-avr32-at32ap700x-microprocessors drivers/input/touchscreen/Kconfig
@@ -365,6 +365,21 @@ config TOUCHSCREEN_WM97XX_ATMEL
 	  To compile this driver as a module, choose M here: the module will
 	  be called atmel-wm97xx.
 
+config TOUCHSCREEN_WM97XX_AT32
+	tristate "WM97xx Atmel AVR32 accelerated touch"
+	depends on TOUCHSCREEN_WM97XX && AVR32
+	help
+	  Say Y here for support for streaming mode with WM97xx touchscreens on
+	  Atmel AVR32 systems with an AC97 controller.
+
+	  Be aware that this will use channel B in the controller for streaming
+	  data, this must not conflict with other AC97 drivers.
+
+	  If unsure, say N.
+
+	  To compile this driver as a module, choose M here: the module will be
+	  called at32-wm97xx.
+
 config TOUCHSCREEN_WM97XX_MAINSTONE
 	tristate "WM97xx Mainstone accelerated touch"
 	depends on TOUCHSCREEN_WM97XX && ARCH_PXA
drivers/input/touchscreen/Makefile renamed from drivers/input/touchscreen/Makefile~input-add-wm97xx-accelerated-driver-for-avr32-at32ap700x-microprocessors +1 -0
diff -puN drivers/input/touchscreen/Makefile~input-add-wm97xx-accelerated-driver-for-avr32-at32ap700x-microprocessors drivers/input/touchscreen/Makefile
@@ -32,6 +32,7 @@ obj-$(CONFIG_TOUCHSCREEN_TSC2007)	+= tsc
 obj-$(CONFIG_TOUCHSCREEN_UCB1400)	+= ucb1400_ts.o
 obj-$(CONFIG_TOUCHSCREEN_WACOM_W8001)	+= wacom_w8001.o
 obj-$(CONFIG_TOUCHSCREEN_WM97XX)	+= wm97xx-ts.o
+obj-$(CONFIG_TOUCHSCREEN_WM97XX_AT32)	+= at32-wm97xx.o
 obj-$(CONFIG_TOUCHSCREEN_DA9034)	+= da9034-ts.o
 wm97xx-ts-$(CONFIG_TOUCHSCREEN_WM9705)	+= wm9705.o
 wm97xx-ts-$(CONFIG_TOUCHSCREEN_WM9712)	+= wm9712.o
drivers/input/touchscreen/at32-wm97xx.c new file +416 -0

416 lines not on this page · raw message

drivers/input/touchscreen/at32-wm97xx.h new file +48 -0

48 lines not on this page · raw message

_