coreboot/src/drivers/spi
Felix Held ce01117aa5 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>
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>
2024-12-03 17:40:39 +00:00
..
acpi drivers/spi/acpi: Update generic property list 2024-07-04 14:04:05 +00:00
tpm tpm: Add Ti50 OpenTitan DID_VID 2024-06-14 12:33:31 +00:00
adesto.c
amic.c
atmel.c
bitbang.c src/drivers: Clean up includes 2022-10-26 16:38:45 +00:00
boot_device_rw_nommap.c
cbfs_spi.c
eon.c
flashconsole.c
gigadevice.c drivers/spi: Add support for GD25LR512ME flash rom 2024-03-17 16:50:25 +00:00
issi.c tree: Drop unused <delay.h> 2024-04-09 22:23:16 +00:00
Kconfig drivers/spi: add RPMC info to spi_flash struct 2024-11-12 15:41:11 +00:00
macronix.c drivers/spi: Add support for Macronix SPI ROM MX77U25650F 2022-11-10 15:14:26 +00:00
Makefile.mk drivers/spi: add RPMC info to spi_flash struct 2024-11-12 15:41:11 +00:00
spansion.c
spi-generic.c drivers/ipmi to lib: Fix misspellings & capitalization issues 2023-12-13 10:42:30 +00:00
spi_flash.c drivers/spi: add RPMC info to spi_flash struct 2024-11-12 15:41:11 +00:00
spi_flash_internal.h drivers/spi: add RPMC info to spi_flash struct 2024-11-12 15:41:11 +00:00
spi_flash_rpmc.c drivers/spi: add RPMC support 2024-12-03 17:40:39 +00:00
spi_flash_sfdp.c drivers/spi/spi_flash_sfdp: use spi_crop_chunk when reading SFDP data 2024-11-12 15:41:22 +00:00
spi_sdcard.c drivers/ipmi to lib: Fix misspellings & capitalization issues 2023-12-13 10:42:30 +00:00
spi_winbond.h
spiconsole.c
sst.c
stmicro.c
winbond.c region: Turn region_end() into an inclusive region_last() 2024-08-23 01:08:16 +00:00