From patchwork Wed Aug 21 10:58:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 820955 Delivered-To: patch@linaro.org Received: by 2002:adf:e98a:0:b0:367:895a:4699 with SMTP id h10csp639219wrm; Wed, 21 Aug 2024 03:59:47 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUiFfCj9b1LUMjWRXq518yIDqwQmaqvF0c9rzTh42thKH12agduKwBDMWXswadeM/buntKV4w==@linaro.org X-Google-Smtp-Source: AGHT+IE5SEmxtSbwqON6HM4rXYj5LJZDa8fP6oelXaL9oUbpVcghi6Y4MJiyZJ69OK3w2XRPXCGh X-Received: by 2002:a05:6512:3c9c:b0:52e:d0f8:2d43 with SMTP id 2adb3069b0e04-5334856538amr1613327e87.17.1724237987036; Wed, 21 Aug 2024 03:59:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1724237987; cv=none; d=google.com; s=arc-20160816; b=sfffoGm8qLns0t0nXOyb9qG8lgGjKPTglA3yqEu78PzAewEfcAMGmuUQLeb1QH3TPQ ncLlIMiyaLXfup1AYIkqhovyxAkLgbx9xTX02exmCDtQGlFodOY0cUM9p+kidixpIQ/O JD+vmkFIBZxy6LoB5LzkSLvQz5tidA2D6jx8A9n9bZiZVeXTVR84C7wePXu2VF/pJUhE nnfVUpNWaGRyZZ7iRKbcFNCIY6QG94jKwmZDFL7QvtVdm6/DfE7xbhPgTpTlJ4PHvG3x GWDQFiokdQv7PwtIZvGMIXDw+0jadlMz5HR0Wo9OdMW7V/ejtraUXX18V6E+AvAghQm0 UqqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=qG2K1/ZXNeEMyPHHPDuhpW8i4FRU44AYPZT/X1E9sMw=; fh=pnMZGD6unUPoMrkOwzXlkuYg+kVwGnSNRCTlQoWqjVc=; b=ulOa2fRdOwulljLJeRUTOe6WXdyCU8Owj/MNxPQmOYBsXpCsS/8D5i6C6k39qAOGA+ G/nl+l65q9W1NfP4w0yq3FFkrA9XyDi8lXYzNHsKphsjl+MCjDV85olsh68WqdC8qL0/ ZmifMOfx5N5DH+n7vPmBy3Cw2heOE4Ifj4iDKHvNhAv+Gnj7+yqIDJpxysWB+44DR+V+ ZEOdM7kzqPGiRDLbRQHTk8Lk94WGamziby7y0mULA3m98pbEnJDSLBYPZZIeZ/0aoLYE 9pYfOhcu01d0bOmnUdlMZxGv37ot5XXHCeZu3KbByYb15/TcFEC2dWkgDcuHmg4KMgAE QazA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 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 phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id a640c23a62f3a-a867d695a9dsi47268666b.1016.2024.08.21.03.59.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Aug 2024 03:59:46 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 276A688C20; Wed, 21 Aug 2024 12:59:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 3272488B4C; Wed, 21 Aug 2024 12:59:15 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, SPF_HELO_NONE,SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id 4154988D88 for ; Wed, 21 Aug 2024 12:59:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sughosh.ganu@linaro.org Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C6E09DA7; Wed, 21 Aug 2024 03:59:38 -0700 (PDT) Received: from a079122.blr.arm.com (a079122.arm.com [10.162.17.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 65FE63F73B; Wed, 21 Aug 2024 03:59:09 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Simon Glass , Tom Rini , Ilias Apalodimas , Heinrich Schuchardt , Marek Vasut , Mark Kettenis , Michal Simek , Patrick DELAUNAY , Patrice CHOTARD , Sughosh Ganu Subject: [PATCH v3 04/27] lmb: use the BIT macro for lmb flags Date: Wed, 21 Aug 2024 16:28:16 +0530 Message-Id: <20240821105839.2870293-5-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240821105839.2870293-1-sughosh.ganu@linaro.org> References: <20240821105839.2870293-1-sughosh.ganu@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Use the BIT macro for assigning values to the LMB flags instead of assigning random values to them. Signed-off-by: Sughosh Ganu Reviewed-by: Simon Glass --- Changes since V2: * Use a value of 0 for LMB_NONE instead of BIT(0) include/lmb.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/lmb.h b/include/lmb.h index 7b87181b9e..3de29d42de 100644 --- a/include/lmb.h +++ b/include/lmb.h @@ -5,6 +5,7 @@ #include #include +#include /* * Logical memory blocks. @@ -18,8 +19,8 @@ * @LMB_NOMAP: don't add to mmu configuration */ enum lmb_flags { - LMB_NONE = 0x0, - LMB_NOMAP = 0x4, + LMB_NONE = 0, + LMB_NOMAP = BIT(1), }; /**