]> git.baikalelectronics.ru Git - uboot.git/commit
ARM: imx: imx8m: Fix board_get_usable_ram_top()
authorMarek Vasut <marex@denx.de>
Thu, 14 Apr 2022 13:51:46 +0000 (15:51 +0200)
committerStefano Babic <sbabic@denx.de>
Thu, 21 Apr 2022 12:38:03 +0000 (14:38 +0200)
commit64e45b8b84c66cfe822ecf3b262e1120781fcd7e
tree26b4b5f31723067405c6d823368697ffc9623cc0
parent0a1e0b73969079576db503e99ae4f1c07bf25f53
ARM: imx: imx8m: Fix board_get_usable_ram_top()

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: 3dedf85a11b ("imx8m: Restrict usable memory to space below 4G boundary")
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <festevam@denx.de>
Cc: Frieder Schrempf <frieder.schrempf@kontron.de>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
Reviewed-by: Fabio Estevam <festevam@denx.de>
Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de>
arch/arm/mach-imx/imx8m/soc.c