drivers: net: fsl_enetc: fix RGMII configuration
authorMichael Walle <michael@walle.cc>
Sat, 26 Oct 2019 00:39:12 +0000 (02:39 +0200)
committerPriyanka Jain <priyanka.jain@nxp.com>
Fri, 8 Nov 2019 05:53:01 +0000 (11:23 +0530)
Add the missing RGMII PHY modes in which case the MAC has configure its
RGMII settings. The only difference between these modes is the RX and
TX delay configuration. A user might choose any RGMII mode in the device
tree.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Alex Marginean <alexm.osslist@gmail.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
drivers/net/fsl_enetc.c

index 86b80c89410f289596c20a92f5e0a301eacee364..0ca7e838a817749adf2bee9b48910cc23d7db9a5 100644 (file)
@@ -191,6 +191,9 @@ static void enetc_start_pcs(struct udevice *dev)
                enetc_init_sgmii(dev);
                break;
        case PHY_INTERFACE_MODE_RGMII:
+       case PHY_INTERFACE_MODE_RGMII_ID:
+       case PHY_INTERFACE_MODE_RGMII_RXID:
+       case PHY_INTERFACE_MODE_RGMII_TXID:
                enetc_init_rgmii(dev);
                break;
        case PHY_INTERFACE_MODE_XGMII: