1 /* 2 * Copyright (c) 2023, MediaTek Inc. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef APUSYS_SECURITY_CTRL_PLAT_H 8 #define APUSYS_SECURITY_CTRL_PLAT_H 9 10 #include <platform_def.h> 11 12 #define SOC2APU_SET1_0 (APU_SEC_CON + 0x0c) 13 #define SOC2APU_SET1_1 (APU_SEC_CON + 0x10) 14 15 #define REG_DOMAIN_NUM (8) 16 #define REG_DOMAIN_BITS (4) 17 #define DOMAIN_REMAP_SEL BIT(6) 18 19 #define D0_REMAP_DOMAIN (0) 20 #define D1_REMAP_DOMAIN (1) 21 #define D2_REMAP_DOMAIN (2) 22 #define D3_REMAP_DOMAIN (3) 23 #define D4_REMAP_DOMAIN (4) 24 #define D5_REMAP_DOMAIN (14) 25 #define D6_REMAP_DOMAIN (6) 26 #define D7_REMAP_DOMAIN (14) 27 #define D8_REMAP_DOMAIN (8) 28 #define D9_REMAP_DOMAIN (9) 29 #define D10_REMAP_DOMAIN (10) 30 #define D11_REMAP_DOMAIN (11) 31 #define D12_REMAP_DOMAIN (12) 32 #define D13_REMAP_DOMAIN (13) 33 #define D14_REMAP_DOMAIN (14) 34 #define D15_REMAP_DOMAIN (15) 35 36 void apusys_security_ctrl_init(void); 37 38 #endif /* APUSYS_SECURITY_CTRL_PLAT_H */ 39