iio: adc: add support for Berlin
authorAntoine Tenart <antoine.tenart@free-electrons.com>
Mon, 18 May 2015 09:19:18 +0000 (11:19 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sat, 23 May 2015 09:47:40 +0000 (10:47 +0100)
commit70f1937911caebd961833314b41a618a33a5130a
treee46826ed70a64c04398392ebe56a5563b5b015c7
parent90bad33acbd82437cbf54eb1cefa6f6153fab927
iio: adc: add support for Berlin

This patch adds the support of the Berlin ADC, available on Berlin SoCs.
This ADC has 8 channels available, with one connected to a temperature
sensor.

The particularity here, is that the temperature sensor connected to the
ADC has its own registers, and both the ADC and the temperature sensor
must be configured when using it.

Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/Kconfig
drivers/iio/adc/Makefile
drivers/iio/adc/berlin2-adc.c [new file with mode: 0644]