From 59521009c563e3a9b6b516c66320cb834252bf06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20P=C3=B3=C5=82ch=C5=82opek?= Date: Thu, 16 Oct 2025 10:02:26 +0200 Subject: [PATCH] [ot] hw/opentitan: ot_spi_device: Adjust SPI device definitions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Regenerate SPI device definitions using ./scripts/opentitan/autoreg.py script and verify them by hand with System Verilog code from OpenTitan repo. Signed-off-by: Mateusz Półchłopek --- hw/opentitan/ot_spi_device.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/opentitan/ot_spi_device.c b/hw/opentitan/ot_spi_device.c index a6b79432e5928..1edc2fa6154dc 100644 --- a/hw/opentitan/ot_spi_device.c +++ b/hw/opentitan/ot_spi_device.c @@ -206,7 +206,8 @@ REG32(TPM_CFG, 0x04u) FIELD(TPM_CFG, INVALID_LOCALITY, 4u, 1u) REG32(TPM_STATUS, 0x08u) FIELD(TPM_STATUS, CMDADDR_NOTEMPTY, 0u, 1u) - FIELD(TPM_STATUS, WRFIFO_DEPTH, 16u, 7u) + FIELD(TPM_STATUS, WRFIFO_PENDING, 1u, 1u) + FIELD(TPM_STATUS, RDFIFO_ABORTED, 2u, 1u) REG32(TPM_ACCESS_0, 0x0cu) FIELD(TPM_ACCESS_0, ACCESS_0, 0u, 8u) FIELD(TPM_ACCESS_0, ACCESS_1, 8u, 8u)