diff options
author | Tom Rini <trini@konsulko.com> | 2020-10-01 09:46:10 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2020-10-01 09:46:10 -0400 |
commit | 26acc6395fee680cea72e51348bd59e206eb0464 (patch) | |
tree | 14a2a97d03c4c0cf7b0c531fbdcf9ebec7cfdd13 /drivers/net/dwc_eth_qos.c | |
parent | 097bbf1ba97b8ece930deca663f05ea444e99e45 (diff) | |
parent | 912ece4c3dd486bcd62f0d0dfee760b9f01caac6 (diff) |
Merge branch '2020-09-30-assorted-network-improvements' into next
- Generic UDP framework
- TFTP fixes
- dwc_eth_qos, smc911x, smc911x and mscc phy fixes
Diffstat (limited to 'drivers/net/dwc_eth_qos.c')
-rw-r--r-- | drivers/net/dwc_eth_qos.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/dwc_eth_qos.c b/drivers/net/dwc_eth_qos.c index 810a2b95b19..db1102562f6 100644 --- a/drivers/net/dwc_eth_qos.c +++ b/drivers/net/dwc_eth_qos.c @@ -26,6 +26,7 @@ * supports a single RGMII PHY. This configuration also has SW control over * all clock and reset signals to the HW block. */ + #include <common.h> #include <clk.h> #include <cpu_func.h> @@ -1893,8 +1894,7 @@ static phy_interface_t eqos_get_interface_stm32(struct udevice *dev) debug("%s(dev=%p):\n", __func__, dev); - phy_mode = fdt_getprop(gd->fdt_blob, dev_of_offset(dev), "phy-mode", - NULL); + phy_mode = dev_read_prop(dev, "phy-mode", NULL); if (phy_mode) interface = phy_get_interface_by_name(phy_mode); @@ -1931,8 +1931,7 @@ static phy_interface_t eqos_get_interface_imx(struct udevice *dev) debug("%s(dev=%p):\n", __func__, dev); - phy_mode = fdt_getprop(gd->fdt_blob, dev_of_offset(dev), "phy-mode", - NULL); + phy_mode = dev_read_prop(dev, "phy-mode", NULL); if (phy_mode) interface = phy_get_interface_by_name(phy_mode); |