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: 123545 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp1004951qgn; Fri, 5 Jan 2018 08:21:14 -0800 (PST) X-Google-Smtp-Source: ACJfBos4DDM+yJY0g8J9oFTT3vUlxCi3iSUG6BP/JyAYwLRQVu4swZqmryH9yZDzk/bKaYpLSueu X-Received: by 10.80.135.186 with SMTP id a55mr4896762eda.54.1515169274876; Fri, 05 Jan 2018 08:21:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515169274; cv=none; d=google.com; s=arc-20160816; b=D590bbBUJ1ahBsKDEoJe/mfSxMk7v0SRUfqyFIe9Grye9FLCfvOaZoDjnPNEtfvvYA Gdmug3U84jrumW28Ka8Bq+GnbsEsSjOR+T4NNWkQkI4Tu+Aqsstl5Xt33XZr7ND8Uab1 50AWsomROQ30k3+vGGR5OXHEdu2CjW38H2eZ2BzRRlR8tKgmYO4Q/U0e8m6L1nvSc1Ll GQj3+8G8dTs9dQ54XUqsdpDjQlUwn+cOAfeo5QUzcUHWknO/SjRqFNHQD9CerL9HK3ZV b+BgIvHL0OxGEjmXUT8KVqiBjRhH4M0pk0j3fk41HK9L95VKnDF07bICxu/aagDaBc3V lJ5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:dkim-signature:arc-authentication-results; bh=zHNzcUt+dkrCrQqZYOmpWGGmVhGZq7aoT3ucFRcyUEA=; b=GlkU4MfDE7GAByQCh6pu15ZZ7OOUu5QBu4sG+EQIer52VRUQYxAE6kmWqNJgEaXFuL erhRkzRHWLaAhuGm2asjwEFh4eOQoC/q8X+JZnk3zQSTVGmmHdNdRHY2S/FR0kSinm+A laltSXxnAE3hgIRhNUgWiana0VXXp/JJkww97hAg1SRpyJhbDRA/zv12qoCeKEjuaUiL 4CHF9kF+nPY9h4HyunoTrrlIGlzMTw17Ch/V4BhM5wpYlZstvt9G78iwPFF8B7Gavdd1 xzWF9Rx0QmGD/9O22IvDA1Q654gMFBbG3hQngvb3OHbH5crOXn0RMDg1Yt1Gz8l6E9o+ 2SLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ftRQoz2a; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id i5si3068439edc.211.2018.01.05.08.21.14; Fri, 05 Jan 2018 08:21:14 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ftRQoz2a; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by lists.denx.de (Postfix, from userid 105) id 67FACC21EA8; 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-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