From patchwork Tue Oct 29 12:08:44 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudius Heine X-Patchwork-Id: 1186079 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 (no SPF record) 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=none (p=none dis=none) header.from=denx.de Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 472Vkz2Sdcz9sPT for ; Tue, 29 Oct 2019 23:09:47 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 17396C21C27; Tue, 29 Oct 2019 12:09:21 +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=none 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 F0E18C21DB3; Tue, 29 Oct 2019 12:09:19 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 94422C21DA2; Tue, 29 Oct 2019 12:09:16 +0000 (UTC) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by lists.denx.de (Postfix) with ESMTPS id C184AC21D83 for ; Tue, 29 Oct 2019 12:09:15 +0000 (UTC) Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 472VkM4Rf9z1rY6H; Tue, 29 Oct 2019 13:09:15 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 472VkM49jQz1qqkp; Tue, 29 Oct 2019 13:09:15 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id VGh6zaOpo9Nz; Tue, 29 Oct 2019 13:09:14 +0100 (CET) X-Auth-Info: j44r0T//Jr/IJhnEo0tu+hlL/Izao7p44vPCAyHVCIM= Received: from mail-internal.denx.de (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 29 Oct 2019 13:09:14 +0100 (CET) Received: from pollux.denx.de (pollux [192.168.1.1]) by mail-internal.denx.de (Postfix) with ESMTP id 2133018362C; Tue, 29 Oct 2019 13:08:59 +0100 (CET) Received: by pollux.denx.de (Postfix, from userid 569) id 1EBFA1A009F; Tue, 29 Oct 2019 13:08:59 +0100 (CET) From: Claudius Heine To: Date: Tue, 29 Oct 2019 13:08:44 +0100 Message-Id: <20191029120847.3581884-2-ch@denx.de> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191029120847.3581884-1-ch@denx.de> References: <20191029120847.3581884-1-ch@denx.de> MIME-Version: 1.0 Cc: Albert Aribaud , open list , "NXP i.MX U-Boot Team" Subject: [U-Boot] [PATCH v3 RESEND 2/2] ARM: imx: Use IMX6_SRC_GPR10_BMODE instead of magic number 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" Signed-off-by: Claudius Heine --- arch/arm/mach-imx/init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-imx/init.c b/arch/arm/mach-imx/init.c index d18e3c740a..693b724429 100644 --- a/arch/arm/mach-imx/init.c +++ b/arch/arm/mach-imx/init.c @@ -108,9 +108,9 @@ void boot_mode_apply(unsigned cfg_val) writel(cfg_val, &psrc->gpr9); reg = readl(&psrc->gpr10); if (cfg_val) - reg |= 1 << 28; + reg |= IMX6_SRC_GPR10_BMODE; else - reg &= ~(1 << 28); + reg &= ~IMX6_SRC_GPR10_BMODE; writel(reg, &psrc->gpr10); } #endif