From: Florent Kermarrec Date: Wed, 3 Jun 2020 16:36:06 +0000 (+0200) Subject: soc/add_sdcard: use SDClockerS7 for 7-Series and SDClockerGen for others devices. X-Git-Tag: 24jan2021_ls180~223 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b30e3353b52ccf513c738286f8ea7d546767f627;p=litex.git soc/add_sdcard: use SDClockerS7 for 7-Series and SDClockerGen for others devices. --- diff --git a/litex/soc/integration/soc.py b/litex/soc/integration/soc.py index f415b481..ac12c576 100644 --- a/litex/soc/integration/soc.py +++ b/litex/soc/integration/soc.py @@ -1268,10 +1268,9 @@ class LiteXSoC(SoC): from litesdcard.clocker import SDClockerS7 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() + else: + from litesdcard.clocker import SDClockerGen + self.submodules.sdclk = SDClockerGen() self.add_csr("sdclk") # Core