boards/platforms/icebreaker: cleanup a bit.
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 9 Mar 2020 18:16:02 +0000 (19:16 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 9 Mar 2020 18:16:02 +0000 (19:16 +0100)
litex/boards/platforms/icebreaker.py

index 2cb41a4c8fb68a91b71a7cfe655ed2c1f28d0ae0..18a32c14b51ae4bb9acadfab085879516ff92179 100644 (file)
@@ -18,20 +18,20 @@ _io = [
     # Color-specific aliases
     ("user_ledr_n",   0, Pins("11"), IOStandard("LVCMOS33")),
     ("user_ledg_n",   0, Pins("37"), IOStandard("LVCMOS33")),
-    ("user_btn_n", 0, Pins("10"), IOStandard("LVCMOS33")),
+    ("user_btn_n",    0, Pins("10"), IOStandard("LVCMOS33")),
 
     ("serial", 0,
         Subsignal("rx", Pins("6")),
-        Subsignal("tx", Pins("9"), Misc("PULLUP")),
+        Subsignal("tx", Pins("9")),
         IOStandard("LVCMOS33")
     ),
 
     ("spiflash", 0,
-        Subsignal("cs_n",      Pins("16"), IOStandard("LVCMOS33")),
-        Subsignal("clk",       Pins("15"), IOStandard("LVCMOS33")),
-        Subsignal("miso",        Pins("17"), IOStandard("LVCMOS33")),
-        Subsignal("mosi",        Pins("14"), IOStandard("LVCMOS33")),
-        Subsignal("wp",      Pins("12"), IOStandard("LVCMOS33")),
+        Subsignal("cs_n", Pins("16"), IOStandard("LVCMOS33")),
+        Subsignal("clk",  Pins("15"), IOStandard("LVCMOS33")),
+        Subsignal("miso", Pins("17"), IOStandard("LVCMOS33")),
+        Subsignal("mosi", Pins("14"), IOStandard("LVCMOS33")),
+        Subsignal("wp",   Pins("12"), IOStandard("LVCMOS33")),
         Subsignal("hold", Pins("13"), IOStandard("LVCMOS33")),
     ),
 
@@ -78,12 +78,11 @@ break_off_pmod = [
 # Platform -----------------------------------------------------------------------------------------
 
 class Platform(LatticePlatform):
-    default_clk_name = "clk12"
+    default_clk_name   = "clk12"
     default_clk_period = 1e9 / 12e6
 
     def __init__(self):
-        LatticePlatform.__init__(self, "ice40-up5k-sg48", _io, _connectors,
-                                 toolchain="icestorm")
+        LatticePlatform.__init__(self, "ice40-up5k-sg48", _io, _connectors, toolchain="icestorm")
 
     def create_programmer(self):
         return IceStormProgrammer()