From b858dd62e99d212355bb56de8204fe9b9f632684 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 26 Mar 2021 23:19:08 +0100 Subject: [PATCH] liblitesdcard/sdcard: Remove divider workaround (was due to LiteSDCard backpressure issue). --- litex/soc/software/liblitesdcard/sdcard.c | 1 - 1 file changed, 1 deletion(-) diff --git a/litex/soc/software/liblitesdcard/sdcard.c b/litex/soc/software/liblitesdcard/sdcard.c index 48203d2eb..3741c6eec 100644 --- a/litex/soc/software/liblitesdcard/sdcard.c +++ b/litex/soc/software/liblitesdcard/sdcard.c @@ -106,7 +106,6 @@ void sdcard_set_clk_freq(uint32_t clk_freq, int show) { uint32_t divider; divider = clk_freq ? CONFIG_CLOCK_FREQUENCY/clk_freq : 256; divider = pow2_round_up(divider); - divider <<= 1; /* NOTE: workaround for occasional sdcardboot failure */ divider = min(max(divider, 2), 256); #ifdef SDCARD_DEBUG show = 1;