]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: ehci-mx6: Use portnr from DT in DM case
authorMarek Vasut <marex@denx.de>
Fri, 2 Apr 2021 11:56:28 +0000 (13:56 +0200)
committerMarek Vasut <marex@denx.de>
Sun, 18 Apr 2021 02:29:36 +0000 (04:29 +0200)
commit6443a3bc40d247f0a02376e763f6e03085528631
tree99ce1da88dfa99e3ae8b95c96e7f26e3b3dd4c06
parent668646995fbde99b6c96c523c0e94e5deb029fe0
usb: ehci-mx6: Use portnr from DT in DM case

In case the platform uses DM, determine port number, which is
used as offset in USBMISC registers, from PHY node DT aliases,
just like Linux does.

Fixes: 4de51cc25b5 ("usb: ehci-mx6: Drop assignment of sequence number")
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Ye Li <ye.li@nxp.com>
Cc: uboot-imx <uboot-imx@nxp.com>
drivers/usb/host/ehci-mx6.c