mirror of
https://github.com/cjdelisle/openwrt.git
synced 2025-06-15 14:03:11 +00:00
Add simple driver reading the internal temperature sensor. Signed-off-by: Bjørn Mork <bjorn@mork.no> Link: https://github.com/openwrt/openwrt/pull/17967 Signed-off-by: Sander Vanheule <sander@svanheule.net>
22 lines
805 B
Diff
22 lines
805 B
Diff
--- a/drivers/thermal/Kconfig
|
|
+++ b/drivers/thermal/Kconfig
|
|
@@ -522,4 +522,11 @@ config LOONGSON2_THERMAL
|
|
is higher than the high temperature threshold or lower than the low
|
|
temperature threshold, the interrupt will occur.
|
|
|
|
+config REALTEK_THERMAL
|
|
+ tristate "Realtek RTL838x and RTL930x thermal sensor support"
|
|
+ depends on RTL838X || RTL930X || COMPILE_TEST
|
|
+ depends on THERMAL_OF
|
|
+ help
|
|
+ Support thermal sensor in Realtek RTL838x and RTL930x SoCs
|
|
+
|
|
endif
|
|
--- a/drivers/thermal/Makefile
|
|
+++ b/drivers/thermal/Makefile
|
|
@@ -64,3 +64,4 @@ obj-$(CONFIG_AMLOGIC_THERMAL) += aml
|
|
obj-$(CONFIG_SPRD_THERMAL) += sprd_thermal.o
|
|
obj-$(CONFIG_KHADAS_MCU_FAN_THERMAL) += khadas_mcu_fan.o
|
|
obj-$(CONFIG_LOONGSON2_THERMAL) += loongson2_thermal.o
|
|
+obj-$(CONFIG_REALTEK_THERMAL) += realtek-thermal.o
|