From 3f9f8f1e703d118642ebe2667e9f7fc4b08f6810 Mon Sep 17 00:00:00 2001 From: Felix Held Date: Mon, 7 Oct 2024 23:14:18 +0200 Subject: include/spi_flash: add RPMC field length defines The first table from the chapter 4.1 'OP1/OP2 Command Definition: No Address Phase' of the JEDEC standard JESD260 (Replay Protected Monotonic Counter (RPMC) for Serial Flash Devices) in the version from April 2021 was used as a reference. Signed-off-by: Felix Held Change-Id: I0050aea6cdc537122bae63fddb417dd9f6b75a02 Reviewed-on: https://review.coreboot.org/c/coreboot/+/84703 Reviewed-by: Marshall Dawson Reviewed-by: Nicholas Sudsgaard Tested-by: build bot (Jenkins) --- src/include/spi_flash.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/include/spi_flash.h') diff --git a/src/include/spi_flash.h b/src/include/spi_flash.h index d5471a4406..e0d5b2b36d 100644 --- a/src/include/spi_flash.h +++ b/src/include/spi_flash.h @@ -12,6 +12,10 @@ #define SPI_OPCODE_WREN 0x06 #define SPI_OPCODE_FAST_READ 0x0b +/* SPI RPMC field lengths in bytes */ +#define SPI_RPMC_TAG_LEN 12 +#define SPI_RPMC_SIG_LEN 32 + struct spi_flash; /* -- cgit v1.2.3