
The following commit f1683aa board_f: Rename initdram() to dram_init() wrongly assumed that the lack of DRAM init is the property of the architecture. In fact, it is only the AXS10x boards that do not need a special raminit. Those assumptions are not true on the ARC SoC we're looking at.
Move dram_init() to the board code to prevent a duplicate symbol.
Signed-off-by: Alexandru Gagniuc alex.g@adaptrum.com --- arch/arc/lib/cpu.c | 6 ------ board/synopsys/axs10x/axs10x.c | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/arch/arc/lib/cpu.c b/arch/arc/lib/cpu.c index cb80893..d1f10ab 100644 --- a/arch/arc/lib/cpu.c +++ b/arch/arc/lib/cpu.c @@ -28,9 +28,3 @@ int arch_early_init_r(void) gd->bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE; return 0; } - -/* This is a dummy function on arc */ -int dram_init(void) -{ - return 0; -} diff --git a/board/synopsys/axs10x/axs10x.c b/board/synopsys/axs10x/axs10x.c index e6b69da..bd69502 100644 --- a/board/synopsys/axs10x/axs10x.c +++ b/board/synopsys/axs10x/axs10x.c @@ -91,3 +91,9 @@ void smp_kick_all_cpus(void) writel(cmd, (void __iomem *)AXC003_CREG_CPU_START); } #endif + +/* This is a dummy function on AXS10x */ +int dram_init(void) +{ + return 0; +}