From patchwork Fri Jan 5 07:36:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Nie X-Patchwork-Id: 123478 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp492313qgn; Thu, 4 Jan 2018 23:39:17 -0800 (PST) X-Google-Smtp-Source: ACJfBotQhYsRhR2h6MzjUvPlZYt4aJg/qA2aXCi0NS/RJ/Cwb4Pddp2HXY0NgXfZR2fpclTXDywy X-Received: by 10.80.204.212 with SMTP id b20mr2966009edj.201.1515137957882; Thu, 04 Jan 2018 23:39:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515137957; cv=none; d=google.com; s=arc-20160816; b=NOfZ0Ck6ntuReeTas0wbODl6euJ+uVl+QC7axfaimrIeFqj37KcvHMMyJu+Z8GfQwj WMsI6iYZhTnI105VFXJ4jv/f0/4JT7rwQACVfNuv27cylr+/npWo1nunP9OQm10KA7Fa U2xYxjL0FapQWclKam0xl0GmrZP8ABaZWSGVuxhmB0MwmAKY+06aN2e6bnJ7gtGhMQrQ jpGqkExc02zKTHPun8C+97USMeCGTMeWFw6hVBKNLzTR4fDLjRObrblMJ7uZes49Udhh Nry1jcE3hjT4vqDbXhA+Y7zhFeOEFcgWHrVhqbaUJI8bHSK4DfUGtbT2o4UdE+gvgixt SupQ== 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=V2u7aUpfzS264E/+mFDyjFy/vKaL/cinFyStEq/lOsQ=; b=KgyjSkEi4z+35WIefKw5rpcKk7UdTZT/0OmXR6uDqzdlA6c0A7PqWlY+vRhU9Isp8W 2jUAVqfjl/47F/+49kC+Q3ilHR+2wsIs7hdYCN3/Cg3p/SbyIhKZenymCbe9xIWF3o9D kG5CKwOgPQ5M8UkvXLjdeyrgeMZXhDGWGffCaDToQTGX5SLUQWmUKDsCvFzCXtsZPUlZ 90ay9WVC8fqOwkgoCK4bW7C6I4+v7OrAmGGj/dfzUGzfpAmwPOXVIdtVwyMzzg3jtNgt ayJJvWEj+HU4D1EZGh8TjS6stwTjGxCk4eCEigN6Uv3E6Zkf0YYS9yIgCEbUh9/x6nX0 2o+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Wlj7Ri+G; 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 f3si1500076edd.79.2018.01.04.23.39.17; Thu, 04 Jan 2018 23:39:17 -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=Wlj7Ri+G; 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 77188C21C51; Fri, 5 Jan 2018 07:38:56 +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_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 633A0C21E28; Fri, 5 Jan 2018 07:38:14 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 49BBBC21DDE; Fri, 5 Jan 2018 07:37:54 +0000 (UTC) Received: from mail-pl0-f68.google.com (mail-pl0-f68.google.com [209.85.160.68]) by lists.denx.de (Postfix) with ESMTPS id 6F693C21E0F for ; Fri, 5 Jan 2018 07:37:50 +0000 (UTC) Received: by mail-pl0-f68.google.com with SMTP id bi12so2636849plb.6 for ; Thu, 04 Jan 2018 23:37:50 -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=dQ152zcWCwRotT8+zvQ3j3TSDH8Z/EH6+ZDQsInBotE=; b=Wlj7Ri+GiyeZ1EHcgW2Qni8zWIfkbL1p2ltx7UNZOgZcvbqf4VCXk5TDXYyy/QkDjk Ju+aZMM7teDYvplq4SSE8j8ax+Lb4SCFFwe5cSV6i/8WS4LwQT5asQhjWQhQwDF28DaO l4mcVZRQby+qtd1ltPwohIgMalXUeOeF9Xz+s= 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=dQ152zcWCwRotT8+zvQ3j3TSDH8Z/EH6+ZDQsInBotE=; b=JL+Sc1efWDZ0yk/mNwwb6L2mZsGpzDIbPQBqQjQaUHH0B3sYrsK4VAUncuihjNHlmT rk1uOcUY7b5+NVYTNRMQaH2MnwMJmbXRVe0lpXjbVuRYKfmsKTsTfIXqX8TybJlQk4S3 Dm5NPtq1b1xkdBAY20qxYN+GHd/JrmC3kW7galKpFMnFXSW8T1Nn5G3x05Mqgqe1ZX2y rPr96hlQC3pdY80HpIeQseK1CR8VGWTsdlFlht7pIm5+bz9EFF5eIpyHbmdIwbR4v9Yv 0iPGF5Gp3R0oFuffefJGFSq3QFd0z77ejgi9ech5SRB0SJpAjxB3OvIUZyeVxfeKRgyL hSLg== X-Gm-Message-State: AKGB3mJ6zMgqW4v+DypQ1fl4r9ZC1kxL7zVgmQx/sQ3jzC17tUEQ3jPv EcmgeFMLAFuAa903CE9Qc+Tg6g== X-Received: by 10.84.241.138 with SMTP id b10mr2258893pll.435.1515137869170; Thu, 04 Jan 2018 23:37:49 -0800 (PST) Received: from localhost.localdomain ([45.56.153.113]) by smtp.gmail.com with ESMTPSA id b9sm9553789pgs.3.2018.01.04.23.37.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 04 Jan 2018 23:37:48 -0800 (PST) From: Jun Nie To: wens@csie.org, maxime.ripard@free-electrons.com, hdegoede@redhat.com Date: Fri, 5 Jan 2018 15:36:59 +0800 Message-Id: <1515137821-30583-5-git-send-email-jun.nie@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1515137821-30583-1-git-send-email-jun.nie@linaro.org> References: <1515137821-30583-1-git-send-email-jun.nie@linaro.org> Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH 4/6] 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" 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 --- 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..3e51003 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_SUN8I_H3) /* allwinner saves a reg, and we need to hardcode this */ return 0xde; #else