phy: introduce structure fixed-link
authorShaohui Xie <Shaohui.Xie@freescale.com>
Thu, 14 Nov 2013 11:00:31 +0000 (19:00 +0800)
committerYork Sun <yorksun@freescale.com>
Fri, 22 Nov 2013 20:43:36 +0000 (12:43 -0800)
fixed-link is used in kernel for PHY-less MAC, so introduce this
structure that U-boot can use it to fixup dtb dynamically.

Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
include/phy.h

index f0f522a9c2f33350e923d6b4fb9081d56e99a929..f86ffb92072be303e173628c8f1692e5b5e2f2b8 100644 (file)
@@ -160,6 +160,14 @@ struct phy_device {
        u32 flags;
 };
 
+struct fixed_link {
+       int phy_id;
+       int duplex;
+       int link_speed;
+       int pause;
+       int asym_pause;
+};
+
 static inline int phy_read(struct phy_device *phydev, int devad, int regnum)
 {
        struct mii_dev *bus = phydev->bus;