mc : Reduce MC memory size to 128M
[oweals/u-boot.git] / drivers / net / mvgbe.c
index 74fed7abd83772a2697f1188b36e1e306a215110..037e59ec6e3ccdfd3169de17ccb4d56e889525ba 100644 (file)
@@ -1005,10 +1005,8 @@ static int mvgbe_ofdata_to_platdata(struct udevice *dev)
        phy_mode = fdt_getprop(gd->fdt_blob, pnode, "phy-mode", NULL);
        if (phy_mode)
                pdata->phy_interface = phy_get_interface_by_name(phy_mode);
-       if (pdata->phy_interface == -1) {
-               debug("%s: Invalid PHY interface '%s'\n", __func__, phy_mode);
-               return -EINVAL;
-       }
+       else
+               pdata->phy_interface = PHY_INTERFACE_MODE_GMII;
 
        dmvgbe->phy_interface = pdata->phy_interface;