Message ID | 1517156391-11353-27-git-send-email-jagan@amarulasolutions.com |
---|---|
State | Changes Requested |
Delegated to: | Marek Vasut |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="vQk8SrSJ"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zTyp54xJPz9sCZ for <incoming@patchwork.ozlabs.org>; Mon, 29 Jan 2018 03:31:41 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 47EDDC21EA6; Sun, 28 Jan 2018 16:28:51 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id A857EC22048; Sun, 28 Jan 2018 16:26:52 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 9672CC21EFE; Sun, 28 Jan 2018 16:26:27 +0000 (UTC) Received: from mail-pl0-f66.google.com (mail-pl0-f66.google.com [209.85.160.66]) by lists.denx.de (Postfix) with ESMTPS id 1E5D3C2204F for <u-boot@lists.denx.de>; Sun, 28 Jan 2018 16:26:23 +0000 (UTC) Received: by mail-pl0-f66.google.com with SMTP id t8so2093827plz.1 for <u-boot@lists.denx.de>; Sun, 28 Jan 2018 08:26:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=BzexcFcgRHDQZ9Wkidt78vghbhwvzZWy2wew2n1HtAk=; b=vQk8SrSJQEWtRS9FUgHRs2PQgpSMf2KCxm/EAZcSVyPpn6v/y/k4FJaZ9aeXsL0F2m cgZCKrPe7qHl9CnL846gqyATFh4yLqv5LqIz2ysivDYrcBHg6d+6TDUKCFDAY5swlZV8 INGq7hN2/5ApySi+R97c1lK4B5Jx4m8RN3mVDMA78wTmS+V009e6ngMRiCAcUAOJmQGD 6Rs61srCp49b25/KHdgZcpaAuaE3R/Vx5DQC86bs4oShdS9vJUB+fl7/Rr8avSUbqBA6 dqqbhPoig2UmiQcKnUFx7yzj2lG3WsZnyDLr5AwndjWOoVL5Qc/MdW71U6fI7RSXJjLY Vtwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=BzexcFcgRHDQZ9Wkidt78vghbhwvzZWy2wew2n1HtAk=; b=Q+HjQQTnavX1xSTq6MxYtC9Y33U69TSqaD4QgSt4nef6nM/eyWS8e4uBfHcRJ6pCv4 wq/LFwX6Xs+uBr0jfetUN6mf29WUVtlmdtNGgVQWisy8TGXMWPbWhN4/2qeHiVal/IhR pJ40I3360Gm4V5dtV2qWv0Ns5ZNNnOay6Z/NHMYb/E1nQgRUxiNR7FXqZB7MsND69x+E A9CsPcnPX+5OjEz0U6LDx+I1P00Xn5VHW3YFeYgbHADXv1jrL/UQgzXtIN1zoiGcRuOn fA1gsfODby/6KPoQdBWJfJrzDe1KFtz8V7g5wCpwyJCM2gGYZKvdwTrhwNVdbSRU1u31 CPwg== X-Gm-Message-State: AKwxytdY7QVPYhwZszmL7xVCBVpXnUDmYj/MIK36yD/tunRcb35df+2h mNwEoVpk5RgBGFaabN2mXRZMY66t X-Google-Smtp-Source: AH8x22714TZ/xhc7s64FCPJSMyHihdMfgoTrSxIwbdoKDc2Net8NtC2QYkbNl9OJEPpaKdrU8OF0sg== X-Received: by 2002:a17:902:a512:: with SMTP id s18-v6mr19794265plq.229.1517156781527; Sun, 28 Jan 2018 08:26:21 -0800 (PST) Received: from localhost.localdomain ([115.97.187.51]) by smtp.gmail.com with ESMTPSA id y79sm26075776pfb.177.2018.01.28.08.26.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 28 Jan 2018 08:26:21 -0800 (PST) From: Jagan Teki <jagannadh.teki@gmail.com> X-Google-Original-From: Jagan Teki <jagan@amarulasolutions.com> To: u-boot@lists.denx.de Date: Sun, 28 Jan 2018 21:49:47 +0530 Message-Id: <1517156391-11353-27-git-send-email-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517156391-11353-1-git-send-email-jagan@amarulasolutions.com> References: <1517156391-11353-1-git-send-email-jagan@amarulasolutions.com> Cc: Maxime Ripard <maxime.ripard@free-electrons.com> Subject: [U-Boot] [PATCH v3 26/30] sunxi: usb_phy: Clear SIDDP for A64 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
musb: sunxi: Add OTG-Peripheral support for Allwineer H3/H5/A64
|
expand
|
diff --git a/arch/arm/mach-sunxi/usb_phy.c b/arch/arm/mach-sunxi/usb_phy.c index 93340c7..b9542f8 100644 --- a/arch/arm/mach-sunxi/usb_phy.c +++ b/arch/arm/mach-sunxi/usb_phy.c @@ -45,6 +45,7 @@ /* A83T specific control bits for PHY0 */ #define SUNXI_PHY_CTL_VBUSVLDEXT BIT(5) #define SUNXI_PHY_CTL_SIDDQ BIT(3) +#define SUNXI_PHY_CTL_SIDDP BIT(1) /* A83T HSIC specific bits */ #define SUNXI_EHCI_HS_FORCE BIT(20) @@ -249,6 +250,12 @@ void sunxi_usb_phy_init(int index) SUNXI_PHY_CTL_SIDDQ); } #endif + +#ifdef CONFIG_MACH_SUN50I + if (phy->id == 0) + clrbits_le32(SUNXI_USB0_BASE + SUNXI_USB_CSR, + SUNXI_PHY_CTL_SIDDP); +#endif } void sunxi_usb_phy_exit(int index)