From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexey Brodkin Date: Mon, 5 Jun 2017 19:22:03 +0000 Subject: [U-Boot] [PATCH] arc: Move dram_init out of arch code, into board code In-Reply-To: <20170605174959.2268-1-alex.g@adaptrum.com> References: <20170605174959.2268-1-alex.g@adaptrum.com> Message-ID: <1496690522.2492.4.camel@synopsys.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de Hi Alexandru, On Mon, 2017-06-05 at 10:49 -0700, Alexandru Gagniuc wrote: > 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. Actually there're more boards with ARC cores. In particular nSIM for ARC700  and ARC HS38, as well as Abilis TB100. So it might make sense to declare generic dram_init() in arch/arc/lib/cpu.c as a weak function and add your own implementations as needed. BTW since commit 80e4bbfcd92d "travisci: Add support for ARC" you may push your changes to any github repo and have TravisCI building for all ARC boards. This way you may at least test if stuff gets built for all boards. -Alexey