From: shh.xie at gmail.com Date: Thu, 14 Nov 2013 19:00:31 +0800 Subject: [U-Boot] [PATCH] phy: introduce structure fixed-link Message-ID: <1384426831-8633-1-git-send-email-shh.xie@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de From: Shaohui Xie 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 --- include/phy.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/phy.h b/include/phy.h index f0f522a..f86ffb9 100644 --- a/include/phy.h +++ b/include/phy.h @@ -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; -- 1.8.0