public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] arc: Move dram_init out of arch code, into board code
@ 2017-06-05 17:49 Alexandru Gagniuc
  2017-06-05 19:22 ` Alexey Brodkin
  0 siblings, 1 reply; 5+ messages in thread
From: Alexandru Gagniuc @ 2017-06-05 17:49 UTC (permalink / raw)
  To: u-boot

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;
+}
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-06-15 20:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-05 17:49 [U-Boot] [PATCH] arc: Move dram_init out of arch code, into board code Alexandru Gagniuc
2017-06-05 19:22 ` Alexey Brodkin
2017-06-05 20:00   ` Alexandru Gagniuc
2017-06-15 19:21     ` Alexey Brodkin
2017-06-15 20:39       ` Alex

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox