From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 40E1BC07E97 for ; Sat, 3 Jul 2021 19:59:34 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E47C4613F4 for ; Sat, 3 Jul 2021 19:59:33 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E47C4613F4 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id B558A82B82; Sat, 3 Jul 2021 21:59:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1625342347; bh=/dF1zhhmEkC3nFxWDy/OJmy151niYBHi8fl2geBckH8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=yshbR+iK7G6TBNbmmsd7mJWNvKTL8ZO2FkEICyR1qZSxlaqJViEaraECR/dS1sFok Im4fEndYtEvmiw8ef02MOHLInEOOEsQbWFQzWN0ZBUJAr7TgTuKRPlsDngwDhW+Cyr id5e9ddlp9d8n212JCgGFgbuuQym07wKzgHBqJZbSydKBgkHmJfd5Bx1tp0+Rn3Qw/ q0ngBecxIELFxZ5L5gfLCJJfpDBhqTLhPgDUs5K6swVTwqR66QIDGncApc1EEURY1J wOEdTGaw25o0W8KP7TqTN53+mhtaCFd53AVA/C8AU+9uIPntOgUGJM1nM81WUdHPj+ vvkKjJK8XF5ug== Received: from localhost.localdomain (unknown [IPv6:2804:14c:485:504a:abf0:6b86:fce4:4efb]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: festevam@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 4E79C829BC; Sat, 3 Jul 2021 21:59:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1625342345; bh=/dF1zhhmEkC3nFxWDy/OJmy151niYBHi8fl2geBckH8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hzn2GsgTTs/03FWlHg8n3mEBhvbbcwWoorBI+b+m98toXg7pMS2e7ibBqQPLLrnId swVGtttOv8JfMQBqAau6egp6x9M39HQzcOHpZuRD07q4HdhpiFmG3/R2gfxgdEBwew IVn5SY9dn3W0WPZliaskxCId1MgOKDIvVD1jtAV2Tmx+4ajm+hs8SVdtk6urKPFLUp wNHu/uJWTEfE42ULxUBc7hDgWIzcf2+JJeoEqiiY4Zv7Bme5LjbviEbsWSbb+C8Gao hB6J9Hapz+MaCLsFJsQNcp2gRhKOp5Wiyx9qCbQoAzPf+k8h1eFB9PIybGIZdy0lzp BjLfOPu8bwoUA== From: Fabio Estevam To: sbabic@denx.de Cc: marex@denx.de, u-boot@lists.denx.de, frieder.schrempf@kontron.de, tharvey@gateworks.com, uboot-imx@nxp.com, Fabio Estevam Subject: [PATCH 4/8] usb: ehci-mx6: add IMX8MM and IMX8MN OTG support Date: Sat, 3 Jul 2021 16:58:33 -0300 Message-Id: <20210703195837.28153-5-festevam@denx.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210703195837.28153-1-festevam@denx.de> References: <20210703195837.28153-1-festevam@denx.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean From: Tim Harvey Add support for determining host vs peripheral mode for IMX8MM and IMX8MN configured as OTG. Signed-off-by: Tim Harvey Signed-off-by: Fabio Estevam --- 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