History

net: pcs: xpcs: Add support for 25G, 50G, and 100G interfaces

With this change we are adding support for 25G, 50G, and 100G interface types to the XPCS driver. This had supposedly been enabled with the addition of XLGMII but I don't see any capability for configuration there so I suspect it may need to be refactored in the future. With this change we can enable the XPCS driver with the selected interface and it should be able to detect link, speed, and report the link status to the phylink interface.

Alexander Duyck committed 11 months ago

Commit 7622d551 parent e6c43c92 files · +107 −4Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/mdio.h+6−0
@@ -123,6 +123,12 @@ · 122 unmodified lines
123 */123 */
124#define MDIO_CTRL1_SPEED2_5G MDIO_PMA_CTRL1_SPEED2_5G124#define MDIO_CTRL1_SPEED2_5G MDIO_PMA_CTRL1_SPEED2_5G
125#define MDIO_CTRL1_SPEED5G MDIO_PMA_CTRL1_SPEED5G125#define MDIO_CTRL1_SPEED5G MDIO_PMA_CTRL1_SPEED5G
126/* 100 Gb/s */
127#define MDIO_PCS_CTRL1_SPEED100G (MDIO_CTRL1_SPEEDSELEXT | 0x10)
128/* 25 Gb/s */
129#define MDIO_PCS_CTRL1_SPEED25G (MDIO_CTRL1_SPEEDSELEXT | 0x14)
130/* 50 Gb/s */
131#define MDIO_PCS_CTRL1_SPEED50G (MDIO_CTRL1_SPEEDSELEXT | 0x18)
126/* 2.5 Gb/s */132/* 2.5 Gb/s */
127#define MDIO_PMA_CTRL1_SPEED2_5G (MDIO_CTRL1_SPEEDSELEXT | 0x18)133#define MDIO_PMA_CTRL1_SPEED2_5G (MDIO_CTRL1_SPEEDSELEXT | 0x18)
128/* 5 Gb/s */134/* 5 Gb/s */