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> Reviewed-on: https://review.coreboot.org/c/coreboot/+/84837 Reviewed-by: Matt DeVillier <matt.devillier@gmail.com> Reviewed-by: Marshall Dawson <marshalldawson3rd@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> |
||
|---|---|---|
| .. | ||
| acpi | ||
| tpm | ||
| adesto.c | ||
| amic.c | ||
| atmel.c | ||
| bitbang.c | ||
| boot_device_rw_nommap.c | ||
| cbfs_spi.c | ||
| eon.c | ||
| flashconsole.c | ||
| gigadevice.c | ||
| issi.c | ||
| Kconfig | ||
| macronix.c | ||
| Makefile.mk | ||
| spansion.c | ||
| spi-generic.c | ||
| spi_flash.c | ||
| spi_flash_internal.h | ||
| spi_flash_rpmc.c | ||
| spi_flash_sfdp.c | ||
| spi_sdcard.c | ||
| spi_winbond.h | ||
| spiconsole.c | ||
| sst.c | ||
| stmicro.c | ||
| winbond.c | ||