From b03f46ffec773329a10ded62261c5d314a7093aa Mon Sep 17 00:00:00 2001 From: Gabriel Somlo Date: Sun, 24 Jan 2021 09:28:55 -0500 Subject: [PATCH] soc: increase sdcard data/cmd timeout (from default 10e-3) This allows the Linux driver in single-block mode (cmd17-only) to operate solidly, without running into timeouts from LiteSDCard FSMs. FIXME: multi-block (cmd18) transfers still time out, so revisit this after some additional debugging. --- litex/soc/integration/soc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/integration/soc.py b/litex/soc/integration/soc.py index edab41db5..046157e05 100644 --- a/litex/soc/integration/soc.py +++ b/litex/soc/integration/soc.py @@ -1480,7 +1480,7 @@ class LiteXSoC(SoC): sdcard_pads = self.platform.request(name) # Core - self.submodules.sdphy = SDPHY(sdcard_pads, self.platform.device, self.clk_freq) + self.submodules.sdphy = SDPHY(sdcard_pads, self.platform.device, self.clk_freq, cmd_timeout=10e-1, data_timeout=10e-1) self.submodules.sdcore = SDCore(self.sdphy) self.csr.add("sdphy", use_loc_if_exists=True) self.csr.add("sdcore", use_loc_if_exists=True)