diff options
author | Sean Rhodes <sean@starlabs.systems> | 2022-06-19 22:27:14 +0100 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-07-20 12:34:00 +0000 |
commit | de21ba07588f5bbf8f763de215dcf6fd1cb6ba2f (patch) | |
tree | bb866968457985bd62905eaadead26818c540b67 /src | |
parent | eb90c512ab6bd8da224d50365a17acfb562a7727 (diff) |
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 <sean@starlabs.systems>
Change-Id: Iab5bbd399c3a654dcb95eaa8fce683a50c7322f2
Reviewed-on: https://review.coreboot.org/c/coreboot/+/65227
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/soc/intel/common/pch/lockdown/lockdown.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 * |