thermal: rockchip: add driver for thermal
authorCaesar Wang <caesar.wang@rock-chips.com>
Mon, 24 Nov 2014 04:58:59 +0000 (12:58 +0800)
committerEduardo Valentin <edubezval@gmail.com>
Mon, 24 Nov 2014 18:35:07 +0000 (14:35 -0400)
Thermal is TS-ADC Controller module supports
user-defined mode and automatic mode.

User-defined mode refers,TSADC all the control signals entirely by
software writing to register for direct control.

Automaic mode refers to the module automatically poll TSADC output,
and the results were checked.If you find that the temperature High
in a period of time,an interrupt is generated to the processor
down-measures taken;If the temperature over a period of time High,
the resulting TSHUT gave CRU module,let it reset the entire chip,
or via GPIO give PMIC.

Signed-off-by: zhaoyifeng <zyf@rock-chips.com>
Signed-off-by: Caesar Wang <caesar.wang@rock-chips.com>
Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/Kconfig
drivers/thermal/Makefile
drivers/thermal/rockchip_thermal.c [new file with mode: 0644]

index 911c38a..af40db0 100644 (file)
@@ -155,6 +155,16 @@ config SPEAR_THERMAL
          Enable this to plug the SPEAr thermal sensor driver into the Linux
          thermal framework.
 
+config ROCKCHIP_THERMAL
+       tristate "Rockchip thermal driver"
+       depends on ARCH_ROCKCHIP
+       depends on RESET_CONTROLLER
+       help
+         Rockchip thermal driver provides support for Temperature sensor
+         ADC (TS-ADC) found on Rockchip SoCs. It supports one critical
+         trip point. Cpufreq is used as the cooling device and will throttle
+         CPUs when the Temperature crosses the passive trip point.
+
 config RCAR_THERMAL
        tristate "Renesas R-Car thermal driver"
        depends on ARCH_SHMOBILE || COMPILE_TEST
Simple merge
Simple merge