From 8370f6b79c06bcea1a04f53e9028d0aa447e3583 Mon Sep 17 00:00:00 2001 From: Michael Niewöhner Date: Tue, 17 Sep 2019 18:48:00 +0200 Subject: soc/intel/icelake: lockdown: lock global reset MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There are four chipsets selecting PMC_GLOBAL_RESET_ENABLE_LOCK but only one (apollolake) is actually calling the code. Add the missing call. Change-Id: I3e450a473ccdf99221e82e0f857879039d78991b Signed-off-by: Michael Niewöhner Reviewed-on: https://review.coreboot.org/c/coreboot/+/36572 Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) --- src/soc/intel/icelake/lockdown.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/soc/intel/icelake') diff --git a/src/soc/intel/icelake/lockdown.c b/src/soc/intel/icelake/lockdown.c index 85a93c7c8e..b92d1c52f9 100644 --- a/src/soc/intel/icelake/lockdown.c +++ b/src/soc/intel/icelake/lockdown.c @@ -15,6 +15,7 @@ #include #include +#include #include #include @@ -60,6 +61,8 @@ static void pmc_lockdown_cfg(int chipset_lockdown) pmc_lock_pmsync(); /* Lock down ABASE and sleep stretching policy */ pmc_lock_abase(); + /* Make sure payload/OS can't trigger global reset */ + pmc_global_reset_disable_and_lock(); if (chipset_lockdown == CHIPSET_LOCKDOWN_COREBOOT) pmc_lock_smi(); -- cgit v1.2.3