mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-04-12 17:31:32 +00:00
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>
This commit is contained in:
parent
e8194d58bd
commit
b71841b978
1 changed files with 3 additions and 0 deletions
|
@ -125,6 +125,9 @@ struct phy_driver {
|
||||||
/* Called when bringing down the controller */
|
/* Called when bringing down the controller */
|
||||||
int (*shutdown)(struct phy_device *phydev);
|
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;
|
struct list_head list;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue