Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp704884ybi; Fri, 14 Jun 2019 01:54:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqyj9LRwxXRodkcDpyF9KCBIsezn17NjtCe3AWyL3OkqxUthgneu2ZPDCgRBuFmB9doD3LDJ X-Received: by 2002:a17:902:9b94:: with SMTP id y20mr77130258plp.260.1560502455020; Fri, 14 Jun 2019 01:54:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560502455; cv=none; d=google.com; s=arc-20160816; b=NXfCpCTQ8bMsRhFCCmFmHGJNk5DFGYpJCY44EenICvv4W4ho1cTz/TsbIOiJk4bjeB +/4J4GOZP6CjTI9aHLNMq8/zHRHyw/m2yoVJ+e1GOdFwrG+V6aGeRShMmUNN1UtNG/kC hbsj37jHhMVfDWoYmuJqi7s5wctbPp/c/641nBr1x4gaJD0+M5eck7vHkyfGXPru/vXC U+4muA+4V1u3yXLtNoZ2vBJBKwQsnUgAPyv+K8fWyEGhhDILxyhFgyObOeFaQHlVe46l 5uKleCBRRpx6ndcBmAgwr6OMo0yIFJGfIfecvWzPFK3ZqD3DirPpWMAsWyP6SQbcAcLi JwGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=r0MNYcvi8PFVIN7o0cxIpN3s79hkExMjbg9CMH1gmxg=; b=qQxyuSWJsRafflB2HHa0MOWsfuDbg5OAl61hUGiSRTgXJZw1FEJ8qQbbXUHQRdXEH8 hCaJvmSEpyYRTnAtYav3tqrKMbQmNmFCAsdS/N+FOi6l6tqwfpkeNxXS+s05UGWb7Wga e8AQ/7nCQn/xlKi3wx6xM4SkrPQ5mLuYJvI+lylZI3vIgPbM15Gf6PDeJR5RvJ9Kt1id B0dtJR/I5yPZzWnARrQGiT76MVpUoIVM9RcrYeR43gQV/QNf7rwJfqh8dDbAe9/thnOp Ckfec19TcOHdP0sNeqPoNkQk2lhzmEpA9CwMO2sQD3scwIgCs/M8X/izincyrO344Gs8 yKSw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y5si1751995pjw.61.2019.06.14.01.53.58; Fri, 14 Jun 2019 01:54:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726603AbfFNIwy (ORCPT + 99 others); Fri, 14 Jun 2019 04:52:54 -0400 Received: from inva021.nxp.com ([92.121.34.21]:59054 "EHLO inva021.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725951AbfFNIwy (ORCPT ); Fri, 14 Jun 2019 04:52:54 -0400 Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id AD9082005ED; Fri, 14 Jun 2019 10:52:52 +0200 (CEST) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 2DB6A200077; Fri, 14 Jun 2019 10:52:48 +0200 (CEST) Received: from localhost.localdomain (mega.ap.freescale.net [10.192.208.232]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 4626C402CA; Fri, 14 Jun 2019 16:52:42 +0800 (SGT) From: Yinbo Zhu To: Alan Stern Cc: yinbo.zhu@nxp.com, xiaobo.xie@nxp.com, jiafei.pan@nxp.com, Greg Kroah-Hartman , Ramneek Mehresh , Nikhil Badola , Ran Wang , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v7 1/5] usb: fsl: Set USB_EN bit to select ULPI phy Date: Fri, 14 Jun 2019 16:54:29 +0800 Message-Id: <20190614085433.22344-1-yinbo.zhu@nxp.com> X-Mailer: git-send-email 2.17.1 X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nikhil Badola Set USB_EN bit to select ULPI phy for USB controller version 2.5 Signed-off-by: Nikhil Badola Signed-off-by: Yinbo Zhu --- drivers/usb/host/ehci-fsl.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c index e3d0c1c25160..38674b7aa51e 100644 --- a/drivers/usb/host/ehci-fsl.c +++ b/drivers/usb/host/ehci-fsl.c @@ -122,6 +122,12 @@ static int fsl_ehci_drv_probe(struct platform_device *pdev) tmp |= 0x4; iowrite32be(tmp, hcd->regs + FSL_SOC_USB_CTRL); } + + /* Set USB_EN bit to select ULPI phy for USB controller version 2.5 */ + if (pdata->controller_ver == FSL_USB_VER_2_5 && + pdata->phy_mode == FSL_USB2_PHY_ULPI) + iowrite32be(USB_CTRL_USB_EN, hcd->regs + FSL_SOC_USB_CTRL); + /* * Enable UTMI phy and program PTS field in UTMI mode before asserting * controller reset for USB Controller version 2.5 -- 2.17.1