Skip to content

Commit

Permalink
targets/litex_acorn_baseboard_mini: Switch to _litex_acorn_baseboard_…
Browse files Browse the repository at this point in the history
…mini_io.
  • Loading branch information
enjoy-digital committed Jun 27, 2024
1 parent 91e787b commit 4f8540d
Showing 1 changed file with 2 additions and 32 deletions.
34 changes: 2 additions & 32 deletions litex_boards/targets/litex_acorn_baseboard_mini.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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"),
Expand All @@ -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,
Expand Down

0 comments on commit 4f8540d

Please sign in to comment.