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>
This commit is contained in:
Masahiro Yamada 2016-08-10 16:08:43 +09:00
parent 6f579db754
commit c21fadfe17

View file

@ -5,14 +5,10 @@
* SPDX-License-Identifier: GPL-2.0+ * SPDX-License-Identifier: GPL-2.0+
*/ */
#include <config.h>
#include <linux/linkage.h> #include <linux/linkage.h>
#include "ssc-regs.h"
ENTRY(lowlevel_init) ENTRY(lowlevel_init)
ldr r1, = UNIPHIER_SSCC ldr sp, = CONFIG_SYS_INIT_SP_ADDR
ldr r0, [r1] b uniphier_cache_disable
bic r0, r0, #UNIPHIER_SSCC_ON @ L2 disable
str r0, [r1]
mov pc, lr
ENDPROC(lowlevel_init) ENDPROC(lowlevel_init)