-
Notifications
You must be signed in to change notification settings - Fork 10
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
[ot] hw/opentitan: ot_spi_host: rework SPI Host #139
Merged
rivos-eblot
merged 23 commits into
lowRISC:ot-earlgrey-9.2.0
from
rivos-eblot:dev/ebl/spihost_active_bit
Feb 13, 2025
Merged
[ot] hw/opentitan: ot_spi_host: rework SPI Host #139
rivos-eblot
merged 23 commits into
lowRISC:ot-earlgrey-9.2.0
from
rivos-eblot:dev/ebl/spihost_active_bit
Feb 13, 2025
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Closed
0f93238
to
5fd3cb6
Compare
cd9a600
to
2549644
Compare
…ages Signed-off-by: Emmanuel Blot <[email protected]>
2549644
to
64f0245
Compare
loiclefort
reviewed
Feb 11, 2025
Signed-off-by: Emmanuel Blot <[email protected]>
Ideally, this should be implemented as a irq signal to receive dynamic clock settings from the clock manager. Until ot_clkmgr supports this feature, use a simple property. Signed-off-by: Emmanuel Blot <[email protected]>
Signed-off-by: Emmanuel Blot <[email protected]>
Signed-off-by: Emmanuel Blot <[email protected]>
…ation Restore configuration that got unexpectedly discarded in "rework SPI event management" commit Signed-off-by: Emmanuel Blot <[email protected]>
Documentation was misleading: "the command is complete when STATUS.ACTIVE goes low." It turns out STATUS.active goes low when the last pushed command is completed, in other words, STATUS.active is not released as soon as a command is complete. Signed-off-by: Emmanuel Blot <[email protected]>
Signed-off-by: Emmanuel Blot <[email protected]>
Update SPI Host doc clarifies that registers are -not- reset upon a SW reset. Signed-off-by: Emmanuel Blot <[email protected]>
…ecated Signed-off-by: Emmanuel Blot <[email protected]>
Signed-off-by: Emmanuel Blot <[email protected]>
Observing Verilator waves, it seems nothing precludes the SPI HOST FSM from executing on error. Signed-off-by: Emmanuel Blot <[email protected]>
Observing Verilator waves, the command FIFO only contains next command, not the one that is being executed. In other words, there can be 5 in-fly commands, not 4, as 4 are stored in the command FIFO + 1 is being executed. Remove CS channel limitation (from 8 to 32 bits) and command tracking value (from 16 to 32 bits) Signed-off-by: Emmanuel Blot <[email protected]>
Active command status provides the same information. Signed-off-by: Emmanuel Blot <[email protected]>
…ce_status Signed-off-by: Emmanuel Blot <[email protected]>
Command completion is handled in a dedicated function. Add a short delay on command push to yield execution back to the vCPU before kicking the FSM. Signed-off-by: Emmanuel Blot <[email protected]>
…mand Signed-off-by: Emmanuel Blot <[email protected]>
Signed-off-by: Emmanuel Blot <[email protected]>
… I/F Signed-off-by: Emmanuel Blot <[email protected]>
Remove deprecated Doxygen-like C comments, use QEMU style. Signed-off-by: Emmanuel Blot <[email protected]>
76c5a7f
to
0a35efd
Compare
loiclefort
approved these changes
Feb 11, 2025
When overriding the parent's reset implementation, the child is responsible to call its parent's implementation. Signed-off-by: Emmanuel Blot <[email protected]>
OT_SPI_HOST_IRQ_NUM is no longer used. Signed-off-by: Emmanuel Blot <[email protected]>
…tion Signed-off-by: Emmanuel Blot <[email protected]>
0a35efd
to
1063c4c
Compare
loiclefort
approved these changes
Feb 12, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
All SPI Host tests from
sw/device/tests
now passSee #129 for details.