pmu_sram_cpus_on.S 573 Bytes
Newer Older
Tony Xie's avatar
Tony Xie committed
1
2
3
/*
 * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
 *
dp-arm's avatar
dp-arm committed
4
 * SPDX-License-Identifier: BSD-3-Clause
Tony Xie's avatar
Tony Xie committed
5
6
7
8
9
10
 */

#include <arch.h>
#include <asm_macros.S>
#include <platform_def.h>

Lin Huang's avatar
Lin Huang committed
11
12
13
14
15
16
17
18
	.globl pmu_cpuson_entrypoint
	.macro pmusram_entry_func _name
	.section .pmusram.entry, "ax"
	.type \_name, %function
	.func \_name
	.cfi_startproc
	\_name:
	.endm
Tony Xie's avatar
Tony Xie committed
19

Lin Huang's avatar
Lin Huang committed
20
21
22
pmusram_entry_func pmu_cpuson_entrypoint

#if PSRAM_DO_DDR_RESUME
Tony Xie's avatar
Tony Xie committed
23
ddr_resume:
Lin Huang's avatar
Lin Huang committed
24
25
26
27
	ldr	x2, =__bl31_sram_stack_end
	mov     sp, x2
	bl	dmc_restore
#endif
Tony Xie's avatar
Tony Xie committed
28

Lin Huang's avatar
Lin Huang committed
29
30
sys_resume:
	bl	psci_entrypoint
Tony Xie's avatar
Tony Xie committed
31
endfunc pmu_cpuson_entrypoint