xref: /rk3399_ARM-atf/plat/qti/kodiak/inc/qti_secure_io_cfg.h (revision e01ce1ea61368f169f8f827a05ad9d0c5bb06160)
1 /*
2  * Copyright (c) 2019-2021, The Linux Foundation. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 #ifndef QTI_SECURE_IO_CFG_H
7 #define QTI_SECURE_IO_CFG_H
8 
9 #include <stdint.h>
10 
11 /*
12  * List of peripheral/IO memory areas that are protected from
13  * non-secure world but not required to be secure.
14  */
15 
16 #define EUD_MODE_MANAGER2_EN			0x088E2000
17 #define APPS_SMMU_TBU_PWR_STATUS		0x15002204
18 #define APPS_SMMU_CUSTOM_CFG			0x15002300
19 #define APPS_SMMU_STATS_SYNC_INV_TBU_ACK	0x150025DC
20 #define APPS_SMMU_SAFE_SEC_CFG			0x15002648
21 #define APPS_SMMU_MMU2QSS_AND_SAFE_WAIT_CNTR	0x15002670
22 
23 static const uintptr_t qti_secure_io_allowed_regs[] = {
24 	EUD_MODE_MANAGER2_EN,
25 	APPS_SMMU_TBU_PWR_STATUS,
26 	APPS_SMMU_CUSTOM_CFG,
27 	APPS_SMMU_STATS_SYNC_INV_TBU_ACK,
28 	APPS_SMMU_SAFE_SEC_CFG,
29 	APPS_SMMU_MMU2QSS_AND_SAFE_WAIT_CNTR,
30 };
31 
32 #endif /* QTI_SECURE_IO_CFG_H */
33