genesys2: add "rst" and "cd" signals to (spi-)sdcard records

Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
This commit is contained in:
Gabriel Somlo 2021-01-04 13:10:13 -05:00
parent 016d75512f
commit 4eb0026a69
1 changed files with 8 additions and 5 deletions

View File

@ -68,17 +68,20 @@ _io = [
# SDCard # SDCard
("spisdcard", 0, ("spisdcard", 0,
Subsignal("rst", Pins("AE24")),
Subsignal("clk", Pins("R28")), Subsignal("clk", Pins("R28")),
Subsignal("cs_n", Pins("T30")), Subsignal("cs_n", Pins("T30"), Misc("PULLUP True")),
Subsignal("mosi", Pins("R29"), Misc("PULLUP")), Subsignal("mosi", Pins("R29"), Misc("PULLUP True")),
Subsignal("miso", Pins("R26"), Misc("PULLUP")), Subsignal("miso", Pins("R26"), Misc("PULLUP True")),
Misc("SLEW=FAST"), Misc("SLEW=FAST"),
IOStandard("LVCMOS33") IOStandard("LVCMOS33")
), ),
("sdcard", 0, ("sdcard", 0,
Subsignal("clk", Pins("R28")), Subsignal("rst", Pins("AE24"), Misc("PULLUP True")),
Subsignal("cmd", Pins("R29"), Misc("PULLUP True")),
Subsignal("data", Pins("R26 R30 P29 T30"), Misc("PULLUP True")), Subsignal("data", Pins("R26 R30 P29 T30"), Misc("PULLUP True")),
Subsignal("cmd", Pins("R29"), Misc("PULLUP True")),
Subsignal("clk", Pins("R28")),
Subsignal("cd", Pins("P28")),
Misc("SLEW=FAST"), Misc("SLEW=FAST"),
IOStandard("LVCMOS33") IOStandard("LVCMOS33")
), ),