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