]> git.sur5r.net Git - u-boot/commitdiff
net: fman: add support RGMII_TXID to memac
authorMadalin Bucur <madalin.bucur@nxp.com>
Fri, 4 Aug 2017 06:14:53 +0000 (09:14 +0300)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 14 Aug 2017 17:47:32 +0000 (12:47 -0500)
Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/fm/memac.c

index 1b5779ceceb01d1995495ba95a34b9e0abd8036e..ea50ed38f45fb8d615c5737e4afa9439113e233d 100644 (file)
@@ -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) {