aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/thermal/Kconfig
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2016-04-19 03:22:01 -0400
committerEduardo Valentin <edubezval@gmail.com>2016-05-17 10:28:31 -0400
commitb3aef78f76959b94e6df54f80040669a11cc4897 (patch)
treecaa7c6d3db2f0ff71e70697ecad0572f934313e9 /drivers/thermal/Kconfig
parent9e389e383b30c5d63de67e7a0cfa39c527a98bbc (diff)
thermal: generic-adc: Add ADC based thermal sensor driver
In some of platform, thermal sensors like NCT thermistors are connected to the one of ADC channel. The temperature is read by reading the voltage across the sensor resistance via ADC. Lookup table for ADC read value to temperature is referred to get temperature. ADC is read via IIO framework. Add support for thermal sensor driver which read the voltage across sensor resistance from ADC through IIO framework. Acked-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'drivers/thermal/Kconfig')
-rw-r--r--drivers/thermal/Kconfig10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig
index ee02e6021c94..4166c10ba314 100644
--- a/drivers/thermal/Kconfig
+++ b/drivers/thermal/Kconfig
@@ -411,4 +411,14 @@ config QCOM_SPMI_TEMP_ALARM
411 real time die temperature if an ADC is present or an estimate of the 411 real time die temperature if an ADC is present or an estimate of the
412 temperature based upon the over temperature stage value. 412 temperature based upon the over temperature stage value.
413 413
414config GENERIC_ADC_THERMAL
415 tristate "Generic ADC based thermal sensor"
416 depends on IIO
417 help
418 This enabled a thermal sysfs driver for the temperature sensor
419 which is connected to the General Purpose ADC. The ADC channel
420 is read via IIO framework and the channel information is provided
421 to this driver. This driver reports the temperature by reading ADC
422 channel and converts it to temperature based on lookup table.
423
414endif 424endif