Debian Codegraph @

plat/socionext/uniphier/uniphier_smp.S

raw
1 /*
2 * Copyright (c) 2017, ARM Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7 #include <arch.h>
8 #include <asm_macros.S>
9
10 .globl uniphier_warmboot_entrypoint
11 .globl uniphier_fake_pwr_down
12
13 func uniphier_warmboot_entrypoint
14 mrs x0, mpidr_el1
15 mov_imm x1, MPIDR_AFFINITY_MASK
16 and x0, x0, x1
17 b 1f
18 0: wfe
19 1: ldr x1, uniphier_holding_pen_release
20 cmp x1, x0
21 b.ne 0b
22 ldr x0, uniphier_sec_entrypoint
23 br x0
24 endfunc uniphier_warmboot_entrypoint
25
26 func uniphier_fake_pwr_down
27 bl disable_mmu_icache_el3
28 b uniphier_warmboot_entrypoint
29 endfunc uniphier_fake_pwr_down