dove: move memory controller remapping before RAM detection
Compared to other mvebu cpus the memory controller registers are in
their own register window that can be moved independently of the mbus
register window.

Since commit f05c6e095cf8 the available RAM configured by the boot ROM
is read out earlier. This happens to be before the memory controller
register window is moved and so dove_memory_find() fails. To fix this
move the memory controller window together with the mbus window.

This change allows to boot barebox first stage again on a Solidrun
Cubox.

Fixes: f05c6e095cf8 ("mvebu: rework how memory is detected")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 03f2a17 commit 34706cb1f6faa5077201ee3cb809711ccbdd5c0d
@Uwe Kleine-König Uwe Kleine-König authored on 28 May 2018
Sascha Hauer committed on 31 May 2018
Showing 2 changed files
View
arch/arm/mach-mvebu/common.c
View
arch/arm/mach-mvebu/dove.c