net: mvpp2: Add missing PHY_INTERFACE_MODE_RGMII_ID
authorStefan Roese <sr@denx.de>
Wed, 22 Mar 2017 14:11:00 +0000 (15:11 +0100)
committerStefan Roese <sr@denx.de>
Wed, 29 Mar 2017 05:44:11 +0000 (07:44 +0200)
Add a missing occurrance of PHY_INTERFACE_MODE_RGMII_ID, which should
be handled identical to PHY_INTERFACE_MODE_RGMII.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Stefan Chulski <stefanc@marvell.com>
Cc: Kostya Porotchkin <kostap@marvell.com>
Cc: Nadav Haklai <nadavh@marvell.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/mvpp2.c

index a2de1ae..79442b8 100644 (file)
@@ -2886,6 +2886,7 @@ static void mvpp2_port_mii_set(struct mvpp2_port *port)
                val |= MVPP2_GMAC_INBAND_AN_MASK;
                break;
        case PHY_INTERFACE_MODE_RGMII:
+       case PHY_INTERFACE_MODE_RGMII_ID:
                val |= MVPP2_GMAC_PORT_RGMII_MASK;
        default:
                val &= ~MVPP2_GMAC_PCS_ENABLE_MASK;