software/spisdcard: reduce SPISDCARD_CLK_FREQ to 16MHz.
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 11 Jun 2020 17:18:30 +0000 (19:18 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 11 Jun 2020 17:18:32 +0000 (19:18 +0200)
25MHz does not seem to work on all boards/configurations, needs to be investigated.

litex/soc/software/liblitesdcard/spisdcard.c

index 5d336560ad11ce5b3122de6708605e76e974cf49..19cbaf7afafed03f9dc9d4147ac8e762b90b0963 100644 (file)
@@ -24,7 +24,7 @@
 #define SPISDCARD_CLK_FREQ_INIT 400000
 #endif
 #ifndef SPISDCARD_CLK_FREQ
-#define SPISDCARD_CLK_FREQ 25000000
+#define SPISDCARD_CLK_FREQ 16000000
 #endif
 
 /*-----------------------------------------------------------------------*/