Commit 858056b0 authored by Madalin Bucur's avatar Madalin Bucur Committed by Priyanka Jain
Browse files

driver: net: fm: add support for XFI



All the 10G ports that were working in XFI mode were described as
using XGMII (as PHY_INTERFACE_MODE_XFI was not added at the time).
Add the minimal changes required for the FMan code to support XFI.
Signed-off-by: default avatarMadalin Bucur <madalin.bucur@oss.nxp.com>
Reviewed-by: default avatarPriyanka Jain <priyanka.jain@nxp.com>
parent ad827727
...@@ -98,6 +98,7 @@ static void memac_set_interface_mode(struct fsl_enet_mac *mac, ...@@ -98,6 +98,7 @@ static void memac_set_interface_mode(struct fsl_enet_mac *mac,
if_mode &= ~IF_MODE_MASK; if_mode &= ~IF_MODE_MASK;
if_mode |= (IF_MODE_GMII); if_mode |= (IF_MODE_GMII);
break; break;
case PHY_INTERFACE_MODE_XFI:
case PHY_INTERFACE_MODE_XGMII: case PHY_INTERFACE_MODE_XGMII:
if_mode &= ~IF_MODE_MASK; if_mode &= ~IF_MODE_MASK;
if_mode |= IF_MODE_XGMII; if_mode |= IF_MODE_XGMII;
...@@ -106,7 +107,7 @@ static void memac_set_interface_mode(struct fsl_enet_mac *mac, ...@@ -106,7 +107,7 @@ static void memac_set_interface_mode(struct fsl_enet_mac *mac,
break; break;
} }
/* Enable automatic speed selection for Non-XGMII */ /* Enable automatic speed selection for Non-XGMII */
if (type != PHY_INTERFACE_MODE_XGMII) if (type != PHY_INTERFACE_MODE_XGMII && type != PHY_INTERFACE_MODE_XFI)
if_mode |= IF_MODE_EN_AUTO; if_mode |= IF_MODE_EN_AUTO;
if (type == PHY_INTERFACE_MODE_RGMII || if (type == PHY_INTERFACE_MODE_RGMII ||
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment