aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/input/ti_tscadc.h
diff options
context:
space:
mode:
authorPatil, Rachna <rachna@ti.com>2012-10-16 03:25:39 -0400
committerSamuel Ortiz <sameo@linux.intel.com>2012-11-05 17:50:26 -0500
commitd1fb57435c108b8dd66d7f47b4c60c1798dcae4c (patch)
tree12db90050dc6957a319f63f6b6bf9f000250ca8f /include/linux/input/ti_tscadc.h
parent33f5cc605d28bd82be8a728090063203947158f3 (diff)
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/ti_tscadc.h')
-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 @@
7 * i.e. 4/5/8 wire touchscreen support 7 * i.e. 4/5/8 wire touchscreen support
8 * on the platform. 8 * on the platform.
9 * @x_plate_resistance: X plate resistance. 9 * @x_plate_resistance: X plate resistance.
10 * @steps_to_configure: The sequencer supports a total of
11 * 16 programmable steps.
12 * A step configured to read a single
13 * co-ordinate value, can be applied
14 * more number of times for better results.
10 */ 15 */
11 16
12struct tsc_data { 17struct tsc_data {
13 int wires; 18 int wires;
14 int x_plate_resistance; 19 int x_plate_resistance;
20 int steps_to_configure;
15}; 21};
16 22
17#endif 23#endif