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

litespi: fix cs handling for bulk transfers #852

Closed
wants to merge 1 commit into from

Conversation

mczerski
Copy link

For bulk transfers it is essential to keep cs asserted for all
transfers in a block. CS register must directly drive the cs pin
for the software to be able to control the CS pin.

Linux driver related changes are in litex-hub/linux#4.

For bulk transfers it is essential to keep cs asserted for all
transfers in a block. CS register must directly drive the cs pin
for the software to be able to control the CS pin.
@enjoy-digital
Copy link
Owner

Thanks @mczerski, I'll have a closer look at it in the next days.

@enjoy-digital
Copy link
Owner

Sorry for the delay @mczerski, unfortunately, we can't merge the change since it would break several external design that are not using bulk transfers, so we have to keep things retro-compatible.

With 8ce7c58, things are kept compatible and a new manual mode is added for CS, where CS will be a direct recopy of the CS set in the CSR:

https://github.com/enjoy-digital/litex/blob/master/litex/soc/cores/spi.py#L175

This can be used for bulk transfers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants