From patchwork Wed Aug 14 10:59:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 819108 Delivered-To: patch@linaro.org Received: by 2002:adf:cd01:0:b0:367:895a:4699 with SMTP id w1csp644559wrm; Wed, 14 Aug 2024 04:01:29 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVkGGbCkhpIf81sEjFmE27IdLk9tyoDLZedn4luJ+Oi2TdVqBoEBK/jwkedzzkRj/lbjouqaawakQAvUIQ5Dpf9 X-Google-Smtp-Source: AGHT+IETNVOBIbMH5VsQ820QdbfNg4dT3Emqi/5Dlu4vuQs5AUkUf2Fe0+UpRnQKHp0LLbksg+dB X-Received: by 2002:a05:6512:230d:b0:52e:7f18:176b with SMTP id 2adb3069b0e04-532eda8e62cmr1878211e87.11.1723633288932; Wed, 14 Aug 2024 04:01:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1723633288; cv=none; d=google.com; s=arc-20160816; b=RRGXboJuD9WRSBZ4Sadxu8vVOYSMLuOIXH4kQMA9QPhtbisY2vlcASQyWIBd1BU1wV V/RODOiEK7fbzw/a0FgTvCzofCeuXfCRe+0jJFAr73OEwSz9HMGxw8BX9MoL9JnmXIBa aKVkGHUlemEMQmumuwJTC+DTVESmY11V3q2aml7x8oll6zIWYEtdqTtU60XlO7PP0R9I QaxCkcHOvTOS14+pv5B/X31LSDuErATgRFMUeR6QNF/sTILn1azN2WK4YjeHXSYMKOJi Ojl+PMPmShaRrdJUbzHXTU8W3Vup6MbFVklhCA1BZS4dhYe8NfEgD3HLwtHpDrpJD/TF JhzA== 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=yRPdCRY/Vnp97+NxGW65qlJo3zxoE4j2iOqnPorGZg8=; fh=w4WyT9xL7ErtT1TeetrD/m0Y0mAgjnERgxacGUpGjSg=; b=Zsky4kFu0p5+wdhU90tMYS046MAn6EbDlySMjfrJMXXjYI6j5kAdSaprdVew1JkKEL iKQVIBSXwEvCkBdR8BKcK2srqnSyHH/akPXV1Cry3QGsmOGv/GEZ4A+bFsdJPdwtcFCj YRSUyAID+N+7EF4rwqTJorBX/n3IDgQPlw+b1hj5ZNOUdoDe5b+Gw4tH67aU9mi7XxJ3 KhmXh+1SqvVai/aJ0KKhhHhMd5jMHKqrhLWZUt+WA5F36FCevq47yHk02XBZPXA88KQK A3XokY+3qaeVA5IGsSM4EyLWL13QtK5qSRTjMgzgwpM8thv5USKYlXkj8Ry2m190DpO6 vLrw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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. [85.214.62.61]) by mx.google.com with ESMTPS id a640c23a62f3a-a80f418c051si190776766b.892.2024.08.14.04.01.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Aug 2024 04:01:28 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 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 12201889C9; Wed, 14 Aug 2024 13:01:00 +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 68CF487D2F; Wed, 14 Aug 2024 13:00:59 +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 70DE1889C9 for ; Wed, 14 Aug 2024 13:00:57 +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 D4A61DA7; Wed, 14 Aug 2024 04:01:22 -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 611953F58B; Wed, 14 Aug 2024 04:00:52 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Ilias Apalodimas , Heinrich Schuchardt , Simon Glass , Marek Vasut , Tom Rini , Mark Kettenis , Michal Simek , Patrick DELAUNAY , Patrice CHOTARD , Huan Wang , Angelo Dureghello , Daniel Schwierzeck , Thomas Chou , Rick Chen , Max Filippov , Sughosh Ganu Subject: [PATCH v2 05/32] lmb: use the BIT macro for lmb flags Date: Wed, 14 Aug 2024 16:29:42 +0530 Message-Id: <20240814110009.45310-6-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240814110009.45310-1-sughosh.ganu@linaro.org> References: <20240814110009.45310-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 Reviewed-by: Ilias Apalodimas --- Changes since V1: 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), }; /**