net: mvneta: add RGMII_RXID and RGMII_TXID support
authorJisheng Zhang <jszhang@marvell.com>
Wed, 29 Mar 2017 08:42:26 +0000 (16:42 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Mar 2017 21:08:16 +0000 (14:08 -0700)
RGMII_RXID and RGMII_TX_ID share the same GMAC CTRL setting as RGMII
or RGMII_ID.

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvneta.c

index aebbc5399a0604f8322730dd61ab02dcbac7a813..7a6c65b44d7eb9584fa8a7aaec9cacf394143607 100644 (file)
@@ -4099,6 +4099,8 @@ static int mvneta_port_power_up(struct mvneta_port *pp, int phy_mode)
                break;
        case PHY_INTERFACE_MODE_RGMII:
        case PHY_INTERFACE_MODE_RGMII_ID:
+       case PHY_INTERFACE_MODE_RGMII_RXID:
+       case PHY_INTERFACE_MODE_RGMII_TXID:
                ctrl |= MVNETA_GMAC2_PORT_RGMII;
                break;
        default: