]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: at91: sam9m10g45ek: Add touchscreen support through at91_adc
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Tue, 15 Apr 2014 10:28:00 +0000 (12:28 +0200)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Wed, 7 May 2014 16:28:40 +0000 (18:28 +0200)
commit6bf83f55c3d033d9ac9b7bbd0b7aa8528bb06148
tree964d9b7943b26054fb87df998b85ab546fcd9588
parente065341e824a4f4a07593bc5a12758e085df336f
ARM: at91: sam9m10g45ek: Add touchscreen support through at91_adc

at91_adc now supports reading a touchscreen for ADCs without a TSMR register.
Enable touchscreen support through at91_adc. This allows to use both a
touchscreen and the remaining ADC channel at the same time.

Also, lower the clock for the ADC as it allows to have more stable reads and
this is the speed used by atmel_tsadcc.
It lowers the maximum throughput rate from 440000 samples per second to 12958
samples per second. It shouldn't be an issue as the CPU is not able to keep up
reading samples at that frequency.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
arch/arm/mach-at91/at91sam9g45.c
arch/arm/mach-at91/board-sam9m10g45ek.c