litex-hub / linux-on-litex-vexriscv

Linux on LiteX-VexRiscv
BSD 2-Clause "Simplified" License
552 stars 174 forks source link

ulx3s: use spisdcard instead of sdcard #262

Closed cbrune closed 2 years ago

cbrune commented 2 years ago

The ULX3S does not have a card detect (CD) pin for the SD interface, which breaks the sdcard driver in Linux.

This patch changes the ULX3S to use the "spisdcard" interface instead of the "sdcard" interface. With this change the SD card works fine from the BIOS and Linux in SPI-mode.

See also emard/ulx3s#15

Fixes: #203

enjoy-digital commented 2 years ago

Thanks @cbrune, I'm merging this. I'll have a closer look at SD mode on the ULX3S. Even without the CD pin, it should be possible improve the Linux driver to support this.