Message ID | 1517156391-11353-7-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="IcUwaDMK"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zTz3Y02LYz9s0g for <incoming@patchwork.ozlabs.org>; Mon, 29 Jan 2018 03:43:20 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id A1143C21EE7; Sun, 28 Jan 2018 16:28:14 +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 172C6C21FC3; Sun, 28 Jan 2018 16:26:38 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 44D3DC21FC3; Sun, 28 Jan 2018 16:25:31 +0000 (UTC) Received: from mail-pg0-f67.google.com (mail-pg0-f67.google.com [74.125.83.67]) by lists.denx.de (Postfix) with ESMTPS id B6181C21FD0 for <u-boot@lists.denx.de>; Sun, 28 Jan 2018 16:25:27 +0000 (UTC) Received: by mail-pg0-f67.google.com with SMTP id 136so2596245pgd.8 for <u-boot@lists.denx.de>; Sun, 28 Jan 2018 08:25:27 -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=goM3GIzFSEDtWTxNRUT+wlEjKDxZ2gWKHGJC6EdUstk=; b=IcUwaDMK0phQvi2ytwAlHI3EKJzD0Nhfj7Xz7TzaZUFFJ47FiD5utD8CCzGid+NKsG Obi4rdD79fFx+UqeEocuSXyIT8vZ69XCR+ReT22YJuUhJ8fcmGExAgd0RE+fQN1cx3c3 qUGaVKrxrjKqqAQINcG4w/ocCnlg5FMVK0qmSxM7/QNEY5jUoI2Yx+BVw3sjy85Y+jPd YijxNPUfyJyLsdY777BUv1Jyeo3d2vxD1+Tkz3ImvpiqtT4RkW8iKQmhqaiwIIRXwbTM BHVjgE+tQyeG8OMnetMEvdCaWAx2IHr+J574SmhEIlwCtnyUg+3En+mdMva9+6fuUImo PdiA== 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=goM3GIzFSEDtWTxNRUT+wlEjKDxZ2gWKHGJC6EdUstk=; b=AzV6YA5Z1mWWd+ogeg/LSZwcfJMJyBnT5FUEqENmvYijQGhzdH62IQw14AAvQsUXSQ FIxI9mqRqY2SlKTMcLK26snDn9/LT2//ngiaxxAyg8qIxKhfDwjEWWB0HZSQDkXtt/kL K6U50pqnxHhjuAw4+o/OKRVNnOg5SMlsxbVTNlo8ZR2bh/v6lLRo1K/U8JYE9FScwtAO 7pN2l85IROd58P9g1y7xlpiEZaWGReDjxDP7F5xr0Eier2JDEBHR6ch7lUIM5zj66ru0 NMf9yPSwib8dmnyOXrjcip7s2H1dTKcLE/8SrgC+YV8wrVo4tg8LZKr6WEjVL+s8t+Zk hMgg== X-Gm-Message-State: AKwxyteDt/AvRrQFe52zGOQPn+FlYKO8Fn3L+q0Tg9AANNDW7Da+NX4F BkoRoeLAUvXe8rYO4YAHnQv0L8nU X-Google-Smtp-Source: AH8x224N9r33nvE0JRWfig3vyDyzGJcwE6ShemVtjGP2pT9xfHK64XOjv0kVsrLtLdPBKpFDSGWBuQ== X-Received: by 10.101.64.193 with SMTP id u1mr19594509pgp.44.1517156726108; Sun, 28 Jan 2018 08:25:26 -0800 (PST) Received: from localhost.localdomain ([115.97.187.51]) by smtp.gmail.com with ESMTPSA id y79sm26075776pfb.177.2018.01.28.08.25.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 28 Jan 2018 08:25:25 -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:27 +0530 Message-Id: <1517156391-11353-7-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 06/30] sunxi: usb_phy: setup USB PHY passby for USB0 on H3/H5/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 2f1cad1..9a0a1b9 100644 --- a/arch/arm/mach-sunxi/usb_phy.c +++ b/arch/arm/mach-sunxi/usb_phy.c @@ -239,7 +239,12 @@ void sunxi_usb_phy_init(int index) sunxi_usb_phy_config(phy); - if (phy->id != 0) + /* + * Later SoCs such as the H3, H5, A64 have proper hosts for OTG. + * As such the passby settings need to be set for them as well. + */ + if (phy->id != 0 || IS_ENABLED(CONFIG_MACH_SUNXI_H3_H5) || + IS_ENABLED(CONFIG_MACH_SUN50I)) sunxi_usb_phy_passby(phy, SUNXI_USB_PASSBY_EN); #ifdef CONFIG_MACH_SUN8I_A83T