summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/arch-octeontx2/smc-id.h
blob: 93a81b2954ffb7b5b197bdf2c966814abe869071 (plain)
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
/* SPDX-License-Identifier:    GPL-2.0
 *
 * Copyright (C) 2018 Marvell International Ltd.
 *
 * https://spdx.org/licenses
 */

#ifndef __SMC_ID_H__
#define __SMC_ID_H__

/* SMC function IDs for general purpose queries */

#define OCTEONTX2_SVC_CALL_COUNT	0xc200ff00
#define OCTEONTX2_SVC_UID		0xc200ff01

#define OCTEONTX2_SVC_VERSION		0xc200ff03

/* OcteonTX Service Calls version numbers */
#define OCTEONTX2_VERSION_MAJOR	0x1
#define OCTEONTX2_VERSION_MINOR	0x0

/* x1 - node number */
#define OCTEONTX2_DRAM_SIZE		0xc2000301
#define OCTEONTX2_NODE_COUNT		0xc2000601
#define OCTEONTX2_DISABLE_RVU_LFS	0xc2000b01

#define OCTEONTX2_CONFIG_OOO		0xc2000b04

/* fail safe */
#define OCTEONTX2_FSAFE_PR_BOOT_SUCCESS	0xc2000b02

#endif /* __SMC_ID_H__ */