board: arbel: Limit the dram effective size to bank0 maximal size
authorJim Liu <jim.t90615@gmail.com>
Tue, 23 Apr 2024 07:22:10 +0000 (15:22 +0800)
committerTom Rini <trini@konsulko.com>
Fri, 3 May 2024 18:22:59 +0000 (12:22 -0600)
commitb3c0b94f2e3872959ba29c450059221bb3697588
tree267e1b390625eed1da784a832fd547aa1cfe7a22
parente7c3948ec51d6dd2d31525c8207b5e8ccceb496a
board: arbel: Limit the dram effective size to bank0 maximal size

For 4GB dram size, the dram is divided into 2 banks and
the address space of these 2 banks are not concatenated.
Limit the gd->ram_top to not exceed bank0 top to prevent
accessing invalid memory region.

Signed-off-by: Jim Liu <JJLIU0@nuvoton.com>
board/nuvoton/arbel_evb/arbel_evb.c