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 <[email protected]>
Signed-off-by: Marek Vasut <[email protected]>
---
Cc: Andrew Goodbody <[email protected]>
Cc: David Lechner <[email protected]>
Cc: Heiko Schocher <[email protected]>
Cc: Heinrich Schuchardt <[email protected]>
Cc: Holger Brunck <[email protected]>
Cc: Ilias Apalodimas <[email protected]>
Cc: Peter Robinson <[email protected]>
Cc: Quentin Schulz <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Sughosh Ganu <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: [email protected]
---
 lib/Kconfig | 7 ++++---
 lib/lmb.c   | 2 +-
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/lib/Kconfig b/lib/Kconfig
index 29911068a69..cf13ac1bdad 100644
--- a/lib/Kconfig
+++ b/lib/Kconfig
@@ -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"
diff --git a/lib/lmb.c b/lib/lmb.c
index a2aeb526e29..275d105c5aa 100644
--- 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;
-- 
2.53.0

Reply via email to