From: Florent Kermarrec Date: Wed, 3 Jun 2020 12:34:59 +0000 (+0200) Subject: soc/add_sdcard: add minimal SDClockerECP5 on ECP5. X-Git-Tag: 24jan2021_ls180~226 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=997a17b93367b7b83d37025cb8d09d6c0d101c52;p=litex.git soc/add_sdcard: add minimal SDClockerECP5 on ECP5. --- diff --git a/litex/soc/integration/soc.py b/litex/soc/integration/soc.py index 303d67f7..f415b481 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)