Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5948197imu; Mon, 21 Jan 2019 00:05:37 -0800 (PST) X-Google-Smtp-Source: ALg8bN4/VOiO3eNih0BWnpjXYxg3Mnu/X8e7kQ4467n5+6mN2aElUXIXVWEan0zkmXtf536mDoij X-Received: by 2002:a17:902:468:: with SMTP id 95mr28882045ple.3.1548057937586; Mon, 21 Jan 2019 00:05:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548057937; cv=none; d=google.com; s=arc-20160816; b=rTBI1vW0r7oyIo6sbAq9VUjNJA13G/Tb8ZEc7PuxYg2S74a6M+qnvsOdEIY7Sl96n3 i2ucvhkvs3YhnxwhkRSPhWPAXFDAhl0RgKR9zsyDZd4A/MccMwBnnaAIzH8ARStToUxD Vfmn2VBVmyfRn5RTZFv7fMb4mfaLUf6Ouv9HckEQifhsVMBzRCVQtHUJPvze8AH57s9r vh7ljHS28c95LfpaPVWlVZHPg+spGa38rgIdsjpaNzb55cSvpJYXNJxbVK/ly+qKzmjM IGDiGXGR45BLHODvAgBZZ6LQKhxPTxXV3fx6+GqDD2kd7kbLvse/CBPkycjyCNMmDLsL CNIA== 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=rdnb/FK3j+FRvCl4Mlg+ahk2MJ/tv/rAnwtwwLudehk=; b=Qe3uLgGgY7puiJ/BQvJh8744pDfd9ZCC2qFQbtmVNloVDAOPeaJ/p6ZRMGCx/z+Cux kMs7969/ggXEi8/8TlT1cdALk1Gw82R9IpcWBeCoC/vcgUwPF7MLLu+h1hGVod5gZGBc jlGAOTEIRvdeISUOOIg1ru4Yd9M5+eHGiOyyGcFxfR4cIRGexkWXsjt3yzTX2XiraVcV t3uciYZ3UA+jwEZ1lK2IPiWZGJ0WC5xEiO2UW99vhxDb9DFoMX/3VB0qYNdn/FXnGyNU ZwwniPoJR797IgfEB7b0YS78BAkg5YW6uCRBX+TVa4lEDnj0FikCaJUAL2RR2GkXbO+w OufA== 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 82si12092287pfa.115.2019.01.21.00.05.22; Mon, 21 Jan 2019 00:05:37 -0800 (PST) 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 S1729404AbfAUIEA (ORCPT + 99 others); Mon, 21 Jan 2019 03:04:00 -0500 Received: from inva020.nxp.com ([92.121.34.13]:42418 "EHLO inva020.nxp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728671AbfAUID7 (ORCPT ); Mon, 21 Jan 2019 03:03:59 -0500 Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 162ED1A00B4; Mon, 21 Jan 2019 04:18:37 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id F071B1A0098; Mon, 21 Jan 2019 04:18:31 +0100 (CET) Received: from titan.ap.freescale.net (TITAN.ap.freescale.net [10.192.208.233]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id 6C4FD402CA; Mon, 21 Jan 2019 11:18:25 +0800 (SGT) From: Yinbo Zhu To: Alan Stern Cc: yinbo.zhu@nxp.com, xiaobo.xie@nxp.com, jerry.huang@nxp.com, ran.wang_1@nxp.com, Greg Kroah-Hartman , Ramneek Mehresh , Nikhil Badola , Suresh Gupta , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 1/6] usb: fsl: Set USB_EN bit to select ULPI phy Date: Mon, 21 Jan 2019 11:12:59 +0800 Message-Id: <20190121031304.31161-1-yinbo.zhu@nxp.com> X-Mailer: git-send-email 2.14.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 files changed, 6 insertions(+), 0 deletions(-) diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c index 0a9fd20..71c4661 100644 --- a/drivers/usb/host/ehci-fsl.c +++ b/drivers/usb/host/ehci-fsl.c @@ -118,6 +118,12 @@ static int fsl_ehci_drv_probe(struct platform_device *pdev) clrsetbits_be32(hcd->regs + FSL_SOC_USB_CTRL, CONTROL_REGISTER_W1C_MASK, 0x4); + /* 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 -- 1.7.1