From b6df166f5a0d92c09a6c27dfdca1256c100c527f Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 10 Jun 2020 17:38:16 +0200 Subject: [PATCH] platforms/arty: add spisdcard to _sdcard_pmod_io. --- litex_boards/platforms/arty.py | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/litex_boards/platforms/arty.py b/litex_boards/platforms/arty.py index 7f21fac..807862d 100644 --- a/litex_boards/platforms/arty.py +++ b/litex_boards/platforms/arty.py @@ -146,12 +146,21 @@ _io = [ ] _sdcard_pmod_io = [ # https://store.digilentinc.com/pmod-microsd-microsd-card-slot/ + ("spisdcard", 0, + Subsignal("clk", Pins("C15")), + Subsignal("mosi", Pins("E16"), Misc("PULLUP True")), + Subsignal("cs_n", Pins("E15"), Misc("PULLUP True")), + Subsignal("miso", Pins("D15"), Misc("PULLUP True")), + Misc("SLEW=FAST"), + IOStandard("LVCMOS33"), + ), ("sdcard", 0, Subsignal("data", Pins("D15 J17 J18 E15")), - Subsignal("cmd", Pins("E16")), - Subsignal("clk", Pins("C15")), - Subsignal("cd", Pins("K15")), - IOStandard("LVCMOS33"), Misc("SLEW=FAST") + Subsignal("cmd", Pins("E16")), + Subsignal("clk", Pins("C15")), + Subsignal("cd", Pins("K15")), + Misc("SLEW=FAST"), + IOStandard("LVCMOS33"), ), ]