summaryrefslogtreecommitdiff
path: root/include/phy.h
diff options
context:
space:
mode:
authorShaohui Xie <Shaohui.Xie@freescale.com>2013-11-14 19:00:31 +0800
committerYork Sun <yorksun@freescale.com>2013-11-22 12:43:36 -0800
commitf55a776cd03243aa575d3126996f11986e61a16b (patch)
tree9f14b78c4fc374de5812b7f9075d480c98b121f1 /include/phy.h
parent70672a29597c4ca4734f2d94bf1df7227b9c7604 (diff)
downloadu-boot-imx-f55a776cd03243aa575d3126996f11986e61a16b.zip
u-boot-imx-f55a776cd03243aa575d3126996f11986e61a16b.tar.gz
u-boot-imx-f55a776cd03243aa575d3126996f11986e61a16b.tar.bz2
phy: introduce structure fixed-link
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>
Diffstat (limited to 'include/phy.h')
-rw-r--r--include/phy.h8
1 files changed, 8 insertions, 0 deletions
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;