Skip to content

Commit 2954d5a

Browse files
Rocky Haorkhuangtao
authored andcommitted
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>
1 parent 0c3d587 commit 2954d5a

3 files changed

Lines changed: 899 additions & 0 deletions

File tree

drivers/thermal/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,15 @@ config ROCKCHIP_THERMAL
212212
trip point. Cpufreq is used as the cooling device and will throttle
213213
CPUs when the Temperature crosses the passive trip point.
214214

215+
config RK_VIRTUAL_THERMAL
216+
tristate "rk_virtual thermal driver"
217+
depends on ROCKCHIP_THERMAL
218+
help
219+
Rk virtual thermal driver provides virtual temperature support for
220+
SOCs without tsadc module. It supports one critical trip point.
221+
Cpufreq is used as the cooling device and will throttle CPUs when
222+
the Temperature crosses the passive trip point.
223+
215224
config RK3368_THERMAL
216225
tristate "rk3368 thermal driver legacy"
217226
depends on ROCKCHIP_THERMAL

drivers/thermal/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ obj-$(CONFIG_QCOM_SPMI_TEMP_ALARM) += qcom-spmi-temp-alarm.o
3030
obj-$(CONFIG_SPEAR_THERMAL) += spear_thermal.o
3131
obj-$(CONFIG_ROCKCHIP_THERMAL) += rockchip_thermal.o
3232
obj-$(CONFIG_RK3368_THERMAL) += rk3368_thermal.o
33+
obj-$(CONFIG_RK_VIRTUAL_THERMAL) += rk_virtual_thermal.o
3334
obj-$(CONFIG_RCAR_THERMAL) += rcar_thermal.o
3435
obj-$(CONFIG_KIRKWOOD_THERMAL) += kirkwood_thermal.o
3536
obj-y += samsung/

0 commit comments

Comments
 (0)