summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSubrata Banik <subratabanik@google.com>2022-08-23 19:29:07 +0530
committerTim Wawrzynczak <twawrzynczak@chromium.org>2022-08-24 21:26:59 +0000
commit766bd0040f082e82b3af199fb392c462444fb79d (patch)
tree7366da60b9654609fecf5bf6329642c3b61e24ce /src
parent184ac20fdc041a81e6714aa6fce893c49c91b5ec (diff)
downloadcoreboot-766bd0040f082e82b3af199fb392c462444fb79d.tar.gz
coreboot-766bd0040f082e82b3af199fb392c462444fb79d.tar.bz2
coreboot-766bd0040f082e82b3af199fb392c462444fb79d.zip
soc/intel/adl: Consider INTEL_TME config prior TME MSR programming
This patch brings INTEL_TME config check prior programming TME Set Activation Core MSR on all cores. TEST=Able to boot Google/Taeko to OS. Signed-off-by: Subrata Banik <subratabanik@google.com> Change-Id: I8af7e305da1050f443929ab33be556e713e53e9a Reviewed-on: https://review.coreboot.org/c/coreboot/+/66976 Reviewed-by: Tarun Tuli <taruntuli@google.com> Reviewed-by: Eric Lai <eric_lai@quanta.corp-partner.google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/soc/intel/alderlake/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/intel/alderlake/cpu.c b/src/soc/intel/alderlake/cpu.c
index dce5478f8041..e339d6d2e9fd 100644
--- a/src/soc/intel/alderlake/cpu.c
+++ b/src/soc/intel/alderlake/cpu.c
@@ -141,7 +141,7 @@ void soc_core_init(struct device *cpu)
/* Enable Turbo */
enable_turbo();
- if (is_tme_supported())
+ if (CONFIG(INTEL_TME) && is_tme_supported())
set_tme_core_activate();
}