forked from Minki/linux
8c18769396
In Intel Quark SoC X1000, there is one on-die digital temperature sensor(DTS). The DTS offers both hot & critical trip points. However, in current distribution of UEFI BIOS for Quark platform, only critical trip point is configured to be 105 degree Celsius (based on Quark SW ver1.0.1 and hot trip point is not used due to lack of IRQ. There is no active cooling device for Quark SoC, so Quark SoC thermal management logic expects Linux distro to orderly power-off when temperature of the DTS exceeds the configured critical trip point. Kernel param "polling_delay" in milliseconds is used to control the frequency the DTS temperature is read by thermal framework. It defaults to 2-second. To change it, use kernel boot param "intel_quark_dts_thermal.polling_delay=X". User interacts with Quark SoC DTS thermal driver through sysfs via: /sys/class/thermal/thermal_zone0/ For example: - to read DTS temperature $ cat temp - to read critical trip point $ cat trip_point_0_temp - to read trip point type $ cat trip_point_0_type - to emulate temperature raise to test orderly shutdown by Linux distro $ echo 105 > emul_temp Tested-by: Bryan O'Donoghue <pure.logic@nexus-software.ie> Signed-off-by: Ong Boon Leong <boon.leong.ong@intel.com> Reviewed-by: Bryan O'Donoghue <pure.logic@nexus-software.ie> Reviewed-by: Kweh, Hock Leong <hock.leong.kweh@intel.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
44 lines
1.6 KiB
Makefile
44 lines
1.6 KiB
Makefile
#
|
|
# Makefile for sensor chip drivers.
|
|
#
|
|
|
|
obj-$(CONFIG_THERMAL) += thermal_sys.o
|
|
thermal_sys-y += thermal_core.o
|
|
|
|
# interface to/from other layers providing sensors
|
|
thermal_sys-$(CONFIG_THERMAL_HWMON) += thermal_hwmon.o
|
|
thermal_sys-$(CONFIG_THERMAL_OF) += of-thermal.o
|
|
|
|
# governors
|
|
thermal_sys-$(CONFIG_THERMAL_GOV_FAIR_SHARE) += fair_share.o
|
|
thermal_sys-$(CONFIG_THERMAL_GOV_BANG_BANG) += gov_bang_bang.o
|
|
thermal_sys-$(CONFIG_THERMAL_GOV_STEP_WISE) += step_wise.o
|
|
thermal_sys-$(CONFIG_THERMAL_GOV_USER_SPACE) += user_space.o
|
|
|
|
# cpufreq cooling
|
|
thermal_sys-$(CONFIG_CPU_THERMAL) += cpu_cooling.o
|
|
|
|
# clock cooling
|
|
thermal_sys-$(CONFIG_CLOCK_THERMAL) += clock_cooling.o
|
|
|
|
# platform thermal drivers
|
|
obj-$(CONFIG_SPEAR_THERMAL) += spear_thermal.o
|
|
obj-$(CONFIG_ROCKCHIP_THERMAL) += rockchip_thermal.o
|
|
obj-$(CONFIG_RCAR_THERMAL) += rcar_thermal.o
|
|
obj-$(CONFIG_KIRKWOOD_THERMAL) += kirkwood_thermal.o
|
|
obj-y += samsung/
|
|
obj-$(CONFIG_DOVE_THERMAL) += dove_thermal.o
|
|
obj-$(CONFIG_DB8500_THERMAL) += db8500_thermal.o
|
|
obj-$(CONFIG_ARMADA_THERMAL) += armada_thermal.o
|
|
obj-$(CONFIG_IMX_THERMAL) += imx_thermal.o
|
|
obj-$(CONFIG_DB8500_CPUFREQ_COOLING) += db8500_cpufreq_cooling.o
|
|
obj-$(CONFIG_INTEL_POWERCLAMP) += intel_powerclamp.o
|
|
obj-$(CONFIG_X86_PKG_TEMP_THERMAL) += x86_pkg_temp_thermal.o
|
|
obj-$(CONFIG_INTEL_SOC_DTS_IOSF_CORE) += intel_soc_dts_iosf.o
|
|
obj-$(CONFIG_INTEL_SOC_DTS_THERMAL) += intel_soc_dts_thermal.o
|
|
obj-$(CONFIG_INTEL_QUARK_DTS_THERMAL) += intel_quark_dts_thermal.o
|
|
obj-$(CONFIG_TI_SOC_THERMAL) += ti-soc-thermal/
|
|
obj-$(CONFIG_INT340X_THERMAL) += int340x_thermal/
|
|
obj-$(CONFIG_ST_THERMAL) += st/
|
|
obj-$(CONFIG_TEGRA_SOCTHERM) += tegra_soctherm.o
|