From 5a1caed75f0ca638b8203c9ceec06d54411797b8 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 23 Jan 2024 13:54:06 +0100 Subject: [PATCH] liteeth_gen: Add A7_2500BASEX support. --- liteeth/gen.py | 3 ++- liteeth/phy/__init__.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/liteeth/gen.py b/liteeth/gen.py index 885e83f..340a85c 100755 --- a/liteeth/gen.py +++ b/liteeth/gen.py @@ -278,6 +278,7 @@ class PHYCore(SoCMini): # SGMII. elif phy in [ liteeth_phys.A7_1000BASEX, + liteeth_phys.A7_2500BASEX, liteeth_phys.K7_1000BASEX, liteeth_phys.KU_1000BASEX, liteeth_phys.USP_GTH_1000BASEX, @@ -285,7 +286,7 @@ class PHYCore(SoCMini): ]: ethphy_pads = platform.request("sgmii") # Artix7. - if phy in [liteeth_phys.A7_1000BASEX]: + if phy in [liteeth_phys.A7_1000BASEX, liteeth_phys.A7_2500BASEX]: refclk_freq = core_config.get("refclk_freq", 0) assert refclk_freq in [125e6, 156.25e6] from liteeth.phy.a7_gtp import QPLLSettings, QPLL diff --git a/liteeth/phy/__init__.py b/liteeth/phy/__init__.py index a961709..fffab07 100644 --- a/liteeth/phy/__init__.py +++ b/liteeth/phy/__init__.py @@ -34,6 +34,7 @@ from liteeth.phy.usrgmii import LiteEthPHYRGMII as LiteEthUSPHYRGMII from liteeth.phy.ecp5rgmii import LiteEthPHYRGMII as LiteEthECP5PHYRGMII from liteeth.phy.a7_1000basex import A7_1000BASEX +from liteeth.phy.a7_2500basex import A7_2500BASEX from liteeth.phy.k7_1000basex import K7_1000BASEX from liteeth.phy.ku_1000basex import KU_1000BASEX from liteeth.phy.usp_gth_1000basex import USP_GTH_1000BASEX