Lines Matching +full:fixed +full:- +full:link
1 // SPDX-License-Identifier: GPL-2.0+
3 * Fixed-Link phy
19 int ofnode = phydev->addr; in fixedphy_probe()
22 /* check for mandatory properties within fixed-link node */ in fixedphy_probe()
23 val = fdt_getprop_u32_default_node(gd->fdt_blob, in fixedphy_probe()
26 printf("ERROR: no/invalid speed given in fixed-link node!"); in fixedphy_probe()
27 return -EINVAL; in fixedphy_probe()
32 return -ENOMEM; in fixedphy_probe()
35 phydev->priv = priv; in fixedphy_probe()
37 priv->link_speed = val; in fixedphy_probe()
38 priv->duplex = fdtdec_get_bool(gd->fdt_blob, ofnode, "full-duplex"); in fixedphy_probe()
39 priv->pause = fdtdec_get_bool(gd->fdt_blob, ofnode, "pause"); in fixedphy_probe()
40 priv->asym_pause = fdtdec_get_bool(gd->fdt_blob, ofnode, "asym-pause"); in fixedphy_probe()
42 /* fixed-link phy must not be reset by core phy code */ in fixedphy_probe()
43 phydev->flags |= PHY_FLAG_BROKEN_RESET; in fixedphy_probe()
50 struct fixed_link *priv = phydev->priv; in fixedphy_startup()
52 phydev->asym_pause = priv->asym_pause; in fixedphy_startup()
53 phydev->pause = priv->pause; in fixedphy_startup()
54 phydev->duplex = priv->duplex; in fixedphy_startup()
55 phydev->speed = priv->link_speed; in fixedphy_startup()
56 phydev->link = 1; in fixedphy_startup()
69 .name = "Fixed PHY",