From: Gabriel Somlo Date: Thu, 19 Mar 2020 22:20:30 +0000 (-0400) Subject: targets/nexys4ddr: make sdcard reset conditional X-Git-Tag: 24jan2021_ls180~548^2~2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=af4de03fad66b528e7a5d831be7d5977281c237a;p=litex.git targets/nexys4ddr: make sdcard reset conditional --- diff --git a/litex/boards/targets/nexys4ddr.py b/litex/boards/targets/nexys4ddr.py index 7c1da7c1..bae5b1f1 100755 --- a/litex/boards/targets/nexys4ddr.py +++ b/litex/boards/targets/nexys4ddr.py @@ -87,7 +87,8 @@ class BaseSoC(SoCCore): def add_sdcard(self): sdcard_pads = self.platform.request("sdcard") - self.comb += sdcard_pads.rst.eq(0) + if hasattr(sdcard_pads, "rst"): + self.comb += sdcard_pads.rst.eq(0) self.submodules.sdclk = SDClockerS7(sys_clk_freq=self.sys_clk_freq) self.submodules.sdphy = SDPHY(sdcard_pads, self.platform.device) self.submodules.sdcore = SDCore(self.sdphy)