From: Stefano Babic Date: Fri, 27 Apr 2018 10:59:22 +0200 Subject: [U-Boot] [PATCH 1/5] ARM: mxs: make lowlevel_init() weak In-Reply-To: <20180421151110.20423-1-mans@mansr.com> References: <20180421151110.20423-1-mans@mansr.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 21/04/2018 17:11, Mans Rullgard wrote: > 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 > --- > arch/arm/cpu/arm926ejs/mxs/mxs.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/cpu/arm926ejs/mxs/mxs.c b/arch/arm/cpu/arm926ejs/mxs/mxs.c > index 7a68a8f3ca74..5c7817074fd6 100644 > --- a/arch/arm/cpu/arm926ejs/mxs/mxs.c > +++ b/arch/arm/cpu/arm926ejs/mxs/mxs.c > @@ -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)); > > Applied to u-boot-imx, thanks ! Best regards, Stefano Babic -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de =====================================================================