From patchwork Fri Jan 5 16:16:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Nie X-Patchwork-Id: 856111 X-Patchwork-Delegate: jagannadh.teki@gmail.com Return-Path: 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=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="ftRQoz2a"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3zCqgM1lH1z9s1h for ; Sat, 6 Jan 2018 03:21:51 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id C0EBEC21E68; Fri, 5 Jan 2018 16:19:18 +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=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 D19F4C21E99; Fri, 5 Jan 2018 16:19:13 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id BA014C21E9C; Fri, 5 Jan 2018 16:17:21 +0000 (UTC) Received: from mail-pg0-f65.google.com (mail-pg0-f65.google.com [74.125.83.65]) by lists.denx.de (Postfix) with ESMTPS id D4B39C21DC1 for ; Fri, 5 Jan 2018 16:17:17 +0000 (UTC) Received: by mail-pg0-f65.google.com with SMTP id o13so2153983pgp.4 for ; Fri, 05 Jan 2018 08:17:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=dL72jB7P8FF7ne7zCmLK5pevpswBhPU7g7FX3SuBvSw=; b=ftRQoz2aHMz8TqMmuL0pEfziGoCW4vIozZmMJc6JABwXNe5mIJ0TRyEKu869T/FEfA /0FyMlQ164f0wXIv3qlnw97C/Pna2YdkLZKh2y27fayi9EIsX9JOzgz4yRNtS4dU9lJU AAhuWDknT3x6dAHbcl3Z+thV7+/wfgSemI0qg= 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=dL72jB7P8FF7ne7zCmLK5pevpswBhPU7g7FX3SuBvSw=; b=oRoAld8EayCeo3aeoHGoQlbaBopWOErbQXInSiOgm53qWd4udGlZ/mcmBjLlTrkKoL pOXyIObqYERLYNPHvSw3Mo8U6tsg7EGlzsOb6vq5brO4x0BGmVONlfdzZ9vXivLxKkhr eKQ91Ta4I49EzxBwLYJVtNFb5TPJ7bXtkGUjgw5QJkJxsuDz87ZkOBZyaZViYUsjawoX x70xJtd5zqLerBW7zrDedRM2Z8p1DzX+PCyjx7k+OAjrjoIbADHK1IyYrD+IN+H1qqwX 49cLuWofxpx/JLH14pz2EGVA2h6Fr/O5VOOIyPbRlB/fkOwI3RgF8FeLCvVPVBDN8FKP bDrQ== X-Gm-Message-State: AKGB3mL9oSah4aUG+O6ZLT0IX4V30RonHcmpE666/F1gxZ3euzfae2gs EA1ao4QHoNHIR0DrOQZt10AZ2w== X-Google-Smtp-Source: ACJfBovyvgIp9B34xcQDjMrqx8lneODhdCCKhDq2+a445uJbt9HwQefVM9Rqs80MWt87q+C6yvimqw== X-Received: by 10.99.97.9 with SMTP id v9mr2711206pgb.330.1515169036548; Fri, 05 Jan 2018 08:17:16 -0800 (PST) Received: from localhost.localdomain (61-216-91-114.HINET-IP.hinet.net. [61.216.91.114]) by smtp.gmail.com with ESMTPSA id k80sm14337459pfh.30.2018.01.05.08.17.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Jan 2018 08:17:15 -0800 (PST) From: Jun Nie To: jagannadh.teki@gmail.com, wens@csie.org, maxime.ripard@free-electrons.com, hdegoede@redhat.com Date: Sat, 6 Jan 2018 00:16:00 +0800 Message-Id: <1515168960-18960-9-git-send-email-jun.nie@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1515168960-18960-1-git-send-email-jun.nie@linaro.org> References: <1515168960-18960-1-git-send-email-jun.nie@linaro.org> Cc: u-boot@lists.denx.de Subject: [U-Boot] [[PATCH v2] 8/8] sunxi: H3: set different otg base address per mode X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Set different base address per host mode or peripheral mode. Phy configuration also depends on this address. Signed-off-by: Jun Nie --- arch/arm/include/asm/arch-sunxi/cpu_sun4i.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/include/asm/arch-sunxi/cpu_sun4i.h b/arch/arm/include/asm/arch-sunxi/cpu_sun4i.h index 2419062..f45f53a 100644 --- a/arch/arm/include/asm/arch-sunxi/cpu_sun4i.h +++ b/arch/arm/include/asm/arch-sunxi/cpu_sun4i.h @@ -64,7 +64,11 @@ #ifdef CONFIG_SUNXI_GEN_SUN6I #if defined(CONFIG_MACH_SUNXI_H3_H5) || defined(CONFIG_MACH_SUN50I) #define SUNXI_USBPHY_BASE 0x01c19000 +#ifdef CONFIG_USB_MUSB_GADGET +#define SUNXI_USB0_BASE 0x01c19000 +#else #define SUNXI_USB0_BASE 0x01c1a000 +#endif #define SUNXI_USB1_BASE 0x01c1b000 #define SUNXI_USB2_BASE 0x01c1c000 #define SUNXI_USB3_BASE 0x01c1d000