sunxi: H616: Enable full 4GB of DRAM
authorAndre Przywara <andre.przywara@arm.com>
Wed, 28 Apr 2021 20:29:55 +0000 (21:29 +0100)
committerAndre Przywara <andre.przywara@arm.com>
Sat, 10 Jul 2021 00:22:09 +0000 (01:22 +0100)
commitb8747854de7f4aaa8d8a60842c5a97358d4ad891
tree4600d51cf3dc6531a63d34eb596ca536845c35fb
parent212224ed68f12616bcdc5384dd87d6454dc68b57
sunxi: H616: Enable full 4GB of DRAM

The H616 is our first supported Allwinner SoC which goes beyond the 4GB
address space "barrier", by having more than 32 address bits.

Lift the preliminary 3GB DRAM limit for the H616, and update the page
table setup on the way, to actually map that last GB as well.

As not all devices are actually capable of dealing with more than 32
bits (the DMA in the EMAC for instance), we also limit U-Boot's own
DRAM usage to 4GB on the way.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
arch/arm/mach-sunxi/Kconfig
arch/arm/mach-sunxi/board.c