Skip to content

Commit ee07360

Browse files
spandruvadazhang-rui
authored andcommitted
Thermal: Intel SoC: DTS thermal IOSF core
This is becoming a common feature for Intel SoCs to expose the additional digital temperature sensors (DTSs) using side band interface (IOSF). This change remove common IOSF DTS handler function from the existing driver intel_soc_dts_thermal.c and creates a stand alone module, which can be selected from the SoC specific drivers. In this way there is less code duplication. Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
1 parent b787f68 commit ee07360

File tree

4 files changed

+556
-0
lines changed

4 files changed

+556
-0
lines changed

drivers/thermal/Kconfig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,16 @@ config X86_PKG_TEMP_THERMAL
249249
two trip points which can be set by user to get notifications via thermal
250250
notification methods.
251251

252+
config INTEL_SOC_DTS_IOSF_CORE
253+
tristate
254+
depends on X86
255+
select IOSF_MBI
256+
help
257+
This is becoming a common feature for Intel SoCs to expose the additional
258+
digital temperature sensors (DTSs) using side band interface (IOSF). This
259+
implements the common set of helper functions to register, get temperature
260+
and get/set thresholds on DTSs.
261+
252262
config INTEL_SOC_DTS_THERMAL
253263
tristate "Intel SoCs DTS thermal driver"
254264
depends on X86 && IOSF_MBI

drivers/thermal/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ obj-$(CONFIG_IMX_THERMAL) += imx_thermal.o
3434
obj-$(CONFIG_DB8500_CPUFREQ_COOLING) += db8500_cpufreq_cooling.o
3535
obj-$(CONFIG_INTEL_POWERCLAMP) += intel_powerclamp.o
3636
obj-$(CONFIG_X86_PKG_TEMP_THERMAL) += x86_pkg_temp_thermal.o
37+
obj-$(CONFIG_INTEL_SOC_DTS_IOSF_CORE) += intel_soc_dts_iosf.o
3738
obj-$(CONFIG_INTEL_SOC_DTS_THERMAL) += intel_soc_dts_thermal.o
3839
obj-$(CONFIG_TI_SOC_THERMAL) += ti-soc-thermal/
3940
obj-$(CONFIG_INT340X_THERMAL) += int340x_thermal/

0 commit comments

Comments
 (0)