Commit 1d693155 authored by David HERNANDEZ SANCHEZ's avatar David HERNANDEZ SANCHEZ Committed by Eduardo Valentin

thermal: add stm32 thermal driver

Add support for DTS thermal sensor that can be
found on some STM32 platforms.

This driver is based on OF and works in interrupt
mode.

It offers two temperature trip points:
passive and critical. The first is intended for
passive cooling notification while the second is
used for over-temperature reset.
Signed-off-by: default avatarDavid Hernandez Sanchez <david.hernandezsanchez@st.com>
Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
parent 7f1a22ce
...@@ -432,7 +432,7 @@ source "drivers/thermal/samsung/Kconfig" ...@@ -432,7 +432,7 @@ source "drivers/thermal/samsung/Kconfig"
endmenu endmenu
menu "STMicroelectronics thermal drivers" menu "STMicroelectronics thermal drivers"
depends on ARCH_STI && OF depends on (ARCH_STI || ARCH_STM32) && OF
source "drivers/thermal/st/Kconfig" source "drivers/thermal/st/Kconfig"
endmenu endmenu
......
...@@ -53,7 +53,7 @@ obj-$(CONFIG_TI_SOC_THERMAL) += ti-soc-thermal/ ...@@ -53,7 +53,7 @@ obj-$(CONFIG_TI_SOC_THERMAL) += ti-soc-thermal/
obj-$(CONFIG_INT340X_THERMAL) += int340x_thermal/ obj-$(CONFIG_INT340X_THERMAL) += int340x_thermal/
obj-$(CONFIG_INTEL_BXT_PMIC_THERMAL) += intel_bxt_pmic_thermal.o obj-$(CONFIG_INTEL_BXT_PMIC_THERMAL) += intel_bxt_pmic_thermal.o
obj-$(CONFIG_INTEL_PCH_THERMAL) += intel_pch_thermal.o obj-$(CONFIG_INTEL_PCH_THERMAL) += intel_pch_thermal.o
obj-$(CONFIG_ST_THERMAL) += st/ obj-y += st/
obj-$(CONFIG_QCOM_TSENS) += qcom/ obj-$(CONFIG_QCOM_TSENS) += qcom/
obj-y += tegra/ obj-y += tegra/
obj-$(CONFIG_HISI_THERMAL) += hisi_thermal.o obj-$(CONFIG_HISI_THERMAL) += hisi_thermal.o
......
#
# STMicroelectronics thermal drivers configuration
#
config ST_THERMAL config ST_THERMAL
tristate "Thermal sensors on STMicroelectronics STi series of SoCs" tristate "Thermal sensors on STMicroelectronics STi series of SoCs"
help help
...@@ -10,3 +14,13 @@ config ST_THERMAL_SYSCFG ...@@ -10,3 +14,13 @@ config ST_THERMAL_SYSCFG
config ST_THERMAL_MEMMAP config ST_THERMAL_MEMMAP
select ST_THERMAL select ST_THERMAL
tristate "STi series memory mapped access based thermal sensors" tristate "STi series memory mapped access based thermal sensors"
config STM32_THERMAL
tristate "Thermal framework support on STMicroelectronics STM32 series of SoCs"
depends on MACH_STM32MP157
default y
help
Support for thermal framework on STMicroelectronics STM32 series of
SoCs. This thermal driver allows to access to general thermal framework
functionalities and to acces to SoC sensor functionalities. This
configuration is fully dependent of MACH_STM32MP157.
obj-$(CONFIG_ST_THERMAL) := st_thermal.o obj-$(CONFIG_ST_THERMAL) := st_thermal.o
obj-$(CONFIG_ST_THERMAL_SYSCFG) += st_thermal_syscfg.o obj-$(CONFIG_ST_THERMAL_SYSCFG) += st_thermal_syscfg.o
obj-$(CONFIG_ST_THERMAL_MEMMAP) += st_thermal_memmap.o obj-$(CONFIG_ST_THERMAL_MEMMAP) += st_thermal_memmap.o
obj-$(CONFIG_STM32_THERMAL) := stm_thermal.o
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment