diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2017-02-14 11:53:58 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-02-16 08:16:27 +0100 |
commit | f05c6e095cf8e8c97e1df5d79f65e4d7c30c788f (patch) | |
tree | e2bab6ef3587e0b78306465dd824a7382cca7a3b /arch/arm/boards/netgear-rn2120 | |
parent | dc904720553c6ddd80975cfc488a183d6d391dc5 (diff) | |
download | barebox-f05c6e095cf8e8c97e1df5d79f65e4d7c30c788f.tar.gz |
mvebu: rework how memory is detected
Status quo is that initially a size of 64 MiB is assumed (which is also
used to determine the size of the malloc area) and then later the dtb
is fixed up with the actually available RAM which is then used.
Instead detect the real RAM size earlier and don't fixup the device tree.
The device tree is fixed up instead by generic code. This way the malloc
area is more appropriately sized and RAM detection is more similar to mach-imx
which is both nice.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/boards/netgear-rn2120')
-rw-r--r-- | arch/arm/boards/netgear-rn2120/lowlevel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/boards/netgear-rn2120/lowlevel.c b/arch/arm/boards/netgear-rn2120/lowlevel.c index 29c8b43c44..6026166e32 100644 --- a/arch/arm/boards/netgear-rn2120/lowlevel.c +++ b/arch/arm/boards/netgear-rn2120/lowlevel.c @@ -37,5 +37,5 @@ ENTRY_FUNCTION(start_netgear_rn2120, r0, r1, r2) fdt = __dtb_armada_xp_rn2120_bb_start - get_runtime_offset(); - mvebu_barebox_entry(fdt); + armada_370_xp_barebox_entry(fdt); } |