thermal/drivers/int340x/processor_thermal: Add PCI MMIO based thermal driver
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Tue, 25 May 2021 20:48:11 +0000 (13:48 -0700)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Sun, 4 Jul 2021 16:28:04 +0000 (18:28 +0200)
commitacd65d5d1cf4a3324c8970ba74632abe069fe23e
treef613f21039134f29d7c2771346cca6cfdf6d2976
parent8fe145f7ceda7b8909cd471e1e75dd20dfbf41a5
thermal/drivers/int340x/processor_thermal: Add PCI MMIO based thermal driver

Add a new PCI driver which register a thermal zone and allows to get
notification for threshold violation by a RW trip point. These
notifications are delivered from the device using MSI based
interrupt.

The main difference between this new PCI driver and the existing
one is that the temperature and trip points directly use PCI
MMIO instead of using ACPI methods.

This driver registers a thermal zone "TCPU_PCI" in addition to the
legacy processor thermal device, which uses ACPI companion device
to set name, temperature and trips.

This driver is enabled for AlderLake.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210525204811.3793651-3-srinivas.pandruvada@linux.intel.com
drivers/thermal/intel/int340x_thermal/Makefile
drivers/thermal/intel/int340x_thermal/processor_thermal_device.h
drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci.c [new file with mode: 0644]
drivers/thermal/intel/int340x_thermal/processor_thermal_device_pci_legacy.c