From patchwork Wed Sep 16 12:56:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peng Fan X-Patchwork-Id: 312390 Delivered-To: patch@linaro.org Received: by 2002:a92:5ad1:0:0:0:0:0 with SMTP id b78csp414482ilg; Wed, 16 Sep 2020 05:32:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxx3Ia+eelZetOUQMCmagCzwqS3l/iBNPcZ41mvd4kS2k7tzib18jvG34V2GCAIxWSskAjz X-Received: by 2002:aa7:c148:: with SMTP id r8mr28076228edp.210.1600259578055; Wed, 16 Sep 2020 05:32:58 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1600259578; cv=pass; d=google.com; s=arc-20160816; b=p6E7EDwx1Ur8yijMsGRP9X+JCy/SRcGznDMQKeCRMkDQyIWQKjL1mCGtL2O+sFNyl3 sZXpe/RHf5V18gUvelh0Fy/Ga5UEX1hgjK3kNfzb8HR4pS/n4QNnBRvtodNQUC6B3gAl ZR+kZHI8YPiAx0x+Py4o0O5Pv8N5gRc3ePaz5P/Ia1U85h1JkfA3JWa0hVCt3aJkCG32 zaf6DxltUSv896JgN8ep/cvbdiO4466MdFEYz7jV9ShCPQR289qgdC6XQJ5SbhGImuDZ 3WH6ntZRxx4Bn/hyA8hjzEvucYTzs5+ZR4xkU1ruOu1LvfqVSHJhVD9pZIY9MTZjEARd 8pZg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version :content-transfer-encoding:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=xQe9gN+fnPWXwJcBWlqpw6ae5mIqWkc3tkabuKOA3nw=; b=vsbCC7C/pqRMs5qvUvPhhlS2a22YCQ++LEm27drqsj372b3ZJ1HvZMbB8EI4kzsILb xlpjiHJXqskFHjq8s9/LkrIR+GeDoj8J9hQnBB5Gnen7QsIinTds0NvWtyYBKHSaMJ36 AjpmNV1pjyOGowZMI6Ynlpox8vaLcKxfBdDMiTaf5jbM3XRJhkQHTsQK5JHXJdggC58j OQ62gEgXrXtgXxJ0roLoKBWEk92wMZbdDqK+rjM3fIbA9qJwIGOEsswruHYn3+gnPpau ScXJUYbHYVb1mF31GiPKCIkXGWeP6GWcP9nyoKEbmR+XW/ontToS6LHxjdDVGBdLGCVQ ijVg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=jPHZzWI2; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id o13si12122618edr.482.2020.09.16.05.32.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Sep 2020 05:32:58 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=jPHZzWI2; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6547C82362; Wed, 16 Sep 2020 14:31:36 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=nxp.com header.i=@nxp.com header.b="jPHZzWI2"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 51FA58233E; Wed, 16 Sep 2020 14:31:27 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER, SPF_HELO_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0604.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe02::604]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DB77A82337 for ; Wed, 16 Sep 2020 14:31:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=peng.fan@nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GF7uSlTRKnJTuh6SrX18H18dJ1+t6YBelEPBZgdntrJ7os/+qj5Zbm3JUR1ErkNpxU0D6wwrIEwUh3wqskGd+AcQwulo9So7saX8tUcibgg7lhRaFXMU2tYuxOImuaudGIGyDB9B9gBjg4znBlhW9y4Zy7K9uQ0gZQCU9BBYQQUq/PkJfXIozCLF/HHffmgnLeJqELV/mS8COOYwmEoLq6UXzT7P92SruFe7wkzqB1hvGT9iXfRSgqS9WOBtLBGtNhh0Lok2vs9PGkhqELuLWREWlV2DO/nIOKLe/iy0bVetUQoVVLsiPN2yvohowVuf9qKzdyURFOLMHqIN6QtFRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xQe9gN+fnPWXwJcBWlqpw6ae5mIqWkc3tkabuKOA3nw=; b=mZC4JITCfg2p3cCkLdto8n+vTiXD0kUwzh3metH8jHXtFu95qaz+5J/Gsem+06hG2s5m8BFoTAFXjmT1kBv4bKVcISb3bRrXvwmc6Xq5Y+UradpTP095+LpvzFcykWLWb7eGLPhOV9uuoFiyLwo5mMqLIcV/fXXF8BJf1yU0AnYL1k5DEo1sfamplNclqhtsP6pb8JpoCQUt7WTA4qE+E2pjwxH2lnpRmZehcsD7+i3KBqh6Uj3Oq6bWSEyOeswznSNZaR8HKPjZ4mN89T8aNsOrRsvpLPFCFJBREOB7oDU0AiNJEgDkiaFlUVji4kpav2YWv02rYx/2YojqnnXIQg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xQe9gN+fnPWXwJcBWlqpw6ae5mIqWkc3tkabuKOA3nw=; b=jPHZzWI2NKzorbh0nAfyDx/U6Ac054x3HexsSrX/USiNvgDbKL4MG6zmfbQNM7PYdGqH15UxKlBUCC1bCqxvaQpQrYPkxBeZuEKZMEeB1JCZLKjYMVgETy9Zbl8KM0f6omq69SoqpzoLD7O9Oknqpec1Pl6KyGcZfmOavBwAdq4= Authentication-Results: denx.de; dkim=none (message not signed) header.d=none;denx.de; dmarc=none action=none header.from=nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DB3PR0402MB3915.eurprd04.prod.outlook.com (2603:10a6:8:e::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.17; Wed, 16 Sep 2020 12:31:23 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::39ff:13b4:4f28:1413]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::39ff:13b4:4f28:1413%10]) with mapi id 15.20.3370.019; Wed, 16 Sep 2020 12:31:23 +0000 From: peng.fan@nxp.com To: sbabic@denx.de, marex@denx.de Cc: uboot-imx@nxp.com, u-boot@lists.denx.de, Ye Li , Peng Fan Subject: [PATCH 07/13] usb: ehci-mx6: Enable iMX EHCI driver for iMX8M Nano Date: Wed, 16 Sep 2020 20:56:59 +0800 Message-Id: <20200916125705.4341-8-peng.fan@nxp.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200916125705.4341-1-peng.fan@nxp.com> References: <20200916125705.4341-1-peng.fan@nxp.com> X-ClientProxiedBy: SGBP274CA0023.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::35) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from linux-1xn6.ap.freescale.net (119.31.174.71) by SGBP274CA0023.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:b0::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.13 via Frontend Transport; Wed, 16 Sep 2020 12:31:21 +0000 X-Mailer: git-send-email 2.28.0 X-Originating-IP: [119.31.174.71] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 879eac6d-79f1-4557-4644-08d85a3c6bff X-MS-TrafficTypeDiagnostic: DB3PR0402MB3915: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3631; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FQDgbwi90+0HACTTO2wRbyTD7VpMxgJo7EzjUA6UaVnLmYFxN+gQdXhA+snnucAbnCjeasWEpb990RFi3mygmZ4MEQjK1Vk5o3xDIpgytIiBpU1AU+q+EscUzsZJ5V0RvayIeWLWZz/5QqaU4BroTmKq5Ah1heAexPX+MOpQsmM086akI4XN8/pBIxST0s5XhTYcr2+wQoM1a29YgUuP0Ctn+HxB8CH3bPA32d1tHc4je08FZ/Q44kr3ANxYO7UeH65rZ7sV41+a2syS0/998PbCbhMlcncbQqulN4lwqnTb7x0KboXm7gYvLz8v/tsruJTrwnN1ZY3FLj3qFfU0PhiQXBZ+eLWRLadYog9A1+CUktz5RYzGp1kJRINBUi+c X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(136003)(376002)(346002)(39860400002)(396003)(186003)(16526019)(6512007)(8936002)(54906003)(36756003)(6486002)(2906002)(1076003)(6506007)(478600001)(2616005)(956004)(5660300002)(6666004)(83380400001)(52116002)(316002)(86362001)(4326008)(26005)(66476007)(8676002)(9686003)(66946007)(66556008)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: e7vyaJXq25pIcL+qgcpJOanzUBQXLN0122L9ded98UDgL8EH6PSQN9vWSHfzbpMWDV6mPnBmG1VkiTeXC7NidJya67FH3RSWgAsaYR5P/Rxjftwjfr3kjxodiqCndHu53PWDvnQ7rAL0DQtn7hOl6/pLxOXCQa8mCukEaQ8mdlR2QET14uoH261ZGj93oauF/0IdzzXM7HxAYju9wDV2Qm7A/3qp/RKo+tLuHTSWAOT4oeRsUXBb5xdKYpTGjSKUsbEzVKjYkJ7r3a+gEXF+E379uMOL8EG5JvlE/nFp+EIvZ1PWvFSU+atDWt/RgagFUf3X8ia8rTw92II5KCYzwMwUZKCXxLEQsW/dZbpP1zmB/+UjWO0t3ZUsng0N8tjtTzMVh4zwIXYmkWaLVM3pw9W8XWtWsgR9pJrDg2aubDKcQY0Dtp5OXNIN17g/ahC9zvZJeNne98OkDktFpikzulbV1a5z0lhr2EqcISM4ZshPo7xIC46lWNaYOQwnTB5Qj7DmRJmC2lgKh7id8K0eEjRgu4rN1Kg+RXIvtsVjYuVRob1GnrUm6RLPp1YJ7nJR8ktVtABz1BeTZRFd2kUKdMmflWndpqTWWT4Bszg4IUnBiXtHbRgf7/sHuxqiwgiRAQoodnR9eAn5tSpTtjfVVA== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 879eac6d-79f1-4557-4644-08d85a3c6bff X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2020 12:31:23.3312 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: MkV0MV1JaFqxvkF//vwd/m/w1+YTl3aKMs1LEgfSzk+3A7uAchM7Lhz+FbX+FVpakshv9jaAgbIyf6DqfJmFIg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3915 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.102.3 at phobos.denx.de X-Virus-Status: Clean From: Ye Li Add the IMX8MN to the EHCI-MX7 kconfig dependency. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- drivers/usb/host/Kconfig | 2 +- drivers/usb/host/ehci-mx6.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.28.0 diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig index 1e2c5006d4..36eb1138c4 100644 --- a/drivers/usb/host/Kconfig +++ b/drivers/usb/host/Kconfig @@ -147,7 +147,7 @@ config USB_EHCI_MX6 config USB_EHCI_MX7 bool "Support for i.MX7 on-chip EHCI USB controller" - depends on ARCH_MX7 || IMX8MM + depends on ARCH_MX7 || IMX8MM || IMX8MN default y ---help--- Enables support for the on-chip EHCI controller on i.MX7 SoCs. diff --git a/drivers/usb/host/ehci-mx6.c b/drivers/usb/host/ehci-mx6.c index 96dcf7655b..ca015ef2f3 100644 --- a/drivers/usb/host/ehci-mx6.c +++ b/drivers/usb/host/ehci-mx6.c @@ -598,7 +598,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() || is_imx8mm()) { + } else if (is_mx7() || is_imx8mm() || is_imx8mn()) { phy_status = (void __iomem *)(addr + USBNC_PHY_STATUS_OFFSET); val = readl(phy_status);