plat_trampoline.S 840 Bytes
Newer Older
1
/*
2
 * Copyright (c) 2016-2019, ARM Limited and Contributors. All rights reserved.
3
 * Copyright (c) 2020, NVIDIA Corporation. All rights reserved.
4
 *
dp-arm's avatar
dp-arm committed
5
 * SPDX-License-Identifier: BSD-3-Clause
6
7
8
9
 */

#include <arch.h>
#include <asm_macros.S>
10
#include <common/bl_common.h>
11
#include <memctrl_v2.h>
12
#include <plat/common/common_def.h>
13
14
#include <tegra_def.h>

15
#define TEGRA186_MC_CTX_SIZE		0x93
16

17
	.globl tegra186_get_mc_ctx_size
18
19

	/*
20
	 * Tegra186 reset data (offset 0x0 - 0x420)
21
	 *
22
23
	 * 0x000: MC context start
	 * 0x420: MC context end
24
25
26
	 */

	.align 4
27
28
__tegra186_mc_context:
	.rept	TEGRA186_MC_CTX_SIZE
29
30
31
32
	.quad	0
	.endr

	.align 4
33
__tegra186_mc_context_end:
34

35
/* return the size of the MC context */
36
37
38
func tegra186_get_mc_ctx_size
	adr	x0, __tegra186_mc_context_end
	adr	x1, __tegra186_mc_context
39
40
	sub	x0, x0, x1
	ret
41
endfunc tegra186_get_mc_ctx_size