From patchwork Wed Aug 21 10:58:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 820958 Delivered-To: patch@linaro.org Received: by 2002:adf:e98a:0:b0:367:895a:4699 with SMTP id h10csp639454wrm; Wed, 21 Aug 2024 04:00:21 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXBT61hCcXc6+QB6QwZK0i83YBxrnfRcxCLowlTGD+AI3hVqYsWSGKPmgQw6fMcEvcodlAn3g==@linaro.org X-Google-Smtp-Source: AGHT+IG4SODI9bLAKidunqNJy21C9QLkYKtF5Q0qM72PA2jTNwXv0jD4cuZk6vd5Wyp8Ql3tG0JL X-Received: by 2002:a17:906:fe43:b0:a7a:a2b7:93fe with SMTP id a640c23a62f3a-a866f8f469emr115258866b.47.1724238021800; Wed, 21 Aug 2024 04:00:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1724238021; cv=none; d=google.com; s=arc-20160816; b=wEVpEU0dX3a75+TG17eXPaK8BfyxQM1W+DItyrNFrSc3bjjPRtPdtY7OWCTHsSdjyb 4jbO60M//VrlCewumUojKVHRJ0pZFG9hgjwvvqmG539xKzLuciOXNc8Mowl55g5i0lT0 H0qjSo7tVNxdkBVlRlpGYJpsnGQ/N7pvu3oatj6EHkPZ72qQfluqjg7nPW4L6MIngYXR 7ya67cvoaZ92v0EbZ0JzoInGYHiifrtqh77k1mVg0jpmqK70/Eh+q/07ycXGVbX7SWWk ymL3qrhLUI+RMuaDfSaQnc/SMRgKU0U/Sr7+LURH4KR6lSuo4GinmAjC2ubpSVlFPvkw dUqg== 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=8VSQVtafNZeH5cmP7DRvYB+P5rNfstd2kHOymxkN9MU=; fh=pnMZGD6unUPoMrkOwzXlkuYg+kVwGnSNRCTlQoWqjVc=; b=0IdBJKRWfFAT5bx2pkRDUpb2zk0NUMuxeEFfWjer5d2I1Fb3/xp6NypUQD1QVNItja rBYhiaKPvEzJ0EwCc75bm0PdkTJD9hi7I7CayNpCBprk2GJ1YyVdHoRFpPrO6clBrMvf dh6IFeIePY1H3jBp0uZ2Gb1ZdmM5Op+QZhEJb3fGQqoo/QDVbyKMKuHGFUEF4awaqdWi Jj0Wo4SOKVhi5U6o2VCDQaxkhDsiJU5TANk7ZqJ5Mhakv+IaZKjo2uA/o/pQ/Kyb9aV2 +mH0HYyuKmz6a6a3MLm2AkJ5o4EB09OeCiPxw0xA5CDA+4kJxiRt7UgXaSbkCkSgsQZp mu2g==; 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-a83838c7b2dsi822815666b.16.2024.08.21.04.00.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Aug 2024 04:00:21 -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 557A588DAC; Wed, 21 Aug 2024 12:59:32 +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 739D088C6D; Wed, 21 Aug 2024 12:59:31 +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 7921A88D95 for ; Wed, 21 Aug 2024 12:59:29 +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 0C94CDA7; Wed, 21 Aug 2024 03:59:55 -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 9F9BA3F73B; Wed, 21 Aug 2024 03:59:25 -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 08/27] lmb: config: add lmb config symbols for SPL Date: Wed, 21 Aug 2024 16:28:20 +0530 Message-Id: <20240821105839.2870293-9-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 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 --- Changes since V2: 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"