]> git.baikalelectronics.ru Git - kernel.git/commit
iio: at91_adc: fix missing Sample and Hold time
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Fri, 29 Mar 2013 14:54:00 +0000 (14:54 +0000)
committerJonathan Cameron <jic23@kernel.org>
Tue, 2 Apr 2013 18:22:16 +0000 (19:22 +0100)
commit1a9a74dd4bc59445c21fd8e10ba9d1769c691695
treed182af55501a1b53b86fdb4e7d7ccf20acc11076
parentcecad2be73f998fa7e9b362cd1ca9720fbe4ad58
iio: at91_adc: fix missing Sample and Hold time

On the at91_adc a minimal Sample and Hold Time is necessary for the ADC to
guarantee the best converted final value between two channels selection.
This time has to be programmed through the bitfield SHTIM in the
Mode Register ADC_MR.

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Ludovic Desroches <ludovic.desroches@atmel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Documentation/devicetree/bindings/arm/atmel-adc.txt
drivers/iio/adc/at91_adc.c