diff options
author | Shaohui Xie <Shaohui.Xie@freescale.com> | 2013-11-14 19:00:31 +0800 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2013-11-22 12:43:36 -0800 |
commit | f55a776cd03243aa575d3126996f11986e61a16b (patch) | |
tree | 9f14b78c4fc374de5812b7f9075d480c98b121f1 /include/phy.h | |
parent | 70672a29597c4ca4734f2d94bf1df7227b9c7604 (diff) | |
download | u-boot-f55a776cd03243aa575d3126996f11986e61a16b.tar.gz u-boot-f55a776cd03243aa575d3126996f11986e61a16b.tar.bz2 u-boot-f55a776cd03243aa575d3126996f11986e61a16b.zip |
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.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/phy.h b/include/phy.h index f0f522a9c2..f86ffb9207 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; |