Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[spi_device] Hardcoded flash command values #25945

Open
rivos-eblot opened this issue Jan 20, 2025 · 0 comments
Open

[spi_device] Hardcoded flash command values #25945

rivos-eblot opened this issue Jan 20, 2025 · 0 comments
Labels
Type:Enhancement Feature requests, enhancements

Comments

@rivos-eblot
Copy link
Contributor

Description

It seems that the RTL code defines common 25-series flash device commands twice as

  • spi_flash_cmd_e in spi_cmdparse.sv, and
  • spi_cmd_e in spi_deive_pkg.sv

However those definitions are not actually referenced elsewhere in the RTL code, and are only used in the DV files.

What only seem to matter for the SPI device implementation is the index/position of the command within the CMD_INFO registers, not there actual values that should be defined by the SW.

Maybe it's a left over from a previous implementation - or is it on purpose (?). It seems the definitions are duplicated anyway. It might be useful, i.e. help readability, to move these definitions where they are used (DV files) and only keep a single copy of them.

@rivos-eblot rivos-eblot added the Type:Enhancement Feature requests, enhancements label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type:Enhancement Feature requests, enhancements
Projects
None yet
Development

No branches or pull requests

1 participant