aboutsummaryrefslogtreecommitdiff
path: root/src/soc/intel
diff options
context:
space:
mode:
authorSubrata Banik <subrata.banik@intel.com>2021-11-17 15:18:58 +0530
committerSubrata Banik <subrata.banik@intel.com>2021-11-20 05:17:56 +0000
commitca247629da034e252d2645c7f15a821b0333454f (patch)
tree07dcabe2c2ed5f0b03effca808594fdbc3f8cabf /src/soc/intel
parentc8193ce58768d3868a876c7eed6a653725b60a6b (diff)
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 <subrata.banik@intel.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/59391 Reviewed-by: Felix Singer <felixsinger@posteo.net> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: EricR Lai <ericr_lai@compal.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel')
-rw-r--r--src/soc/intel/common/block/thermal/Makefile.inc1
-rw-r--r--src/soc/intel/common/block/thermal/thermal.c2
2 files changed, 2 insertions, 1 deletions
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);