From patchwork Wed Jul 24 06:01:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 814134 Delivered-To: patch@linaro.org Received: by 2002:adf:f288:0:b0:367:895a:4699 with SMTP id k8csp2618162wro; Tue, 23 Jul 2024 23:05:43 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX0tu1xFEUJ8DoyqUJrSKAcHfkoQtBuFMlCCEFer/9zncqyac98a3+gIEMzBMA5UtN++aKA+dAA/aKps2f+y5At X-Google-Smtp-Source: AGHT+IH9knl63Hwuq9zOVcPpTdmkOBtpztTZZ/mUGyH8dA23kv89YHD6Fvf/O7AcPxNoLecL5T0B X-Received: by 2002:a5d:64a7:0:b0:368:665a:4c64 with SMTP id ffacd0b85a97d-369f5b0ec72mr866999f8f.5.1721801143312; Tue, 23 Jul 2024 23:05:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1721801143; cv=none; d=google.com; s=arc-20160816; b=pK/d997NgJTxeZMQmy8iRJfP3lUpal9y1nGQNbnht1bhhd5GcwwAUpY5XEW8TUoMGE vmCB0dDDCJY+DlIl3S3AfC3VYtH5ljF0no/3vwq4iCN6upYqOzuvCfreyiShmAdWzCBn J9vlJUX8uE2WD9Rk5MukY0hBYczq25PEjvnl4NJPTh+QXDu9PSJYciuzA+KvaI0BIsni M4PVSOO5ugRV7Nw9kF63qQpQ9cdtGsifQfUAI3JKj9TZjgsGrGWfntRNC+TbyxqdAAMZ cUMLA/u4hyd6JSuA29MEkazIKVSZCLA390UTM3FDdrCcxnFGGueJ0W/hyBiRIBEyp58o cueg== 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=kXk+W+qM3ySXhKND1MquL+XRYX1S9G6N0+faprOjilA=; fh=eimiGswTlodK8yi2DcDfSicmKwvq5bxKQKpD+SkkTNY=; b=G/K3ksjK/FYD4p42zMPTf940yNXcJ4uaLwgqwXWEbmxHUO/epp8sZQWi9E6/wfQwYb oCDcvpH0rvbXCRc3eVR8Z0zWcmF+zvfnNuYlQVTXPMH3OP+vIFHrWYftV5TGG0y06usi lkOJHKtz6Elo7PCa/gTqrZ/u2gZ/UwsF7M9FAlKPUHc8k9k9YdnGhqChPyDHvH2IvUm1 kKW1I+fZdFNzSG1bpWJs53l9VCKhgdg6JgXAxY2a2Ay5CK1sxlfu1kf4Iri7fdR9GPIg dKc4BPj9vMFOcvCv+DxxxYPfHLmPjqLZTmF1yK7K9DZu2ipm9BmNZUxPjcuK+ZSmVB5O 8HfQ==; 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 ffacd0b85a97d-369e3834acasi1314925f8f.874.2024.07.23.23.05.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jul 2024 23:05:43 -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 F0A20888A2; Wed, 24 Jul 2024 08:03:41 +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 415FF888BE; Wed, 24 Jul 2024 08:03:41 +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.9 required=5.0 tests=BAYES_00, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, SPF_HELO_NONE,T_SPF_TEMPERROR autolearn=ham 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 DC1B1888AA for ; Wed, 24 Jul 2024 08:03:34 +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 D1E5C1476; Tue, 23 Jul 2024 23:03:59 -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 BF34B3F766; Tue, 23 Jul 2024 23:03:29 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Heinrich Schuchardt , Simon Glass , Marek Vasut , Mark Kettenis , Michal Simek , Patrick DELAUNAY , Patrice CHOTARD , Huan Wang , Angelo Dureghello , Daniel Schwierzeck , Thomas Chou , Rick Chen , Max Filippov , Sughosh Ganu Subject: [PATCH 10/40] lmb: use the BIT macro for lmb flags Date: Wed, 24 Jul 2024 11:31:54 +0530 Message-Id: <20240724060224.3071065-11-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240724060224.3071065-1-sughosh.ganu@linaro.org> References: <20240724060224.3071065-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: Ilias Apalodimas --- Changes since rfc: None include/lmb.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/lmb.h b/include/lmb.h index 7b87181b9e..a1de18c3cb 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 = BIT(0), + LMB_NOMAP = BIT(1), }; /**