phydev->speed = SPEED_1000;
}
+ /* For 2500BASE-X Phy Mode the speed/duplex will always be
+ * 2500Mbps/fullduplex
+ */
+ if (phydev->dev_flags == XAE_PHY_TYPE_2500) {
+ phydev->duplex = DUPLEX_FULL;
+ phydev->speed = SPEED_2500;
+ }
+
return 0;
}
if (!of_node)
return -ENODEV;
- if (!of_property_read_u32(of_node, "xlnx,phy-type", &phytype))
+ if (!of_property_read_u32(of_node, "xlnx,phy-type", &phytype)) {
if (phytype == XAE_PHY_TYPE_1000BASE_X)
phydev->dev_flags |= XAE_PHY_TYPE_1000BASE_X;
+ if (phytype == XAE_PHY_TYPE_2500)
+ phydev->dev_flags |= XAE_PHY_TYPE_2500;
+ }
return 0;
}
#define XAE_PHY_TYPE_RGMII_2_0 3
#define XAE_PHY_TYPE_SGMII 4
#define XAE_PHY_TYPE_1000BASE_X 5
+#define XAE_PHY_TYPE_2500 6
#endif /* _XILINX_PHY_H */