]> git.baikalelectronics.ru Git - uboot.git/commit
phy: Add .set_mode and .set_speed callbacks
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 19 Mar 2023 17:09:42 +0000 (18:09 +0100)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Fri, 7 Apr 2023 12:23:26 +0000 (14:23 +0200)
commit3e14cb56cd23952c5920368df50f35db05e7333a
tree35132d34223ab4fe3ae58ee5f7ae811546d4ef87
parent27be3f110306f2ecbe7cf21cc5a2fdf7dd3b4336
phy: Add .set_mode and .set_speed callbacks

Add two new callbacks matching the Linux ones. The .set_mode is used to set
PHY mode and submode, where mode is either USB, Ethernet, and so on, while
submode is e.g. for Ethernet case RGMII, RMII, and so on. The .set_speed is
used to configure link speed into the PHY. Unlike the existing configure
callback, which is used to pass arbitrary custom information to the PHY,
these two callbacks are used to pass standardized set of information to
the PHY.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
drivers/phy/phy-uclass.c
include/generic-phy.h