software/liblitesdcard: increase sdcard_wait_cmd_done/sdcard_wait_data_done busy_wait.

Required after the command refactoring, will need to be adjusted.
This commit is contained in:
Florent Kermarrec 2020-08-27 12:52:11 +02:00
parent 4025257d8d
commit 587e09e3d6

View file

@ -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;