coreboot-kgpe-d16/src/soc/intel/icelake
Subrata Banik 281e2c1987 soc/intel/common/thermal: Refactor thermal block to improve reusability
This patch moves common thermal API between chipsets
with thermal device as PCI device and thermal device behind PMC
into common file (thermal_common.c).

Introduce CONFIG_SOC_INTEL_COMMON_BLOCK_THERMAL_PCI_DEV to let SoC
Kconfig to select as applicable for underlying chipset.

+------------------------------------------------------+--------------+
|               Thermal Kconfig                        |    SoC       |
+------------------------------------------------------+--------------+
| CONFIG_SOC_INTEL_COMMON_BLOCK_THERMAL_PCI_DEV        | SKL/KBL, CNL |
|                                                      | till ICL     |
+------------------------------------------------------+--------------+
| CONFIG_SOC_INTEL_COMMON_BLOCK_THERMAL_BEHIND_PMC     | TGL onwards  |
|                                                      | ICL          |
+------------------------------------------------------+--------------+

Either of these two Kconfig internally selects
CONFIG_SOC_INTEL_COMMON_BLOCK_THERMAL to use common thermal APIs.

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

Change-Id: I14df5145629ef03f358b98e824bca6a5b8ebdfc6
Signed-off-by: Subrata Banik <subrata.banik@intel.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/59509
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: EricR Lai <ericr_lai@compal.corp-partner.google.com>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
2021-11-25 07:18:04 +00:00
..
acpi soc/intel: Include gfx.asl from northbridge 2021-03-01 08:32:47 +00:00
bootblock soc/intel/icelake: Make use of `cpu/intel/cpu_ids.h' 2021-07-17 09:50:56 +00:00
include/soc soc/intel/icelake: correct wrong gpio SMI register base offsets 2021-09-23 06:31:58 +00:00
romstage soc/intel/icelake: Make use of is_devfn_enabled() function 2021-06-23 08:25:11 +00:00
acpi.c soc/intel: Constify soc_get_cstate_map() 2021-10-19 14:57:59 +00:00
chip.c soc/intel: Replace open-coded buffer length calculation 2021-04-21 14:21:44 +00:00
chip.h soc/intel: replace dt option PmTimerDisabled by Kconfig 2021-10-12 18:25:35 +00:00
cpu.c cpu/x86/mp_init: move printing of failure message into mp_init_with_smm 2021-10-22 01:27:07 +00:00
elog.c
espi.c src: Match array format in function declarations and definitions 2021-05-13 18:34:38 +00:00
finalize.c soc/intel: move disabling of PM Timer to SoC PMC code 2021-10-17 13:57:30 +00:00
fsp_params.c soc/intel: transition full control over PM Timer from FSP to coreboot 2021-10-17 13:59:04 +00:00
gpio.c soc/intel/{xeon-sp,icl,tgl,jsl,ehl}: add NMI_{EN,STS} registers 2021-09-23 06:31:48 +00:00
gspi.c
i2c.c
Kconfig soc/intel/common/thermal: Refactor thermal block to improve reusability 2021-11-25 07:18:04 +00:00
lockdown.c
Makefile.inc cpu/x86: Introduce and use CPU_X86_LAPIC 2021-10-26 17:44:14 +00:00
me.c
p2sb.c
pmc.c soc/intel: implement ACPI timer disabling per SoC and drop common code 2021-10-17 13:57:53 +00:00
pmutil.c soc/intel/icelake: Clear RTC_BATTERY_DEAD 2021-09-20 15:44:12 +00:00
reset.c
sd.c
smihandler.c
spi.c
systemagent.c Rename ECAM-specific MMCONF Kconfigs 2021-11-10 17:24:16 +00:00
uart.c soc/intel/*: drop UART pad configuration from common code 2021-03-12 08:48:03 +00:00