Commit 6fa74eea authored by Christoph Seitz's avatar Christoph Seitz Committed by Henrik Brix Andersen
Browse files

net: ethernet: Add 2.5GBase-T and 5GBase-T phy speeds



The possible link speeds of ethernet phys are extended by
the 2.5G and 5G constants.

Signed-off-by: default avatarChristoph Seitz <christoph.seitz@infineon.com>
parent e8bb2d64
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -42,6 +42,10 @@ enum phy_link_speed {
	LINK_HALF_1000BASE_T		= BIT(4),
	/** 1000Base-T Full-Duplex */
	LINK_FULL_1000BASE_T		= BIT(5),
	/** 2.5GBase-T Full-Duplex */
	LINK_FULL_2500BASE_T		= BIT(6),
	/** 5GBase-T Full-Duplex */
	LINK_FULL_5000BASE_T		= BIT(7),
};

/**
@@ -51,7 +55,7 @@ enum phy_link_speed {
 *
 * @return True if link is full duplex, false if not.
 */
#define PHY_LINK_IS_FULL_DUPLEX(x)	(x & (BIT(1) | BIT(3) | BIT(5)))
#define PHY_LINK_IS_FULL_DUPLEX(x)	(x & (BIT(1) | BIT(3) | BIT(5) | BIT(6) | BIT(7)))

/**
 * @brief Check if phy link speed is 1 Gbit/sec.