]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
stm32: Add kmod-stm32-thermal 18119/head
authorThomas Richard <thomas.richard@bootlin.com>
Wed, 26 Feb 2025 09:46:30 +0000 (10:46 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 19 Apr 2025 16:41:29 +0000 (18:41 +0200)
This adds the Thermal framework support for STM32MP157.

Signed-off-by: Thomas Richard <thomas.richard@bootlin.com>
Link: https://github.com/openwrt/openwrt/pull/18119
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/stm32/modules.mk

index 4daf9564386f57a2e46a7d33f5e859c38367bb17..0f407008dcf90f4650a54b152ecb41d6d44ef3e1 100644 (file)
@@ -245,6 +245,18 @@ endef
 $(eval $(call KernelPackage,stm32-timer-trigger))
 
 
+define KernelPackage/stm32-thermal
+  SUBMENU:=$(OTHER_MENU)
+  TITLE:=Thermal framework support on STMicroelectronics STM32 series of SoCs
+  KCONFIG:=CONFIG_STM32_THERMAL
+  DEPENDS:=@TARGET_stm32_stm32mp1 +kmod-thermal
+  FILES:=$(LINUX_DIR)/drivers/thermal/st/stm_thermal.ko
+  AUTOLOAD:=$(call AutoProbe,stm_thermal)
+endef
+
+$(eval $(call KernelPackage,stm32-thermal))
+
+
 define KernelPackage/st-thermal
   SUBMENU:=$(OTHER_MENU)
   TITLE:=Thermal sensors on STMicroelectronics STi series of SoCs