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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user