mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
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:
parent
4025257d8d
commit
587e09e3d6
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue