Lines Matching +full:phy +full:- +full:pma
1 // SPDX-License-Identifier: GPL-2.0+
3 * Xilinx PCS/PMA Core phy driver
5 * Copyright (C) 2015 - 2016 Xilinx, Inc.
10 #include <phy.h>
22 /* Known PHY IDs */
46 if (AUTONEG_ENABLE == phydev->autoneg) { in xilinxphy_startup()
51 phydev->duplex = DUPLEX_FULL; in xilinxphy_startup()
53 phydev->duplex = DUPLEX_HALF; in xilinxphy_startup()
57 phydev->speed = SPEED_1000; in xilinxphy_startup()
61 phydev->speed = SPEED_100; in xilinxphy_startup()
65 phydev->speed = SPEED_10; in xilinxphy_startup()
75 phydev->duplex = DUPLEX_FULL; in xilinxphy_startup()
77 phydev->duplex = DUPLEX_HALF; in xilinxphy_startup()
80 phydev->speed = SPEED_1000; in xilinxphy_startup()
82 phydev->speed = SPEED_100; in xilinxphy_startup()
84 phydev->speed = SPEED_10; in xilinxphy_startup()
88 * For 1000BASE-X Phy Mode the speed/duplex will always be in xilinxphy_startup()
91 if (phydev->flags == XAE_PHY_TYPE_1000BASE_X) { in xilinxphy_startup()
92 phydev->duplex = DUPLEX_FULL; in xilinxphy_startup()
93 phydev->speed = SPEED_1000; in xilinxphy_startup()
107 return -EINVAL; in xilinxphy_of_init()
109 phytype = ofnode_read_u32_default(node, "xlnx,phy-type", -1); in xilinxphy_of_init()
111 phydev->flags |= XAE_PHY_TYPE_1000BASE_X; in xilinxphy_of_init()
132 .name = "Xilinx PCS/PMA PHY",