]> Git Repo - J-u-boot.git/blobdiff - drivers/net/mtk_eth.c
net: phy: motorcomm: Optimize phy speed mask to be compatible to YT8821
[J-u-boot.git] / drivers / net / mtk_eth.c
index 75e7bcf83b768ac0d4f14927b4cfd83157296ae0..5098afef8a874b79b32b262cabf772e814654af4 100644 (file)
@@ -6,7 +6,6 @@
  * Author: Mark Lee <[email protected]>
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <log.h>
@@ -1965,7 +1964,9 @@ static int mtk_eth_of_to_plat(struct udevice *dev)
                        return -ENODEV;
                }
 
-               priv->pn_swap = ofnode_read_bool(args.node, "pn_swap");
+               /* Upstream linux use mediatek,pnswap instead of pn_swap */
+               priv->pn_swap = ofnode_read_bool(args.node, "pn_swap") ||
+                               ofnode_read_bool(args.node, "mediatek,pnswap");
        } else if (priv->phy_interface == PHY_INTERFACE_MODE_USXGMII) {
                /* get corresponding usxgmii phandle */
                ret = dev_read_phandle_with_args(dev, "mediatek,usxgmiisys",
This page took 0.025107 seconds and 4 git commands to generate.