diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-01-30 15:31:30 -0500 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2011-01-30 15:32:29 -0500 |
commit | 00cfa730db0d8378685148e6365b9cec7384b275 (patch) | |
tree | 68d36895d6ac31eab880b68b336aa87c23d1c9ae /include/linux/mfd/wm831x | |
parent | 3c36e719033ddc09aded770472cbdb477fcb4479 (diff) |
Input: wm831x - add driver for Wolfson WM831x PMIC touchscreen controllers
Some of the WM831x series of PMICs from Wolfson Microelectronics include
a resistive touchscreen controller. Implement support for these controllers
within the input API.
Platform data is supported to allow configuration of system parameters such
as selection between four and five wire touchscreens and for specification
of optional direct to CPU IRQs for sample availability and for pen down.
Use of this feature for at least the data IRQ is strongly recommended.
Thanks to Julien Boibessot for extensive testing and detailed feedback.
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Tested-by: Julien Boibessot <julien.boibessot@armadeus.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'include/linux/mfd/wm831x')
-rw-r--r-- | include/linux/mfd/wm831x/pdata.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/mfd/wm831x/pdata.h b/include/linux/mfd/wm831x/pdata.h index fd322aca33ba..173086d42af4 100644 --- a/include/linux/mfd/wm831x/pdata.h +++ b/include/linux/mfd/wm831x/pdata.h | |||
@@ -80,7 +80,8 @@ struct wm831x_touch_pdata { | |||
80 | int isel; /** Current for pen down (uA) */ | 80 | int isel; /** Current for pen down (uA) */ |
81 | int rpu; /** Pen down sensitivity resistor divider */ | 81 | int rpu; /** Pen down sensitivity resistor divider */ |
82 | int pressure; /** Report pressure (boolean) */ | 82 | int pressure; /** Report pressure (boolean) */ |
83 | int data_irq; /** Touch data ready IRQ */ | 83 | unsigned int data_irq; /** Touch data ready IRQ */ |
84 | unsigned int pd_irq; /** Touch pendown detect IRQ */ | ||
84 | }; | 85 | }; |
85 | 86 | ||
86 | enum wm831x_watchdog_action { | 87 | enum wm831x_watchdog_action { |