]> git.baikalelectronics.ru Git - kernel.git/commit
iio: adc: at91: Add support for Touchscreen Switches Closure Time
authorNicolas Ferre <nicolas.ferre@atmel.com>
Tue, 30 Aug 2016 12:27:01 +0000 (14:27 +0200)
committerJonathan Cameron <jic23@kernel.org>
Mon, 5 Sep 2016 20:11:21 +0000 (21:11 +0100)
commit2d62bde149b3dd8da2583e00f6eda136e1f168b9
tree14cd9486eb680d84812bceb738b84be39203c467
parent5fb39c5b8b0c649338389f49b5e3fae9f4fcf4d0
iio: adc: at91: Add support for Touchscreen Switches Closure Time

On newer components compatible with the at91sam9x5, the Touchscreen
Switches Closure Time or TSSCTIM value of the Touchscreen Mode Register is
not filled at all.
On some hardware, having no time indicated for it may lead to incoherent
values and jitter.
We fix this time to 10us as it is usually difficult to retrieve impedance
values from LCD manufacturers.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/at91_adc.c