arm/airoha: an7581 ignores CFG_MAX_MEM_MAPPED value
This partly fix commit726404a66c("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:726404a66c("airoha: rework RAM size handling to support multiple RAM size") Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
This commit is contained in:
committed by
Tom Rini
parent
f21920f7e7
commit
40f57b571c
@@ -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)
|
||||
|
||||
@@ -15,5 +15,6 @@
|
||||
|
||||
/* DRAM */
|
||||
#define CFG_SYS_SDRAM_BASE 0x80000000
|
||||
#define CFG_MAX_MEM_MAPPED SZ_2G
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user