From 587e09e3d64fc0a26275607d6f27d8889f196b45 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 27 Aug 2020 12:52:11 +0200 Subject: [PATCH] software/liblitesdcard: increase sdcard_wait_cmd_done/sdcard_wait_data_done busy_wait. Required after the command refactoring, will need to be adjusted. --- litex/soc/software/liblitesdcard/sdcard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litex/soc/software/liblitesdcard/sdcard.c b/litex/soc/software/liblitesdcard/sdcard.c index e71c4ea64..1ce236be1 100644 --- a/litex/soc/software/liblitesdcard/sdcard.c +++ b/litex/soc/software/liblitesdcard/sdcard.c @@ -53,7 +53,7 @@ int sdcard_wait_cmd_done(void) { #endif if (event & 0x1) break; - busy_wait_us(1); + busy_wait_us(100); /* FIXME: adjust */ } #ifdef SDCARD_DEBUG csr_rd_buf_uint32(CSR_SDCORE_CMD_RESPONSE_ADDR, @@ -76,7 +76,7 @@ int sdcard_wait_data_done(void) { #endif if (event & 0x1) break; - busy_wait_us(1); + busy_wait_us(100); /* FIXME: adjust */ } if (event & 0x4) return SD_TIMEOUT;