]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: add extended function to phy API
authorStefano Babic <sbabic@denx.de>
Mon, 2 Sep 2013 13:42:30 +0000 (15:42 +0200)
committerJoe Hershberger <joe.hershberger@ni.com>
Fri, 22 Nov 2013 22:50:52 +0000 (16:50 -0600)
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>
include/phy.h

index f0f522a9c2f33350e923d6b4fb9081d56e99a929..d3001f1381f772dfdfca61fcbaf623e23c568a39 100644 (file)
@@ -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;
 };