aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAriel D'Alessandro <ariel.dalessandro@collabora.com>2022-04-12 10:31:36 -0300
committerStefano Babic <sbabic@denx.de>2022-04-12 19:10:44 +0200
commit087baf80ec70660b71ea578b20f357c24deb2ed4 (patch)
tree86b5fc4ad91bb0ac212034a7fcf10ea908cf1bdd /include
parentd7db0e6df3e42a5d47bac4d3b7a9e6c13ac08ec9 (diff)
downloadu-boot-087baf80ec70660b71ea578b20f357c24deb2ed4.zip
u-boot-087baf80ec70660b71ea578b20f357c24deb2ed4.tar.gz
u-boot-087baf80ec70660b71ea578b20f357c24deb2ed4.tar.bz2
net: phy: Add phy_modify() accessor
Add read-modify-write unlocked accessor for accessing a PHY register. Signed-off-by: Ariel D'Alessandro <ariel.dalessandro@collabora.com> Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/phy.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/phy.h b/include/phy.h
index 807c293..1a30aee 100644
--- a/include/phy.h
+++ b/include/phy.h
@@ -526,6 +526,8 @@ int phy_config(struct phy_device *phydev);
int phy_shutdown(struct phy_device *phydev);
int phy_register(struct phy_driver *drv);
int phy_set_supported(struct phy_device *phydev, u32 max_speed);
+int phy_modify(struct phy_device *phydev, int devad, int regnum, u16 mask,
+ u16 set);
int genphy_config_aneg(struct phy_device *phydev);
int genphy_restart_aneg(struct phy_device *phydev);
int genphy_update_link(struct phy_device *phydev);