summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2026-03-23 13:52:45 -0600
committerTom Rini <[email protected]>2026-04-07 11:32:26 -0600
commit504c4cdabda5dd602dc91bed4982739ede55339c (patch)
tree0c5b11c5ddd5a1b8ef62493b0a4bc224b291a425
parent7396dca4053c87d12a0a27bc0359df7cc8401e91 (diff)
lmb: Rework the LMB_ARCH_MEM_MAP symbol
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 <[email protected]>
-rw-r--r--arch/Kconfig1
-rw-r--r--arch/arm/cpu/armv8/fsl-layerscape/Kconfig1
-rw-r--r--lib/Kconfig3
3 files changed, 3 insertions, 2 deletions
diff --git a/arch/Kconfig b/arch/Kconfig
index 4c4c070df87..e28e4c4bce7 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 20883fe6825..4c5b38e3b65 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 46384283c43..4e6a0c6a1b6 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