From patchwork Fri Jan 5 16:15:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Nie X-Patchwork-Id: 123543 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp1003040qgn; Fri, 5 Jan 2018 08:19:38 -0800 (PST) X-Google-Smtp-Source: ACJfBot0Qj3uDoo0PdOzvWgdRbwheu9HZCh/RkqQgcUP6TYcfAiOHt1KqtMVpzE/tWccCqjwhAnl X-Received: by 10.80.241.152 with SMTP id x24mr5103338edl.117.1515169177983; Fri, 05 Jan 2018 08:19:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515169177; cv=none; d=google.com; s=arc-20160816; b=JtZCUMpH12RedCwi4nIr3PdAMmfHrZwB1KWaEzO7ZoOyYF8ziXOlfmWT7+eOdoHnZy dZBB0JkXDxfJWb8EgBORBUjeyb70qg/YG2mjkaG+unAt/pezSk/4WkLT1POk88kpPAHA nV1zaMZo7vgUnkfql1DqVHiuVlf4UgFCzOh5GCsh8HUJtQaR8DK3A8XN2M/oi97Qn60E iX6LCGNNzQsVHlcgzZefl58W8p2sgH8jsV7vBBclXVYwRYK4vl/FXk5x6mbzhGxrtgtE MlFEYrdpKwhRQl15UVQi3sosZZjwbIkI1ZaGJEMnLEHFpnW+RrFv+NbfowUttSgh7YGM MhwA== 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=DWhNJ+hisTl7Ja3CGm9w13G3efq3wXpy4oHDIheDqZ8=; b=u8xYBmw4jzr1i0BbkDdNMB1HVJ6kSJo34sgXwH325H1IrQ3WW/Y0ZydPNCZf0L+d9s OSJlWknDKj/WVHSRXoYAPd2Zws1IaVTWIdVLZ+hvjkWIQ07jUKf1SfCoB9ZGuoZfLdIk 8rRTvvmC5SHm6FSTeR0rbgkw1Qu9rG5l3qgEc0hiWeO5WQQTPlSTlWjISkwDN2g9ZvQ1 s0djhqvdd7+bu6SRjFBqZqdjKEAnEzsneZIKaapdA+vb/a/lvcnhk4T7uy6wbAKYX3rM 8tufwVAA5AzerixP/OSTqsrIOEx0Ck0mLIOzx+SarTXgb3drygyzV35uTS/BaV3kpFKQ rcAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=JG6deeBd; 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 r10si3421397edd.337.2018.01.05.08.19.37; Fri, 05 Jan 2018 08:19:37 -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=JG6deeBd; 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 63E9AC21EC2; Fri, 5 Jan 2018 16:18:24 +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 61FFEC21E99; Fri, 5 Jan 2018 16:18:22 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 43788C21EBD; Fri, 5 Jan 2018 16:16:52 +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 64107C21EA8 for ; Fri, 5 Jan 2018 16:16:48 +0000 (UTC) Received: by mail-pl0-f67.google.com with SMTP id bd8so3284819plb.9 for ; Fri, 05 Jan 2018 08:16:48 -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=whAmsD2VbT9QwtQw5L2B9UNJrUn77rqr7YfuioOpM4s=; b=JG6deeBdEI+rXYSwP5oDP7Tn1GShy/EFKFeJbCiIJFl9D5SxRDe9BXUIik0VP/33gt xJwCykS6MFIXso3zSAeciwBmJZSgjt2cqpSa8d5TaMWA+SxJyNp7aWuQahU8M/CmNiwO afat7NDr044aqEdAjmzaScJbSP2fVewoY1PG8= 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=whAmsD2VbT9QwtQw5L2B9UNJrUn77rqr7YfuioOpM4s=; b=mQ5KDFlNGWuOGmiZo3eFZhRpUYz3tUFsp1J5StvYmbl7ECoZvMtK8znWUKWd4KwGa1 XVATUV8J/X9hnvkUOMYb+YP3pwtzW33ro+yK/KARdH/nKeu/Nlb2P9n9PkCqUxrRkbCD QIUuR3XWrNCk3K5huta84uP7B9jnQeVcZB98zQZsGp/j4gfiqTN4TsWtXnPe1SHIg31c DsywfkvGGH/GJL1CM5fz4Z0S6+tAXiHoXbB3JervdqAaAnKYpVSQIXRRfx4q5lawjKDt axt2dH2AfH5L+L7CZlgPbYSXVP6kA0VnNEOH1O14NPjLXnULRA21LUTKSRXo5kxHQ5VV 8OUg== X-Gm-Message-State: AKGB3mIRQAtSh2voVgyr57rHBOfw6hQs3kRPS/rMa7oAtOLGoPZ2TgJv SgrR2Cx+wcxGw5QKqMQsyrItig== X-Received: by 10.84.140.107 with SMTP id 98mr3502838pls.91.1515169007109; Fri, 05 Jan 2018 08:16:47 -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.16.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 05 Jan 2018 08:16:45 -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:15:56 +0800 Message-Id: <1515168960-18960-5-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] 4/8] 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..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