diff options
author | Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> | 2020-11-26 20:18:26 +0300 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2020-12-10 14:29:47 +0300 |
commit | a5923b6c3137b9d4fc2ea1c997f6e4d51ac5d774 (patch) | |
tree | d37c3635ee9a69f0da21b92af8b72cdb26551256 /drivers/thermal/thermal_helpers.c | |
parent | e854da4f51117d7340ec621face92e775bcd4d22 (diff) | |
download | linux-a5923b6c3137b9d4fc2ea1c997f6e4d51ac5d774.tar.xz |
thermal: int340x: processor_thermal: Refactor MMIO interface
The Processor Thermal PCI device supports multiple features. Currently
we export only RAPL. But we need more features from this device exposed
for Tiger Lake and Alder Lake based platforms. So re-structure the
current MMIO interface, so that more features can be added cleanly.
No functional changes are expected with this change.
Changes done in this patch:
- Using PCI_DEVICE_DATA(), hence names of defines changed
- Move RAPL MMIO code to its own module
- Move the RAPL MMIO offsets to RAPL MMIO module
- Adjust Kconfig dependency of PROC_THERMAL_MMIO_RAPL
- Per processor driver data now contains the supported features
- Moved all the common data structures and defines to a common header
file
- This new header file contains all the processor_thermal_* interfaces
- Based on the features supported the module interface is called
- Each module atleast provides one add and one remove function
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/20201126171829.945969-1-srinivas.pandruvada@linux.intel.com
Diffstat (limited to 'drivers/thermal/thermal_helpers.c')
0 files changed, 0 insertions, 0 deletions