[PATCH] ARM: imx: imx8m: Fix board_get_usable_ram_top()

sbabic at denx.de sbabic at denx.de
Fri Apr 22 10:47:29 CEST 2022


> The 4 GiB boundary is at 0xffffffff+1 , not at 0x80000000, fix this.
> The PHYS_SDRAM of i.MX8M is at 0x40000000 , so to restrict ram_top
> below 4 GiB, the ram_top has to be set to 0xffffffff as it is not
> an offset from the start of PHYS_SDRAM, but rather a physical address
> marking the topmost allowed DRAM address.
> Fixes: e27bddff4b9 ("imx8m: Restrict usable memory to space below 4G boundary")
> Signed-off-by: Marek Vasut <marex at denx.de>
> Cc: Fabio Estevam <festevam at denx.de>
> Cc: Frieder Schrempf <frieder.schrempf at kontron.de>
> Cc: Peng Fan <peng.fan at nxp.com>
> Cc: Stefano Babic <sbabic at denx.de>
> Reviewed-by: Fabio Estevam <festevam at denx.de>
> Reviewed-by: Frieder Schrempf <frieder.schrempf at kontron.de>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================


More information about the U-Boot mailing list