mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 01:44:34 +00:00
net: mediatek: handle alternative name for pn_swap property
Handle alternative name for pn_swap property as upstream linux use mediatek,pnswap. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
This commit is contained in:
parent
6f0e7663ef
commit
1223e5bb17
1 changed files with 3 additions and 1 deletions
|
@ -1964,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",
|
||||
|
|
Loading…
Add table
Reference in a new issue