diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-07-27 14:45:54 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2009-09-17 09:46:58 +0200 |
commit | 7e9f9fd4b8285c52c0950a1929864346de5caa6d (patch) | |
tree | d7e0f88f4f60e20a37b160a9555807c754849c74 /include/linux/mfd/wm831x/core.h | |
parent | 7d4d0a3e7343e3190afaa17253073db58e3d9bff (diff) | |
download | blackbird-op-linux-7e9f9fd4b8285c52c0950a1929864346de5caa6d.tar.gz blackbird-op-linux-7e9f9fd4b8285c52c0950a1929864346de5caa6d.zip |
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>
Diffstat (limited to 'include/linux/mfd/wm831x/core.h')
-rw-r--r-- | include/linux/mfd/wm831x/core.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mfd/wm831x/core.h b/include/linux/mfd/wm831x/core.h index b96c9355b16e..d7134dfba56e 100644 --- a/include/linux/mfd/wm831x/core.h +++ b/include/linux/mfd/wm831x/core.h @@ -234,6 +234,8 @@ struct wm831x { unsigned int irq_base; int irq_masks[5]; + struct mutex auxadc_lock; + /* The WM831x has a security key blocking access to certain * registers. The mutex is taken by the accessors for locking * and unlocking the security key, locked is used to fail |