diff options
author | Madalin Bucur <madalin.bucur@nxp.com> | 2017-08-04 09:14:53 +0300 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2017-08-14 12:47:32 -0500 |
commit | 3f8f1410b5d5d1fcbc28ea06700a9b601d736575 (patch) | |
tree | bd271940515e582c78bfea23cb2cea4d889364c7 /drivers/net/fm | |
parent | aa6aaf93211b7e22361e75f1068e1e565e731f25 (diff) |
net: fman: add support RGMII_TXID to memac
Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'drivers/net/fm')
-rw-r--r-- | drivers/net/fm/memac.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/fm/memac.c b/drivers/net/fm/memac.c index 1b5779cece..ea50ed38f4 100644 --- a/drivers/net/fm/memac.c +++ b/drivers/net/fm/memac.c @@ -84,6 +84,7 @@ static void memac_set_interface_mode(struct fsl_enet_mac *mac, if_mode |= IF_MODE_GMII; break; case PHY_INTERFACE_MODE_RGMII: + case PHY_INTERFACE_MODE_RGMII_TXID: if_mode |= (IF_MODE_GMII | IF_MODE_RG); break; case PHY_INTERFACE_MODE_RMII: @@ -106,7 +107,8 @@ static void memac_set_interface_mode(struct fsl_enet_mac *mac, if (type != PHY_INTERFACE_MODE_XGMII) if_mode |= IF_MODE_EN_AUTO; - if (type == PHY_INTERFACE_MODE_RGMII) { + if (type == PHY_INTERFACE_MODE_RGMII || + type == PHY_INTERFACE_MODE_RGMII_TXID) { if_mode &= ~IF_MODE_EN_AUTO; if_mode &= ~IF_MODE_SETSP_MASK; switch (speed) { |