From 3d3cd128d84380cc299ead7bf9523c5a397fb563 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 19 Aug 2015 01:07:41 +0200 Subject: [PATCH] liteeth/phy: only use clk_freq for LiteEthPHYGMIIMII in autodetect --- misoclib/com/liteeth/phy/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/misoclib/com/liteeth/phy/__init__.py b/misoclib/com/liteeth/phy/__init__.py index 05414a13..1482b3d6 100644 --- a/misoclib/com/liteeth/phy/__init__.py +++ b/misoclib/com/liteeth/phy/__init__.py @@ -2,6 +2,7 @@ from misoclib.com.liteeth.common import * def LiteEthPHY(clock_pads, pads, **kwargs): + clk_freq = kwargs.pop("clk_freq") # Autodetect PHY if hasattr(pads, "source_stb"): # This is a simulation PHY @@ -11,7 +12,7 @@ def LiteEthPHY(clock_pads, pads, **kwargs): if hasattr(clock_pads, "tx"): # This is a 10/100/1G PHY from misoclib.com.liteeth.phy.gmii_mii import LiteEthPHYGMIIMII - return LiteEthPHYGMIIMII(clock_pads, pads, **kwargs) + return LiteEthPHYGMIIMII(clock_pads, pads, clk_freq=clk_freq, **kwargs) else: # This is a pure 1G PHY from misoclib.com.liteeth.phy.gmii import LiteEthPHYGMII -- 2.30.2