From af4aad1f0a0beba82d2015d79b450b59bf34d2bc Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Wed, 3 Jun 2026 16:17:55 +0200 Subject: lmb: Optionally limit available memory to 4 GiB on limited systems Some architectures can not DMA above 4 GiB boundary, limit available memory to memory below 4 GiB boundary. Signed-off-by: Marek Vasut Reviewed-by: Ilias Apalodimas Tested-by: Ilias Apalodimas #rpi4 8GiB --- lib/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/Kconfig') diff --git a/lib/Kconfig b/lib/Kconfig index 77ebc79e1db..29911068a69 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -1295,6 +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 + 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. + config PHANDLE_CHECK_SEQ bool "Enable phandle check while getting sequence number" help -- cgit v1.3.1