summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2012-03-01 04:02:38 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-07-20 14:24:08 +0200
commita21c65115bd95572cc80092a31b0e9ecb8710e9f (patch)
tree75acfceb184e561448c9ec949d44f982e5d16f91 /arch/arm
parentd2ebaa41ede51f1ebf7e6e41a611c2efa89431e9 (diff)
downloadu-boot-imx-a21c65115bd95572cc80092a31b0e9ecb8710e9f.zip
u-boot-imx-a21c65115bd95572cc80092a31b0e9ecb8710e9f.tar.gz
u-boot-imx-a21c65115bd95572cc80092a31b0e9ecb8710e9f.tar.bz2
ARM: lib: Remove CONFIG_ARCH_CPU_INIT dependency
Create a weak-aliased arch_cpu_init, so that we can get rid of CONFIG_ARCH_CPU_INIT and always call arch_cpu_init. This way we do not need to define CONFIG_ARCH_CPU_INIT in every board file, since arch_cpu_init() is supposed to handle common CPU level code. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Acked-by: Marek Vasut <marex@denx.de> Acked-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/lib/board.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c
index f21591d..f1951e8 100644
--- a/arch/arm/lib/board.c
+++ b/arch/arm/lib/board.c
@@ -224,10 +224,16 @@ void __dram_init_banksize(void)
void dram_init_banksize(void)
__attribute__((weak, alias("__dram_init_banksize")));
+int __arch_cpu_init(void)
+{
+ return 0;
+}
+int arch_cpu_init(void)
+ __attribute__((weak, alias("__arch_cpu_init")));
+
init_fnc_t *init_sequence[] = {
-#if defined(CONFIG_ARCH_CPU_INIT)
arch_cpu_init, /* basic arch cpu dependent setup */
-#endif
+
#if defined(CONFIG_BOARD_EARLY_INIT_F)
board_early_init_f,
#endif