From patchwork Mon Apr 16 16:11:50 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jonas Mark (BT-FIR/ENG1-Grb)" X-Patchwork-Id: 898758 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=de.bosch.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=de.bosch.com header.i=@de.bosch.com header.b="XQLx/kSQ"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 40PthL66Whz9ry1 for ; Tue, 17 Apr 2018 02:12:49 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 01FD5C21E02; Mon, 16 Apr 2018 16:12:44 +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, SPF_HELO_PASS, 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 53981C21CB6; Mon, 16 Apr 2018 16:12:40 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id E2084C21BE5; Mon, 16 Apr 2018 16:12:38 +0000 (UTC) Received: from de-out1.bosch-org.com (de-out1.bosch-org.com [139.15.230.186]) by lists.denx.de (Postfix) with ESMTPS id C3A41C21D65 for ; Mon, 16 Apr 2018 16:12:37 +0000 (UTC) Received: from fe0vm1650.rbesz01.com (unknown [139.15.230.188]) by fe0vms0186.rbdmz01.com (Postfix) with ESMTPS id 40Pth545cQz1XLGPt; Mon, 16 Apr 2018 18:12:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=de.bosch.com; s=2015-01-21; t=1523895157; bh=YOScDzFpOhuqm6I7NxQqiDLHFQbEI/VXQWLTibRtLMQ=; l=10; h=From:From:Reply-To:Sender; b=XQLx/kSQVNXT3HT/cjdBlxKBsDZJttjbgG8L28bBsWPsO34uzj6QPhg9tKfSqMKPq +Z3qzPZlQtnJITOlypEHh7RIN1hnbketLf3cTmYri/yDhN8pgDNl+rzdoDOUPaym4E sp2CQwyERXZVgWhMRX4O+GYPvGRFoU0/ECRCBdoc= Received: from si0vm2082.rbesz01.com (unknown [10.58.172.176]) by fe0vm1650.rbesz01.com (Postfix) with ESMTPS id 40Pth53gpgz1C6; Mon, 16 Apr 2018 18:12:37 +0200 (CEST) X-AuditID: 0a3aad16-9c9ff70000001f9e-b5-5ad4cb7ae1d5 Received: from si0vm1949.rbesz01.com ( [10.58.173.29]) (using TLS with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by si0vm2082.rbesz01.com (SMG Outbound) with SMTP id 93.6B.08094.A7BC4DA5; Mon, 16 Apr 2018 18:12:42 +0200 (CEST) Received: from SI-HUB1001.de.bosch.com (si-hub1001.de.bosch.com [10.4.103.108]) by si0vm1949.rbesz01.com (Postfix) with ESMTPS id 40Pth526BXz6D44Ln; Mon, 16 Apr 2018 18:12:37 +0200 (CEST) Received: from luchador.grb-fir.grb.de.bosch.com (10.19.187.97) by SI-HUB1001.de.bosch.com (10.4.103.108) with Microsoft SMTP Server id 14.3.319.2; Mon, 16 Apr 2018 18:12:36 +0200 From: Mark Jonas To: Stefano Babic , Fabio Estevam , Albert Aribaud Date: Mon, 16 Apr 2018 18:11:50 +0200 Message-ID: <1523895110-19899-1-git-send-email-mark.jonas@de.bosch.com> X-Mailer: git-send-email 2.7.4 MIME-Version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LvgSsHL/2D9fxZsuyrF01C c/mG3C8S23OrstL8NY9Wu5amy26/3jy8dfl0hXvaUCo/19h/RFvr0B7e4s354K75yce3L7Re S3TsSfVkaL0PWEIwclnpuE3g/gdqWdgIKgQAAA== Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH] arm,imx6: fix PAD_CTL_SPEED_LOW constant 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: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" For most i.MX6 processors the PAD_CTL_SPEED_LOW constant is the same. Only the i.MX6 SoloLite is an exemption. So far the code did not consider that. Additionally, for a few i.MX6 processors the code used the wrong value for the constant. This patch fixes the PAD_CTL_SPEED_LOW constant for: - i.MX6 Solo [1] - i.MX6 DualLite [1] - i.MX6 Dual [2] - i.MX6 Quad [2] - i.MX6 DualPlus [3] - i.MX6 QuadPlus [3] Before, it was already correct for: - i.MX6 SoloLite [4] - i.MX6 SoloX [5] - i.MX6 UtraLite [6] - i.MX6 ULL [7] [1] https://www.nxp.com/docs/en/reference-manual/IMX6SDLRM.pdf [2] https://www.nxp.com/docs/en/reference-manual/IMX6DQRM.pdf [3] https://www.nxp.com/docs/en/reference-manual/iMX6DQPRM.pdf [4] https://www.nxp.com/docs/en/reference-manual/IMX6SLRM.pdf [5] https://www.nxp.com/docs/en/reference-manual/IMX6SXRM.pdf [6] https://www.nxp.com/docs/en/reference-manual/IMX6ULRM.pdf [7] https://www.nxp.com/docs/en/reference-manual/IMX6ULLRM.pdf Signed-off-by: Mark Jonas Reviewed-by: Heiko Schocher --- arch/arm/include/asm/mach-imx/iomux-v3.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/include/asm/mach-imx/iomux-v3.h b/arch/arm/include/asm/mach-imx/iomux-v3.h index 0c0ccf44..09094c9 100644 --- a/arch/arm/include/asm/mach-imx/iomux-v3.h +++ b/arch/arm/include/asm/mach-imx/iomux-v3.h @@ -147,10 +147,10 @@ typedef u64 iomux_v3_cfg_t; #define PAD_CTL_ODE (1 << 11) -#if defined(CONFIG_MX6SX) || defined(CONFIG_MX6UL) || defined(CONFIG_MX6ULL) -#define PAD_CTL_SPEED_LOW (0 << 6) -#else +#if defined(CONFIG_MX6SL) #define PAD_CTL_SPEED_LOW (1 << 6) +#else +#define PAD_CTL_SPEED_LOW (0 << 6) #endif #define PAD_CTL_SPEED_MED (2 << 6) #define PAD_CTL_SPEED_HIGH (3 << 6)