From 997a17b93367b7b83d37025cb8d09d6c0d101c52 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 3 Jun 2020 14:34:59 +0200 Subject: [PATCH] soc/add_sdcard: add minimal SDClockerECP5 on ECP5. --- litex/soc/integration/soc.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/litex/soc/integration/soc.py b/litex/soc/integration/soc.py index 303d67f77..f415b4819 100644 --- a/litex/soc/integration/soc.py +++ b/litex/soc/integration/soc.py @@ -1269,6 +1269,11 @@ class LiteXSoC(SoC): self.submodules.sdclk = SDClockerS7(sys_clk_freq=self.sys_clk_freq) self.add_csr("sdclk") + if self.platform.device[:5] == "LFE5U": + from litesdcard.clocker import SDClockerECP5 + self.submodules.sdclk = SDClockerECP5() + self.add_csr("sdclk") + # Core if hasattr(sdcard_pads, "rst"): self.comb += sdcard_pads.rst.eq(0)