1 ## SPDX-License-Identifier: GPL-2.0-only
3 config CACHE_MRC_SETTINGS
6 Save cached MRC settings
10 config MRC_SETTINGS_CACHE_SIZE
14 config MRC_SETTINGS_PROTECT
15 bool "Enable protection on MRC settings"
18 config HAS_RECOVERY_MRC_CACHE
22 config MRC_SETTINGS_VARIABLE_DATA
26 config MRC_WRITE_NV_LATE
30 MRC settings are normally written to NVRAM at BS_DEV_ENUMERATE-EXIT.
31 If a platform requires MRC settings written to NVRAM later than
32 normal, select this item. This will cause the write to occur at
33 BS_OS_RESUME_CHECK-ENTRY.
35 config MRC_STASH_TO_CBMEM
37 default y if MRC_WRITE_NV_LATE || BOOT_DEVICE_SPI_FLASH_NO_EARLY_WRITES
40 Instead of writing back MRC_CACHE training data back to the
41 MRC_CACHE right away, stash the data into cbmem. This data
42 will be written back later to MRC_CACHE. This is selected
43 for platforms which either do not support writes to SPI
45 (BOOT_DEVICE_SPI_FLASH_NO_EARLY_WRITES) or the platforms
46 that need to write back the MRC data in late ramstage boot
47 states (MRC_WRITE_NV_LATE).
49 config MRC_SAVE_HASH_IN_TPM
50 bool "Save a hash of the MRC_CACHE data in TPM NVRAM"
51 depends on VBOOT_STARTS_IN_BOOTBLOCK && TPM2 && !TPM1 && !VBOOT_MOCK_SECDATA
54 Store a hash of the MRC_CACHE training data in a TPM NVRAM
55 space to ensure that it cannot be tampered with.
57 config MRC_CACHE_USING_MRC_VERSION
61 Use the MRC version info from FSP extended header to store the MRC cache data.
62 This method relies on the FSP_PRODUCER_DATA_TABLES belongs to the
63 `FspProducerDataHeader.h`file to get the MRC version.
65 Supported platform can retrieve the MRC version by directly parsing the binary.
67 endif # CACHE_MRC_SETTINGS