From patchwork Mon Aug 26 11:59:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 822439 Delivered-To: patch@linaro.org Received: by 2002:adf:e044:0:b0:367:895a:4699 with SMTP id w4csp1476349wrh; Mon, 26 Aug 2024 05:00:54 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCU6hKE1pJq5JQ3XkDeeoqeYgipAIa078W1do1LQunVD+e8r1jEE2tlnesNpiKdpQy1t/qYdZA==@linaro.org X-Google-Smtp-Source: AGHT+IEEFhOHs10YKT08e7+kGo2AmpJsqLlQVV6FyiTj0p2KG88X0t6shQU/Ne8V1K0vDVnnV/xr X-Received: by 2002:a05:6512:1196:b0:530:b760:92b3 with SMTP id 2adb3069b0e04-53438785085mr6982095e87.31.1724673654289; Mon, 26 Aug 2024 05:00:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1724673654; cv=none; d=google.com; s=arc-20240605; b=IXIAoB2nDlDb57qkHBhn35Dgyg4XyO1L4EbN6Chm67pJe0h79vOeMkQP7+2+H2YB3p GJT83iWthNJoCNOpclSQcpj1kufIZGvl94VEJvO2P+VE4ASuvLYppHNYKrqlOqwzxQs4 P135ghiotBUtI15gUP44AmkITSAGD77zWRZ/UJtYimhfGFPtAUk/zNGOM23lOkO9EVfv lm66fIAkQkVVBjHjkPDjRObZ+u8pU33bja0+ID8CufFk2Nfbh97eH/Ncw+fgyrPrWlV3 jGUitT8T5zPMAmzzStRLVSp+OxcTdHrGqg5T8xWAAiuyJo4rrc2QCmHSMt/aaUNf1O6z dSdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=uQx9d1siUExSOqO2OpEGp67mEvV5vuTiZ0miv5Teofw=; fh=8IbOOFAUJYCfGYrzM0jWqtoOP7AaZuPOmdHZ5mvNk1Q=; b=D9lTZ5rOKtUBSVI0m4D6+5yZ/nkUSf2Gt7W/mW4pU9o7gQ16tT/kkeGu57bNIq/A7c C7AamHvFAZ2sUZkYHuVHJ77hhujbegayeK/pSwqaKyfM7ekd8ofggDCun0hOyDML86VZ tymC3jabBtWoc+spAMqAQtrtob1xQh1hqQUXVg6JwisDI5MlXzW+OAcbPJtoqcR+SO90 o2GSzkDIJEspo43IHz3cILO2CLUi8k4n0T+DDE1pRQR2pLPVd07ToigAROoeg8KBde0Y aUx0mWzjAGE0RxWvq7WQvK3sLUSOu7i0Zfrh/nYpRk8dppofyfY6oA1ygezlirkLmEdE UOUQ==; 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 5b1f17b1804b1-42abefdb108si57152365e9.149.2024.08.26.05.00.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2024 05:00:54 -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 EAEF288A2E; Mon, 26 Aug 2024 14:00:25 +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 EB53788A41; Mon, 26 Aug 2024 14:00:24 +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 E89CE88481 for ; Mon, 26 Aug 2024 14:00:22 +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 94C2DDA7; Mon, 26 Aug 2024 05:00:48 -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 B1B5B3F762; Mon, 26 Aug 2024 05:00:18 -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 , =?utf-8?q?Marek_Beh=C3=BAn?= , Sughosh Ganu Subject: [PATCH v4 04/27] lmb: use the BIT macro for lmb flags Date: Mon, 26 Aug 2024 17:29:17 +0530 Message-Id: <20240826115940.3233167-5-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240826115940.3233167-1-sughosh.ganu@linaro.org> References: <20240826115940.3233167-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 V3: None 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), }; /**