coreboot/src/soc
Michael Niewöhner 7736bfc443 soc/intel/sgx: convert SGX and PRMRR devicetree options to Kconfig
The devicetree is not made for user-choosable options, thus introduce
Kconfig options for both SGX and the corresponding PRMRR size.

The PRMRR size Kconfig has been implemented as a maximum value. At
runtime the final PRMRR size gets selected by checking the supported
values in MSR_PRMRR_VALID_CONFIG and trying to select the value nearest
to the chosen one.

When "Maximum" is chosen, the highest possibly value from the MSR gets
used. When a too strict limit is set, coreboot will die, printing an
error message.

Tested successfully on X11SSM-F

Change-Id: I5f08e85898304bba6680075ca5d6bce26aef9a4d
Signed-off-by: Michael Niewöhner <foss@mniewoehner.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/35799
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
2019-11-04 19:25:02 +00:00
..
amd cpu/x86/tsc: Flip and rename TSC_CONSTANT_RATE to UNKNOWN_TSC_RATE 2019-11-03 06:15:35 +00:00
cavium arch/arm64: Pass cbmem_top to ramstage via calling argument 2019-11-03 11:19:24 +00:00
imgtec arch/mips: Pass cbmem_top to ramstage via calling argument 2019-11-04 11:40:25 +00:00
intel soc/intel/sgx: convert SGX and PRMRR devicetree options to Kconfig 2019-11-04 19:25:02 +00:00
mediatek arch/arm64: Pass cbmem_top to ramstage via calling argument 2019-11-03 11:19:24 +00:00
nvidia soc/nvidia/tegra210: Populate _cbmem_top_ptr 2019-11-04 11:40:12 +00:00
qualcomm arch/arm64: Pass cbmem_top to ramstage via calling argument 2019-11-03 11:19:24 +00:00
rockchip arch/arm64: Pass cbmem_top to ramstage via calling argument 2019-11-03 11:19:24 +00:00
samsung arch/arm: Pass cbmem_top to ramstage via calling argument 2019-11-03 11:19:04 +00:00
sifive lib/cbmem_top: Add a common cbmem_top implementation 2019-11-01 11:44:51 +00:00
ucb lib/cbmem_top: Add a common cbmem_top implementation 2019-11-01 11:44:51 +00:00