Attention is currently required from: Patrick Rudolph. Subrata Banik has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/59391 )
Change subject: soc/intel/../thermal: Compile IA common thermal block in romstage ......................................................................
soc/intel/../thermal: Compile IA common thermal block in 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 subrata.banik@intel.com --- M src/soc/intel/common/block/thermal/Makefile.inc M src/soc/intel/common/block/thermal/thermal.c 2 files changed, 2 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/91/59391/1
diff --git a/src/soc/intel/common/block/thermal/Makefile.inc b/src/soc/intel/common/block/thermal/Makefile.inc index 6f216b3..951065c 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 d6e401e..4a2d8d8 100644 --- a/src/soc/intel/common/block/thermal/thermal.c +++ b/src/soc/intel/common/block/thermal/thermal.c @@ -43,7 +43,7 @@ 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);