thermal: rockchip: add virtual tsadc support for rk3126

rk previous SOCs such as rk3126 have no tsadc module, so a virtual tsadc is
implemented to control the thermal problem.

the virtual tsadc is designed on considering 2 factors, one is heating
modules' heating time and the working frequences, the other one is current
leval monitored by coulometer.

Change-Id: I0c7d8b952004d4f7918a41c925c50d38aaa65673
Signed-off-by: Rocky Hao <rocky.hao@rock-chips.com>
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
This commit is contained in:
Rocky Hao
2017-12-06 10:53:29 +08:00
committed by Tao Huang
parent 82c81b7eb9
commit ca62707f4d
2 changed files with 11 additions and 0 deletions
+10
View File
@@ -337,6 +337,16 @@ config ROCKCHIP_THERMAL
trip point. Cpufreq is used as the cooling device and will throttle
CPUs when the Temperature crosses the passive trip point.
config RK_VIRTUAL_THERMAL
tristate "rk_virtual thermal driver"
depends on ROCKCHIP_THERMAL
select POWER_SUPPLY
help
Rk virtual thermal driver provides virtual temperature support for
SOCs without tsadc module. 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_RENESAS || COMPILE_TEST
+1
View File
@@ -35,6 +35,7 @@ obj-$(CONFIG_THERMAL_MMIO) += thermal_mmio.o
obj-$(CONFIG_SPEAR_THERMAL) += spear_thermal.o
obj-$(CONFIG_SUN8I_THERMAL) += sun8i_thermal.o
obj-$(CONFIG_ROCKCHIP_THERMAL) += rockchip_thermal.o
obj-$(CONFIG_RK_VIRTUAL_THERMAL) += rk_virtual_thermal.o
obj-$(CONFIG_RCAR_THERMAL) += rcar_thermal.o
obj-$(CONFIG_RCAR_GEN3_THERMAL) += rcar_gen3_thermal.o
obj-$(CONFIG_KIRKWOOD_THERMAL) += kirkwood_thermal.o