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)
commit40f57b571c1895fa077be922e2cd1345b27efe2d
tree76cab6066ee648cdc583ca4c81d452511b812fdf
parentf21920f7e7952b3f9657bd1674085211925e52f9
arm/airoha: an7581 ignores CFG_MAX_MEM_MAPPED value

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