-
Notifications
You must be signed in to change notification settings - Fork 220
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
Add SpiDmaBus::split
for moving between manual & automatic DMA buffers
#2824
base: main
Are you sure you want to change the base?
Conversation
Change LGTM, I'm just gonna ask you to rename |
Using an SPI bus to drive a display is slightly problematic (you won't be able to share the bus with other devices) and you won't be able to do this with an SPI device, so I'm not sure what the point is. |
@bugadani The display chip does allow for CS/bus sharing, so I'm not entirely sure what you mean. It's not a problem in our case anyway, we have dedicated lines for the display since we need to the entire bandwidth. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing flush
SpiDmaBus::deconstruct
for moving between manual & automatic DMA buffersSpiDmaBus::split
for moving between manual & automatic DMA buffers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
Description
This pull-request adds
SpiDmaBus::deconstruct
for moving between manual & automatic DMA buffers.If an SpiDmaBus is made you are stuck with automatic buffer handling (unless drop, steal & re-init the SPI peripheral again).
Here is an example snippet (for the FT8xx series display driver series) of it's usage:
Testing
Testing is still on-going but since SpiDmaBus is effectively a dumb-wrapper I don't expect any issues.