Input: ti_am335x_tsc - interchange touchscreen and ADC steps
authorBrad Griffis <bgriffis@ti.com>
Tue, 3 Feb 2015 19:41:58 +0000 (11:41 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 3 Feb 2015 19:50:37 +0000 (11:50 -0800)
commit3a59684ccc5d529e7e9ce8b068889dbaa4c34e9b
treea7cdee1b66db17d7b071e3517128d00e1bc4d0b6
parent448c7f3830ca283e485aa943279acea6bde8b270
Input: ti_am335x_tsc - interchange touchscreen and ADC steps

This patch makes the initial changes required to workaround TSC-false
pen-up interrupts. It is required to implement these changes in order to
remove udelay in the TSC interrupt handler and false pen-up events.  The
charge step is to be executed immediately after sampling X+. Hence TSC is
made to use higher numbered steps (steps 5 to 16 for 5 co-ordinate
readouts, 4 wire TSC configuration) and ADC to use lower ones. Further X
co-ordinate readouts must be the last to be sampled, thus co-ordinates are
sampled in the order Y-Z-X.

Signed-off-by: Brad Griffis <bgriffis@ti.com>
[vigneshr@ti.com: Ported the patch from v3.12 to v3.19rc1]
Signed-off-by: Vignesh R <vigneshr@ti.com>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/iio/adc/ti_am335x_adc.c
drivers/input/touchscreen/ti_am335x_tsc.c