liteth/phy: simplify clk_freq in LiteEthPHY autodetect function (thanks Sebastien)
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Sat, 22 Aug 2015 14:30:42 +0000 (16:30 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Sat, 22 Aug 2015 14:30:42 +0000 (16:30 +0200)
misoclib/com/liteeth/phy/__init__.py

index 2eccd54003cebac31202fd9f360c475cecf6a2b3..d2fbe643d19d5b507b711412cf0c1555b133e064 100644 (file)
@@ -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