Attention is currently required from: Felix Held, Marshall Dawson, Matt DeVillier.
Hello Marshall Dawson, Matt DeVillier, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/84837?usp=email
to look at the new patch set (#10).
The following approvals got outdated and were removed: Code-Review+1 by Matt DeVillier, Code-Review+2 by Marshall Dawson, Verified+1 by build bot (Jenkins)
Change subject: drivers/spi: add RPMC support ......................................................................
drivers/spi: add RPMC support
Add functions to send the RPMC-related commands to a RPMC-capable SPI flash to provision the root key, update the HMAC key, increment the monotonic counter, and request the monotonic counter data. To talk to the flash chip, the command bytes and polling mechanism described in the SFDP data structure of the flash are used.
The JESD260 specification was used as a reference.
Some of inspiration was taken from github.com/teslamotors/coreboot/tree/tesla-4.12-amd
TEST=When used with the later patch that calls some of the functions added in this patch, sending the RPMC increment monotonic counter command to the RPMC-capable SPI flash, in this case W74M12JW, is successful.
Change-Id: Ia9bd69d0105c66bf5ecb6c90e8c782a81912bd40 Signed-off-by: Felix Held felix-coreboot@felixheld.de --- M src/drivers/spi/spi_flash_rpmc.c M src/include/spi_flash.h 2 files changed, 357 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/37/84837/10