public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [PATCH] lmb: Rework the LMB_ARCH_MEM_MAP symbol
Date: Mon, 23 Mar 2026 13:52:45 -0600	[thread overview]
Message-ID: <20260323195245.2363420-1-trini@konsulko.com> (raw)

This symbol should not be enabled by the user directly but rather
selected when implemented in a given platform. This converts all of the
current users of this feature and hides the symbol.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
 arch/Kconfig                              | 1 +
 arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 1 +
 lib/Kconfig                               | 3 +--
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/Kconfig b/arch/Kconfig
index 4c4c070df87b..e28e4c4bce73 100644
--- a/arch/Kconfig
+++ b/arch/Kconfig
@@ -306,6 +306,7 @@ config X86
 	select DM
 	select HAVE_ARCH_IOMAP
 	select HAVE_PRIVATE_LIBGCC
+	select LMB_ARCH_MEM_MAP
 	select OF_CONTROL
 	select PCI
 	select SUPPORT_ACPI
diff --git a/arch/arm/cpu/armv8/fsl-layerscape/Kconfig b/arch/arm/cpu/armv8/fsl-layerscape/Kconfig
index 20883fe68250..4c5b38e3b659 100644
--- a/arch/arm/cpu/armv8/fsl-layerscape/Kconfig
+++ b/arch/arm/cpu/armv8/fsl-layerscape/Kconfig
@@ -382,6 +382,7 @@ menu "Layerscape architecture"
 config FSL_LAYERSCAPE
 	bool
 	select ARM_SMCCC
+	select LMB_ARCH_MEM_MAP
 
 config HAS_FEATURE_GIC64K_ALIGN
 	bool
diff --git a/lib/Kconfig b/lib/Kconfig
index 46384283c435..4e6a0c6a1b63 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -1277,9 +1277,8 @@ config SPL_LMB
 	  the data structures needed for maintaining the LMB memory map.
 
 config LMB_ARCH_MEM_MAP
-	bool "Add an architecture specific memory map"
+	bool
 	depends on LMB
-	depends on !COMPILE_TEST
 	default y if FSL_LAYERSCAPE || X86
 	help
 	  Some architectures have special or unique aspects which need
-- 
2.43.0


             reply	other threads:[~2026-03-23 19:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-23 19:52 Tom Rini [this message]
2026-04-07 19:50 ` [PATCH] lmb: Rework the LMB_ARCH_MEM_MAP symbol Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260323195245.2363420-1-trini@konsulko.com \
    --to=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox