From patchwork Sun Jan 28 16:19:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 126078 Delivered-To: patch@linaro.org Received: by 10.46.84.92 with SMTP id y28csp1782229ljd; Sun, 28 Jan 2018 08:27:26 -0800 (PST) X-Google-Smtp-Source: AH8x224rzVVFND02PQ7s7ZfMOXUR9Uu+IzbsxOcwt1JFnXwxj3D6cySH2nk67xHSEFFdYoX3FcJG X-Received: by 10.80.154.225 with SMTP id p88mr43697710edb.256.1517156846932; Sun, 28 Jan 2018 08:27:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517156846; cv=none; d=google.com; s=arc-20160816; b=PWxNBScUC483SUdnWofVSkJsnMU8rYIEwm3O7wKAss+nCZPfbZkzGcuQ6GmkVuNF3s Eee8G2x3KeBXSA4ykrT9u9Pi/4ydnr0zZwXNL8miF+N+gBpgDGiOQ0j+uYOoLM9HGmeY KWjHnGWtXWf04CTrezqVohDh5YSTCGTSVzWzeDMEwI8dYsu3j4u1xJv9N6R2U8O0A54R FPkTrmUF2k1U1/4+Uyf9RVXNuSTy43bzLKPFx8rMwhwwRmyz3XkzVwJcPjC+3YBI/r5w IeE9+KXuQwqcbafBfX5v35a2yjbJMoC7u9jZwEZpCt//DGQfzwW15Kc1lDIlm93VkfEo IlFQ== 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=HrPeLkGA9ejr/zp1ze+F2GY055Tt0nStYBuUpBIP0w8=; b=IIyMhgb2gad9XkQ1+cDeL9BJsUDh2cIp4nknA5Rcoc9P855N0V4frIB1C/V3CIciv9 EhqPFs7gTmRommDQxVQef8NUguUKwW1YDBKPrHjey8ZG37H2qmXAXfJYxXh41MjnN5XT Si9YT2bJdqieUN4xWXYYQnQRqpjw7MDVORlVEjfKlIsAB5OeJhAL2UlxnbtvQPt5tKBG xD6+xdf7X4mCyhnFCj9NR0L0ooRiKIdYl4VXFNyn9nCLwE8hZOq9kGEW5HmleguDBUra w9MEJfkya8jGdyvNCOXshReU/LQv+pavOJb8oM9mX190DHzlsPAl053DywidWUwAcvby 2SNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=INN/g4fC; 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=gmail.com Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id i92si1417343edi.465.2018.01.28.08.27.26; Sun, 28 Jan 2018 08:27:26 -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=@gmail.com header.s=20161025 header.b=INN/g4fC; 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=gmail.com Received: by lists.denx.de (Postfix, from userid 105) id 5F2D8C2203D; Sun, 28 Jan 2018 16:26:03 +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_H2, 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 3E077C21DA1; Sun, 28 Jan 2018 16:25:37 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 47D78C21E90; Sun, 28 Jan 2018 16:25:18 +0000 (UTC) Received: from mail-pf0-f195.google.com (mail-pf0-f195.google.com [209.85.192.195]) by lists.denx.de (Postfix) with ESMTPS id D0D4EC21F1F for ; Sun, 28 Jan 2018 16:25:12 +0000 (UTC) Received: by mail-pf0-f195.google.com with SMTP id e76so2783316pfk.1 for ; Sun, 28 Jan 2018 08:25:12 -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=gjWi7TqfeW2upiN4vqa4XIjsGX24gWHBX6eeg8t31zg=; b=INN/g4fCNBTyDYHNCNTq6T1sbpadgNhAs1c7hlJjmpp6gLp0gCBezT6brQrOwtjRq+ hUrTUs/WuwCErDGtud7s7hd0T5mFiwRx1ZpGGoo9wXawIY76gvN5htvN7uRRMu0eRiqF pWY/pCqa/SrApODHfco7t6JcDO5jrAT/ESYETcdWzKhnLpNBe1SbHq4TWSnj+63UjrZ7 wlLJI+O4UU3+kJYp72gyuy5Fj0S2oFR9LHPZkIASscLnqR5BwAcXPsKGhIfmUS8QGbHF WNnP6YT9DEG7PHWhsznc/iVr/LcJ0BNCe8KK9S/xaADonYAGhIxd2OCBkoKe02bI7wxA lesw== 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=gjWi7TqfeW2upiN4vqa4XIjsGX24gWHBX6eeg8t31zg=; b=owbzfF+Z23tMH6q1M5pjsj/neH9U4g/jjCTWmX+mQEHh5TpCAElOgFAKBmzHZckTef nTco4VDHW9ItIymwKMenZW4mi8z5fSkwMWzC2FKEzckVe+J5kcbV1QFILFICo4uXi0eL AoDFAIrRL8+EM6r/00slfywDTA3TIB+btT1kbsvlg7a/tE4lDJZvPxOWEs/HLyueKHvo qz0zM9oq8n4zzSCr1pezdZNPMATwKgo75E6s16h2bkBrFrgCA1owN3qPrhW4Vw2EU35+ WkNsqIZIGZWFKyjWZNi8lY1xjhZ333HrB9lmBsptsYcIX81I7dhAN4kiX0zi4ANwZ0xP l9qQ== X-Gm-Message-State: AKwxytdRKFJScIW5NIaJWqPyWVMXaadgq1pt7k/fKzIaXM6zQD2j6QsF 9lNLxyaBJcQ2Ne+CT3oXhMbRp1aL X-Received: by 10.98.202.84 with SMTP id n81mr24291313pfg.226.1517156711194; Sun, 28 Jan 2018 08:25:11 -0800 (PST) Received: from localhost.localdomain ([115.97.187.51]) by smtp.gmail.com with ESMTPSA id y79sm26075776pfb.177.2018.01.28.08.25.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 28 Jan 2018 08:25:10 -0800 (PST) From: Jagan Teki X-Google-Original-From: Jagan Teki To: u-boot@lists.denx.de Date: Sun, 28 Jan 2018 21:49:22 +0530 Message-Id: <1517156391-11353-2-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 Subject: [U-Boot] [PATCH v3 01/30] sunxi: h3: Sync OTG and HCI nodes from Linux DT 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" From: Jun Nie Allwinner H3 have a dual-routed USB PHY0 -- routed to either OHCI/EHCI or MUSB controller. Signed-off-by: Jun Nie Reviewed-by: Jagan Teki [jagan: removed 1/8] from commit message] Signed-off-by: Jagan Teki --- arch/arm/dts/sun8i-h3.dtsi | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/arch/arm/dts/sun8i-h3.dtsi b/arch/arm/dts/sun8i-h3.dtsi index afa6079..d9728a7 100644 --- a/arch/arm/dts/sun8i-h3.dtsi +++ b/arch/arm/dts/sun8i-h3.dtsi @@ -218,6 +218,19 @@ #size-cells = <0>; }; + usb_otg: usb@1c19000 { + compatible = "allwinner,sun8i-h3-musb"; + reg = <0x01c19000 0x400>; + clocks = <&ccu CLK_BUS_OTG>; + resets = <&ccu RST_BUS_OTG>; + interrupts = ; + interrupt-names = "mc"; + phys = <&usbphy 0>; + phy-names = "usb"; + extcon = <&usbphy 0>; + status = "disabled"; + }; + usbphy: phy@01c19400 { compatible = "allwinner,sun8i-h3-usb-phy"; reg = <0x01c19400 0x2c>, @@ -250,6 +263,25 @@ #phy-cells = <1>; }; + ehci0: usb@1c1a000 { + compatible = "allwinner,sun8i-h3-ehci", "generic-ehci"; + reg = <0x01c1a000 0x100>; + interrupts = ; + clocks = <&ccu CLK_BUS_EHCI0>, <&ccu CLK_BUS_OHCI0>; + resets = <&ccu RST_BUS_EHCI0>, <&ccu RST_BUS_OHCI0>; + status = "disabled"; + }; + + ohci0: usb@1c1a400 { + compatible = "allwinner,sun8i-h3-ohci", "generic-ohci"; + reg = <0x01c1a400 0x100>; + interrupts = ; + clocks = <&ccu CLK_BUS_EHCI0>, <&ccu CLK_BUS_OHCI0>, + <&ccu CLK_USB_OHCI0>; + resets = <&ccu RST_BUS_EHCI0>, <&ccu RST_BUS_OHCI0>; + status = "disabled"; + }; + ehci1: usb@01c1b000 { compatible = "allwinner,sun8i-h3-ehci", "generic-ehci"; reg = <0x01c1b000 0x100>; From patchwork Sun Jan 28 16:19:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 126077 Delivered-To: patch@linaro.org Received: by 10.46.84.92 with SMTP id y28csp1781637ljd; Sun, 28 Jan 2018 08:26:10 -0800 (PST) X-Google-Smtp-Source: AH8x226Freb6erm+O9at07dw+9NWQytSuwmZSFeP7nRjmO2Aro91TcOJLRh87RCVKxoJZ8URB1iP X-Received: by 10.80.179.146 with SMTP id s18mr44338670edd.190.1517156770368; Sun, 28 Jan 2018 08:26:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517156770; cv=none; d=google.com; s=arc-20160816; b=isfodkpWsAF7f+fkrpT//wVTAoUQnX7cfpFu6bqB6SXCMClnz0RtHd1z0G8322hyJf nGhPgcJ88OlDTD8Z+ZHngdFqG/m3aGspaYWErlCinnfONZcVOSIYviaVIens5E4Zk5fL CVxrZ8FFTrnG8xLV602l8bH+P1jEUmoZPckdNHCgZYi5cP8fuq2t7wr0Drcllj++NpIT U4iGfyC/pTA84bvdiTjYbpq74/mdPWgn2iek9j49YcjYA6OyQxHCC1T70l3ctTXP9Akl zuJEL2oezEOJ0KXGQbm0bxJoHPd3Mxo5XTS17W9I5DXEtBRetnuqVFziD7g+P+oGuaki YG9g== 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=yKbdEs4R/vlDFr/+WX6cPrzY/k4N2sGJwdj655Q3Xhg=; b=Fr6+7cuzWdUOHAiN9KEfWD56t7Jsew839AivPkPiWJ0ohgPn82vIM/JNg4jGvbe4O9 Htdxu42UECMpjUxCy7Bfp2i9Ia6QRqfhO1i8M+/soedp9oaPneoD9N3bQiExYik5W8h2 vlWt4SYteSyOXvSnfUZBT9BnCUf5Gr2e2GWYWdcsl+TV2W65jZKPtMM9leJ4Q5RiXRwl WY5TNyRq11c7LdDivoyJCEsRv7xkZs57XEUq01Afj9mFaNHa53eLC/S4Tf7Zcvv3Ewn1 PdyHd/1aY5gW8YglIfxc9ILc1//yyvQRsOzk5BTERM7vXP3oR7c8eUjnAhKOKSZNnZ8B l9aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=YZF1A1uA; 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=gmail.com Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id f6si4667251edj.412.2018.01.28.08.26.10; Sun, 28 Jan 2018 08:26:10 -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=@gmail.com header.s=20161025 header.b=YZF1A1uA; 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=gmail.com Received: by lists.denx.de (Postfix, from userid 105) id D18EEC22051; Sun, 28 Jan 2018 16:25:27 +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 875F1C21EC8; Sun, 28 Jan 2018 16:25:25 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id AFE64C21FD0; Sun, 28 Jan 2018 16:25:20 +0000 (UTC) Received: from mail-pl0-f67.google.com (mail-pl0-f67.google.com [209.85.160.67]) by lists.denx.de (Postfix) with ESMTPS id 18FF5C21E90 for ; Sun, 28 Jan 2018 16:25:16 +0000 (UTC) Received: by mail-pl0-f67.google.com with SMTP id j19so2088408pll.2 for ; Sun, 28 Jan 2018 08:25:16 -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=bF3T8Zu/R1VnQU6YIJx+OX0OnBl9E3sGm2WHgJ3Y8JM=; b=YZF1A1uAzd1aoyHemWoDJPFGOuHo6vnoLshs75dTU1MceGAzFEmodF3U2zuQMpWLRU mI69cBhfa5qHre+c2/QfLM53PuW9Je9tS0EewCwMTnzMVvB+f/rtRcjAGXlkWnevAKQv lAt5fnC7XPkyCiQn6IlRLg+gjKg9l3FFEykESAFLTiPdqOjLqpd65Ugr8+iDf5Fzk99M cYmBYMynI7/rEJPyWMHByX38mQcofAr3dDzfATThHUGMdKa7dXtQqnCvSED9vvgb4lF9 x5FRvoRFjbmUSoGI1Wn9yEbA3SYPygk8Gz2ZFkTeOW2K57gvS8RvYOqzQZy/aCgqRkwh mThw== 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=bF3T8Zu/R1VnQU6YIJx+OX0OnBl9E3sGm2WHgJ3Y8JM=; b=k4uKFd0k7xMqWQITl+zNOwLD4krqumrHDUYmwqBpRCevRNkazWAjFP3KCVqUbbgE2N fx4yFI0bh42eQXaKfYKt3yV5DNJlcl4DZ+q6+yJkh6oJqXnUIaoYT27xj1vymXmBL4ZO zQBcyXEsHAb4jjkoEfKeEtPYZIrtMMG6/p/8emflJB1/r5JUz1QSEPVwB7fASM+nA0lk 9VyD6y16x00Z9m36HxqhpCvCiB1aKoggDL27erTGf9/mgnIPrq3EKSCDmUfM4/FfVyEz LNaMoKPtGWb6PavTrkE1wGXfqd2pqX9ZzwaJxgOC64S+IM/YmZjM6VhiQgjD2tcEcg0A 0bJQ== X-Gm-Message-State: AKwxytd8aLqFVD/fgaQHN5jlk0m289bi9R+RXdpJXLkHNKT4t3kWBaXz tXguYdfmSaL+hel9Dd+u7z9X+poS X-Received: by 2002:a17:902:8a89:: with SMTP id p9-v6mr19008319plo.397.1517156714315; Sun, 28 Jan 2018 08:25:14 -0800 (PST) Received: from localhost.localdomain ([115.97.187.51]) by smtp.gmail.com with ESMTPSA id y79sm26075776pfb.177.2018.01.28.08.25.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 28 Jan 2018 08:25:13 -0800 (PST) From: Jagan Teki X-Google-Original-From: Jagan Teki To: u-boot@lists.denx.de Date: Sun, 28 Jan 2018 21:49:23 +0530 Message-Id: <1517156391-11353-3-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: Marek Vasut , Maxime Ripard Subject: [U-Boot] [PATCH v3 02/30] sunxi: musb: Add fifo config for H3 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" From: Jun Nie Add fifo config for H3 as H3 differ with other SoC on ep number. Signed-off-by: Jun Nie Reviewed-by: Jagan Teki [jagan: fixed num_eps for H3] Signed-off-by: Jagan Teki Cc: Marek Vasut --- drivers/usb/musb-new/sunxi.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/drivers/usb/musb-new/sunxi.c b/drivers/usb/musb-new/sunxi.c index aedc24b..46c8bd2 100644 --- a/drivers/usb/musb-new/sunxi.c +++ b/drivers/usb/musb-new/sunxi.c @@ -290,10 +290,42 @@ static const struct musb_platform_ops sunxi_musb_ops = { .disable = sunxi_musb_disable, }; +#if defined(CONFIG_MACH_SUN8I_H3) +static struct musb_fifo_cfg sunxi_musb_fifo_config[] = { + { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, }, + { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, }, + { .hw_ep_num = 2, .style = FIFO_TX, .maxpacket = 512, }, + { .hw_ep_num = 2, .style = FIFO_RX, .maxpacket = 512, }, + { .hw_ep_num = 3, .style = FIFO_TX, .maxpacket = 512, }, + { .hw_ep_num = 3, .style = FIFO_RX, .maxpacket = 512, }, + { .hw_ep_num = 4, .style = FIFO_TX, .maxpacket = 512, }, + { .hw_ep_num = 4, .style = FIFO_RX, .maxpacket = 512, }, +}; +#else +static struct musb_fifo_cfg sunxi_musb_fifo_config[] = { + { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, }, + { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, }, + { .hw_ep_num = 2, .style = FIFO_TX, .maxpacket = 512, }, + { .hw_ep_num = 2, .style = FIFO_RX, .maxpacket = 512, }, + { .hw_ep_num = 3, .style = FIFO_TX, .maxpacket = 512, }, + { .hw_ep_num = 3, .style = FIFO_RX, .maxpacket = 512, }, + { .hw_ep_num = 4, .style = FIFO_TX, .maxpacket = 512, }, + { .hw_ep_num = 4, .style = FIFO_RX, .maxpacket = 512, }, + { .hw_ep_num = 5, .style = FIFO_TX, .maxpacket = 512, }, + { .hw_ep_num = 5, .style = FIFO_RX, .maxpacket = 512, }, +}; +#endif + static struct musb_hdrc_config musb_config = { + .fifo_cfg = sunxi_musb_fifo_config, + .fifo_cfg_size = ARRAY_SIZE(sunxi_musb_fifo_config), .multipoint = 1, .dyn_fifo = 1, +#if defined(CONFIG_MACH_SUN8I_H3) + .num_eps = 5, +#else .num_eps = 6, +#endif .ram_bits = 11, }; From patchwork Sun Jan 28 16:19:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 126081 Delivered-To: patch@linaro.org Received: by 10.46.84.92 with SMTP id y28csp1787072ljd; Sun, 28 Jan 2018 08:37:01 -0800 (PST) X-Google-Smtp-Source: AH8x226GbWxvGYtTYtlAkQu9dmJYq045Dvq+02g6xA1+yi+1pge+mcKaH7Pv/eHfnD6S9cDrOYM8 X-Received: by 10.80.152.68 with SMTP id h4mr43146225edb.23.1517157420932; Sun, 28 Jan 2018 08:37:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517157420; cv=none; d=google.com; s=arc-20160816; b=LVdeqYOhRitj+3EyajVqPt2KKeg66BH4A7Vgu1MpJ5cLYc0k7dBxaKm7Ja23NvzXMn cF9nz31JPYMmCjqcBkEcozmaeuwjKo1I6Z4snoZxnCR4K6P+GLYuDVvktO8VYcU++gxX R8VJK+5dwJfhuhX5mNtHdUhaw0P1CcOAa4w1KeqHNFNKcF4LObi1Nzrl9lhvawgTTqQF 0dPxAAYZSmbu7t50Fw8eVQoE36HHYyp5HQYTUsx4Dfj3YB3QfqpgYws0RAFlXBWcIPE2 YBvDhZXsSi5IfOfBU1/8iKABM2xnET1Wx1p+g3sqw/A1IoD/VCuP841+PpLzbTnuPOAC jkKA== 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=rOirsC5wywyZLVUDU2ZTB2cHZ/UD9I5flr9EQ0Sa3XQ=; b=nv+hrJ2WtrPVkD0DkvDhZF/7Fi6ZwCItDCymCNlc+5Spxi3UGtM4iHOyYJNs30o6E2 D3w7+9yRJvA3zCkQg61GGfLItLgsj60TKsPGJQiv4/Tp8cQiC1VUQn+mBj/Yp9xG3pnM wgYIh6T4kG4TFAv6OX2Mvbkf1rRHXX2Nzr5zdQqbTBR2nPUjgMtuhDpYzWIxZbg1vHoV q7IQJryuFE+VrT4ha8EI1OZKXgyo6pB3MjBuGwKIsNVMPeDSv8/4xhRkXH+DwvCDEA/X nz8wWDO2Wtcevn+87vVab+SqPJuLgharyKN9+j03o3gVBtLd/cWfYIBcH0Tg6ELZyuVK VCzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=OUw2I1BF; 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=gmail.com Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id g92si7404813ede.394.2018.01.28.08.37.00; Sun, 28 Jan 2018 08:37:00 -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=@gmail.com header.s=20161025 header.b=OUw2I1BF; 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=gmail.com Received: by lists.denx.de (Postfix, from userid 105) id 5D50EC21F95; Sun, 28 Jan 2018 16:27:20 +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 67FAFC22040; Sun, 28 Jan 2018 16:26:00 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 9938FC21E78; Sun, 28 Jan 2018 16:25:22 +0000 (UTC) Received: from mail-pg0-f66.google.com (mail-pg0-f66.google.com [74.125.83.66]) by lists.denx.de (Postfix) with ESMTPS id 3B6F7C2200C for ; Sun, 28 Jan 2018 16:25:22 +0000 (UTC) Received: by mail-pg0-f66.google.com with SMTP id k68so2607785pga.3 for ; Sun, 28 Jan 2018 08:25:22 -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=mq7bSQTRAIZc0NfUwpFC1hF/z9G3kAsOb2tJQt9RqjA=; b=OUw2I1BFTM9qoP7DPyMs/qQdQlNrxlKF055M5naUPtMcyeWB7kF9C1hvPx5mE90ArX 3cQWzbgJFdDvCXJhwf8tc0/86hmrxcd3/5jgVs8UelcLHLAL9K9+L1yqn+wISrH5MLBx xDaMvIELCYRubzwVoJL9fVN+kgR0iSX5O2h+xVlt5SBi3hRyKW/bcGWt5bgr7otn/Rn6 6BL5tI7TxxUOpx1h5kh49y3LNDtmfdLtxn6OIlzxOUp7HPjAlsD+v9dU/YfX4rQ/0a/L JTNpta996wsOuKRxM7/LOx88PsOd9ybk2x/i1CauJkb18UZyjBukPFNcxqkFL5gTZnRM ayuA== 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=mq7bSQTRAIZc0NfUwpFC1hF/z9G3kAsOb2tJQt9RqjA=; b=M2cd3t3X1TRLqDYFMac8P5kKs9NcOB5Ot69TvUhR6tBdaWSr4ky9KSKI0spK1lU2WG fpe/yV5C49TzlD1+3zUDahTgkP0aIhWw6vGoopGtoQylzyRPFToYiCuPeQHfXQqpiWdE xv4BIfSprTGU42brESRDYaMqKLeZC0au3uav7l31LjFbtPqnfcjyrv260+zEmLymSIqj nQkEpIB9MXpPsLVfma6mzR0KwRCMqwDjKu03q8hAVDwxteL+TZ1ID343jDmrKWKxqSiT FBcnJ5rhrn0pyK6uIYR74pLoZYtQDQFL2c3b6GCEVDdzbDfMmSyHBknjoIs64eeLGFrK v6hg== X-Gm-Message-State: AKwxytfhQGgvuEgTn+wfCLsmfO4EPpOVAkEbkojOrgQ+Z/S+uBA8brq9 R3b7EuHkLbr4n0J4ecFK0UlJWJ2C X-Received: by 10.98.224.3 with SMTP id f3mr24656493pfh.205.1517156720635; Sun, 28 Jan 2018 08:25:20 -0800 (PST) Received: from localhost.localdomain ([115.97.187.51]) by smtp.gmail.com with ESMTPSA id y79sm26075776pfb.177.2018.01.28.08.25.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 28 Jan 2018 08:25:20 -0800 (PST) From: Jagan Teki X-Google-Original-From: Jagan Teki To: u-boot@lists.denx.de Date: Sun, 28 Jan 2018 21:49:25 +0530 Message-Id: <1517156391-11353-5-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 Subject: [U-Boot] [PATCH v3 04/30] sunxi: musb: Hack dynamic fifo support for H3 OTG 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" From: Jun Nie Like other Allwinner SoC, the H3 is missing the config register from the musb hardware block. Use a known working value for it like other SoC. Signed-off-by: Jun Nie Reviewed-by: Jagan Teki [jagan: remove 4/8] from commit header] Signed-off-by: Jagan Teki --- drivers/usb/musb-new/musb_regs.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/usb/musb-new/musb_regs.h b/drivers/usb/musb-new/musb_regs.h index a3cc38e..8a357ed 100644 --- a/drivers/usb/musb-new/musb_regs.h +++ b/drivers/usb/musb-new/musb_regs.h @@ -432,7 +432,8 @@ static inline u8 musb_read_ulpi_buscontrol(void __iomem *mbase) static inline u8 musb_read_configdata(void __iomem *mbase) { -#if defined CONFIG_MACH_SUN8I_A33 || defined CONFIG_MACH_SUN8I_A83T +#if defined(CONFIG_MACH_SUN8I_A33) || defined(CONFIG_MACH_SUN8I_A83T) || \ + defined(CONFIG_MACH_SUNXI_H3_H5) /* allwinner saves a reg, and we need to hardcode this */ return 0xde; #else From patchwork Sun Jan 28 16:19:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 126080 Delivered-To: patch@linaro.org Received: by 10.46.84.92 with SMTP id y28csp1783068ljd; Sun, 28 Jan 2018 08:29:05 -0800 (PST) X-Google-Smtp-Source: AH8x22740Qv+36RF4+md5tnQrutLoxIkzgB8pNOXFV7KFZLIpm+OnOiOmMSyXz7qiTPfVMzcwZtB X-Received: by 10.80.146.134 with SMTP id k6mr42894812eda.107.1517156945322; Sun, 28 Jan 2018 08:29:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517156945; cv=none; d=google.com; s=arc-20160816; b=mt3JgOCfS3cbTD8LHvqY9MaOV33IgG0Tc+61xVylA5iir8GQlCRgOvXhli15H+KRpC tJkdkOnyI9MrxlzuUOZI/v1Mak9lLfwDCus0kYExHZ6rB0/ZdzHBdTfe/pKHOUMdVUKJ UpVOyjvudTPrl2/8zRtw8NorJV5FvztwC2vzEjMwvp+UXwsg5yH0Q5pU2ibUYhS1Kaaw haGKfjkbyDCmtDnzvLoAVLOyGetUFLpDFUzjPdl16cQ+9qf3o/xQgt+XdUYZdLicoe/D kWo/NiE3Dzb9rOapIV9FkHBfiO5f3l0Nzo39wK/JgPStDxEusLXItDGeq98oH1Jqz32v pQDQ== 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=c4Wc8XJI+zRYVkzCCPgu+Bgspz4msLIkbmjantFYb80=; b=0zO900JdE/kF6ZwDGFo8pH7s5ZOc+lh4506BX4NAF7KmH9hH3DAxK8mGpvdRTDgvu9 NoCO0wr38zoUlWF/8RE5gOd32G20WbBgTohCFixhvTSUdhZ1xh81ZY+VhPfLmqUDpn1E CyLhvdZv8deab5/3j/xNKe/VwUICqJg00clp1zeH97LctoRibZM/P4yUrlOkzLDLn07S sLZjGoROfAPD/DofOwDuLtQcAXK/txAf5Vu6KZnoHafrY/pa6uGenywpZ4+6oCsjATii 2DUEi6rveg3z47K4uu7F6Ibgh8B3laPa/4aKPfiy4w2zP8zZt2wE9r4rHIf/BpA1dhdW aI9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=Be7uq7PY; 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=gmail.com Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id x7si875880edi.455.2018.01.28.08.29.05; Sun, 28 Jan 2018 08:29:05 -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=@gmail.com header.s=20161025 header.b=Be7uq7PY; 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=gmail.com Received: by lists.denx.de (Postfix, from userid 105) id F0468C21DA1; Sun, 28 Jan 2018 16:28:32 +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_H2, 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 806D2C22051; Sun, 28 Jan 2018 16:26:44 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id B1D2AC22048; Sun, 28 Jan 2018 16:25:25 +0000 (UTC) Received: from mail-pf0-f193.google.com (mail-pf0-f193.google.com [209.85.192.193]) by lists.denx.de (Postfix) with ESMTPS id EAEDDC21E2F for ; Sun, 28 Jan 2018 16:25:24 +0000 (UTC) Received: by mail-pf0-f193.google.com with SMTP id e76so2783471pfk.1 for ; Sun, 28 Jan 2018 08:25:24 -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=fl6g0Et3pVQOlF1JaYuwY5jptX9UCebNxtw/W1t5lCY=; b=Be7uq7PY3OKVdcZx5tG6Pf5s+MIsBF/i9ORGJshiPV/f2r7c9DAXgIe8pS1/Kzrvm8 VwJKLFvyhd9ehwXJ6MgSZu/sXPeI1C7+GTQ0i7RQerHvJBAQC3vaexGS/7urOwnn6okT wJnacvX1IaIVE9evvXPWyelQlBrThg5whsxVmZma7L3mQ0dHFOMsgrpz2U+7pD6fxJwM 7zW0+Cl5Jq1vBwi+9zQ9UdoqGwoT4eQwUzrK/+PrXJWjLT685IMwEQVFn4dglW6A9bcP wqe1CLp1VxPLnv+fmoxinZXmvcxsSLmA3Q0mjEQ242oGYHobICTmL2qgmYbvwy00NNW6 IBAw== 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=fl6g0Et3pVQOlF1JaYuwY5jptX9UCebNxtw/W1t5lCY=; b=q5ZcIof/TaglDHUHaKZv0MRXQ1594OjmaVi6irwz4OoEOxgTMM7BZW9K89A3tUoG2X emPPGAHniIDTFrkaNN+dCf1HqdgRa6EcSCv8+EsufAgZzBD2rO7XRUMM5xC35BVcmk8P v9axphva4Fq7TLlORXLjA28AeZF0dkQb+pKO/Do+2ps3JOxnSBw4gG6bBeYAtwEMbYxV Ldyqzps7rKMbE1M5SA3ZO5pwh7aWGv+FDp5zE5LTW9tS1PTeKbhbXqtUEO4mT8O2o2wi RgF+J0b2yUrMruPVQWEx+RZp7LGD95dFf3UJyynAOc0GKgFNbNR8PasInz8qmaLp6/E3 IDGw== X-Gm-Message-State: AKwxytcrb09n2QjkSaeQXGfqRkPaEouu4NE0ZiQDAPDNtsQeFkmS2YC/ cC65lwTsS/u18Co7WEHY4hpVb9ky X-Received: by 10.101.101.200 with SMTP id y8mr20108916pgv.0.1517156723263; Sun, 28 Jan 2018 08:25:23 -0800 (PST) Received: from localhost.localdomain ([115.97.187.51]) by smtp.gmail.com with ESMTPSA id y79sm26075776pfb.177.2018.01.28.08.25.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 28 Jan 2018 08:25:22 -0800 (PST) From: Jagan Teki X-Google-Original-From: Jagan Teki To: u-boot@lists.denx.de Date: Sun, 28 Jan 2018 21:49:26 +0530 Message-Id: <1517156391-11353-6-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: Marek Vasut , Maxime Ripard Subject: [U-Boot] [PATCH v3 05/30] sunxi: musb: Enable OTG device clock for H3 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" From: Jun Nie Enable OTG clock and deassert reset Signed-off-by: Jun Nie [jagan: fixed AHB_GATE_OFFSET_OTG_DEVICE to use H3/H5/A64] Signed-off-by: Jagan Teki Reviewed-by: Jagan Teki Cc: Marek Vasut --- arch/arm/include/asm/arch-sunxi/clock_sun6i.h | 1 + drivers/usb/musb-new/sunxi.c | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/arch/arm/include/asm/arch-sunxi/clock_sun6i.h b/arch/arm/include/asm/arch-sunxi/clock_sun6i.h index 2c82d0a..624d624 100644 --- a/arch/arm/include/asm/arch-sunxi/clock_sun6i.h +++ b/arch/arm/include/asm/arch-sunxi/clock_sun6i.h @@ -279,6 +279,7 @@ struct sunxi_ccm_reg { #define AHB_GATE_OFFSET_USB_EHCI2 26 #define AHB_GATE_OFFSET_USB_EHCI1 25 #define AHB_GATE_OFFSET_USB_EHCI0 24 +#define AHB_GATE_OFFSET_OTG_DEVICE 23 #else #define AHB_GATE_OFFSET_USB_OHCI1 30 #define AHB_GATE_OFFSET_USB_OHCI0 29 diff --git a/drivers/usb/musb-new/sunxi.c b/drivers/usb/musb-new/sunxi.c index 46c8bd2..c3b8fa4 100644 --- a/drivers/usb/musb-new/sunxi.c +++ b/drivers/usb/musb-new/sunxi.c @@ -266,6 +266,11 @@ static int sunxi_musb_init(struct musb *musb) #ifdef CONFIG_SUNXI_GEN_SUN6I setbits_le32(&ccm->ahb_reset0_cfg, 1 << AHB_GATE_OFFSET_USB0); #endif +#if defined(CONFIG_MACH_SUNXI_H3_H5) || defined(CONFIG_MACH_SUN50I) + setbits_le32(&ccm->ahb_gate0, BIT(AHB_GATE_OFFSET_OTG_DEVICE)); + setbits_le32(&ccm->ahb_reset0_cfg, BIT(AHB_GATE_OFFSET_OTG_DEVICE)); +#endif + sunxi_usb_phy_init(0); USBC_ConfigFIFO_Base(); @@ -380,6 +385,9 @@ static int musb_usb_remove(struct udevice *dev) #ifdef CONFIG_SUNXI_GEN_SUN6I clrbits_le32(&ccm->ahb_reset0_cfg, 1 << AHB_GATE_OFFSET_USB0); #endif +#if defined(CONFIG_MACH_SUNXI_H3_H5) || defined(CONFIG_MACH_SUN50I) + clrbits_le32(&ccm->ahb_gate0, 1 << AHB_GATE_OFFSET_OTG_DEVICE); +#endif clrbits_le32(&ccm->ahb_gate0, 1 << AHB_GATE_OFFSET_USB0); free(host->host); From patchwork Sun Jan 28 16:19:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 126079 Delivered-To: patch@linaro.org Received: by 10.46.84.92 with SMTP id y28csp1782262ljd; Sun, 28 Jan 2018 08:27:29 -0800 (PST) X-Google-Smtp-Source: AH8x227hUWCmzKnLkGdx4o1hhPjW+/tvYQwp9RnFLgnuEurGN8pC88e3wbMI8ZG4QwyD3SKP8Via X-Received: by 10.80.245.52 with SMTP id t49mr44820330edm.47.1517156849695; Sun, 28 Jan 2018 08:27:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517156849; cv=none; d=google.com; s=arc-20160816; b=Sfn1/DclUNAX2ZDkd1dBmnI91f6nOJHUEj+F+ClWxE5WuHqKr3UMNhMglP/n+R/12a HjxYW5j1ydppTbUHG2UXudseymlLdpMMbww9pgpVuLLfP1MRXg8v4mefR5Yrs8ZaTE1Y YQ2vMbcbBnfhoo70uCR5AIw5/pUuayFNTaP3IhZ70JQqY1k+rmUx1eG+YUrk9x/7kCWp XxqVOxu4MDbN5eGT4KrdxMvd3vtEhAo00gf1OUb2i21BZRx78v5Ycs6jQvb8HV3GyNvZ PXVkJIiStKQZnuOK3UCrxW0lDNKDyCay8jyW0XTRPB2D4pxbZipuEOv4ubdCW6+ey7jh /NiQ== 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=9yGAtD8MO98L8FIdXFQsbtcFGSerzLG2uWimzeQRoWI=; b=rFfERfwYyVL5COGfWCchF0k3+ShNLtDaAtp4q5fj5Yxy973OH1pg77ygdI0g7uzQNs w5RBoU/2rIk6Cj/wZRTI7Pw1zcaWOpC0AoP1YZt0TVZVvcQZKsvR205SW4yCrTyn3BFb MnsWfGVxXfm4ZD3Z/ZDGuULCdRSbpSsjjTvynOMAVi3v0MpKRBqsuhTzqLMkH0mG1md1 rtN/VvGFwe5F5yRS3Xoe9+5dRBYLFH2Tk+7JtzG5vC3g98pdxJLFRFa4imDI+nhFNrUM A5y0Uap4+YpCZ5rwEMjYeb488m9C9/TYdmuLJeuaCYCkaz1OI8KKk0JVeCDop8qLNKVY 93Cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=e8HN4St9; 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=gmail.com Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id v2si5621950edc.50.2018.01.28.08.27.29; Sun, 28 Jan 2018 08:27:29 -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=@gmail.com header.s=20161025 header.b=e8HN4St9; 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=gmail.com Received: by lists.denx.de (Postfix, from userid 105) id 3DFAEC22042; Sun, 28 Jan 2018 16:26:43 +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_NONE, 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 660A0C2200C; Sun, 28 Jan 2018 16:25:47 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id C5EECC2200C; Sun, 28 Jan 2018 16:25:34 +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 9DA90C21FE3 for ; Sun, 28 Jan 2018 16:25:30 +0000 (UTC) Received: by mail-pg0-f65.google.com with SMTP id m136so2590380pga.12 for ; Sun, 28 Jan 2018 08:25:30 -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=cK4H2Bl+nZ4dxFEzEKu9+GcAX03Pg0duHFwpdGxL+sg=; b=e8HN4St9YU5WtpeSaJlZloJ4W5xlapPZcyRu9ZUSHT8Wi41rq8VC/FgnHqULkqHVGn 2OsSYo6661eckW9AK/dGcpKWTd6AHMktovgjbz2arBiVLR0kTZD1ZCEpBphnknRXFksi XF12IeW9pEI/HdYg/TRYDZ0NJgLLu/eeUvW40T/ZfIDNhzMwftgWDz3eHBFcVVx9snOC JKjlhXMmorBAd7g4ja78EVRmPc8Jmt+psndn41T/rSITexkmS2GK268YhGT/PPdsXVP6 s7LlgTWjgSrnNJSn17f+AtswyzHK4VAPiB7PX6/FxwNyMUHALggUGAOd1jHqYEprwgdh SDWQ== 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=cK4H2Bl+nZ4dxFEzEKu9+GcAX03Pg0duHFwpdGxL+sg=; b=PdkCRUDE9hpXbfgIDNFjdWCqKbtwtaG7IC+FgWicckDhJeLRqK+lZs+6OrUAb9QiQ/ WuQkKN6SUhGz+q+Z4dfvtFQZQ4EIutBznd/o4VwrJ/+3FPz7TphfZSy/6s9ga/I53YjU kzc7hHgZDxkM/jud6SeWZ5bZO5JdYInsBSF9j9SJE/m8BkvOeZaqYBe8AEM0css01bGM 41Z/mYfkQCL52SUZD1AWp5eYLZGPMGSyL7bp+PtHKrw/uYp/vm8prh9PNUmTlp0yNatB R8VnrVEXGxKwLEu/fcweDEUequCUCo2YqIhc/gzfrPBe50LWu1x8nv1OxcrhAdxBcxrI 2t4A== X-Gm-Message-State: AKwxyteDRMVJb0qT7R/wl/JNncJMkr5jyMqVQNvXlX16pgju4zTjzdWG xu3itCqQ+9mJq2Pc6j9BaQkCW0Ke X-Received: by 10.98.150.213 with SMTP id s82mr24761212pfk.10.1517156728982; Sun, 28 Jan 2018 08:25:28 -0800 (PST) Received: from localhost.localdomain ([115.97.187.51]) by smtp.gmail.com with ESMTPSA id y79sm26075776pfb.177.2018.01.28.08.25.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 28 Jan 2018 08:25:28 -0800 (PST) From: Jagan Teki X-Google-Original-From: Jagan Teki To: u-boot@lists.denx.de Date: Sun, 28 Jan 2018 21:49:28 +0530 Message-Id: <1517156391-11353-8-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 Subject: [U-Boot] [PATCH v3 07/30] 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" From: Jun Nie Set different base address per host mode or peripheral mode. Phy configuration also depends on this address. Signed-off-by: Jun Nie Reviewed-by: Jagan Teki [jagan: remove 8/8] from commit header] Signed-off-by: Jagan Teki --- 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