]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
lmb: Rename LMB_LIMIT_DMA_BELOW_4G to LMB_LIMIT_DMA_BELOW_RAM_TOP
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Thu, 4 Jun 2026 17:33:15 +0000 (19:33 +0200)
committerTom Rini <trini@konsulko.com>
Mon, 8 Jun 2026 19:28:49 +0000 (13:28 -0600)
Rename LMB_LIMIT_DMA_BELOW_4G to LMB_LIMIT_DMA_BELOW_RAM_TOP
to make the Kconfig option more descriptive. No functional
change.

Suggested-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/Kconfig
lib/lmb.c

index 29911068a69c9da6b5bca4fe63b6cfdbb7762e7f..cf13ac1bdaddc4194e59f425ebaf93634e914179 100644 (file)
@@ -1295,13 +1295,14 @@ config SPL_LMB_ARCH_MEM_MAP
          memory map. Enable this config in such scenarios which allow
          architectures and boards to define their own memory map.
 
-config LMB_LIMIT_DMA_BELOW_4G
+config LMB_LIMIT_DMA_BELOW_RAM_TOP
        bool
        depends on LMB
        default y if ARCH_BCM283X
        help
-         Some architectures can not DMA above 4 GiB boundary,
-         limit available memory to memory below 4 GiB boundary.
+         Some architectures can not DMA above ram_top boundary,
+         which is after 4 GiB or 32-bit boundary too. Limit the
+         available memory to memory below ram_top boundary.
 
 config PHANDLE_CHECK_SEQ
        bool "Enable phandle check while getting sequence number"
index a2aeb526e299156a146fb9c36f95b4a439d11873..275d105c5aa250f1f7e58f416d66d407e073f5e7 100644 (file)
--- a/lib/lmb.c
+++ b/lib/lmb.c
@@ -628,7 +628,7 @@ static void lmb_add_memory(void)
 
                if (size) {
                        lmb_add(bd->bi_dram[i].start, size);
-                       if (!IS_ENABLED(CONFIG_LMB_LIMIT_DMA_BELOW_4G))
+                       if (!IS_ENABLED(CONFIG_LMB_LIMIT_DMA_BELOW_RAM_TOP))
                                continue;
 
                        bank_end = bd->bi_dram[i].start + size;