X-Git-Url: https://git.kernelconcepts.de/?a=blobdiff_plain;f=include%2Fphy.h;h=d3ecd6378b3b97b718748ad06a8346a8dc409f03;hb=f79a023f411882d160df57b45709a7652e8c241e;hp=f0f522a9c2f33350e923d6b4fb9081d56e99a929;hpb=8b485ba12b0defa0c4ed3559789250238f8331a8;p=karo-tx-uboot.git diff --git a/include/phy.h b/include/phy.h index f0f522a9c2..d3ecd6378b 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; }; @@ -160,6 +163,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; @@ -223,6 +234,8 @@ int phy_smsc_init(void); int phy_teranetics_init(void); int phy_vitesse_init(void); +int board_phy_config(struct phy_device *phydev); + /* PHY UIDs for various PHYs that are referenced in external code */ #define PHY_UID_TN2020 0x00a19410