Commit 59d63f7d2cad78382574beea01c85cbca96925df
Committed by
Tom Rini
1 parent
5675b50916
Exists in
master
and in
57 other branches
ARM: arm1176: Define arch_cpu_init() at the SoC level
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 <swarren@wwwdotorg.org> Acked-by: Marek Vasut <marex@denx.de>
Showing 3 changed files with 25 additions and 8 deletions Side-by-side Diff
arch/arm/cpu/arm1176/bcm2835/Makefile
arch/arm/cpu/arm1176/bcm2835/init.c
| 1 | +/* | |
| 2 | + * (C) Copyright 2012 Stephen Warren | |
| 3 | + * | |
| 4 | + * See file CREDITS for list of people who contributed to this | |
| 5 | + * project. | |
| 6 | + * | |
| 7 | + * This program is free software; you can redistribute it and/or | |
| 8 | + * modify it under the terms of the GNU General Public License | |
| 9 | + * version 2 as published by the Free Software Foundation. | |
| 10 | + * | |
| 11 | + * This program is distributed in the hope that it will be useful, but | |
| 12 | + * WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 14 | + * GNU General Public License for more details. | |
| 15 | + */ | |
| 16 | + | |
| 17 | +#include <common.h> | |
| 18 | + | |
| 19 | +int arch_cpu_init(void) | |
| 20 | +{ | |
| 21 | + icache_enable(); | |
| 22 | + | |
| 23 | + return 0; | |
| 24 | +} |