]> 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)
commitc2efc7e251b4b93c7c86f64e657b29a11315193d
tree3bc4cd2333f2146bc8f43ee0d1fa73211164de12
parent5f8c56f0e546372cb90d2eb31fe9e38b5923b652
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