diff options
author | Xie Xiaobo <X.Xie@freescale.com> | 2012-03-23 05:02:20 -0400 |
---|---|---|
committer | Jean Delvare <khali@endymion.delvare> | 2012-03-23 05:02:20 -0400 |
commit | 5510e62a66bad22b104d5d854445523d7f5754f7 (patch) | |
tree | a580bd3fff0831628bc0d525d975853bbf25a86d /drivers/hwmon/Kconfig | |
parent | 0c2732152a5813a870d0b96f0844f4dfe1436519 (diff) |
hwmon: Add MCP3021 ADC driver
Add I2C driver for MCP3021 that is an ADC chip from Microchip.
The MCP3021 is a successive approximation A/D converter (ADC)
with 10-bit resolution.
The driver export the value of Vin to sysfs, the voltage unit is
mV. Through the sysfs interface, lm-sensors tool can also display
Vin voltage.
Signed-off-by: Mingkai Hu <Mingkai.hu@freescale.com>
Signed-off-by: Xie Xiaobo <X.Xie@freescale.com>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/hwmon/Kconfig')
-rw-r--r-- | drivers/hwmon/Kconfig | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig index 7190a3f4a827..5b32d56dbb4d 100644 --- a/drivers/hwmon/Kconfig +++ b/drivers/hwmon/Kconfig | |||
@@ -813,6 +813,16 @@ config SENSORS_MAX6650 | |||
813 | This driver can also be built as a module. If so, the module | 813 | This driver can also be built as a module. If so, the module |
814 | will be called max6650. | 814 | will be called max6650. |
815 | 815 | ||
816 | config SENSORS_MCP3021 | ||
817 | tristate "Microchip MCP3021" | ||
818 | depends on I2C && EXPERIMENTAL | ||
819 | help | ||
820 | If you say yes here you get support for the MCP3021 chip | ||
821 | that is a A/D converter (ADC) with 10-bit resolution. | ||
822 | |||
823 | This driver can also be built as a module. If so, the module | ||
824 | will be called mcp3021. | ||
825 | |||
816 | config SENSORS_NTC_THERMISTOR | 826 | config SENSORS_NTC_THERMISTOR |
817 | tristate "NTC thermistor support" | 827 | tristate "NTC thermistor support" |
818 | depends on EXPERIMENTAL | 828 | depends on EXPERIMENTAL |