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

It is possible use SP1? #16

Closed
naxeras opened this issue Jun 26, 2018 · 1 comment
Closed

It is possible use SP1? #16

naxeras opened this issue Jun 26, 2018 · 1 comment

Comments

@naxeras
Copy link

naxeras commented Jun 26, 2018

Any possibility to add support for spi1 rather spi0?

Is for use in conjunction with gamecon:

https://github.com/RetroPie/RetroPie-Setup/wiki/GPIO-Modules#gamecon_gpio_rpi

Regards.

@juj
Copy link
Owner

juj commented Jun 27, 2018

Good question. Unfortunately the DMA controller on the Pi can only operate against SPI0, but not SPI1 (afaik), so if one would use the driver with SPI1, it would require disabling DMA, which would cause really high ~100% CPU usage. The FIFO length of the SPI1 controller is also much smaller than on SPI0, so it is possible that maximum frame rate would be slower as well. If you do still want to try to port to use SPI1, you should be able to do it following https://www.raspberrypi.org/app/uploads/2012/02/BCM2835-ARM-Peripherals.pdf documentation, because of the lack of DMA I don't think I will attempt that.

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

No branches or pull requests

2 participants