[spi_device] Fix Datapath Mux
This commit fix the typo for JEDEC and Read Command submodule.
Signed-off-by: Eunchan Kim <eunchan@opentitan.org>
diff --git a/hw/ip/spi_device/rtl/spi_device.sv b/hw/ip/spi_device/rtl/spi_device.sv
index fe7176a..25bd61e 100644
--- a/hw/ip/spi_device/rtl/spi_device.sv
+++ b/hw/ip/spi_device/rtl/spi_device.sv
@@ -672,7 +672,7 @@
// Leave SRAM default;
end
- DpReadCmd: begin
+ DpReadCmd, DpReadSFDP: begin
io_mode = sub_iomode[IoModeReadCmd];
p2s_valid = sub_p2s_valid[IoModeReadCmd];
@@ -694,14 +694,13 @@
// default memory (tied)
end
- DpReadSFDP: begin
+ DpReadJEDEC: begin
io_mode = sub_iomode[IoModeJedec];
p2s_valid = sub_p2s_valid[IoModeJedec];
p2s_data = sub_p2s_data[IoModeJedec];
sub_p2s_sent[IoModeJedec] = p2s_sent;
end
- // DpReadJEDEC:
// DpUpload:
// DpUnknown:
default: begin