mfd: Add WM831x AUXADC support
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 27 Jul 2009 13:45:54 +0000 (14:45 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 17 Sep 2009 07:46:58 +0000 (09:46 +0200)
commit7e9f9fd4b8285c52c0950a1929864346de5caa6d
treed7e0f88f4f60e20a37b160a9555807c754849c74
parent7d4d0a3e7343e3190afaa17253073db58e3d9bff
mfd: Add WM831x AUXADC support

The WM831x contains an auxiliary ADC with a number of switchable
inputs which is used to monitor some of the voltages and
temperatures in the system and has some external inputs which can be
used for machine specific purposes. Provide an API allowing drivers
to read values from the ADC.

An internal reference voltage is provided to allow callibration of
the ADC. This is used to calibrate the device at startup.

The hardware also supports continuous readings and digital comparators.
These are not yet supported by the driver.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/wm831x-core.c
include/linux/mfd/wm831x/auxadc.h [new file with mode: 0644]
include/linux/mfd/wm831x/core.h