Add support for GMII_MII PHY to gen.py

It was missing. It's useful for Wukong

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
Benjamin Herrenschmidt 2021-09-22 22:26:07 +10:00
parent e39fec240b
commit cccc0c720a
1 changed files with 6 additions and 0 deletions

View File

@ -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(