projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70672a2
)
phy: introduce structure fixed-link
author
Shaohui Xie
<Shaohui.Xie@freescale.com>
Thu, 14 Nov 2013 11:00:31 +0000
(19:00 +0800)
committer
York 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
patch
|
blob
|
history
diff --git
a/include/phy.h
b/include/phy.h
index f0f522a9c2f33350e923d6b4fb9081d56e99a929..f86ffb92072be303e173628c8f1692e5b5e2f2b8 100644
(file)
--- 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;