u-boot-brain/arch
Baruch Siach 2b4d964718 arm64: mvebu: a8k: autodetect RAM size
Some Armada 8K boards like Macchiatobin and Clearfog GT-8K use RAM from
external DIMM. Hard coding the RAM size in the device-tree is not
convenient. Fortunately, the ATF that initializes the RAM knows the size
of RAM, and U-Boot can query the ATF using a SMC call.

The ATF maps the lower 3G of RAM starting at address 0. Higher RAM is
mapped at 4G. This leaves a 1G hole between 3G and 4G for IO
peripherals. Use a second bi_dram[] entry to describe the higher RAM
area. As a result, CONFIG_NR_DRAM_BANKS must be set to 2 to use more
than 3GB RAM.

This code in this commit is mostly taken from downstream Marvell U-Boot
code by Grzegorz Jaszczyk.

Cc: Grzegorz Jaszczyk <jaz@semihalf.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Stefan Roese <sr@denx.de>
2018-11-20 13:08:15 +01:00
..
arc emdk->emsdp: Rename board 2018-11-01 23:04:05 +03:00
arm arm64: mvebu: a8k: autodetect RAM size 2018-11-20 13:08:15 +01:00
m68k m68k: ColdFire mcf5441x, add eSDHC support 2018-09-16 00:01:13 +02:00
microblaze arch: types.h: factor out fixed width typedefs to int-ll64.h 2018-09-10 20:48:16 -04:00
mips MIPS: drop asm/const.h 2018-11-20 13:08:15 +01:00
nds32 Kbuild: add LDFLAGS_STANDALONE 2018-11-18 16:02:23 +01:00
nios2 .gitignore: move *.dtb and *.dtb.S patterns to the top-level .gitignore 2018-06-18 14:43:12 -04:00
powerpc powerpc: t1040: Correct RCW EC2 settings 2018-10-29 13:19:43 -07:00
riscv Use _AC and UL macros from linux/const.h 2018-11-20 13:08:15 +01:00
sandbox test/py: test pinmux command 2018-11-16 16:51:57 -05:00
sh Kbuild: add LDFLAGS_STANDALONE 2018-11-18 16:02:23 +01:00
x86 cpu: Add DM_FLAG_PRE_RELOC flag to various cpu drivers 2018-11-14 09:16:28 -08:00
xtensa xtensa: use asm-generic/atomic.h 2018-09-25 21:49:18 -04:00
.gitignore
Kconfig test: dm: virtio: Add test cases for virtio uclass 2018-11-14 09:16:28 -08:00