ARM: mxs: make lowlevel_init() weak
authorMans Rullgard <mans@mansr.com>
Sat, 21 Apr 2018 15:11:06 +0000 (16:11 +0100)
committerStefano Babic <sbabic@denx.de>
Fri, 27 Apr 2018 07:32:54 +0000 (09:32 +0200)
With the full SPL framework enabled, lowlevel_init() is required.
Make the empty stub weak so boards can override it.

Signed-off-by: Mans Rullgard <mans@mansr.com>
arch/arm/cpu/arm926ejs/mxs/mxs.c

index 7a68a8f3ca74e370491131640d051f97ba338a7c..5c7817074fd6b311c8a7981aca289cc47f3d3631 100644 (file)
@@ -24,7 +24,7 @@
 DECLARE_GLOBAL_DATA_PTR;
 
 /* Lowlevel init isn't used on i.MX28, so just have a dummy here */
-void lowlevel_init(void) {}
+__weak void lowlevel_init(void) {}
 
 void reset_cpu(ulong ignored) __attribute__((noreturn));