arm: provide __cpu_early_init hook
Only call if WITH_CPU_EARLY_INIT is set.
Move the OMAP3 specific init to use this mechanism.
diff --git a/arch/arm/crt0.S b/arch/arm/crt0.S
index 759f11a..9196d10 100644
--- a/arch/arm/crt0.S
+++ b/arch/arm/crt0.S
@@ -45,10 +45,9 @@
mcr p15, 0, r0, c1, c0, 0
#endif
-#if PLATFORM_OMAP3
- /* do an omap3 specific setup of the L2 */
- mov r12, #1
- .word 0xe1600070
+#if WITH_CPU_EARLY_INIT
+ /* call platform/arch/etc specific init code */
+ bl __cpu_early_init
#endif
/* see if we need to relocate */