From cccc0c720a892b8bb0efadfc2ba188b3246ec85e Mon Sep 17 00:00:00 2001 From: Benjamin Herrenschmidt Date: Wed, 22 Sep 2021 22:26:07 +1000 Subject: [PATCH] Add support for GMII_MII PHY to gen.py It was missing. It's useful for Wukong Signed-off-by: Benjamin Herrenschmidt --- liteeth/gen.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/liteeth/gen.py b/liteeth/gen.py index df467f9..ee7c438 100755 --- a/liteeth/gen.py +++ b/liteeth/gen.py @@ -193,6 +193,12 @@ class PHYCore(SoCMini): ethphy = phy( clock_pads = platform.request("gmii_eth_clocks"), pads = platform.request("gmii_eth")) + elif phy in [liteeth_phys.LiteEthPHYGMIIMII]: + assert self.clk_freq >= 125e6 + ethphy = phy( + clock_pads = platform.request("gmii_eth_clocks"), + pads = platform.request("gmii_eth"), + clk_freq = self.clk_freq) elif phy in [liteeth_phys.LiteEthS7PHYRGMII, liteeth_phys.LiteEthECP5PHYRGMII]: assert self.clk_freq >= 125e6 ethphy = phy(