]> git.baikalelectronics.ru Git - kernel.git/commit
net: axienet: Support dynamic switching between 1000BaseX and SGMII
authorRobert Hancock <robert.hancock@calian.com>
Sat, 13 Feb 2021 00:23:56 +0000 (18:23 -0600)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Feb 2021 01:38:53 +0000 (17:38 -0800)
commit6c8f06bb2e5147b2c25bdd726365df8416c13987
tree3bc4cd2333f2146bc8f43ee0d1fa73211164de12
parenteceac9d2590bfcca25d28bd34ac3294dbb73c8ff
net: axienet: Support dynamic switching between 1000BaseX and SGMII

Newer versions of the Xilinx AXI Ethernet core (specifically version 7.2 or
later) allow the core to be configured with a PHY interface mode of "Both",
allowing either 1000BaseX or SGMII modes to be selected at runtime. Add
support for this in the driver to allow better support for applications
which can use both fiber and copper SFP modules.

Signed-off-by: Robert Hancock <robert.hancock@calian.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/xilinx/xilinx_axienet.h
drivers/net/ethernet/xilinx/xilinx_axienet_main.c