]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
arm/airoha: an7581 ignores CFG_MAX_MEM_MAPPED value
authorMikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
Wed, 8 Oct 2025 07:09:02 +0000 (10:09 +0300)
committerTom Rini <trini@konsulko.com>
Wed, 15 Oct 2025 21:08:27 +0000 (15:08 -0600)
This partly fix commit 726404a66c773 ("airoha: rework RAM size handling
to support multiple RAM size")

The function get_effective_memsize() do not see non-global defines
of CFG_MAX_MEM_MAPPED, so the effective memory size will not be changed.

Fix the issue by putting definition of CFG_MAX_MEM_MAPPED to the proper
place.

Fixes: 726404a66c773 ("airoha: rework RAM size handling to support multiple RAM size")
Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
arch/arm/mach-airoha/an7581/init.c
include/configs/an7581.h

index 11992027d922320f623a8f2c0d56d9cb95ee6661..be0ccadf7da824f80673de18f4a2ecf5e40fead1 100644 (file)
@@ -8,8 +8,6 @@
 #include <asm/global_data.h>
 #include <asm/system.h>
 
-#define CFG_MAX_MEM_MAPPED  SZ_2G
-
 DECLARE_GLOBAL_DATA_PTR;
 
 int print_cpuinfo(void)
index 64f04c9d9a57aa01dca46272337421412391a5ef..dfb611d298b1d33be8d68813a7d53fa452a15774 100644 (file)
@@ -15,5 +15,6 @@
 
 /* DRAM */
 #define CFG_SYS_SDRAM_BASE             0x80000000
+#define CFG_MAX_MEM_MAPPED             SZ_2G
 
 #endif