From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Tue, 25 Sep 2012 22:01:34 +0200 Subject: [U-Boot] [PATCH] ARM: arm1176: Define arch_cpu_init() at the SoC level In-Reply-To: <1346552877-26539-1-git-send-email-swarren@wwwdotorg.org> References: <1346552877-26539-1-git-send-email-swarren@wwwdotorg.org> Message-ID: <20120925220134.4755ef40@wker> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Albert, Tom, On Sat, 1 Sep 2012 19:27:56 -0700 Stephen Warren wrote: > Commit 86c6326 "ARM: arm1176: enable instruction cache in > arch_cpu_init()" defined arch_cpu_init() in a file that is shared across > all arm1176 SoCs. tnetv107x already implemented this function, which > caused linking to break. Move the new conflicting arch_cpu_init() into > arm1176/bcm2835/init.c so that it doesn't conflict; grep indicates this > function is usually defined at the SoC-level, not the CPU-level, at least > for ARM. > > Signed-off-by: Stephen Warren > --- > arch/arm/cpu/arm1176/bcm2835/Makefile | 2 +- > arch/arm/cpu/arm1176/bcm2835/init.c | 24 ++++++++++++++++++++++++ > arch/arm/cpu/arm1176/cpu.c | 7 ------- > 3 files changed, 25 insertions(+), 8 deletions(-) > create mode 100644 arch/arm/cpu/arm1176/bcm2835/init.c Could you please apply this patch? It fixes the build error for tnetv107x_evm board. Currently MAKEALL doesn't build this board, but this [1] patch enables building it and it fails. Thanks! Anatolij [1] http://patchwork.ozlabs.org/patch/180771