summaryrefslogtreecommitdiff
path: root/src/soc/intel/common/block/sgx/Kconfig
diff options
context:
space:
mode:
authorPratikkumar Prajapati <pratikkumar.v.prajapati@intel.com>2022-12-14 17:11:49 -0800
committerSridhar Siricilla <sridhar.siricilla@intel.com>2023-01-08 19:36:43 +0000
commitbd26394496b48d966cd407673e5922bbd986b74e (patch)
tree181d0d755d9a281863d64a525e7212ea386ac808 /src/soc/intel/common/block/sgx/Kconfig
parent6a2495d8d9f389b7ee08c559cb18f9a78c810e38 (diff)
soc/intel/common: Untie PRMRR from SGX
PRMRR is used by many Intel SOC features, not just Intel SGX. As of now SGX and Key Locker are the features that need PRMRR. Untie it from Intel SGX specific files and move to common cpulib. Also rename PRMRR size config option. Use the renamed PRMRR size config option to set the PRMRR size. TEST=Able to set PRMRR size using config. Signed-off-by: Pratikkumar Prajapati <pratikkumar.v.prajapati@intel.com> Change-Id: I0cd49a87be0293530705802fd9b830201a5863c2 Reviewed-on: https://review.coreboot.org/c/coreboot/+/70819 Reviewed-by: Kapil Porwal <kapilporwal@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Sridhar Siricilla <sridhar.siricilla@intel.com>
Diffstat (limited to 'src/soc/intel/common/block/sgx/Kconfig')
-rw-r--r--src/soc/intel/common/block/sgx/Kconfig42
1 files changed, 2 insertions, 40 deletions
diff --git a/src/soc/intel/common/block/sgx/Kconfig b/src/soc/intel/common/block/sgx/Kconfig
index d9f941dd2c..6d636ada01 100644
--- a/src/soc/intel/common/block/sgx/Kconfig
+++ b/src/soc/intel/common/block/sgx/Kconfig
@@ -21,45 +21,7 @@ config SOC_INTEL_COMMON_BLOCK_SGX_ENABLE
used by applications to set aside private regions (so-called Secure Enclaves) of
code and data.
- SGX will only be enabled when supported by the CPU!
-
-config SOC_INTEL_COMMON_BLOCK_SGX_PRMRR_SIZE
- int
- depends on SOC_INTEL_COMMON_BLOCK_SGX_ENABLE
- default 256 if SOC_INTEL_COMMON_BLOCK_SGX_PRMRR_SIZE_MAX
- default 256 if SOC_INTEL_COMMON_BLOCK_SGX_PRMRR_SIZE_256MB
- default 128 if SOC_INTEL_COMMON_BLOCK_SGX_PRMRR_SIZE_128MB
- default 64 if SOC_INTEL_COMMON_BLOCK_SGX_PRMRR_SIZE_64MB
- default 32 if SOC_INTEL_COMMON_BLOCK_SGX_PRMRR_SIZE_32MB
-
-choice
- prompt "PRMRR size"
- depends on SOC_INTEL_COMMON_BLOCK_SGX_ENABLE
- default SOC_INTEL_COMMON_BLOCK_SGX_PRMRR_SIZE_MAX if SOC_INTEL_COMMON_BLOCK_SGX_ENABLE
- help
- PRMRR (Protected Memory Range) is the space in RAM that is used to provide a protected
- memory area (e.g. for the Intel SGX Secure Enclaves). The memory region is accessible
- only by the processor itself to protect the data from unauthorized access.
-
- This option selects the maximum size that gets reserved. Depending on the SoC a lower,
- compatible value may be chosen at runtime as not all values are supported on all
- families.
-
-config SOC_INTEL_COMMON_BLOCK_SGX_PRMRR_SIZE_MAX
- bool "Maximum"
-
-config SOC_INTEL_COMMON_BLOCK_SGX_PRMRR_SIZE_256MB
- bool "256 MiB"
-
-config SOC_INTEL_COMMON_BLOCK_SGX_PRMRR_SIZE_128MB
- bool "128 MiB"
-
-config SOC_INTEL_COMMON_BLOCK_SGX_PRMRR_SIZE_64MB
- bool "64 MiB"
-
-config SOC_INTEL_COMMON_BLOCK_SGX_PRMRR_SIZE_32MB
- bool "32 MiB"
-
-endchoice
+ SGX will only be enabled when supported by the CPU! Configure PRMRR size using
+ SOC_INTEL_COMMON_BLOCK_PRMRR_SIZE config option.
endif