blob: d6cb9ffa23d4c062630071a7423ab96f55fc209f [file] [log] [blame]
Masahiro Yamada574388c2016-09-03 11:37:40 +09001/*
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
13func uniphier_warmboot_entrypoint
14 mrs x0, mpidr_el1
15 mov_imm x1, MPIDR_AFFINITY_MASK
16 and x0, x0, x1
17 b 1f
180: wfe
191: ldr x1, uniphier_holding_pen_release
20 cmp x1, x0
21 b.ne 0b
22 ldr x0, uniphier_sec_entrypoint
23 br x0
24endfunc uniphier_warmboot_entrypoint
25
26func uniphier_fake_pwr_down
27 bl disable_mmu_icache_el3
28 b uniphier_warmboot_entrypoint
29endfunc uniphier_fake_pwr_down