From de21ba07588f5bbf8f763de215dcf6fd1cb6ba2f Mon Sep 17 00:00:00 2001 From: Sean Rhodes Date: Sun, 19 Jun 2022 22:27:14 +0100 Subject: [PATCH] soc/intel/cmn/pch/lockdown: Guard gpmr_lockdown_cfg Guard gpmr_lockdown_cfg with SOC_INTEL_COMMON_BLOCK_GPMR so it doesn't run on platforms that don't select this. Signed-off-by: Sean Rhodes Change-Id: Iab5bbd399c3a654dcb95eaa8fce683a50c7322f2 Reviewed-on: https://review.coreboot.org/c/coreboot/+/65227 Reviewed-by: Angel Pons Tested-by: build bot (Jenkins) Reviewed-by: Lean Sheng Tan --- src/soc/intel/common/pch/lockdown/lockdown.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/soc/intel/common/pch/lockdown/lockdown.c b/src/soc/intel/common/pch/lockdown/lockdown.c index f8eb511889..eec3beb01b 100644 --- a/src/soc/intel/common/pch/lockdown/lockdown.c +++ b/src/soc/intel/common/pch/lockdown/lockdown.c @@ -29,6 +29,9 @@ int get_lockdown_config(void) static void gpmr_lockdown_cfg(void) { + if (!CONFIG(SOC_INTEL_COMMON_BLOCK_GPMR)) + return; + /* * GCS reg *