From ca247629da034e252d2645c7f15a821b0333454f Mon Sep 17 00:00:00 2001 From: Subrata Banik Date: Wed, 17 Nov 2021 15:18:58 +0530 Subject: [PATCH] soc/intel/common/thermal: Hook up IA thermal block to romstage This patch ensures IA common thermal block is now able to compile under romstage with necessary compilation issues fixed. BUG=b:193774296 Change-Id: I3279f55436977ab9a47e04455d8469e50b5c33c8 Signed-off-by: Subrata Banik Reviewed-on: https://review.coreboot.org/c/coreboot/+/59391 Reviewed-by: Felix Singer Reviewed-by: Angel Pons Reviewed-by: EricR Lai Tested-by: build bot (Jenkins) --- src/soc/intel/common/block/thermal/Makefile.inc | 1 + src/soc/intel/common/block/thermal/thermal.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/soc/intel/common/block/thermal/Makefile.inc b/src/soc/intel/common/block/thermal/Makefile.inc index 6f216b3f33..951065cd11 100644 --- a/src/soc/intel/common/block/thermal/Makefile.inc +++ b/src/soc/intel/common/block/thermal/Makefile.inc @@ -1 +1,2 @@ +romstage-$(CONFIG_SOC_INTEL_COMMON_BLOCK_THERMAL) += thermal.c ramstage-$(CONFIG_SOC_INTEL_COMMON_BLOCK_THERMAL) += thermal.c diff --git a/src/soc/intel/common/block/thermal/thermal.c b/src/soc/intel/common/block/thermal/thermal.c index d6e401ed52..4a2d8d88a8 100644 --- a/src/soc/intel/common/block/thermal/thermal.c +++ b/src/soc/intel/common/block/thermal/thermal.c @@ -43,7 +43,7 @@ void pch_thermal_configuration(void) uint16_t reg16; uintptr_t thermalbar; uintptr_t thermalbar_pm; - struct device *dev; + const struct device *dev; struct resource *res; dev = pcidev_path_on_root(PCH_DEVFN_THERMAL);