software/liblitesdcard/spisdcard: simplify/rewrite for consistency with the others...
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 5 Jun 2020 07:07:19 +0000 (09:07 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 5 Jun 2020 10:46:23 +0000 (12:46 +0200)
commit7d141258bea55e08aa5d156e5c9beb8ebcd0643c
treeb8c12322dd784b355f526b98edcdfa958e546f41
parent860ac1e2123510a1ab9d5e60c4f309c4f1640c70
software/liblitesdcard/spisdcard: simplify/rewrite for consistency with the others parts of the project.
- Improve code readability, remove un-needed or duplicate comments.
- Only use a spi_xfer function for both write/read.
- Set the SDCard to low clk freq before init and increase it when initialized.
litex/soc/software/bios/boot.c
litex/soc/software/liblitesdcard/fat16.c
litex/soc/software/liblitesdcard/fat16.h
litex/soc/software/liblitesdcard/sdcard.c
litex/soc/software/liblitesdcard/sdcard.h
litex/soc/software/liblitesdcard/spisdcard.c
litex/soc/software/liblitesdcard/spisdcard.h