Skip to contentSkip to conversation

thermal: Add HiSilicon Kunpeng thermal driver and Maintainers

PATCH Superseded Yang Shen 1 participant 3 messages Mar 16, 2020 Thermal

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Yang Shen

author
#0 lore raw

cover thermal: Add HiSilicon Kunpeng thermal driver and Maintainers

Add HiSilicon Kunpeng thermal driver and Maintainers.

Yang Shen (2):
thermal: Add HiSilicon Kunpeng thermal driver
MAINTAINERS: Add maintainers for kunpeng thermal

 MAINTAINERS                       |   7 ++
 drivers/thermal/Kconfig           |   8 ++
 drivers/thermal/Makefile          |   1 +
 drivers/thermal/kunpeng_thermal.c | 219 ++++++++++++++++++++++++++++++++++++++
 4 files changed, 235 insertions(+)
 create mode 100644 drivers/thermal/kunpeng_thermal.c

--
2.7.4

author
#2 lore raw

PATCH 2/2 MAINTAINERS: Add maintainers for kunpeng thermal

Add Yang Shen and Zhou Wang as maintainers for kunpeng thermal

---
 MAINTAINERS | 7 +++++++
 1 file changed, 7 insertions(+)
MAINTAINERS +7 -0
index cc1d18c..b7d4af4 100644
@@ -7602,6 +7602,13 @@ F:	drivers/crypto/hisilicon/sgl.c
 F:	drivers/crypto/hisilicon/zip/
 F:	Documentation/ABI/testing/debugfs-hisi-zip
 
+HISILICON KUNPENG TSENSOR DRIVER
+M:	Yang Shen <[email protected]>
+M:	Zhou Wang <[email protected]>
+L:	[email protected]
+S:	Maintained
+F:	drivers/thermal/kunpeng_thermal.c
+
 HMM - Heterogeneous Memory Management
 M:	Jérôme Glisse <[email protected]>
 L:	[email protected]
Signature · 1 line
2.7.4
author
#1 lore raw

PATCH 1/2 thermal: Add HiSilicon Kunpeng thermal driver

In reply to Yang Shen

Support HiSilicon Kunpeng tsensor. the driver will report the max temperature for each core.

---
 drivers/thermal/Kconfig           |   8 ++
 drivers/thermal/Makefile          |   1 +
 drivers/thermal/kunpeng_thermal.c | 219 ++++++++++++++++++++++++++++++++++++++
 3 files changed, 228 insertions(+)
 create mode 100644 drivers/thermal/kunpeng_thermal.c
drivers/thermal/Kconfig +8 -0
index 5a05db5..7611b5d 100644
@@ -239,6 +239,14 @@ config HISI_THERMAL
 	  thermal framework. cpufreq is used as the cooling device to throttle
 	  CPUs when the passive trip is crossed.
 
+config KUNPENG_THERMAL
+	tristate "HiSilicon kunpeng thermal driver"
+	depends on ARM64 || COMPILE_TEST
+	help
+	  Enable this to plug HiSilicon kunpeng's thermal sensors driver into
+	  the Linux thermal framework, which supports to get the highest
+	  temperature of one Kunpeng SoC.
+
 config IMX_THERMAL
 	tristate "Temperature sensor driver for Freescale i.MX SoCs"
 	depends on ARCH_MXC || COMPILE_TEST
drivers/thermal/Makefile +1 -0
index 9fb88e2..88ffca5 100644
@@ -57,3 +57,4 @@ obj-$(CONFIG_GENERIC_ADC_THERMAL)	+= thermal-generic-adc.o
 obj-$(CONFIG_ZX2967_THERMAL)	+= zx2967_thermal.o
 obj-$(CONFIG_UNIPHIER_THERMAL)	+= uniphier_thermal.o
 obj-$(CONFIG_AMLOGIC_THERMAL)     += amlogic_thermal.o
+obj-$(CONFIG_KUNPENG_THERMAL)     += kunpeng_thermal.o
drivers/thermal/kunpeng_thermal.c new file +219 -0

219 lines not on this page · raw message

Signature · 1 line
2.7.4