summaryrefslogtreecommitdiffstats
path: root/include/linux/input
diff options
context:
space:
mode:
authorPatil, Rachna <rachna@ti.com>2012-10-16 12:55:39 +0530
committerSamuel Ortiz <sameo@linux.intel.com>2012-11-05 23:50:26 +0100
commitd1fb57435c108b8dd66d7f47b4c60c1798dcae4c (patch)
tree12db90050dc6957a319f63f6b6bf9f000250ca8f /include/linux/input
parent33f5cc605d28bd82be8a728090063203947158f3 (diff)
downloadlinux-d1fb57435c108b8dd66d7f47b4c60c1798dcae4c.tar.gz
linux-d1fb57435c108b8dd66d7f47b4c60c1798dcae4c.tar.bz2
linux-d1fb57435c108b8dd66d7f47b4c60c1798dcae4c.zip
input: TSC: ti_tscadc: Add Step configuration as platform data
There are 16 programmable Step Configuration registers which are used by the sequencer. Program the Steps in order to configure a channel input to be sampled. If the same step is applied several times, the coordinate values read are more accurate. Hence we provide the user an option of how many steps should be configured. For ex: If this value is assigned as 4, This means that 4 steps are applied to read x co-ordinate and 4 steps to read y co-ordinate. Furtheron the interrupt handler already holds code to use delta filter and report the best value out of these values to the input sub-system. Signed-off-by: Patil, Rachna <rachna@ti.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'include/linux/input')
-rw-r--r--include/linux/input/ti_tscadc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/input/ti_tscadc.h b/include/linux/input/ti_tscadc.h
index b10a527a92a4..ad442a3eb68b 100644
--- a/include/linux/input/ti_tscadc.h
+++ b/include/linux/input/ti_tscadc.h
@@ -7,11 +7,17 @@
* i.e. 4/5/8 wire touchscreen support
* on the platform.
* @x_plate_resistance: X plate resistance.
+ * @steps_to_configure: The sequencer supports a total of
+ * 16 programmable steps.
+ * A step configured to read a single
+ * co-ordinate value, can be applied
+ * more number of times for better results.
*/
struct tsc_data {
int wires;
int x_plate_resistance;
+ int steps_to_configure;
};
#endif