summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt DeVillier <matt.devillier@gmail.com>2022-10-17 15:47:11 -0500
committerFelix Held <felix-coreboot@felixheld.de>2022-10-21 14:31:21 +0000
commit6c8826de8fe5b13338d064ebbc50956b411d9cd9 (patch)
treecfacdd5f396e4a371ef5f29c3fc9d173fe6e543e
parent95b5b025a02aa83bc8baea831f6c72c17f8667ee (diff)
soc/intel/apollolake: Skip SMI lockdown on Apollolake
Commit d9ef02ce (soc/intel/apollolake: Lock down Global SMI) breaks SMM/SMI on Apollolake (but not Geminilake), so guard it accordingly. TEST=build/boot google/reef, verify SMM/SMI/SMMSTORE functional. Change-Id: I00cbe046b61e6c342f7961670478d0ca8d365c2e Signed-off-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/68549 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Sean Rhodes <sean@starlabs.systems> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
-rw-r--r--src/soc/intel/apollolake/lockdown.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/soc/intel/apollolake/lockdown.c b/src/soc/intel/apollolake/lockdown.c
index e11778b5dc..5de4bdd2c1 100644
--- a/src/soc/intel/apollolake/lockdown.c
+++ b/src/soc/intel/apollolake/lockdown.c
@@ -18,5 +18,6 @@ static void pmc_lock_smi(void)
void soc_lockdown_config(int chipset_lockdown)
{
/* APL only supports CHIPSET_LOCKDOWN_COREBOOT */
- pmc_lock_smi();
+ if (CONFIG(SOC_INTEL_GEMINILAKE))
+ pmc_lock_smi();
}