From patchwork Mon Aug 26 11:59:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 822442 Delivered-To: patch@linaro.org Received: by 2002:adf:e044:0:b0:367:895a:4699 with SMTP id w4csp1476674wrh; Mon, 26 Aug 2024 05:01:26 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXFhk5KRuhHy13U4vZ7nhZ3PIUjRyEmQMeMdJpJRAHTvLayOuy8AY9JLAjf4jFWbQ6ra9SFUQ==@linaro.org X-Google-Smtp-Source: AGHT+IE7c1FlfVpXSS9woMUJSHok6mhW+9WoTSPPFgA8B268/hAB6LJQ8Xr62ytPpExUN0k1YYQH X-Received: by 2002:a05:600c:4f47:b0:426:61e8:fb35 with SMTP id 5b1f17b1804b1-42acc8d5137mr74488875e9.4.1724673686752; Mon, 26 Aug 2024 05:01:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1724673686; cv=none; d=google.com; s=arc-20240605; b=GjXc3XE8/uPMaA9MTHq1FMX8EL25gncQBquO3pkOeYD1rEhkJeAmnkAgYWHp06aKDS H1B2PK22Mxah+tQ6CaYGtOB9M1LGRQV0D7DH47CPMsecEH9pcJmfQQgytK7JZ2BFOcHx /4022QNxvNrxN+uMTqPQ93ZSqCdyrbq4521OashB4NiNjXU054XBd09sxQnJ94WDGWh0 g29dniReyW50jmSSdQNfMWhRXLNPm+9aNkfXAXCOhDW5jIslYOJMgb1s51xJQYdAuwue 0IvXodlJv4vpj5BDfu77VzyO9XjLZSo7VLlm2eANTJwKGHCWWjD4wXfOAx1dE7hmmjDe 9uAA== 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=ziukuclh/zV/VIEMgynTR3dhQqX+Fj3QKTU4fGhvzN4=; fh=8IbOOFAUJYCfGYrzM0jWqtoOP7AaZuPOmdHZ5mvNk1Q=; b=HwqTAdFRUngELcwayytsUbO3IHML7XLJdMUiah9r+q1vjNRA6083qjpTNftq5WH5+P ysx9fJXmGQlVntZccoG7850b44Osd8TBNhjP4sDNQ6AU7qplctbZToAZaEtOx1S8j/aK jLXbyBYX3p1V9P2UGmKw+uK/b/y7LUcn7Atg//PWE/odW8sHXtLeFesXtg93C4EiAx1F TF4DF0C5azuQ1q45JEPokCB69Tn9SJ4rx+y9RBUyP3eCWDIQt9i0GiNJe3lrcdsliWvp N6zFha5uV652tAcUJ0mWY/hnZG2qZoJpmfigU49kzkjYX7AeDDrucln3ui6CViwLDp2b kHkA==; 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 5b1f17b1804b1-42ac517f9d0si46425355e9.147.2024.08.26.05.01.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2024 05:01:26 -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 7684F88A53; Mon, 26 Aug 2024 14:00:43 +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 9C42B88A53; Mon, 26 Aug 2024 14:00:42 +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 857F788A77 for ; Mon, 26 Aug 2024 14:00:40 +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 3163FDA7; Mon, 26 Aug 2024 05:01:06 -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 4E5F13F762; Mon, 26 Aug 2024 05:00:36 -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 08/27] lmb: config: add lmb config symbols for SPL Date: Mon, 26 Aug 2024 17:29:21 +0530 Message-Id: <20240826115940.3233167-9-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 Add separate config symbols for enabling the LMB module for the SPL phase. The LMB module implementation now relies on alloced list data structure which requires heap area to be present. Add specific config symbol for the SPL phase of U-Boot so that this can be enabled on platforms which support a heap in SPL. Signed-off-by: Sughosh Ganu Reviewed-by: Simon Glass Reviewed-by: Ilias Apalodimas --- Changes since V3: None lib/Kconfig | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/Kconfig b/lib/Kconfig index f8ac8daad3..6a9338390a 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -1103,7 +1103,17 @@ config LMB default y if ARC || ARM || M68K || MICROBLAZE || MIPS || \ NIOS2 || PPC || RISCV || SANDBOX || SH || X86 || XTENSA help - Support the library logical memory blocks. + Support the library logical memory blocks. This will require + a malloc() implementation for defining the data structures + needed for maintaining the LMB memory map. + +config SPL_LMB + bool "Enable LMB module for SPL" + depends on SPL && SPL_FRAMEWORK && SPL_SYS_MALLOC + help + Enable support for Logical Memory Block library routines in + SPL. This will require a malloc() implementation for defining + the data structures needed for maintaining the LMB memory map. config PHANDLE_CHECK_SEQ bool "Enable phandle check while getting sequence number"