soc/add_spi_sdcard: Fix missing renaming when rst pin is present.

This commit is contained in:
Florent Kermarrec 2022-01-14 19:16:31 +01:00
parent ffc96a5655
commit cdacba06d1
1 changed files with 1 additions and 1 deletions

View File

@ -1560,7 +1560,7 @@ class LiteXSoC(SoC):
# Pads.
spi_sdcard_pads = self.platform.request(name)
if hasattr(spi_sdcard_pads, "rst"):
self.comb += pads.rst.eq(0)
self.comb += spi_sdcard_pads.rst.eq(0)
# Tristate (Optional).
if with_tristate: