Skip to content
Snippets Groups Projects
Commit 88982893 authored by Nobuhiro Iwamatsu's avatar Nobuhiro Iwamatsu
Browse files

arm: rmobile: r8a7794: Skip initialize L2 cache


rmobile/lowlevel_init_ca15.S are common in r8a7790, r8a7791 and r8a7794 of
rmobile SoCs.  The initialize L2 cache in lowlevel_init_ca15.S only needed
for Cortex-A15. The r8a7794 is Cortex-A7, not Cortex-A15.
This adds Skip to initialize L2 cache when r8a7794.

Signed-off-by: default avatarNobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
parent 237faf09
No related branches found
No related tags found
No related merge requests found
...@@ -35,6 +35,13 @@ do_cpu_waiting: ...@@ -35,6 +35,13 @@ do_cpu_waiting:
*/ */
.align 4 .align 4
do_lowlevel_init: do_lowlevel_init:
ldr r2, =0xFF000044 /* PRR */
ldr r1, [r2]
and r1, r1, #0x7F00
lsrs r1, r1, #8
cmp r1, #0x4C /* 0x4C is ID of r8a7794 */
beq _exit_init_l2_a15
/* surpress wfe if ca15 */ /* surpress wfe if ca15 */
tst r4, #4 tst r4, #4
mrceq p15, 0, r0, c1, c0, 1 /* actlr */ mrceq p15, 0, r0, c1, c0, 1 /* actlr */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment