[PATCH 4/8] usb: ehci-mx6: add IMX8MM and IMX8MN OTG support

Fabio Estevam festevam at denx.de
Sat Jul 3 21:58:33 CEST 2021


From: Tim Harvey <tharvey at gateworks.com>

Add support for determining host vs peripheral mode for IMX8MM
and IMX8MN configured as OTG.

Signed-off-by: Tim Harvey <tharvey at gateworks.com>
Signed-off-by: Fabio Estevam <festevam at denx.de>
---
 drivers/usb/host/ehci-mx6.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c
index ff23a5e35e64..de53f0c15204 100644
--- a/drivers/usb/host/ehci-mx6.c
+++ b/drivers/usb/host/ehci-mx6.c
@@ -523,7 +523,7 @@ static int ehci_usb_phy_mode(struct udevice *dev)
 			plat->init_type = USB_INIT_DEVICE;
 		else
 			plat->init_type = USB_INIT_HOST;
-	} else if (is_mx7()) {
+	} else if (is_mx7() || is_imx8mm() || is_imx8mn()) {
 		phy_status = (void __iomem *)(addr +
 					      USBNC_PHY_STATUS_OFFSET);
 		val = readl(phy_status);
-- 
2.25.1



More information about the U-Boot mailing list