xref: /rk3399_ARM-atf/lib/cpus/aarch64/a64fx.S (revision 2d3b44e3073e8d6ec49dde45ec353d6f41290917)
1/*
2 * Copyright (c) 2022, Fujitsu Limited and Contributors. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6#include <arch.h>
7#include <asm_macros.S>
8#include <assert_macros.S>
9#include <a64fx.h>
10#include <cpu_macros.S>
11#include <plat_macros.S>
12
13func a64fx_core_pwr_dwn
14endfunc a64fx_core_pwr_dwn
15
16func a64fx_cluster_pwr_dwn
17endfunc a64fx_cluster_pwr_dwn
18
19        /* ---------------------------------------------
20         * This function provides cpu specific
21         * register information for crash reporting.
22         * It needs to return with x6 pointing to
23         * a list of register names in ascii and
24         * x8 - x15 having values of registers to be
25         * reported.
26         * ---------------------------------------------
27         */
28.section .rodata.a64fx_regs, "aS"
29a64fx_regs:  /* The ascii list of register names to be reported */
30        .asciz  ""
31
32cpu_reset_func_start a64fx
33cpu_reset_func_end a64fx
34
35func a64fx_cpu_reg_dump
36        adr     x6, a64fx_regs
37        ret
38endfunc a64fx_cpu_reg_dump
39
40declare_cpu_ops a64fx, A64FX_MIDR, a64fx_reset_func \
41                a64fx_core_pwr_dwn, \
42                a64fx_cluster_pwr_dwn
43
44