mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
net: dpaa2-mac: add 25gbase-r support
Layerscape MACs support 25Gbps network speed with dpmac "CAUI" mode. Add the mappings between DPMAC_ETH_IF_* and HY_INTERFACE_MODE_*, as well as the 25000 mac capability. Tested on SolidRun LX2162a Clearfog, serdes 1 protocol 18. Signed-off-by: Josua Mayer <josua@solid-run.com> Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8340eef98d
commit
9a43827e87
1 changed files with 6 additions and 1 deletions
|
@ -54,6 +54,9 @@ static int phy_mode(enum dpmac_eth_if eth_if, phy_interface_t *if_mode)
|
|||
case DPMAC_ETH_IF_XFI:
|
||||
*if_mode = PHY_INTERFACE_MODE_10GBASER;
|
||||
break;
|
||||
case DPMAC_ETH_IF_CAUI:
|
||||
*if_mode = PHY_INTERFACE_MODE_25GBASER;
|
||||
break;
|
||||
default:
|
||||
return -EINVAL;
|
||||
}
|
||||
|
@ -79,6 +82,8 @@ static enum dpmac_eth_if dpmac_eth_if_mode(phy_interface_t if_mode)
|
|||
return DPMAC_ETH_IF_XFI;
|
||||
case PHY_INTERFACE_MODE_1000BASEX:
|
||||
return DPMAC_ETH_IF_1000BASEX;
|
||||
case PHY_INTERFACE_MODE_25GBASER:
|
||||
return DPMAC_ETH_IF_CAUI;
|
||||
default:
|
||||
return DPMAC_ETH_IF_MII;
|
||||
}
|
||||
|
@ -418,7 +423,7 @@ int dpaa2_mac_connect(struct dpaa2_mac *mac)
|
|||
|
||||
mac->phylink_config.mac_capabilities = MAC_SYM_PAUSE | MAC_ASYM_PAUSE |
|
||||
MAC_10FD | MAC_100FD | MAC_1000FD | MAC_2500FD | MAC_5000FD |
|
||||
MAC_10000FD;
|
||||
MAC_10000FD | MAC_25000FD;
|
||||
|
||||
dpaa2_mac_set_supported_interfaces(mac);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue