mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-18 02:38:56 +00:00
a129f64fb0
Currently on Armada-37xx the mem_map structure is statically defined to map first 2 GB of memory as RAM region, and system registers and PCIe region device region. This is insufficient for when there is more RAM or when for example the PCIe windows is mapped to another address by the CPU Address Decoder. In the case when the board has 4 GB RAM, on some boards the ARM Trusted Firmware can move the PCIe window to another address, in order to maximize possible usable RAM. Also the dram_init and dram_init_banksize looks for information in device-tree, and therefore different device trees are needed for boards with different RAM sizes. Therefore we add code that looks at how the ARM Trusted Firmware has configured the CPU Address Decoder windows, and then we update the mem_map structure and compute gd->ram_size and gd->bd->bi_dram bank base addresses and sizes accordingly. Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Stefan Roese <sr@denx.de> |
||
---|---|---|
.. | ||
armada8k | ||
armada3700 | ||
include/mach | ||
serdes | ||
.gitignore | ||
arm64-common.c | ||
cpu.c | ||
dram.c | ||
efuse.c | ||
gpio.c | ||
Kconfig | ||
kwbimage.cfg.in | ||
lowlevel_spl.S | ||
Makefile | ||
mbus.c | ||
spl.c | ||
timer.c |