From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tim Harvey Date: Tue, 27 Apr 2021 10:08:56 -0700 Subject: [PATCH 2/3] usb: ehci-mx6: add IMX8MM OTG support In-Reply-To: <20210427170857.21273-1-tharvey@gateworks.com> References: <20210427170857.21273-1-tharvey@gateworks.com> Message-ID: <20210427170857.21273-2-tharvey@gateworks.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Add support for determining host vs peripheral mode for IMX8MM configured as OTG. Signed-off-by: Tim Harvey --- 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 c2dfe49012..d055d2b1fe 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()) { phy_status = (void __iomem *)(addr + USBNC_PHY_STATUS_OFFSET); val = readl(phy_status); -- 2.17.1