aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/thermal/Kconfig83
-rw-r--r--drivers/thermal/Makefile9
-rw-r--r--drivers/thermal/intel/Kconfig77
-rw-r--r--drivers/thermal/intel/Makefile12
-rw-r--r--drivers/thermal/intel/int340x_thermal/Kconfig (renamed from drivers/thermal/int340x_thermal/Kconfig)0
-rw-r--r--drivers/thermal/intel/int340x_thermal/Makefile (renamed from drivers/thermal/int340x_thermal/Makefile)0
-rw-r--r--drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.c (renamed from drivers/thermal/int340x_thermal/acpi_thermal_rel.c)0
-rw-r--r--drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.h (renamed from drivers/thermal/int340x_thermal/acpi_thermal_rel.h)0
-rw-r--r--drivers/thermal/intel/int340x_thermal/int3400_thermal.c (renamed from drivers/thermal/int340x_thermal/int3400_thermal.c)0
-rw-r--r--drivers/thermal/intel/int340x_thermal/int3402_thermal.c (renamed from drivers/thermal/int340x_thermal/int3402_thermal.c)0
-rw-r--r--drivers/thermal/intel/int340x_thermal/int3403_thermal.c (renamed from drivers/thermal/int340x_thermal/int3403_thermal.c)0
-rw-r--r--drivers/thermal/intel/int340x_thermal/int3406_thermal.c (renamed from drivers/thermal/int340x_thermal/int3406_thermal.c)0
-rw-r--r--drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c (renamed from drivers/thermal/int340x_thermal/int340x_thermal_zone.c)0
-rw-r--r--drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.h (renamed from drivers/thermal/int340x_thermal/int340x_thermal_zone.h)0
-rw-r--r--drivers/thermal/intel/int340x_thermal/processor_thermal_device.c (renamed from drivers/thermal/int340x_thermal/processor_thermal_device.c)0
-rw-r--r--drivers/thermal/intel/intel_bxt_pmic_thermal.c (renamed from drivers/thermal/intel_bxt_pmic_thermal.c)0
-rw-r--r--drivers/thermal/intel/intel_pch_thermal.c (renamed from drivers/thermal/intel_pch_thermal.c)0
-rw-r--r--drivers/thermal/intel/intel_powerclamp.c (renamed from drivers/thermal/intel_powerclamp.c)0
-rw-r--r--drivers/thermal/intel/intel_quark_dts_thermal.c (renamed from drivers/thermal/intel_quark_dts_thermal.c)0
-rw-r--r--drivers/thermal/intel/intel_soc_dts_iosf.c (renamed from drivers/thermal/intel_soc_dts_iosf.c)0
-rw-r--r--drivers/thermal/intel/intel_soc_dts_iosf.h (renamed from drivers/thermal/intel_soc_dts_iosf.h)0
-rw-r--r--drivers/thermal/intel/intel_soc_dts_thermal.c (renamed from drivers/thermal/intel_soc_dts_thermal.c)0
-rw-r--r--drivers/thermal/intel/x86_pkg_temp_thermal.c (renamed from drivers/thermal/x86_pkg_temp_thermal.c)0
23 files changed, 95 insertions, 86 deletions
diff --git a/drivers/thermal/Kconfig b/drivers/thermal/Kconfig
index 5422523c03f8..772ab9dadda7 100644
--- a/drivers/thermal/Kconfig
+++ b/drivers/thermal/Kconfig
@@ -326,84 +326,6 @@ config DA9062_THERMAL
326 zone. 326 zone.
327 Compatible with the DA9062 and DA9061 PMICs. 327 Compatible with the DA9062 and DA9061 PMICs.
328 328
329config INTEL_POWERCLAMP
330 tristate "Intel PowerClamp idle injection driver"
331 depends on THERMAL
332 depends on X86
333 depends on CPU_SUP_INTEL
334 help
335 Enable this to enable Intel PowerClamp idle injection driver. This
336 enforce idle time which results in more package C-state residency. The
337 user interface is exposed via generic thermal framework.
338
339config X86_PKG_TEMP_THERMAL
340 tristate "X86 package temperature thermal driver"
341 depends on X86_THERMAL_VECTOR
342 select THERMAL_GOV_USER_SPACE
343 select THERMAL_WRITABLE_TRIPS
344 default m
345 help
346 Enable this to register CPU digital sensor for package temperature as
347 thermal zone. Each package will have its own thermal zone. There are
348 two trip points which can be set by user to get notifications via thermal
349 notification methods.
350
351config INTEL_SOC_DTS_IOSF_CORE
352 tristate
353 depends on X86 && PCI
354 select IOSF_MBI
355 help
356 This is becoming a common feature for Intel SoCs to expose the additional
357 digital temperature sensors (DTSs) using side band interface (IOSF). This
358 implements the common set of helper functions to register, get temperature
359 and get/set thresholds on DTSs.
360
361config INTEL_SOC_DTS_THERMAL
362 tristate "Intel SoCs DTS thermal driver"
363 depends on X86 && PCI && ACPI
364 select INTEL_SOC_DTS_IOSF_CORE
365 select THERMAL_WRITABLE_TRIPS
366 help
367 Enable this to register Intel SoCs (e.g. Bay Trail) platform digital
368 temperature sensor (DTS). These SoCs have two additional DTSs in
369 addition to DTSs on CPU cores. Each DTS will be registered as a
370 thermal zone. There are two trip points. One of the trip point can
371 be set by user mode programs to get notifications via Linux thermal
372 notification methods.The other trip is a critical trip point, which
373 was set by the driver based on the TJ MAX temperature.
374
375config INTEL_QUARK_DTS_THERMAL
376 tristate "Intel Quark DTS thermal driver"
377 depends on X86_INTEL_QUARK
378 help
379 Enable this to register Intel Quark SoC (e.g. X1000) platform digital
380 temperature sensor (DTS). For X1000 SoC, it has one on-die DTS.
381 The DTS will be registered as a thermal zone. There are two trip points:
382 hot & critical. The critical trip point default value is set by
383 underlying BIOS/Firmware.
384
385menu "ACPI INT340X thermal drivers"
386source drivers/thermal/int340x_thermal/Kconfig
387endmenu
388
389config INTEL_BXT_PMIC_THERMAL
390 tristate "Intel Broxton PMIC thermal driver"
391 depends on X86 && INTEL_SOC_PMIC_BXTWC && REGMAP
392 help
393 Select this driver for Intel Broxton PMIC with ADC channels monitoring
394 system temperature measurements and alerts.
395 This driver is used for monitoring the ADC channels of PMIC and handles
396 the alert trip point interrupts and notifies the thermal framework with
397 the trip point and temperature details of the zone.
398
399config INTEL_PCH_THERMAL
400 tristate "Intel PCH Thermal Reporting Driver"
401 depends on X86 && PCI
402 help
403 Enable this to support thermal reporting on certain intel PCHs.
404 Thermal reporting device will provide temperature reading,
405 programmable trip points and other information.
406
407config MTK_THERMAL 329config MTK_THERMAL
408 tristate "Temperature sensor driver for mediatek SoCs" 330 tristate "Temperature sensor driver for mediatek SoCs"
409 depends on ARCH_MEDIATEK || COMPILE_TEST 331 depends on ARCH_MEDIATEK || COMPILE_TEST
@@ -415,6 +337,11 @@ config MTK_THERMAL
415 Enable this option if you want to have support for thermal management 337 Enable this option if you want to have support for thermal management
416 controller present in Mediatek SoCs 338 controller present in Mediatek SoCs
417 339
340menu "Intel thermal drivers"
341depends on X86 || X86_INTEL_QUARK || COMPILE_TEST
342source "drivers/thermal/intel/Kconfig"
343endmenu
344
418menu "Broadcom thermal drivers" 345menu "Broadcom thermal drivers"
419depends on ARCH_BCM || ARCH_BRCMSTB || ARCH_BCM2835 || COMPILE_TEST 346depends on ARCH_BCM || ARCH_BRCMSTB || ARCH_BCM2835 || COMPILE_TEST
420source "drivers/thermal/broadcom/Kconfig" 347source "drivers/thermal/broadcom/Kconfig"
diff --git a/drivers/thermal/Makefile b/drivers/thermal/Makefile
index 82bb50dc6423..0b5d33a49b3e 100644
--- a/drivers/thermal/Makefile
+++ b/drivers/thermal/Makefile
@@ -44,15 +44,8 @@ obj-$(CONFIG_IMX_THERMAL) += imx_thermal.o
44obj-$(CONFIG_MAX77620_THERMAL) += max77620_thermal.o 44obj-$(CONFIG_MAX77620_THERMAL) += max77620_thermal.o
45obj-$(CONFIG_QORIQ_THERMAL) += qoriq_thermal.o 45obj-$(CONFIG_QORIQ_THERMAL) += qoriq_thermal.o
46obj-$(CONFIG_DA9062_THERMAL) += da9062-thermal.o 46obj-$(CONFIG_DA9062_THERMAL) += da9062-thermal.o
47obj-$(CONFIG_INTEL_POWERCLAMP) += intel_powerclamp.o 47obj-y += intel/
48obj-$(CONFIG_X86_PKG_TEMP_THERMAL) += x86_pkg_temp_thermal.o
49obj-$(CONFIG_INTEL_SOC_DTS_IOSF_CORE) += intel_soc_dts_iosf.o
50obj-$(CONFIG_INTEL_SOC_DTS_THERMAL) += intel_soc_dts_thermal.o
51obj-$(CONFIG_INTEL_QUARK_DTS_THERMAL) += intel_quark_dts_thermal.o
52obj-$(CONFIG_TI_SOC_THERMAL) += ti-soc-thermal/ 48obj-$(CONFIG_TI_SOC_THERMAL) += ti-soc-thermal/
53obj-$(CONFIG_INT340X_THERMAL) += int340x_thermal/
54obj-$(CONFIG_INTEL_BXT_PMIC_THERMAL) += intel_bxt_pmic_thermal.o
55obj-$(CONFIG_INTEL_PCH_THERMAL) += intel_pch_thermal.o
56obj-y += st/ 49obj-y += st/
57obj-$(CONFIG_QCOM_TSENS) += qcom/ 50obj-$(CONFIG_QCOM_TSENS) += qcom/
58obj-y += tegra/ 51obj-y += tegra/
diff --git a/drivers/thermal/intel/Kconfig b/drivers/thermal/intel/Kconfig
new file mode 100644
index 000000000000..9c06d4ad7c97
--- /dev/null
+++ b/drivers/thermal/intel/Kconfig
@@ -0,0 +1,77 @@
1config INTEL_POWERCLAMP
2 tristate "Intel PowerClamp idle injection driver"
3 depends on THERMAL
4 depends on X86
5 depends on CPU_SUP_INTEL
6 help
7 Enable this to enable Intel PowerClamp idle injection driver. This
8 enforce idle time which results in more package C-state residency. The
9 user interface is exposed via generic thermal framework.
10
11config X86_PKG_TEMP_THERMAL
12 tristate "X86 package temperature thermal driver"
13 depends on X86_THERMAL_VECTOR
14 select THERMAL_GOV_USER_SPACE
15 select THERMAL_WRITABLE_TRIPS
16 default m
17 help
18 Enable this to register CPU digital sensor for package temperature as
19 thermal zone. Each package will have its own thermal zone. There are
20 two trip points which can be set by user to get notifications via thermal
21 notification methods.
22
23config INTEL_SOC_DTS_IOSF_CORE
24 tristate
25 depends on X86 && PCI
26 select IOSF_MBI
27 help
28 This is becoming a common feature for Intel SoCs to expose the additional
29 digital temperature sensors (DTSs) using side band interface (IOSF). This
30 implements the common set of helper functions to register, get temperature
31 and get/set thresholds on DTSs.
32
33config INTEL_SOC_DTS_THERMAL
34 tristate "Intel SoCs DTS thermal driver"
35 depends on X86 && PCI && ACPI
36 select INTEL_SOC_DTS_IOSF_CORE
37 select THERMAL_WRITABLE_TRIPS
38 help
39 Enable this to register Intel SoCs (e.g. Bay Trail) platform digital
40 temperature sensor (DTS). These SoCs have two additional DTSs in
41 addition to DTSs on CPU cores. Each DTS will be registered as a
42 thermal zone. There are two trip points. One of the trip point can
43 be set by user mode programs to get notifications via Linux thermal
44 notification methods.The other trip is a critical trip point, which
45 was set by the driver based on the TJ MAX temperature.
46
47config INTEL_QUARK_DTS_THERMAL
48 tristate "Intel Quark DTS thermal driver"
49 depends on X86_INTEL_QUARK
50 help
51 Enable this to register Intel Quark SoC (e.g. X1000) platform digital
52 temperature sensor (DTS). For X1000 SoC, it has one on-die DTS.
53 The DTS will be registered as a thermal zone. There are two trip points:
54 hot & critical. The critical trip point default value is set by
55 underlying BIOS/Firmware.
56
57menu "ACPI INT340X thermal drivers"
58source drivers/thermal/intel/int340x_thermal/Kconfig
59endmenu
60
61config INTEL_BXT_PMIC_THERMAL
62 tristate "Intel Broxton PMIC thermal driver"
63 depends on X86 && INTEL_SOC_PMIC_BXTWC && REGMAP
64 help
65 Select this driver for Intel Broxton PMIC with ADC channels monitoring
66 system temperature measurements and alerts.
67 This driver is used for monitoring the ADC channels of PMIC and handles
68 the alert trip point interrupts and notifies the thermal framework with
69 the trip point and temperature details of the zone.
70
71config INTEL_PCH_THERMAL
72 tristate "Intel PCH Thermal Reporting Driver"
73 depends on X86 && PCI
74 help
75 Enable this to support thermal reporting on certain intel PCHs.
76 Thermal reporting device will provide temperature reading,
77 programmable trip points and other information.
diff --git a/drivers/thermal/intel/Makefile b/drivers/thermal/intel/Makefile
new file mode 100644
index 000000000000..0d9736ced5d4
--- /dev/null
+++ b/drivers/thermal/intel/Makefile
@@ -0,0 +1,12 @@
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for various Intel thermal drivers.
4
5obj-$(CONFIG_INTEL_POWERCLAMP) += intel_powerclamp.o
6obj-$(CONFIG_X86_PKG_TEMP_THERMAL) += x86_pkg_temp_thermal.o
7obj-$(CONFIG_INTEL_SOC_DTS_IOSF_CORE) += intel_soc_dts_iosf.o
8obj-$(CONFIG_INTEL_SOC_DTS_THERMAL) += intel_soc_dts_thermal.o
9obj-$(CONFIG_INTEL_QUARK_DTS_THERMAL) += intel_quark_dts_thermal.o
10obj-$(CONFIG_INT340X_THERMAL) += int340x_thermal/
11obj-$(CONFIG_INTEL_BXT_PMIC_THERMAL) += intel_bxt_pmic_thermal.o
12obj-$(CONFIG_INTEL_PCH_THERMAL) += intel_pch_thermal.o
diff --git a/drivers/thermal/int340x_thermal/Kconfig b/drivers/thermal/intel/int340x_thermal/Kconfig
index 0582bd12a239..0582bd12a239 100644
--- a/drivers/thermal/int340x_thermal/Kconfig
+++ b/drivers/thermal/intel/int340x_thermal/Kconfig
diff --git a/drivers/thermal/int340x_thermal/Makefile b/drivers/thermal/intel/int340x_thermal/Makefile
index 287eb0a1476d..287eb0a1476d 100644
--- a/drivers/thermal/int340x_thermal/Makefile
+++ b/drivers/thermal/intel/int340x_thermal/Makefile
diff --git a/drivers/thermal/int340x_thermal/acpi_thermal_rel.c b/drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.c
index 45e7e5cbdffb..45e7e5cbdffb 100644
--- a/drivers/thermal/int340x_thermal/acpi_thermal_rel.c
+++ b/drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.c
diff --git a/drivers/thermal/int340x_thermal/acpi_thermal_rel.h b/drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.h
index 58822575fd54..58822575fd54 100644
--- a/drivers/thermal/int340x_thermal/acpi_thermal_rel.h
+++ b/drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.h
diff --git a/drivers/thermal/int340x_thermal/int3400_thermal.c b/drivers/thermal/intel/int340x_thermal/int3400_thermal.c
index 61ca7ce3624e..61ca7ce3624e 100644
--- a/drivers/thermal/int340x_thermal/int3400_thermal.c
+++ b/drivers/thermal/intel/int340x_thermal/int3400_thermal.c
diff --git a/drivers/thermal/int340x_thermal/int3402_thermal.c b/drivers/thermal/intel/int340x_thermal/int3402_thermal.c
index 8e90b3151a42..8e90b3151a42 100644
--- a/drivers/thermal/int340x_thermal/int3402_thermal.c
+++ b/drivers/thermal/intel/int340x_thermal/int3402_thermal.c
diff --git a/drivers/thermal/int340x_thermal/int3403_thermal.c b/drivers/thermal/intel/int340x_thermal/int3403_thermal.c
index 0c19fcd56a0d..0c19fcd56a0d 100644
--- a/drivers/thermal/int340x_thermal/int3403_thermal.c
+++ b/drivers/thermal/intel/int340x_thermal/int3403_thermal.c
diff --git a/drivers/thermal/int340x_thermal/int3406_thermal.c b/drivers/thermal/intel/int340x_thermal/int3406_thermal.c
index f69ab026ba24..f69ab026ba24 100644
--- a/drivers/thermal/int340x_thermal/int3406_thermal.c
+++ b/drivers/thermal/intel/int340x_thermal/int3406_thermal.c
diff --git a/drivers/thermal/int340x_thermal/int340x_thermal_zone.c b/drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c
index 9ec27ac1856b..9ec27ac1856b 100644
--- a/drivers/thermal/int340x_thermal/int340x_thermal_zone.c
+++ b/drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c
diff --git a/drivers/thermal/int340x_thermal/int340x_thermal_zone.h b/drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.h
index 5f3ba4775c5c..5f3ba4775c5c 100644
--- a/drivers/thermal/int340x_thermal/int340x_thermal_zone.h
+++ b/drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.h
diff --git a/drivers/thermal/int340x_thermal/processor_thermal_device.c b/drivers/thermal/intel/int340x_thermal/processor_thermal_device.c
index 284cf2c5a8fd..284cf2c5a8fd 100644
--- a/drivers/thermal/int340x_thermal/processor_thermal_device.c
+++ b/drivers/thermal/intel/int340x_thermal/processor_thermal_device.c
diff --git a/drivers/thermal/intel_bxt_pmic_thermal.c b/drivers/thermal/intel/intel_bxt_pmic_thermal.c
index 94cfd0064c43..94cfd0064c43 100644
--- a/drivers/thermal/intel_bxt_pmic_thermal.c
+++ b/drivers/thermal/intel/intel_bxt_pmic_thermal.c
diff --git a/drivers/thermal/intel_pch_thermal.c b/drivers/thermal/intel/intel_pch_thermal.c
index 8a7f69b4b022..8a7f69b4b022 100644
--- a/drivers/thermal/intel_pch_thermal.c
+++ b/drivers/thermal/intel/intel_pch_thermal.c
diff --git a/drivers/thermal/intel_powerclamp.c b/drivers/thermal/intel/intel_powerclamp.c
index cde891c54cde..cde891c54cde 100644
--- a/drivers/thermal/intel_powerclamp.c
+++ b/drivers/thermal/intel/intel_powerclamp.c
diff --git a/drivers/thermal/intel_quark_dts_thermal.c b/drivers/thermal/intel/intel_quark_dts_thermal.c
index 5d33b350da1c..5d33b350da1c 100644
--- a/drivers/thermal/intel_quark_dts_thermal.c
+++ b/drivers/thermal/intel/intel_quark_dts_thermal.c
diff --git a/drivers/thermal/intel_soc_dts_iosf.c b/drivers/thermal/intel/intel_soc_dts_iosf.c
index e0813dfaa278..e0813dfaa278 100644
--- a/drivers/thermal/intel_soc_dts_iosf.c
+++ b/drivers/thermal/intel/intel_soc_dts_iosf.c
diff --git a/drivers/thermal/intel_soc_dts_iosf.h b/drivers/thermal/intel/intel_soc_dts_iosf.h
index 625e37bf93dc..625e37bf93dc 100644
--- a/drivers/thermal/intel_soc_dts_iosf.h
+++ b/drivers/thermal/intel/intel_soc_dts_iosf.h
diff --git a/drivers/thermal/intel_soc_dts_thermal.c b/drivers/thermal/intel/intel_soc_dts_thermal.c
index d748527d7a38..d748527d7a38 100644
--- a/drivers/thermal/intel_soc_dts_thermal.c
+++ b/drivers/thermal/intel/intel_soc_dts_thermal.c
diff --git a/drivers/thermal/x86_pkg_temp_thermal.c b/drivers/thermal/intel/x86_pkg_temp_thermal.c
index 1ef937d799e4..1ef937d799e4 100644
--- a/drivers/thermal/x86_pkg_temp_thermal.c
+++ b/drivers/thermal/intel/x86_pkg_temp_thermal.c