imx8m: Restrict usable memory to space below 4G boundary
authorFrieder Schrempf <frieder.schrempf@kontron.de>
Mon, 7 Jun 2021 12:36:44 +0000 (14:36 +0200)
committerStefano Babic <sbabic@denx.de>
Sat, 10 Jul 2021 14:03:01 +0000 (16:03 +0200)
commite27bddff4b97598baaa7186196ebfb28075f702c
tree6e3b62ad651b047bba8df563dfe73ae343d1a771
parentef62fff2698a425cc6628a9696e8ee1cae725f32
imx8m: Restrict usable memory to space below 4G boundary

Some IPs have their accessible address space restricted by the
interconnect. Let's make sure U-Boot only ever uses the space below
the 4G address boundary (which is 3GiB big), even when the effective
available memory is bigger.

We implement board_get_usable_ram_top() for all i.MX8M SoCs, as the
whole family is affected by this.

Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
arch/arm/mach-imx/imx8m/soc.c