diff options
| author | Madalin Bucur <[email protected]> | 2020-09-11 10:24:09 +0300 |
|---|---|---|
| committer | Priyanka Jain <[email protected]> | 2020-09-24 20:57:32 +0530 |
| commit | 858056b0e00ba4abe6f85ed1043816d69e05a99f (patch) | |
| tree | ddcc6df6a5312182a31b662177f74fb9fff4046a /drivers | |
| parent | ad8277270a8fb742e16dbec8d5e19916e34f1cb8 (diff) | |
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: Madalin Bucur <[email protected]>
Reviewed-by: Priyanka Jain <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/net/fm/memac.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/fm/memac.c b/drivers/net/fm/memac.c index 0f0f7b0732d..36f50d27826 100644 --- a/drivers/net/fm/memac.c +++ b/drivers/net/fm/memac.c @@ -98,6 +98,7 @@ static void memac_set_interface_mode(struct fsl_enet_mac *mac, if_mode &= ~IF_MODE_MASK; if_mode |= (IF_MODE_GMII); break; + case PHY_INTERFACE_MODE_XFI: case PHY_INTERFACE_MODE_XGMII: if_mode &= ~IF_MODE_MASK; if_mode |= IF_MODE_XGMII; @@ -106,7 +107,7 @@ static void memac_set_interface_mode(struct fsl_enet_mac *mac, break; } /* 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 (type == PHY_INTERFACE_MODE_RGMII || |
