Commit 74ca0a49 authored by Christoph Seitz's avatar Christoph Seitz Committed by Henrik Brix Andersen
Browse files

net: ethernet: Add 2.5G and 5G hardware capabilities.



Add the 2.5G and 5G link speeds as possible capabilities
to ethernet drivers.

Signed-off-by: default avatarChristoph Seitz <christoph.seitz@infineon.com>
parent 2dca6d64
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -204,6 +204,12 @@ enum ethernet_hw_caps {

	/** TX-Injection supported */
	ETHERNET_TXINJECTION_MODE	= BIT(20),

	/** 2.5 Gbits link supported */
	ETHERNET_LINK_2500BASE_T	= BIT(21),

	/** 5 Gbits link supported */
	ETHERNET_LINK_5000BASE_T	= BIT(22),
};

/** @cond INTERNAL_HIDDEN */
+2 −0
Original line number Diff line number Diff line
@@ -58,6 +58,8 @@ static struct ethernet_capabilities eth_hw_caps[] = {
	EC(ETHERNET_DSA_MASTER_PORT,      "DSA master port"),
	EC(ETHERNET_TXTIME,               "TXTIME supported"),
	EC(ETHERNET_TXINJECTION_MODE,     "TX-Injection supported"),
	EC(ETHERNET_LINK_2500BASE_T,      "2.5 Gbits"),
	EC(ETHERNET_LINK_5000BASE_T,      "5 Gbits"),
};

static void print_supported_ethernet_capabilities(