Skip to content

Commit b03205a

Browse files
pl-halfboyAlexJones0
authored andcommitted
[ot] hw/opentitan: ot_spi_device: Adjust SPI device definitions
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 <[email protected]>
1 parent 1f3601f commit b03205a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hw/opentitan/ot_spi_device.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,8 @@ REG32(TPM_CFG, 0x04u)
206206
FIELD(TPM_CFG, INVALID_LOCALITY, 4u, 1u)
207207
REG32(TPM_STATUS, 0x08u)
208208
FIELD(TPM_STATUS, CMDADDR_NOTEMPTY, 0u, 1u)
209-
FIELD(TPM_STATUS, WRFIFO_DEPTH, 16u, 7u)
209+
FIELD(TPM_STATUS, WRFIFO_PENDING, 1u, 1u)
210+
FIELD(TPM_STATUS, RDFIFO_ABORTED, 2u, 1u)
210211
REG32(TPM_ACCESS_0, 0x0cu)
211212
FIELD(TPM_ACCESS_0, ACCESS_0, 0u, 8u)
212213
FIELD(TPM_ACCESS_0, ACCESS_1, 8u, 8u)

0 commit comments

Comments
 (0)