From 8808c884c5c89d24e207f814b18bcdc3310b6a79 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 9 Mar 2020 19:16:02 +0100 Subject: [PATCH] boards/platforms/icebreaker: cleanup a bit. --- litex/boards/platforms/icebreaker.py | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/litex/boards/platforms/icebreaker.py b/litex/boards/platforms/icebreaker.py index 2cb41a4c8..18a32c14b 100644 --- a/litex/boards/platforms/icebreaker.py +++ b/litex/boards/platforms/icebreaker.py @@ -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()