genesys2: add sdcard/spisdcard.
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 23 Jun 2020 09:54:16 +0000 (11:54 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 23 Jun 2020 09:54:16 +0000 (11:54 +0200)
litex/boards/platforms/genesys2.py

index 7da31c8723d2f680bee04df0d913d9e2fcd72c39..0dc8a5e32d9610497fb7cde276d4dd023d517c24 100644 (file)
@@ -45,6 +45,23 @@ _io = [
         IOStandard("LVCMOS33")
     ),
 
+    ("sdcard", 0,
+        Subsignal("clk", Pins("R28")),
+        Subsignal("cmd", Pins("R29"), Misc("PULLUP True")),
+        Subsignal("data", Pins("R26 R30 P29 T30"), Misc("PULLUP True")),
+        Misc("SLEW=FAST"),
+        IOStandard("LVCMOS33")
+    ),
+
+    ("spisdcard", 0,
+        Subsignal("clk",  Pins("R28")),
+        Subsignal("cs_n", Pins("T30")),
+        Subsignal("mosi", Pins("R29"), Misc("PULLUP")),
+        Subsignal("miso", Pins("R26"), Misc("PULLUP")),
+        Misc("SLEW=FAST"),
+        IOStandard("LVCMOS33")
+    ),
+
     ("ddram", 0,
         Subsignal("a", Pins(
             "AC12 AE8 AD8 AC10 AD9  AA13 AA10 AA11",