Commit c21fadfe authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

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: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent 6f579db7
......@@ -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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment