soc/intel/common/thermal: Allow thermal configuration over PMC
commit2ee30add352c56fbf5a49ed27705318adaff7893
authorSubrata Banik <subrata.banik@intel.com>
Fri, 19 Nov 2021 08:19:21 +0000 (19 13:49 +0530)
committerSubrata Banik <subrata.banik@intel.com>
Sat, 20 Nov 2021 17:49:00 +0000 (20 17:49 +0000)
treea4165c2b3e43ed371e58df8b9809c5cb141b07de
parentd7375b3fdd1b39ed029aa2a4c013e46811291469
soc/intel/common/thermal: Allow thermal configuration over PMC

Thermal configuration has evolved over PCH generations where
latest PCH has provided an option to allow thermal configuration
using PMC PWRMBASE registers.

This patch adds an option for impacted SoC to select the Kconfig
for allowing thermal configuration using PMC PCH MMIO space.

BUG=b:193774296
TEST=Able to build and boot hatch and adlrvp platform.

Change-Id: I0c6ae72610da39fc18ff252c440d006e83c570a0
Signed-off-by: Subrata Banik <subrata.banik@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/59209
Reviewed-by: Felix Singer <felixsinger@posteo.net>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Reviewed-by: EricR Lai <ericr_lai@compal.corp-partner.google.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
src/soc/intel/common/block/include/intelblocks/thermal.h
src/soc/intel/common/block/thermal/Kconfig
src/soc/intel/common/block/thermal/Makefile.inc
src/soc/intel/common/block/thermal/thermal_pmc.c [new file with mode: 0644]