arm: mach-k3: common: Reserve video memory from end of the RAM
authorDevarsh Thakkar <devarsht@ti.com>
Tue, 5 Dec 2023 15:55:17 +0000 (21:25 +0530)
committerTom Rini <trini@konsulko.com>
Mon, 29 Jan 2024 19:49:17 +0000 (14:49 -0500)
commitba20b2443c298a19ff70d66f71630c6d16c39c97
treecfdc54f07c287d3d20059f15bed7e48c978a019b
parent1d3c266758570ea7d329746ae2d5b31fb12b9f61
arm: mach-k3: common: Reserve video memory from end of the RAM

Setup video memory before page table reservation using
"spl_reserve_video_from_ram_top" which ensures framebuffer memory gets
reserved from the end of RAM.

This is done to enable the next stage to directly skip the
pre-reserved area from previous stage right from the end of RAM without
having to make any gaps/holes to accommodate those regions which was the
case before as previous stage reserved region not from the end of RAM.

Use gd->ram_top instead of local ram_top and update gd->reloc_addr after
each reservation to ensure further regions are reserved properly.

Signed-off-by: Devarsh Thakkar <devarsht@ti.com>
Reviewed-by: Nikhil M Jain <n-jain1@ti.com>
arch/arm/mach-k3/common.c