diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-08-10 16:08:43 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-08-11 17:49:31 +0900 |
commit | c21fadfe17b723a39328272bf03b080fa93a0b0c (patch) | |
tree | 5586cab76410bdfffdb0e24e31e1525992eca9b9 /arch | |
parent | 6f579db75411973200224307d6a84d82fc01bb96 (diff) | |
download | u-boot-imx-c21fadfe17b723a39328272bf03b080fa93a0b0c.zip u-boot-imx-c21fadfe17b723a39328272bf03b080fa93a0b0c.tar.gz u-boot-imx-c21fadfe17b723a39328272bf03b080fa93a0b0c.tar.bz2 |
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 <yamada.masahiro@socionext.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-uniphier/arm32/late_lowlevel_init.S | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/arm/mach-uniphier/arm32/late_lowlevel_init.S b/arch/arm/mach-uniphier/arm32/late_lowlevel_init.S index 001d732..6f40362 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 <config.h> #include <linux/linkage.h> -#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) |