mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 09:12:08 +02:00
phy: introduce structure fixed-link
fixed-link is used in kernel for PHY-less MAC, so introduce this structure that U-boot can use it to fixup dtb dynamically. Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
This commit is contained in:
@@ -160,6 +160,14 @@ struct phy_device {
|
|||||||
u32 flags;
|
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)
|
static inline int phy_read(struct phy_device *phydev, int devad, int regnum)
|
||||||
{
|
{
|
||||||
struct mii_dev *bus = phydev->bus;
|
struct mii_dev *bus = phydev->bus;
|
||||||
|
Reference in New Issue
Block a user