mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
targets/nexys4ddr: make sdcard reset conditional
This commit is contained in:
parent
a33916bc6b
commit
af4de03fad
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue