From 4f8540d53ee3cf34b1f556c55b18b84251a9628f Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 27 Jun 2024 14:23:43 +0200 Subject: [PATCH] targets/litex_acorn_baseboard_mini: Switch to _litex_acorn_baseboard_mini_io. --- .../targets/litex_acorn_baseboard_mini.py | 34 ++----------------- 1 file changed, 2 insertions(+), 32 deletions(-) diff --git a/litex_boards/targets/litex_acorn_baseboard_mini.py b/litex_boards/targets/litex_acorn_baseboard_mini.py index 2ae20f45f..d5ea6709e 100755 --- a/litex_boards/targets/litex_acorn_baseboard_mini.py +++ b/litex_boards/targets/litex_acorn_baseboard_mini.py @@ -42,13 +42,6 @@ class Platform(sqrl_acorn.Platform): def create_programmer(self, name="openocd"): return OpenOCD("openocd_xc7_ft2232.cfg", "bscan_spi_xc7a200t.bit") -_serial_io = [ - ("serial", 0, - Subsignal("tx", Pins("G1"), IOStandard("LVCMOS33")), # CLK_REQ - Subsignal("rx", Pins("Y13"), IOStandard("LVCMOS18")), # SMB_ALERT_N - ), -] - # CRG ---------------------------------------------------------------------------------------------- class CRG(LiteXModule): @@ -109,7 +102,7 @@ def __init__(self, variant="cle-215+", sys_clk_freq=125e6, with_sata = False, sata_gen="gen2", **kwargs): platform = Platform(variant=variant) - platform.add_extension(_serial_io, prepend=True) + platform.add_extension(sqrl_acorn._litex_acorn_baseboard_mini_io, prepend=True) # SoCCore ---------------------------------------------------------------------------------- SoCCore.__init__(self, platform, sys_clk_freq, ident="LiteX SoC on Acorn CLE-101/215(+)", **kwargs) @@ -137,7 +130,7 @@ def __init__(self, variant="cle-215+", sys_clk_freq=125e6, # PCIe ------------------------------------------------------------------------------------- if with_pcie: assert not with_sata - self.pcie_phy = S7PCIEPHY(platform, platform.request("pcie_x1_baseboard"), + self.pcie_phy = S7PCIEPHY(platform, platform.request("pcie_x1"), data_width = 64, bar0_size = 0x20000) self.add_pcie(phy=self.pcie_phy, ndmas=1) @@ -202,16 +195,6 @@ def __init__(self, variant="cle-215+", sys_clk_freq=125e6, # Ethernet / Etherbone --------------------------------------------------------------------- if with_ethernet or with_etherbone: - _eth_io = [ - ("sfp", 0, - Subsignal("txp", Pins("D5")), - Subsignal("txn", Pins("C5")), - Subsignal("rxp", Pins("D11")), - Subsignal("rxn", Pins("C11")), - ), - ] - platform.add_extension(_eth_io) - self.ethphy = A7_1000BASEX( qpll_channel = qpll.channels[1 if with_pcie else 0], data_pads = self.platform.request("sfp"), @@ -227,19 +210,6 @@ def __init__(self, variant="cle-215+", sys_clk_freq=125e6, # SATA ------------------------------------------------------------------------------------- if with_sata: - # IOs - _sata_io = [ - ("sata", 0, - # Inverted on Acorn. - Subsignal("tx_p", Pins("B6")), - Subsignal("tx_n", Pins("A6")), - # Inverted on Acorn. - Subsignal("rx_p", Pins("B10")), - Subsignal("rx_n", Pins("A10")), - ), - ] - platform.add_extension(_sata_io) - # PHY self.sata_phy = LiteSATAPHY(platform.device, refclk = self.crg.cd_sata_ref.clk,