Boards which don't need any init code can define it.
Signed-off-by: Vencislav Atanasov <[email protected]>
---
arch/arm/cpu/arm1176/start.S | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm/cpu/arm1176/start.S b/arch/arm/cpu/arm1176/start.S
index 7bdcb5fb97b..10f5706ccf1 100644
--- a/arch/arm/cpu/arm1176/start.S
+++ b/arch/arm/cpu/arm1176/start.S
@@ -91,6 +91,7 @@ pie_fixup_done:
*
*************************************************************************
*/
+#if !CONFIG_IS_ENABLED(SKIP_LOWLEVEL_INIT)
/*
* we do sys-critical inits only at reboot,
* not when booting from ram!
@@ -136,7 +137,10 @@ mmu_disable_phys:
/*
* Go setup Memory and board specific bits prior to relocation.
*/
+#if !CONFIG_IS_ENABLED(SKIP_LOWLEVEL_INIT_ONLY)
bl lowlevel_init /* go setup pll,mux,memory */
+#endif /* CONFIG_IS_ENABLED(SKIP_LOWLEVEL_INIT_ONLY) */
+#endif /* CONFIG_IS_ENABLED(SKIP_LOWLEVEL_INIT) */
bl _main
--
Git-157)