From: Florent Kermarrec Date: Sat, 22 Aug 2015 14:30:42 +0000 (+0200) Subject: liteth/phy: simplify clk_freq in LiteEthPHY autodetect function (thanks Sebastien) X-Git-Tag: 24jan2021_ls180~2131 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f3d68a54d5925a4fec077f6c225fe1d26fb48624;p=litex.git liteth/phy: simplify clk_freq in LiteEthPHY autodetect function (thanks Sebastien) --- diff --git a/misoclib/com/liteeth/phy/__init__.py b/misoclib/com/liteeth/phy/__init__.py index 2eccd540..d2fbe643 100644 --- a/misoclib/com/liteeth/phy/__init__.py +++ b/misoclib/com/liteeth/phy/__init__.py @@ -1,8 +1,7 @@ from misoclib.com.liteeth.common import * -def LiteEthPHY(clock_pads, pads, **kwargs): - clk_freq = None if "clk_freq" not in kwargs else kwargs.pop("clk_freq") +def LiteEthPHY(clock_pads, pads, clk_freq=None, **kwargs): # Autodetect PHY if hasattr(pads, "source_stb"): # This is a simulation PHY