driver: thermal: Move some drivers into subdirs
Subsystems (3)
v3 cover driver: thermal: Move some drivers into subdirs
Move the various drivers for Intel platforms into their own subdir. Also consolidate Qualcomm drivers into the qcom subdir.
This cleans up the directory making it easier to find things.
There is no great time to send patches that move files around. So here's an attempt to sneak it into 4.21 before everything else.
This was generated and compile-tested against 4.20-rc4. If you would like me to try again a bit later, I'm happy to do so.
Changes since v2:
- Rebased on top of 4.20-rc4
Changes since v1:
- Removed a stray character that snuck into the Makefile
- Added Acks
- Rebased to v4.19-rc6
Amit Kucheria (2):
drivers: thermal: Move various drivers for intel platforms into a
subdir
drivers: thermal: Move QCOM_SPMI_TEMP_ALARM into the qcom subdir
drivers/thermal/Kconfig | 94 +------------------
drivers/thermal/Makefile | 12 +--
drivers/thermal/intel/Kconfig | 77 +++++++++++++++
drivers/thermal/intel/Makefile | 12 +++
.../{ => intel}/int340x_thermal/Kconfig | 0
.../{ => intel}/int340x_thermal/Makefile | 0
.../int340x_thermal/acpi_thermal_rel.c | 0
.../int340x_thermal/acpi_thermal_rel.h | 0
.../int340x_thermal/int3400_thermal.c | 0
.../int340x_thermal/int3402_thermal.c | 0
.../int340x_thermal/int3403_thermal.c | 0
.../int340x_thermal/int3406_thermal.c | 0
.../int340x_thermal/int340x_thermal_zone.c | 0
.../int340x_thermal/int340x_thermal_zone.h | 0
.../processor_thermal_device.c | 0
.../{ => intel}/intel_bxt_pmic_thermal.c | 0
.../thermal/{ => intel}/intel_pch_thermal.c | 0
.../thermal/{ => intel}/intel_powerclamp.c | 0
.../{ => intel}/intel_quark_dts_thermal.c | 0
.../thermal/{ => intel}/intel_soc_dts_iosf.c | 0
.../thermal/{ => intel}/intel_soc_dts_iosf.h | 0
.../{ => intel}/intel_soc_dts_thermal.c | 0
.../{ => intel}/x86_pkg_temp_thermal.c | 0
drivers/thermal/qcom/Kconfig | 11 +++
drivers/thermal/qcom/Makefile | 1 +
.../thermal/{ => qcom}/qcom-spmi-temp-alarm.c | 0
26 files changed, 108 insertions(+), 99 deletions(-)
create mode 100644 drivers/thermal/intel/Kconfig
create mode 100644 drivers/thermal/intel/Makefile
rename drivers/thermal/{ => intel}/int340x_thermal/Kconfig (100%)
rename drivers/thermal/{ => intel}/int340x_thermal/Makefile (100%)
rename drivers/thermal/{ => intel}/int340x_thermal/acpi_thermal_rel.c (100%)
rename drivers/thermal/{ => intel}/int340x_thermal/acpi_thermal_rel.h (100%)
rename drivers/thermal/{ => intel}/int340x_thermal/int3400_thermal.c (100%)
rename drivers/thermal/{ => intel}/int340x_thermal/int3402_thermal.c (100%)
rename drivers/thermal/{ => intel}/int340x_thermal/int3403_thermal.c (100%)
rename drivers/thermal/{ => intel}/int340x_thermal/int3406_thermal.c (100%)
rename drivers/thermal/{ => intel}/int340x_thermal/int340x_thermal_zone.c (100%)
rename drivers/thermal/{ => intel}/int340x_thermal/int340x_thermal_zone.h (100%)
rename drivers/thermal/{ => intel}/int340x_thermal/processor_thermal_device.c (100%)
rename drivers/thermal/{ => intel}/intel_bxt_pmic_thermal.c (100%)
rename drivers/thermal/{ => intel}/intel_pch_thermal.c (100%)
rename drivers/thermal/{ => intel}/intel_powerclamp.c (100%)
rename drivers/thermal/{ => intel}/intel_quark_dts_thermal.c (100%)
rename drivers/thermal/{ => intel}/intel_soc_dts_iosf.c (100%)
rename drivers/thermal/{ => intel}/intel_soc_dts_iosf.h (100%)
rename drivers/thermal/{ => intel}/intel_soc_dts_thermal.c (100%)
rename drivers/thermal/{ => intel}/x86_pkg_temp_thermal.c (100%)
rename drivers/thermal/{ => qcom}/qcom-spmi-temp-alarm.c (100%)Signature · 1 line
2.17.1
PATCH v3 1/2 drivers: thermal: Move various drivers for intel platforms into a subdir
This cleans up the directory a bit, now that we have several other platforms using platform-specific sub-directories. Compile-tested with ARCH=x86 defconfig and the drivers explicitly enabled with menuconfig.
---
drivers/thermal/Kconfig | 83 ++-----------------
drivers/thermal/Makefile | 11 +--
drivers/thermal/intel/Kconfig | 77 +++++++++++++++++
drivers/thermal/intel/Makefile | 12 +++
.../{ => intel}/int340x_thermal/Kconfig | 0
.../{ => intel}/int340x_thermal/Makefile | 0
.../int340x_thermal/acpi_thermal_rel.c | 0
.../int340x_thermal/acpi_thermal_rel.h | 0
.../int340x_thermal/int3400_thermal.c | 0
.../int340x_thermal/int3402_thermal.c | 0
.../int340x_thermal/int3403_thermal.c | 0
.../int340x_thermal/int3406_thermal.c | 0
.../int340x_thermal/int340x_thermal_zone.c | 0
.../int340x_thermal/int340x_thermal_zone.h | 0
.../processor_thermal_device.c | 0
.../{ => intel}/intel_bxt_pmic_thermal.c | 0
.../thermal/{ => intel}/intel_pch_thermal.c | 0
.../thermal/{ => intel}/intel_powerclamp.c | 0
.../{ => intel}/intel_quark_dts_thermal.c | 0
.../thermal/{ => intel}/intel_soc_dts_iosf.c | 0
.../thermal/{ => intel}/intel_soc_dts_iosf.h | 0
.../{ => intel}/intel_soc_dts_thermal.c | 0
.../{ => intel}/x86_pkg_temp_thermal.c | 0
23 files changed, 96 insertions(+), 87 deletions(-)
create mode 100644 drivers/thermal/intel/Kconfig
create mode 100644 drivers/thermal/intel/Makefile
rename drivers/thermal/{ => intel}/int340x_thermal/Kconfig (100%)
rename drivers/thermal/{ => intel}/int340x_thermal/Makefile (100%)
rename drivers/thermal/{ => intel}/int340x_thermal/acpi_thermal_rel.c (100%)
rename drivers/thermal/{ => intel}/int340x_thermal/acpi_thermal_rel.h (100%)
rename drivers/thermal/{ => intel}/int340x_thermal/int3400_thermal.c (100%)
rename drivers/thermal/{ => intel}/int340x_thermal/int3402_thermal.c (100%)
rename drivers/thermal/{ => intel}/int340x_thermal/int3403_thermal.c (100%)
rename drivers/thermal/{ => intel}/int340x_thermal/int3406_thermal.c (100%)
rename drivers/thermal/{ => intel}/int340x_thermal/int340x_thermal_zone.c (100%)
rename drivers/thermal/{ => intel}/int340x_thermal/int340x_thermal_zone.h (100%)
rename drivers/thermal/{ => intel}/int340x_thermal/processor_thermal_device.c (100%)
rename drivers/thermal/{ => intel}/intel_bxt_pmic_thermal.c (100%)
rename drivers/thermal/{ => intel}/intel_pch_thermal.c (100%)
rename drivers/thermal/{ => intel}/intel_powerclamp.c (100%)
rename drivers/thermal/{ => intel}/intel_quark_dts_thermal.c (100%)
rename drivers/thermal/{ => intel}/intel_soc_dts_iosf.c (100%)
rename drivers/thermal/{ => intel}/intel_soc_dts_iosf.h (100%)
rename drivers/thermal/{ => intel}/intel_soc_dts_thermal.c (100%)
rename drivers/thermal/{ => intel}/x86_pkg_temp_thermal.c (100%)drivers/thermal/Kconfig +5 -78
@@ -326,84 +326,6 @@ config DA9062_THERMAL zone. Compatible with the DA9062 and DA9061 PMICs. -config INTEL_POWERCLAMP - tristate "Intel PowerClamp idle injection driver" - depends on THERMAL - depends on X86 - depends on CPU_SUP_INTEL - help - Enable this to enable Intel PowerClamp idle injection driver. This - enforce idle time which results in more package C-state residency. The - user interface is exposed via generic thermal framework. - -config X86_PKG_TEMP_THERMAL - tristate "X86 package temperature thermal driver" - depends on X86_THERMAL_VECTOR - select THERMAL_GOV_USER_SPACE - select THERMAL_WRITABLE_TRIPS - default m - help - Enable this to register CPU digital sensor for package temperature as - thermal zone. Each package will have its own thermal zone. There are - two trip points which can be set by user to get notifications via thermal - notification methods. - -config INTEL_SOC_DTS_IOSF_CORE - tristate - depends on X86 && PCI - select IOSF_MBI - help - This is becoming a common feature for Intel SoCs to expose the additional - digital temperature sensors (DTSs) using side band interface (IOSF). This - implements the common set of helper functions to register, get temperature - and get/set thresholds on DTSs. - -config INTEL_SOC_DTS_THERMAL - tristate "Intel SoCs DTS thermal driver" - depends on X86 && PCI && ACPI - select INTEL_SOC_DTS_IOSF_CORE - select THERMAL_WRITABLE_TRIPS - help - Enable this to register Intel SoCs (e.g. Bay Trail) platform digital - temperature sensor (DTS). These SoCs have two additional DTSs in - addition to DTSs on CPU cores. Each DTS will be registered as a - thermal zone. There are two trip points. One of the trip point can - be set by user mode programs to get notifications via Linux thermal - notification methods.The other trip is a critical trip point, which - was set by the driver based on the TJ MAX temperature. - -config INTEL_QUARK_DTS_THERMAL - tristate "Intel Quark DTS thermal driver" - depends on X86_INTEL_QUARK - help - Enable this to register Intel Quark SoC (e.g. X1000) platform digital - temperature sensor (DTS). For X1000 SoC, it has one on-die DTS. - The DTS will be registered as a thermal zone. There are two trip points: - hot & critical. The critical trip point default value is set by - underlying BIOS/Firmware. - -menu "ACPI INT340X thermal drivers" -source drivers/thermal/int340x_thermal/Kconfig -endmenu - -config INTEL_BXT_PMIC_THERMAL - tristate "Intel Broxton PMIC thermal driver" - depends on X86 && INTEL_SOC_PMIC_BXTWC && REGMAP - help - Select this driver for Intel Broxton PMIC with ADC channels monitoring - system temperature measurements and alerts. - This driver is used for monitoring the ADC channels of PMIC and handles - the alert trip point interrupts and notifies the thermal framework with - the trip point and temperature details of the zone. - -config INTEL_PCH_THERMAL - tristate "Intel PCH Thermal Reporting Driver" - depends on X86 && PCI - help - Enable this to support thermal reporting on certain intel PCHs. - Thermal reporting device will provide temperature reading, - programmable trip points and other information. - config MTK_THERMAL tristate "Temperature sensor driver for mediatek SoCs" depends on ARCH_MEDIATEK || COMPILE_TEST
@@ -415,6 +337,11 @@ config MTK_THERMAL Enable this option if you want to have support for thermal management controller present in Mediatek SoCs +menu "Intel thermal drivers" +depends on X86 || X86_INTEL_QUARK || COMPILE_TEST +source "drivers/thermal/intel/Kconfig" +endmenu + menu "Broadcom thermal drivers" depends on ARCH_BCM || ARCH_BRCMSTB || ARCH_BCM2835 || COMPILE_TEST source "drivers/thermal/broadcom/Kconfig"
drivers/thermal/Makefile +2 -9
@@ -44,16 +44,9 @@ obj-$(CONFIG_IMX_THERMAL) += imx_thermal.o obj-$(CONFIG_MAX77620_THERMAL) += max77620_thermal.o obj-$(CONFIG_QORIQ_THERMAL) += qoriq_thermal.o obj-$(CONFIG_DA9062_THERMAL) += da9062-thermal.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-y += intel/ obj-$(CONFIG_TI_SOC_THERMAL) += ti-soc-thermal/ -obj-$(CONFIG_INT340X_THERMAL) += int340x_thermal/ -obj-$(CONFIG_INTEL_BXT_PMIC_THERMAL) += intel_bxt_pmic_thermal.o -obj-$(CONFIG_INTEL_PCH_THERMAL) += intel_pch_thermal.o -obj-y += st/ +obj-$(CONFIG_ST_THERMAL) += st/ obj-$(CONFIG_QCOM_TSENS) += qcom/ obj-y += tegra/ obj-$(CONFIG_HISI_THERMAL) += hisi_thermal.o
drivers/thermal/intel/Kconfig new file +77 -0
77 lines not on this page · raw message
drivers/thermal/intel/Makefile new file +12 -0
@@ -0,0 +1,12 @@ +# SPDX-License-Identifier: GPL-2.0 +# +# Makefile for various Intel thermal drivers. + +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_INT340X_THERMAL) += int340x_thermal/ +obj-$(CONFIG_INTEL_BXT_PMIC_THERMAL) += intel_bxt_pmic_thermal.o +obj-$(CONFIG_INTEL_PCH_THERMAL) += intel_pch_thermal.o
drivers/thermal/intel/int340x_thermal/Kconfig renamed from drivers/thermal/int340x_thermal/Kconfig +0 -0
drivers/thermal/intel/int340x_thermal/Makefile renamed from drivers/thermal/int340x_thermal/Makefile +0 -0
drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.c renamed from drivers/thermal/int340x_thermal/acpi_thermal_rel.c +0 -0
drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.h renamed from drivers/thermal/int340x_thermal/acpi_thermal_rel.h +0 -0
drivers/thermal/intel/int340x_thermal/int3400_thermal.c renamed from drivers/thermal/int340x_thermal/int3400_thermal.c +0 -0
drivers/thermal/intel/int340x_thermal/int3402_thermal.c renamed from drivers/thermal/int340x_thermal/int3402_thermal.c +0 -0
drivers/thermal/intel/int340x_thermal/int3403_thermal.c renamed from drivers/thermal/int340x_thermal/int3403_thermal.c +0 -0
drivers/thermal/intel/int340x_thermal/int3406_thermal.c renamed from drivers/thermal/int340x_thermal/int3406_thermal.c +0 -0
drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c renamed from drivers/thermal/int340x_thermal/int340x_thermal_zone.c +0 -0
drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.h renamed from drivers/thermal/int340x_thermal/int340x_thermal_zone.h +0 -0
drivers/thermal/intel/int340x_thermal/processor_thermal_device.c renamed from drivers/thermal/int340x_thermal/processor_thermal_device.c +0 -0
drivers/thermal/intel/intel_bxt_pmic_thermal.c renamed from drivers/thermal/intel_bxt_pmic_thermal.c +0 -0
drivers/thermal/intel/intel_pch_thermal.c renamed from drivers/thermal/intel_pch_thermal.c +0 -0
drivers/thermal/intel/intel_powerclamp.c renamed from drivers/thermal/intel_powerclamp.c +0 -0
drivers/thermal/intel/intel_quark_dts_thermal.c renamed from drivers/thermal/intel_quark_dts_thermal.c +0 -0
drivers/thermal/intel/intel_soc_dts_iosf.c renamed from drivers/thermal/intel_soc_dts_iosf.c +0 -0
drivers/thermal/intel/intel_soc_dts_iosf.h renamed from drivers/thermal/intel_soc_dts_iosf.h +0 -0
drivers/thermal/intel/intel_soc_dts_thermal.c renamed from drivers/thermal/intel_soc_dts_thermal.c +0 -0
drivers/thermal/intel/x86_pkg_temp_thermal.c renamed from drivers/thermal/x86_pkg_temp_thermal.c +0 -0
Signature · 1 line
2.17.1
PATCH v3 2/2 drivers: thermal: Move QCOM_SPMI_TEMP_ALARM into the qcom subdir
In reply to Amit KucheriaThis cleans up the directory a bit allowing just one place to look for thermal related drivers for QCOM platforms instead of being scattered in the root directory and the qcom/ subdirectory. Compile-tested with ARCH=arm64 defconfig and the driver explicitly enabled with menuconfig.
---
drivers/thermal/Kconfig | 11 -----------
drivers/thermal/Makefile | 1 -
drivers/thermal/qcom/Kconfig | 11 +++++++++++
drivers/thermal/qcom/Makefile | 1 +
drivers/thermal/{ => qcom}/qcom-spmi-temp-alarm.c | 0
5 files changed, 12 insertions(+), 12 deletions(-)
rename drivers/thermal/{ => qcom}/qcom-spmi-temp-alarm.c (100%)drivers/thermal/Kconfig +0 -11
@@ -374,17 +374,6 @@ config TANGO_THERMAL source "drivers/thermal/tegra/Kconfig" -config QCOM_SPMI_TEMP_ALARM - tristate "Qualcomm SPMI PMIC Temperature Alarm" - depends on OF && SPMI && IIO - select REGMAP_SPMI - help - This enables a thermal sysfs driver for Qualcomm plug-and-play (QPNP) - PMIC devices. It shows up in sysfs as a thermal sensor with multiple - trip points. The temperature reported by the thermal sensor reflects the - real time die temperature if an ADC is present or an estimate of the - temperature based upon the over temperature stage value. - config GENERIC_ADC_THERMAL tristate "Generic ADC based thermal sensor" depends on IIO
drivers/thermal/Makefile +0 -1
@@ -29,7 +29,6 @@ thermal_sys-$(CONFIG_DEVFREQ_THERMAL) += devfreq_cooling.o # platform thermal drivers obj-y += broadcom/ -obj-$(CONFIG_QCOM_SPMI_TEMP_ALARM) += qcom-spmi-temp-alarm.o obj-$(CONFIG_SPEAR_THERMAL) += spear_thermal.o obj-$(CONFIG_ROCKCHIP_THERMAL) += rockchip_thermal.o obj-$(CONFIG_RCAR_THERMAL) += rcar_thermal.o
drivers/thermal/qcom/Kconfig +11 -0
@@ -9,3 +9,14 @@ config QCOM_TSENS thermal zone device via the mode file results in disabling the sensor. Also able to set threshold temperature for both hot and cold and update when a threshold is reached. + +config QCOM_SPMI_TEMP_ALARM + tristate "Qualcomm SPMI PMIC Temperature Alarm" + depends on OF && SPMI && IIO + select REGMAP_SPMI + help + This enables a thermal sysfs driver for Qualcomm plug-and-play (QPNP) + PMIC devices. It shows up in sysfs as a thermal sensor with multiple + trip points. The temperature reported by the thermal sensor reflects the + real time die temperature if an ADC is present or an estimate of the + temperature based upon the over temperature stage value.
drivers/thermal/qcom/Makefile +1 -0
@@ -1,2 +1,3 @@ obj-$(CONFIG_QCOM_TSENS) += qcom_tsens.o qcom_tsens-y += tsens.o tsens-common.o tsens-8916.o tsens-8974.o tsens-8960.o tsens-v2.o +obj-$(CONFIG_QCOM_SPMI_TEMP_ALARM) += qcom-spmi-temp-alarm.o
drivers/thermal/qcom/qcom-spmi-temp-alarm.c renamed from drivers/thermal/qcom-spmi-temp-alarm.c +0 -0
Signature · 1 line
2.17.1
Zhang Rui
reviewerRe: [PATCH v3 1/2] drivers: thermal: Move various drivers for intel platforms into a subdir
In reply to Amit KucheriaQuoted 206 lines · Amit Kucheria
This cleans up the directory a bit, now that we have several other platforms using platform-specific sub-directories. Compile-tested with
ARCH=x86 defconfig and the drivers explicitly enabled with menuconfig.Signed-off-by Amit Kucheria <[email protected]>Acked-by Daniel Lezcano <[email protected]>---
drivers/thermal/Kconfig | 83 ++--------------- --
drivers/thermal/Makefile | 11 +-- drivers/thermal/intel/Kconfig | 77 +++++++++++++++++ drivers/thermal/intel/Makefile | 12 +++ .../{ => intel}/int340x_thermal/Kconfig | 0
.../{ => intel}/int340x_thermal/Makefile | 0 .../int340x_thermal/acpi_thermal_rel.c | 0 .../int340x_thermal/acpi_thermal_rel.h | 0.../int340x_thermal/int3400_thermal.c | 0 .../int340x_thermal/int3402_thermal.c | 0 .../int340x_thermal/int3403_thermal.c | 0 .../int340x_thermal/int3406_thermal.c | 0.../int340x_thermal/int340x_thermal_zone.c | 0 .../int340x_thermal/int340x_thermal_zone.h | 0 .../processor_thermal_device.c | 0 .../{ => intel}/intel_bxt_pmic_thermal.c | 0 .../thermal/{ => intel}/intel_pch_thermal.c | 0 .../thermal/{ => intel}/intel_powerclamp.c | 0 .../{ => intel}/intel_quark_dts_thermal.c | 0 .../thermal/{ => intel}/intel_soc_dts_iosf.c | 0 .../thermal/{ => intel}/intel_soc_dts_iosf.h | 0 .../{ => intel}/intel_soc_dts_thermal.c | 0 .../{ => intel}/x86_pkg_temp_thermal.c | 0
23 files changed, 96 insertions(+), 87 deletions(-)create mode 100644
drivers/thermal/intel/Kconfig
create mode 100644drivers/thermal/intel/Makefile
renamedrivers/thermal/{=> intel}/int340x_thermal/Kconfig (100%) renamedrivers/thermal/{=> intel}/int340x_thermal/Makefile (100%) renamedrivers/thermal/{=>intel}/int340x_thermal/acpi_thermal_rel.c(100%)
renamedrivers/thermal/{=>intel}/int340x_thermal/acpi_thermal_rel.h(100%)
renamedrivers/thermal/{=>intel}/int340x_thermal/int3400_thermal.c(100%)
renamedrivers/thermal/{=>intel}/int340x_thermal/int3402_thermal.c(100%)
renamedrivers/thermal/{=>intel}/int340x_thermal/int3403_thermal.c(100%)
renamedrivers/thermal/{=>intel}/int340x_thermal/int3406_thermal.c(100%)
renamedrivers/thermal/{=>intel}/int340x_thermal/int340x_thermal_zone.c(100%) renamedrivers/thermal/{=>intel}/int340x_thermal/int340x_thermal_zone.h(100%) renamedrivers/thermal/{=>intel}/int340x_thermal/processor_thermal_device.c(100%) renamedrivers/thermal/{=>intel}/intel_bxt_pmic_thermal.c(100%) renamedrivers/thermal/{=>intel}/intel_pch_thermal.c(100%) renamedrivers/thermal/{=>intel}/intel_powerclamp.c(100%) renamedrivers/thermal/{=>intel}/intel_quark_dts_thermal.c(100%) renamedrivers/thermal/{=>intel}/intel_soc_dts_iosf.c(100%) renamedrivers/thermal/{=>intel}/intel_soc_dts_iosf.h(100%) renamedrivers/thermal/{=>intel}/intel_soc_dts_thermal.c(100%) renamedrivers/thermal/{=>intel}/x86_pkg_temp_thermal.c(100%)drivers/thermal/Kconfig +0
-0@@ -326,84 +326,6 @@ config DA9062_THERMALzone.
Compatible with the DA9062 and DA9061 PMICs.drivers/thermal/Kconfig +0
-7-config INTEL_POWERCLAMP - tristate "Intel PowerClamp idle injection driver" - depends on THERMAL - depends on X86 - depends on CPU_SUP_INTEL - help - Enable this to enable Intel PowerClamp idle injectiondriver. This
drivers/thermal/Kconfig +0
-1- enforce idle time which results in more package C-stateresidency. The
drivers/thermal/Kconfig +0
-10- user interface is exposed via generic thermal framework. - -config X86_PKG_TEMP_THERMAL - tristate "X86 package temperature thermal driver" - depends on X86_THERMAL_VECTOR - select THERMAL_GOV_USER_SPACE - select THERMAL_WRITABLE_TRIPS - default m - help - Enable this to register CPU digital sensor for packagetemperature as
drivers/thermal/Kconfig +0
-1- thermal zone. Each package will have its own thermal zone.There are
drivers/thermal/Kconfig +0
-1- two trip points which can be set by user to getnotifications via thermal
drivers/thermal/Kconfig +0
-8- notification methods. - -config INTEL_SOC_DTS_IOSF_CORE - tristate - depends on X86 && PCI - select IOSF_MBI - help - This is becoming a common feature for Intel SoCs to exposethe additional
drivers/thermal/Kconfig +0
-1- digital temperature sensors (DTSs) using side bandinterface (IOSF). This
drivers/thermal/Kconfig +0
-1- implements the common set of helper functions to register,get temperature
drivers/thermal/Kconfig +0
-9- and get/set thresholds on DTSs. - -config INTEL_SOC_DTS_THERMAL - tristate "Intel SoCs DTS thermal driver" - depends on X86 && PCI && ACPI - select INTEL_SOC_DTS_IOSF_CORE - select THERMAL_WRITABLE_TRIPS - help - Enable this to register Intel SoCs (e.g. Bay Trail)platform digital
drivers/thermal/Kconfig +0
-1- temperature sensor (DTS). These SoCs have two additionalDTSs in
drivers/thermal/Kconfig +0
-1- addition to DTSs on CPU cores. Each DTS will be registeredas a
drivers/thermal/Kconfig +0
-1- thermal zone. There are two trip points. One of the trippoint can
drivers/thermal/Kconfig +0
-1- be set by user mode programs to get notifications viaLinux thermal
drivers/thermal/Kconfig +0
-1- notification methods.The other trip is a critical trippoint, which
drivers/thermal/Kconfig +0
-7- was set by the driver based on the TJ MAX temperature. - -config INTEL_QUARK_DTS_THERMAL - tristate "Intel Quark DTS thermal driver" - depends on X86_INTEL_QUARK - help - Enable this to register Intel Quark SoC (e.g. X1000)platform digital
drivers/thermal/Kconfig +0
-1- temperature sensor (DTS). For X1000 SoC, it has one on-dieDTS.
drivers/thermal/Kconfig +0
-1- The DTS will be registered as a thermal zone. There aretwo trip points:
drivers/thermal/Kconfig +0
-1- hot & critical. The critical trip point default value isset by
drivers/thermal/Kconfig +0
-11- underlying BIOS/Firmware. - -menu "ACPI INT340X thermal drivers" -source drivers/thermal/int340x_thermal/Kconfig -endmenu - -config INTEL_BXT_PMIC_THERMAL - tristate "Intel Broxton PMIC thermal driver" - depends on X86 && INTEL_SOC_PMIC_BXTWC && REGMAP - help - Select this driver for Intel Broxton PMIC with ADCchannels monitoring
drivers/thermal/Kconfig +0
-2- system temperature measurements and alerts. - This driver is used for monitoring the ADC channels ofPMIC and handles
drivers/thermal/Kconfig +0
-1- the alert trip point interrupts and notifies the thermalframework with
drivers/thermal/Kconfig +0
-7- the trip point and temperature details of the zone. - -config INTEL_PCH_THERMAL - tristate "Intel PCH Thermal Reporting Driver" - depends on X86 && PCI - help - Enable this to support thermal reporting on certain intelPCHs.
drivers/thermal/Kconfig +0
-3- Thermal reporting device will provide temperature reading, - programmable trip points and other information. -config
MTK_THERMAL
tristate "Temperature sensor driver for mediatek SoCs" depends onARCH_MEDIATEK||COMPILE_TESTdrivers/thermal/Kconfig +0
-0@@ -415,6 +337,11 @@ config MTK_THERMALEnable this option if you want to have support for thermal management
controller present in Mediatek SoCsdrivers/thermal/Kconfig +5
-0+menu "Intel thermal drivers" +depends on X86 || X86_INTEL_QUARK || COMPILE_TEST +source "drivers/thermal/intel/Kconfig" +endmenu +menu "Broadcom thermal drivers"
depends onARCH_BCM||ARCH_BRCMSTB||ARCH_BCM2835||COMPILE_TESTsource "drivers/thermal/broadcom/Kconfig"drivers/thermal/Makefile +0
-0@@ -44,16 +44,9 @@ obj-$(CONFIG_IMX_THERMAL) += imx_thermal.oobj-$(CONFIG_MAX77620_THERMAL) += max77620_thermal.o
obj-$(CONFIG_QORIQ_THERMAL) += qoriq_thermal.o
obj-$(CONFIG_DA9062_THERMAL) += da9062-thermal.odrivers/thermal/Makefile +0
-4-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-y += intel/
obj-$(CONFIG_TI_SOC_THERMAL) += ti-soc-thermal/
drivers/thermal/Makefile obj-$(CONFIG_IMX_THERMAL) += imx_thermal.o · line 49
Quoted 6 lines
drivers/thermal/Makefile +1
-4-obj-$(CONFIG_INT340X_THERMAL) += int340x_thermal/ -obj-$(CONFIG_INTEL_BXT_PMIC_THERMAL) += intel_bxt_pmic_thermal.o -obj-$(CONFIG_INTEL_PCH_THERMAL) += intel_pch_thermal.o -obj-y += st/ +obj-$(CONFIG_ST_THERMAL) += st/
it's better to do one thing in one patch. I will apply the patch, but without this line change.
thanks,
rui
Quoted 230 lines
obj-$(CONFIG_QCOM_TSENS) += qcom/
obj-y += tegra/
obj-$(CONFIG_HISI_THERMAL) += hisi_thermal.odrivers/thermal/intel/Kconfig new file +7
-0@@ -0,0 +1,77 @@ +config INTEL_POWERCLAMP + tristate "Intel PowerClamp idle injection driver" + depends on THERMAL + depends on X86 + depends on CPU_SUP_INTEL + help + Enable this to enable Intel PowerClamp idle injectiondriver. This
drivers/thermal/intel/Kconfig new file +1
-0+ enforce idle time which results in more package C-stateresidency. The
drivers/thermal/intel/Kconfig new file +10
-0+ user interface is exposed via generic thermal framework. + +config X86_PKG_TEMP_THERMAL + tristate "X86 package temperature thermal driver" + depends on X86_THERMAL_VECTOR + select THERMAL_GOV_USER_SPACE + select THERMAL_WRITABLE_TRIPS + default m + help + Enable this to register CPU digital sensor for packagetemperature as
drivers/thermal/intel/Kconfig new file +1
-0+ thermal zone. Each package will have its own thermal zone.There are
drivers/thermal/intel/Kconfig new file +1
-0+ two trip points which can be set by user to getnotifications via thermal
drivers/thermal/intel/Kconfig new file +8
-0+ notification methods. + +config INTEL_SOC_DTS_IOSF_CORE + tristate + depends on X86 && PCI + select IOSF_MBI + help + This is becoming a common feature for Intel SoCs to exposethe additional
drivers/thermal/intel/Kconfig new file +1
-0+ digital temperature sensors (DTSs) using side bandinterface (IOSF). This
drivers/thermal/intel/Kconfig new file +1
-0+ implements the common set of helper functions to register,get temperature
drivers/thermal/intel/Kconfig new file +9
-0+ and get/set thresholds on DTSs. + +config INTEL_SOC_DTS_THERMAL + tristate "Intel SoCs DTS thermal driver" + depends on X86 && PCI && ACPI + select INTEL_SOC_DTS_IOSF_CORE + select THERMAL_WRITABLE_TRIPS + help + Enable this to register Intel SoCs (e.g. Bay Trail)platform digital
drivers/thermal/intel/Kconfig new file +1
-0+ temperature sensor (DTS). These SoCs have two additionalDTSs in
drivers/thermal/intel/Kconfig new file +1
-0+ addition to DTSs on CPU cores. Each DTS will be registeredas a
drivers/thermal/intel/Kconfig new file +1
-0+ thermal zone. There are two trip points. One of the trippoint can
drivers/thermal/intel/Kconfig new file +1
-0+ be set by user mode programs to get notifications viaLinux thermal
drivers/thermal/intel/Kconfig new file +1
-0+ notification methods.The other trip is a critical trippoint, which
drivers/thermal/intel/Kconfig new file +7
-0+ was set by the driver based on the TJ MAX temperature. + +config INTEL_QUARK_DTS_THERMAL + tristate "Intel Quark DTS thermal driver" + depends on X86_INTEL_QUARK + help + Enable this to register Intel Quark SoC (e.g. X1000)platform digital
drivers/thermal/intel/Kconfig new file +1
-0+ temperature sensor (DTS). For X1000 SoC, it has one on-dieDTS.
drivers/thermal/intel/Kconfig new file +1
-0+ The DTS will be registered as a thermal zone. There aretwo trip points:
drivers/thermal/intel/Kconfig new file +1
-0+ hot & critical. The critical trip point default value isset by
drivers/thermal/intel/Kconfig new file +11
-0+ underlying BIOS/Firmware. + +menu "ACPI INT340X thermal drivers" +source drivers/thermal/intel/int340x_thermal/Kconfig +endmenu + +config INTEL_BXT_PMIC_THERMAL + tristate "Intel Broxton PMIC thermal driver" + depends on X86 && INTEL_SOC_PMIC_BXTWC && REGMAP + help + Select this driver for Intel Broxton PMIC with ADCchannels monitoring
drivers/thermal/intel/Kconfig new file +2
-0+ system temperature measurements and alerts. + This driver is used for monitoring the ADC channels ofPMIC and handles
drivers/thermal/intel/Kconfig new file +1
-0+ the alert trip point interrupts and notifies the thermalframework with
drivers/thermal/intel/Kconfig new file +7
-0+ the trip point and temperature details of the zone. + +config INTEL_PCH_THERMAL + tristate "Intel PCH Thermal Reporting Driver" + depends on X86 && PCI + help + Enable this to support thermal reporting on certain intelPCHs.
drivers/thermal/intel/Kconfig new file +2
-0+ Thermal reporting device will provide temperature reading, + programmable trip points and other information.drivers/thermal/intel/Makefile new file +8
-0@@ -0,0 +1,12 @@ +# SPDX-License-Identifier: GPL-2.0 +# +# Makefile for various Intel thermal drivers. + +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.odrivers/thermal/intel/Makefile new file +3
-0+obj-$(CONFIG_INT340X_THERMAL) += int340x_thermal/ +obj-$(CONFIG_INTEL_BXT_PMIC_THERMAL) += intel_bxt_pmic_thermal.o +obj-$(CONFIG_INTEL_PCH_THERMAL) += intel_pch_thermal.odrivers/thermal/intel/int340x_thermal/Kconfig renamed from drivers/thermal/int340x_thermal/Kconfig +0
-0drivers/thermal/intel/int340x_thermal/Makefile renamed from drivers/thermal/int340x_thermal/Makefile +0
-0drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.c renamed from drivers/thermal/int340x_thermal/acpi_thermal_rel.c +0
-0drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.h renamed from drivers/thermal/int340x_thermal/acpi_thermal_rel.h +0
-0drivers/thermal/intel/int340x_thermal/int3400_thermal.c renamed from drivers/thermal/int340x_thermal/int3400_thermal.c +0
-0drivers/thermal/intel/int340x_thermal/int3402_thermal.c renamed from drivers/thermal/int340x_thermal/int3402_thermal.c +0
-0drivers/thermal/intel/int340x_thermal/int3403_thermal.c renamed from drivers/thermal/int340x_thermal/int3403_thermal.c +0
-0drivers/thermal/intel/int340x_thermal/int3406_thermal.c renamed from drivers/thermal/int340x_thermal/int3406_thermal.c +0
-0drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c renamed from drivers/thermal/int340x_thermal/int340x_thermal_zone.c +0
-0rename to
drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.cdrivers/thermal/intel/int340x_thermal/int340x_thermal_zone.h renamed from drivers/thermal/int340x_thermal/int340x_thermal_zone.h +0
-0rename to
drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.hdiff --gita/drivers/thermal/int340x_thermal/processor_thermal_device.cb/drivers/thermal/intel/int340x_thermal/processor_thermal_device.csimilarity index 100%
rename fromdrivers/thermal/int340x_thermal/processor_thermal_device.crename todrivers/thermal/intel/int340x_thermal/processor_thermal_device.cdrivers/thermal/intel/intel_bxt_pmic_thermal.c renamed from drivers/thermal/intel_bxt_pmic_thermal.c +0
-0drivers/thermal/intel/intel_pch_thermal.c renamed from drivers/thermal/intel_pch_thermal.c +0
-0drivers/thermal/intel/intel_powerclamp.c renamed from drivers/thermal/intel_powerclamp.c +0
-0drivers/thermal/intel/intel_quark_dts_thermal.c renamed from drivers/thermal/intel_quark_dts_thermal.c +0
-0drivers/thermal/intel/intel_soc_dts_iosf.c renamed from drivers/thermal/intel_soc_dts_iosf.c +0
-0drivers/thermal/intel/intel_soc_dts_iosf.h renamed from drivers/thermal/intel_soc_dts_iosf.h +0
-0drivers/thermal/intel/intel_soc_dts_thermal.c renamed from drivers/thermal/intel_soc_dts_thermal.c +0
-0drivers/thermal/intel/x86_pkg_temp_thermal.c renamed from drivers/thermal/x86_pkg_temp_thermal.c +0
-0