xref: /rk3399_ARM-atf/plat/qti/qtiseclib/inc/sc7180/qtiseclib_defs_plat.h (revision 77648689ad2627911a3aa6fd69463e8043889532)
1 /*
2  * Copyright (c) 2018-2020, The Linux Foundation. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #ifndef QTISECLIB_DEFS_PLAT_H
8 #define QTISECLIB_DEFS_PLAT_H
9 
10 #define QTISECLIB_PLAT_CLUSTER_COUNT	1
11 #define QTISECLIB_PLAT_CORE_COUNT	8
12 
13 #define BL31_BASE						0x80b00000
14 #define BL31_SIZE						0x00100000
15 
16 /*----------------------------------------------------------------------------*/
17 /* AOP CMD DB  address space for mapping */
18 /*----------------------------------------------------------------------------*/
19 #define QTI_AOP_CMD_DB_BASE			0x80820000
20 #define QTI_AOP_CMD_DB_SIZE			0x00020000
21 
22 /* Chipset specific secure interrupt number/ID defs. */
23 #define QTISECLIB_INT_ID_SEC_WDOG_BARK			(0x204)
24 #define QTISECLIB_INT_ID_NON_SEC_WDOG_BITE		(0x21)
25 
26 #define QTISECLIB_INT_ID_VMIDMT_ERR_CLT_SEC		(0xE6)
27 #define QTISECLIB_INT_ID_VMIDMT_ERR_CLT_NONSEC		(0xE7)
28 #define QTISECLIB_INT_ID_VMIDMT_ERR_CFG_SEC		(0xE8)
29 #define QTISECLIB_INT_ID_VMIDMT_ERR_CFG_NONSEC		(0xE9)
30 
31 #define QTISECLIB_INT_ID_XPU_SEC			(0xE3)
32 #define QTISECLIB_INT_ID_XPU_NON_SEC			(0xE4)
33 
34 #define QTISECLIB_INT_ID_A2_NOC_ERROR			(0x194)
35 #define QTISECLIB_INT_ID_CONFIG_NOC_ERROR		(0xE2)
36 #define QTISECLIB_INT_ID_DC_NOC_ERROR			(0x122)
37 #define QTISECLIB_INT_ID_MEM_NOC_ERROR			(0x6C)
38 #define QTISECLIB_INT_ID_SYSTEM_NOC_ERROR		(0xC6)
39 #define QTISECLIB_INT_ID_MMSS_NOC_ERROR			(0xBA)
40 
41 #endif /* QTISECLIB_DEFS_PLAT_H */
42