]> git.dujemihanovic.xyz Git - u-boot.git/commit
phy: rockchip: usbdp: Find phy-id from the io address
authorJonas Karlman <jonas@kwiboo.se>
Sat, 4 May 2024 19:43:02 +0000 (19:43 +0000)
committerKever Yang <kever.yang@rock-chips.com>
Tue, 7 May 2024 07:56:10 +0000 (15:56 +0800)
commit1a0bc25ccfc4431c492bb4d2e51451113732d3a6
tree24b57d0be9619248a139f2cbc47b41efe21b46ed
parent893f2eff8871f3cc8fd6a472e26fc609b7d08a26
phy: rockchip: usbdp: Find phy-id from the io address

The upstream Linux kernel driver find the phy-id from the io address.

Change to use a similar method as the U-Boot inno-usb2 phy driver and
the Linux kernel driver to set correct phy-id.

This is based on the linux-phy next commit 2f70bbddeb45 ("phy: rockchip:
add usbdp combo phy driver").

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
drivers/phy/rockchip/phy-rockchip-usbdp.c