ARM: renesas: Configure DRAM size from ATF DT fragment
authorMarek Vasut <marek.vasut+renesas@gmail.com>
Tue, 2 Oct 2018 18:40:58 +0000 (20:40 +0200)
committerMarek Vasut <marex@denx.de>
Sat, 4 May 2019 17:26:49 +0000 (19:26 +0200)
commit175f5027345c7feaa41e8f4201778814bf72fe37
treeda2a25d944343a4a11a7c623a46a24ff69210d40
parent80b44fb3765e42e88e9cdd6cc037b47e3e263ff1
ARM: renesas: Configure DRAM size from ATF DT fragment

The ATF can pass additional information via the first four registers,
x0...x3. The R-Car Gen3 with mainline ATF, register x1 contains pointer
to a device tree with platform information. Parse this device tree and
extract DRAM size information from it. This is useful on systems where
the DRAM size can vary between configurations.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
board/renesas/ebisu/ebisu.c
board/renesas/salvator-x/salvator-x.c
board/renesas/ulcb/ulcb.c