diff options
author | Marek Vasut <marek.vasut+renesas@mailbox.org> | 2023-03-19 18:08:07 +0100 |
---|---|---|
committer | Marek Vasut <marek.vasut+renesas@mailbox.org> | 2023-04-07 14:21:37 +0200 |
commit | 87b7502824416d606d976f635a9a4eef4923ffee (patch) | |
tree | e601d31e9083db3e093a8b400161d10b11594632 /include/phy.h | |
parent | bf3dabb7de7979cbca8680e688911f36056204b1 (diff) | |
download | u-boot-87b7502824416d606d976f635a9a4eef4923ffee.zip u-boot-87b7502824416d606d976f635a9a4eef4923ffee.tar.gz u-boot-87b7502824416d606d976f635a9a4eef4923ffee.tar.bz2 |
net: phy: Add phy_modify_mmd() and phy_modify_mmd_changed() from Linux
Add phy_modify_mmd()/phy_modify_mmd_changed() from Linux 5.1.y as of commit
b8554d4f7288f ("net: phy: add register modifying helpers returning 1 on change")
This is used by the upcoming Marvell 10G PHY driver.
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Diffstat (limited to 'include/phy.h')
-rw-r--r-- | include/phy.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/phy.h b/include/phy.h index 4a9de46..34675b2 100644 --- a/include/phy.h +++ b/include/phy.h @@ -289,6 +289,10 @@ int phy_read_mmd(struct phy_device *phydev, int devad, int regnum); int phy_write_mmd(struct phy_device *phydev, int devad, int regnum, u16 val); int phy_set_bits_mmd(struct phy_device *phydev, int devad, u32 regnum, u16 val); int phy_clear_bits_mmd(struct phy_device *phydev, int devad, u32 regnum, u16 val); +int phy_modify_mmd_changed(struct phy_device *phydev, int devad, u32 regnum, + u16 mask, u16 set); +int phy_modify_mmd(struct phy_device *phydev, int devad, u32 regnum, + u16 mask, u16 set); int phy_startup(struct phy_device *phydev); int phy_config(struct phy_device *phydev); |