Skip to content

Commit

Permalink
[spi_device] Update max_rd_size to 64 bytes
Browse files Browse the repository at this point in the history
Also update the corresponding parameter in TB

Signed-off-by: Weicai Yang <[email protected]>
  • Loading branch information
weicaiyang committed Sep 27, 2022
1 parent eb59b2b commit f781bc2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hw/ip/spi_device/data/spi_device.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -1089,7 +1089,7 @@

It is not recommended for SW to advertise TPM supporting more than `max_rd_size` to the South Bridge.
'''
resval: "4"
resval: "6"
} // f: max_rd_size
]
tags: [
Expand Down
2 changes: 1 addition & 1 deletion hw/ip/spi_device/dv/env/spi_device_env_pkg.sv
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ package spi_device_env_pkg;
parameter bit[11:0] TPM_HW_INT_CAP_OFFSET = 12'h014;
parameter bit[23:0] TPM_BASE_ADDR = 24'hD40000;
parameter byte TPM_ACTIVE_LOCALITY_BIT_POS = 5;
parameter byte MAX_SUPPORT_TPM_SIZE = 16; // current version can support up to 16
parameter byte MAX_SUPPORT_TPM_SIZE = 64;
parameter byte MAX_TPM_LOCALITY = 5;

parameter uint NUM_INTERNAL_PROCESSED_CMD = 11; // exclude WREN, WRDI, EN4B, EX4B
Expand Down
2 changes: 1 addition & 1 deletion hw/ip/spi_device/rtl/spi_device_reg_top.sv
Original file line number Diff line number Diff line change
Expand Up @@ -18272,7 +18272,7 @@ module spi_device_reg_top (
prim_subreg #(
.DW (3),
.SwAccess(prim_subreg_pkg::SwAccessRO),
.RESVAL (3'h4)
.RESVAL (3'h6)
) u_tpm_cap_max_rd_size (
.clk_i (clk_i),
.rst_ni (rst_ni),
Expand Down

0 comments on commit f781bc2

Please sign in to comment.