Skip to content

Commit

Permalink
compulab: imx8mp: Set U-boot upper limit to 2^32
Browse files Browse the repository at this point in the history
Signed-off-by: Valentin Raevsky <[email protected]>
  • Loading branch information
vraevsky committed Jul 4, 2024
1 parent efbcd1e commit 20d6bad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions board/compulab/plat/imx8mp/board/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,10 @@ int board_late_init(void)
#ifdef CONFIG_IMX_BOOTAUX
ulong board_get_usable_ram_top(ulong total_size)
{
/* Set U-boot upper limit to 2^32 */
if(gd->ram_top > 0x100000000)
gd->ram_top = 0x100000000;

/* Reserve 16M memory used by M core vring/buffer, which begins at 16MB before optee */
if (rom_pointer[1])
return gd->ram_top - SZ_16M;
Expand Down

0 comments on commit 20d6bad

Please sign in to comment.