From: Florent Kermarrec Date: Sat, 22 Aug 2015 10:08:49 +0000 (+0200) Subject: liteeth/phy: fix autodetect (clk_freq not necessary passed in kwargs) X-Git-Tag: 24jan2021_ls180~2135 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8bb30a8620ccac32cd4faf9b40bb1c76b798ef0d;p=litex.git liteeth/phy: fix autodetect (clk_freq not necessary passed in kwargs) --- diff --git a/misoclib/com/liteeth/phy/__init__.py b/misoclib/com/liteeth/phy/__init__.py index 1482b3d6..2eccd540 100644 --- a/misoclib/com/liteeth/phy/__init__.py +++ b/misoclib/com/liteeth/phy/__init__.py @@ -2,7 +2,7 @@ from misoclib.com.liteeth.common import * def LiteEthPHY(clock_pads, pads, **kwargs): - clk_freq = kwargs.pop("clk_freq") + clk_freq = None if "clk_freq" not in kwargs else kwargs.pop("clk_freq") # Autodetect PHY if hasattr(pads, "source_stb"): # This is a simulation PHY