vexpress64: generalise page table generation
authorAndre Przywara <andre.przywara@arm.com>
Fri, 4 Mar 2022 16:30:16 +0000 (16:30 +0000)
committerTom Rini <trini@konsulko.com>
Fri, 1 Apr 2022 18:59:15 +0000 (14:59 -0400)
commit30cacb8123459328c46c25f65196bb4885dcdb05
tree08989d77f9d77eca24b39c972d68368ef28f89e8
parent168e815d258c410e191107bceecc426557474be2
vexpress64: generalise page table generation

In preparation for the ARMv8-R64 FVP support, which has DRAM mapped at
0x0, generalise the page table generation, by using symbolic names for
the address ranges instead of fixed numbers.

We already define the base of the DRAM and MMIO regions, so just use
those symbols in the page table description. Rename V2M_BASE to the more
speaking V2M_DRAM_BASE on the way.

On the VExpress memory map, the address space right after 4GB is of no
particular interest to software, as the whole of DRAM is mapped at 32GB
instead. The first 2 GB alias to the lower 2GB of DRAM mapped below 4GB,
so we skip this part and map some more of the high DRAM, should anyone
need it.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
board/armltd/vexpress64/vexpress64.c
include/configs/vexpress_aemv8.h