From: Stefano Babic Date: Mon, 2 Sep 2013 13:42:30 +0000 (+0200) Subject: net: add extended function to phy API X-Git-Tag: v2014.01-rc1~2^2~27 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b71841b978fc33f961383b255693a70a1dd64031;p=oweals%2Fu-boot.git 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 --- diff --git a/include/phy.h b/include/phy.h index f0f522a9c2..d3001f1381 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; };