litex/litex/soc
Gabriel Somlo 6fdb36b84a liblitesdcard/sdcard: adjust card-ready timeout
Testing on nexys4ddr and rocket, approximately 12 iterations of the
timeout loop (using `busy_wait(1)`) are needed to receive a "ready"
response from the SDcard, assuming a "warm" reset where the card has
already been previously initialized.

If the SDcard is ejected and re-inserted, or if the board is "cold-reset"
(e.g., reprogrammed via openocd vs. a simple push of the reset button),
it takes approximately 450 iterations before the SDCard responds with a
"ready" message.

In either case, a timeout of 10 is insufficient. This patch increases
the busy-wait to 10, and the timeout loop counter to 128, which should
cover most cases.

Additionally, make a few minor cosmetic improvements.

Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
2020-07-06 17:38:07 -04:00
..
cores i2s: Fix the incorrect TX fifo almost empty offset 2020-07-01 13:32:53 +02:00
doc soc/doc/csr: allow CSRField.reset to be a Migen Constant. 2020-03-23 18:47:41 +01:00
integration litesdcard: use new clocker. 2020-07-03 20:06:42 +02:00
interconnect interconnect/csr_bus: move/rewrite paged access warning. 2020-07-06 12:26:24 +02:00
software liblitesdcard/sdcard: adjust card-ready timeout 2020-07-06 17:38:07 -04:00
__init__.py litex: reorganize things, first work working version 2015-11-07 17:48:55 +01:00