summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStefano Babic <sbabic@denx.de>2013-09-02 15:42:30 +0200
committerJoe Hershberger <joe.hershberger@ni.com>2013-11-22 16:50:52 -0600
commitb71841b978fc33f961383b255693a70a1dd64031 (patch)
treeaa13bc7d0506dab2adc872fdbed07557d95e1b54 /include
parente8194d58bd342631977d1e09d873784d145c7077 (diff)
downloadu-boot-imx-b71841b978fc33f961383b255693a70a1dd64031.zip
u-boot-imx-b71841b978fc33f961383b255693a70a1dd64031.tar.gz
u-boot-imx-b71841b978fc33f961383b255693a70a1dd64031.tar.bz2
net: add extended function to phy API
Some phys (Micrel) has extended registers that must be accessed in a special way. Add pointers to the phy driver structure to allow to use these functions with mdio command. Signed-off-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'include')
-rw-r--r--include/phy.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/phy.h b/include/phy.h
index f0f522a..d3001f1 100644
--- a/include/phy.h
+++ b/include/phy.h
@@ -125,6 +125,9 @@ struct phy_driver {
/* Called when bringing down the controller */
int (*shutdown)(struct phy_device *phydev);
+ int (*readext)(struct phy_device *phydev, int addr, int devad, int reg);
+ int (*writeext)(struct phy_device *phydev, int addr, int devad, int reg,
+ u16 val);
struct list_head list;
};