qti_kryo4_silver.S 2.09 KB
Newer Older
Saurabh Gorecha's avatar
Saurabh Gorecha committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
/*
 * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved.
 * Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

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

#include <plat_macros.S>
#include <qti_cpu.h>

	.p2align 3

/* -------------------------------------------------
 * The CPU Ops reset function for Kryo-3 Silver
 * -------------------------------------------------
 */
func qti_kryo4_silver_reset_func
	mov	x19, x30

	bl	qtiseclib_kryo4_silver_reset_asm

	ret	x19

endfunc qti_kryo4_silver_reset_func

/* ------------------------------------------------------
 * The CPU Ops core power down function for Kryo-3 Silver
 * ------------------------------------------------------
 */
func qti_kryo4_silver_core_pwr_dwn
	ret
endfunc qti_kryo4_silver_core_pwr_dwn

/* ---------------------------------------------------------
 * The CPU Ops cluster power down function for Kryo-3 Silver
 * ---------------------------------------------------------
 */
func qti_kryo4_silver_cluster_pwr_dwn
	ret
endfunc qti_kryo4_silver_cluster_pwr_dwn

#if REPORT_ERRATA
/*
 * Errata printing function for Kryo4 Silver. Must follow AAPCS.
 */
func qti_kryo4_silver_errata_report
	/* TODO : Need to add support. Required only for debug bl31 image.*/
	ret
endfunc qti_kryo4_silver_errata_report
#endif


/* ---------------------------------------------
 * This function provides kryo4_silver specific
 * register information for crash reporting.
 * It needs to return with x6 pointing to
 * a list of register names in ASCII and
 * x8 - x15 having values of registers to be
 * reported.
 * ---------------------------------------------
 */
.section .rodata.qti_kryo4_silver_regs, "aS"
qti_kryo4_silver_regs:  /* The ASCII list of register names to be reported */
	.asciz	""

func qti_kryo4_silver_cpu_reg_dump
	adr	x6, qti_kryo4_silver_regs
	ret
endfunc qti_kryo4_silver_cpu_reg_dump


declare_cpu_ops	qti_kryo4_silver, QTI_KRYO4_SILVER_MIDR,	\
		qti_kryo4_silver_reset_func,		\
		qti_kryo4_silver_core_pwr_dwn,		\
		qti_kryo4_silver_cluster_pwr_dwn