mirror of
https://github.com/u-boot/u-boot.git
synced 2024-11-26 05:34:30 +08:00
net: zynq_gem: Fix reading of max-speed property
max-speed property is part of phynode and it has to be read using ofnode_read_u32_default(). This fixes the issue of incorrect max-speed read from DT. Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
parent
975e789323
commit
f213dbbdec
@ -716,7 +716,8 @@ static int zynq_gem_ofdata_to_platdata(struct udevice *dev)
|
|||||||
}
|
}
|
||||||
priv->interface = pdata->phy_interface;
|
priv->interface = pdata->phy_interface;
|
||||||
|
|
||||||
priv->max_speed = dev_read_u32_default(dev, "max-speed", SPEED_1000);
|
priv->max_speed = ofnode_read_u32_default(phandle_args.node,
|
||||||
|
"max-speed", SPEED_1000);
|
||||||
priv->int_pcs = dev_read_bool(dev, "is-internal-pcspma");
|
priv->int_pcs = dev_read_bool(dev, "is-internal-pcspma");
|
||||||
|
|
||||||
printf("ZYNQ GEM: %lx, phyaddr %x, interface %s\n", (ulong)priv->iobase,
|
printf("ZYNQ GEM: %lx, phyaddr %x, interface %s\n", (ulong)priv->iobase,
|
||||||
|
Loading…
Reference in New Issue
Block a user