Skip to contentSkip to conversation

lmb: Rework the LMB_ARCH_MEM_MAP symbol

PATCH In review Tom Rini 1 participant 2 messages Mar 23 – Apr 7

Subsystems (2)
lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 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.

---
 arch/Kconfig                              | 1 +
 arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 1 +
 lib/Kconfig                               | 3 +--
 3 files changed, 3 insertions(+), 2 deletions(-)
arch/Kconfig +1 -0
index 4c4c070df87b..e28e4c4bce73 100644
@@ -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
arch/arm/cpu/armv8/fsl-layerscape/Kconfig +1 -0
index 20883fe68250..4c5b38e3b659 100644
@@ -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
lib/Kconfig +1 -2
index 46384283c435..4e6a0c6a1b63 100644
@@ -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
Signature · 1 line
2.43.0
author
#1 lore raw
Quoted 5 lines · Tom Rini

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.

Applied to u-boot/master, thanks!

[1/1] lmb: Rework the LMB_ARCH_MEM_MAP symbol

      commit: 504c4cdabda5dd602dc91bed4982739ede55339c
Signature · 1 line
Tom