ARM: meson-g12a: Handle 4GiB DRAM size
authorNeil Armstrong <narmstrong@baylibre.com>
Mon, 22 Jul 2019 09:32:50 +0000 (11:32 +0200)
committerNeil Armstrong <narmstrong@baylibre.com>
Wed, 31 Jul 2019 10:10:54 +0000 (12:10 +0200)
commit5e5db096a323377cb59e5ce438b4581a7c664674
treeb1b2f557270c89239cefb9e94f542dc1314a4223
parent0d84acb00a108d4664e52a156d0d6e80f1a6e6cd
ARM: meson-g12a: Handle 4GiB DRAM size

When configured with 4GiB DRAM size, only 3.8GiB is available, the
I/O beeing mapped in the last 256MiB of the first 4GiB physical memory/

First fixup the mm_region to handle the first 3.8GiB as memory and the
last 256MiB as I/O.

Then limit the real memory reported by the firmware to the available
physical space, 3.8GiB aligned with the mm_region memory zone size.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
Tested-by: Mark Kettenis <kettenis@openbsd.org>
arch/arm/mach-meson/board-g12a.c