This space is read/updated only in recovery mode. 1. During read phase, verify if the hash of MRC data read from RECOVERY_MRC_CACHE matches the hash stored in TPM. 2. During update phase, calculate hash of training data returned by MRC and save it in TPM.
BUG=chrome-os-partner:59355 BRANCH=None TEST=Verified MRC data hash comparison and update operation on reef.
Change-Id: Ifcbbf1bd22033767625ec55b659e05fa7a7afc16
2db5bac drivers/intel/fsp2_0: Add support for recovery MRC hash space in TPM
src/drivers/intel/fsp2_0/Kconfig | 6 ++
src/drivers/intel/fsp2_0/memory_init.c | 121 ++++++++++++++++++++++++++++++++
2 files changed, 127 insertions(+)
Upstream: review.coreboot.org