From: Masahiro Yamada Date: Wed, 10 Aug 2016 07:08:43 +0000 (+0900) Subject: ARM: uniphier: reuse uniphier_cache_disable() for lowlevel_init X-Git-Tag: v2016.09-rc2~75^2~6 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c21fadfe17b723a39328272bf03b080fa93a0b0c;p=u-boot ARM: uniphier: reuse uniphier_cache_disable() for lowlevel_init The DRAM is available at this point, so setup the temporary stack and call the C function to reduce the code duplication a bit. Signed-off-by: Masahiro Yamada --- diff --git a/arch/arm/mach-uniphier/arm32/late_lowlevel_init.S b/arch/arm/mach-uniphier/arm32/late_lowlevel_init.S index 001d732e39..6f40362cc9 100644 --- a/arch/arm/mach-uniphier/arm32/late_lowlevel_init.S +++ b/arch/arm/mach-uniphier/arm32/late_lowlevel_init.S @@ -5,14 +5,10 @@ * SPDX-License-Identifier: GPL-2.0+ */ +#include #include -#include "ssc-regs.h" - ENTRY(lowlevel_init) - ldr r1, = UNIPHIER_SSCC - ldr r0, [r1] - bic r0, r0, #UNIPHIER_SSCC_ON @ L2 disable - str r0, [r1] - mov pc, lr + ldr sp, = CONFIG_SYS_INIT_SP_ADDR + b uniphier_cache_disable ENDPROC(lowlevel_init)