]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/thermal/intel_soc_dts_thermal.c
thermal: Intel SoC DTS thermal
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Mon, 7 Apr 2014 20:57:15 +0000 (13:57 -0700)
committerZhang Rui <rui.zhang@intel.com>
Thu, 15 May 2014 08:37:24 +0000 (16:37 +0800)
commitbc40b5e320dfe4a691a6cf09ac5c8005d561eebd
treea7ae86e4860d22f1dc08c44ec5253817e792a294
parentd6d211db37e75de2ddc3a4f979038c40df7cc79c
thermal: Intel SoC DTS thermal

In the Intel SoCs like Bay Trail, there are 2 additional digital temperature
sensors(DTS), in addition to the standard DTSs in the core. Also they support
4 programmable thresholds, out of which two can be used by OSPM. These
thresholds can be used by OSPM thermal control. Out of these two thresholds,
one is used by driver and one user mode can change via thermal sysfs to get
notifications on threshold violations.

The driver defines one critical trip points, which is set to TJ MAX - offset.
The offset can be changed via module parameter (default 5C). Also it uses
one of the thresholds to get notification for this temperature violation.
This is very important for orderly shutdown as the many of these devices don't
have ACPI thermal zone, and expects that there is some other thermal control
mechanism present in OSPM. When a Linux distro is used without additional
specialized thermal control program, BIOS can do force shutdown when thermals
are not under control. When temperature reaches critical, the Linux thermal
core will initiate an orderly shutdown.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
drivers/thermal/Kconfig
drivers/thermal/Makefile
drivers/thermal/intel_soc_dts_thermal.c [new file with mode: 0644]