ENTRY(armada_38x_scu_power_up)
mrc p15, 4, r1, c15, c0 @ get SCU base address
orr r1, r1,
mrc p15, 0, r0, cr0, cr0, 5 @ get the CPU ID
and r0, r0,
add r1, r1, r0
mov r0,
strb r0, [r1] @ switch SCU power state to Normal mode
ret lr
ENDPROC(armada_38x_scu_power_up)
ENTRY(armada_370_xp_cpu_resume)
ARM_BE8(setend be ) @ go BE8 if entered LE
mrc p15, 0, r1, c1, c0, 0
bic r1,
mcr p15, 0, r1, c1, c0, 0
bl ll_add_cpu_to_smp_group
bl ll_enable_coherency
b cpu_resume
ENDPROC(armada_370_xp_cpu_resume)
ENTRY(armada_38x_cpu_resume)
ARM_BE8(setend be ) @ go BE8 if entered LE
bl v7_invalidate_l1
bl armada_38x_scu_power_up
b cpu_resume
ENDPROC(armada_38x_cpu_resume)
.global mvebu_boot_wa_start
.global mvebu_boot_wa_end
ENTRY(mvebu_boot_wa_start)
ARM_BE8(setend be)
adr r0, 1f
ldr r0, [r0] @ load the address of the
@ resume register
ldr r0, [r0] @ load the value in the
@ resume register
ARM_BE8(rev r0, r0) @ the value is stored LE
mov pc, r0 @ jump to this value
1:
.long .
mvebu_boot_wa_end:
ENDPROC(mvebu_boot_wa_end)