Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only OR MIT */ |
| 2 | |
| 3 | #include <console/console.h> |
| 4 | #include <soc/devapc.h> |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 5 | |
| 6 | static const struct apc_infra_peri_dom_16 infra_ao_sys0_devices[] = { |
| 7 | /* 0 */ |
| 8 | DAPC_INFRA_AO_SYS0_ATTR("SPM_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 9 | NO_PROTECTION, FORBIDDEN8, NO_PROTECTION, FORBIDDEN4, |
| 10 | NO_PROTECTION, FORBIDDEN), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 11 | DAPC_INFRA_AO_SYS0_ATTR("SPM_APB_S-1", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 12 | NO_PROTECTION, FORBIDDEN8, NO_PROTECTION, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 13 | DAPC_INFRA_AO_SYS0_ATTR("SPM_APB_S-2", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 14 | NO_PROTECTION, FORBIDDEN8, NO_PROTECTION, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 15 | DAPC_INFRA_AO_SYS0_ATTR("SPM_APB_S-4", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 16 | NO_PROTECTION, FORBIDDEN8, NO_PROTECTION, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 17 | DAPC_INFRA_AO_SYS0_ATTR("APMIXEDSYS_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 18 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION2, FORBIDDEN3, |
| 19 | NO_PROTECTION2, FORBIDDEN4, NO_PROTECTION, FORBIDDEN), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 20 | DAPC_INFRA_AO_SYS0_ATTR("APMIXEDSYS_APB_S-1", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 21 | NO_PROTECTION, FORBIDDEN8, NO_PROTECTION, FORBIDDEN4, |
| 22 | NO_PROTECTION, FORBIDDEN), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 23 | DAPC_INFRA_AO_SYS0_ATTR("TINSYS_AO_S", |
| 24 | NO_PROTECTION, FORBIDDEN15), |
| 25 | DAPC_INFRA_AO_SYS0_ATTR("TOPCKGEN_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 26 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION2, FORBIDDEN3, |
| 27 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 28 | DAPC_INFRA_AO_SYS0_ATTR("INFRACFG_AO_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 29 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 30 | NO_PROTECTION2, FORBIDDEN4, NO_PROTECTION, FORBIDDEN), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 31 | DAPC_INFRA_AO_SYS0_ATTR("INFRACFG_AO_MEM_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 32 | NO_PROTECTION, FORBIDDEN8, NO_PROTECTION, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 33 | /* 10 */ |
| 34 | DAPC_INFRA_AO_SYS0_ATTR("PERICFG_AO_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 35 | NO_PROTECTION, FORBIDDEN8, NO_PROTECTION, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 36 | DAPC_INFRA_AO_SYS0_ATTR("GPIO_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 37 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 38 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 39 | DAPC_INFRA_AO_SYS0_ATTR("TOPRGU_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 40 | NO_PROTECTION, FORBIDDEN8, NO_PROTECTION, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 41 | DAPC_INFRA_AO_SYS0_ATTR("DSP_IRQ_APB_S", |
| 42 | NO_PROTECTION, FORBIDDEN15), |
| 43 | DAPC_INFRA_AO_SYS0_ATTR("DEVICE_APC_INFRA_AO_APB_S", |
| 44 | SEC_RW_ONLY, FORBIDDEN15), |
| 45 | DAPC_INFRA_AO_SYS0_ATTR("BCRM_INFRA_AO_APB_S", |
| 46 | NO_PROTECTION, FORBIDDEN15), |
| 47 | DAPC_INFRA_AO_SYS0_ATTR("DEBUG_CTRL_INFRA_AO_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 48 | NO_PROTECTION, FORBIDDEN8, NO_PROTECTION, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 49 | DAPC_INFRA_AO_SYS0_ATTR("AP_CIRQ_EINT_APB_S", |
| 50 | NO_PROTECTION, FORBIDDEN15), |
| 51 | DAPC_INFRA_AO_SYS0_ATTR("PMIC_WRAP_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 52 | NO_PROTECTION, FORBIDDEN8, NO_PROTECTION, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 53 | DAPC_INFRA_AO_SYS0_ATTR("KP_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 54 | NO_PROTECTION, FORBIDDEN8, NO_PROTECTION, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 55 | /* 20 */ |
| 56 | DAPC_INFRA_AO_SYS0_ATTR("TOP_MISC_APB_S", |
| 57 | NO_PROTECTION, FORBIDDEN15), |
| 58 | DAPC_INFRA_AO_SYS0_ATTR("DVFSRC_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 59 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 60 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 61 | DAPC_INFRA_AO_SYS0_ATTR("MBIST_AO_APB_S", |
| 62 | NO_PROTECTION, FORBIDDEN15), |
| 63 | DAPC_INFRA_AO_SYS0_ATTR("HDMI_CEC_APB_S", |
| 64 | NO_PROTECTION, FORBIDDEN15), |
| 65 | DAPC_INFRA_AO_SYS0_ATTR("HDMI_EDID_APB_S", |
| 66 | NO_PROTECTION, FORBIDDEN15), |
| 67 | DAPC_INFRA_AO_SYS0_ATTR("HDMI_SCDC_APB_S", |
| 68 | NO_PROTECTION, FORBIDDEN15), |
| 69 | DAPC_INFRA_AO_SYS0_ATTR("IRRX_APB_S", |
| 70 | NO_PROTECTION, FORBIDDEN15), |
| 71 | DAPC_INFRA_AO_SYS0_ATTR("SYS_TIMER_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 72 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 73 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 74 | DAPC_INFRA_AO_SYS0_ATTR("MODEM_TEMP_SHARE_APB_S", |
| 75 | NO_PROTECTION, FORBIDDEN15), |
| 76 | DAPC_INFRA_AO_SYS0_ATTR("PMIF1_APB_S", |
| 77 | NO_PROTECTION, FORBIDDEN15), |
| 78 | /* 30 */ |
| 79 | DAPC_INFRA_AO_SYS0_ATTR("PMICSPI_MST_APB_S", |
| 80 | NO_PROTECTION, FORBIDDEN15), |
| 81 | DAPC_INFRA_AO_SYS0_ATTR("TIA_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 82 | NO_PROTECTION, FORBIDDEN8, NO_PROTECTION, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 83 | DAPC_INFRA_AO_SYS0_ATTR("TOPCKGEN_INFRA_CFG_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 84 | NO_PROTECTION, FORBIDDEN8, NO_PROTECTION, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 85 | DAPC_INFRA_AO_SYS0_ATTR("DRM_DEBUG_TOP_APB_S", |
| 86 | NO_PROTECTION, FORBIDDEN15), |
| 87 | DAPC_INFRA_AO_SYS0_ATTR("EFUSE_DEBUG_AO_APB_S", |
| 88 | NO_PROTECTION, FORBIDDEN15), |
| 89 | DAPC_INFRA_AO_SYS0_ATTR("APXGPT_APB_S", |
| 90 | NO_PROTECTION, FORBIDDEN15), |
| 91 | DAPC_INFRA_AO_SYS0_ATTR("SEJ_APB_S", |
| 92 | NO_PROTECTION, FORBIDDEN15), |
| 93 | DAPC_INFRA_AO_SYS0_ATTR("AES_TOP0_APB_S", |
| 94 | NO_PROTECTION, FORBIDDEN15), |
| 95 | DAPC_INFRA_AO_SYS0_ATTR("SECURITY_AO_APB_S", |
| 96 | NO_PROTECTION, FORBIDDEN15), |
| 97 | DAPC_INFRA_AO_SYS0_ATTR("SPMI_MST_APB_S", |
| 98 | NO_PROTECTION, FORBIDDEN15), |
| 99 | /* 40 */ |
| 100 | DAPC_INFRA_AO_SYS0_ATTR("DEBUG_CTRL_FMEM_AO_APB_S", |
| 101 | NO_PROTECTION, FORBIDDEN15), |
| 102 | DAPC_INFRA_AO_SYS0_ATTR("BCRM_FMEM_AO_APB_S", |
| 103 | NO_PROTECTION, FORBIDDEN15), |
| 104 | DAPC_INFRA_AO_SYS0_ATTR("DEVICE_APC_FMEM_AO_APB_S", |
| 105 | SEC_RW_ONLY, FORBIDDEN15), |
| 106 | DAPC_INFRA_AO_SYS0_ATTR("PWM_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 107 | NO_PROTECTION, FORBIDDEN8, NO_PROTECTION, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 108 | DAPC_INFRA_AO_SYS0_ATTR("PMSR_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 109 | NO_PROTECTION, FORBIDDEN8, NO_PROTECTION, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 110 | DAPC_INFRA_AO_SYS0_ATTR("SRCLKEN_RC_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 111 | NO_PROTECTION, FORBIDDEN8, NO_PROTECTION, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 112 | DAPC_INFRA_AO_SYS0_ATTR("MFG_S_S", |
| 113 | NO_PROTECTION, FORBIDDEN15), |
| 114 | DAPC_INFRA_AO_SYS0_ATTR("MFG_S_S-1", |
| 115 | NO_PROTECTION, FORBIDDEN15), |
| 116 | DAPC_INFRA_AO_SYS0_ATTR("MFG_S_S-2", |
| 117 | NO_PROTECTION, FORBIDDEN15), |
| 118 | DAPC_INFRA_AO_SYS0_ATTR("MFG_S_S-3", |
| 119 | NO_PROTECTION, FORBIDDEN15), |
| 120 | /* 50 */ |
| 121 | DAPC_INFRA_AO_SYS0_ATTR("MFG_S_S-4", |
| 122 | NO_PROTECTION, FORBIDDEN15), |
| 123 | DAPC_INFRA_AO_SYS0_ATTR("MFG_S_S-5", |
| 124 | NO_PROTECTION, FORBIDDEN15), |
| 125 | DAPC_INFRA_AO_SYS0_ATTR("MFG_S_S-6", |
| 126 | NO_PROTECTION, FORBIDDEN15), |
| 127 | DAPC_INFRA_AO_SYS0_ATTR("MFG_S_S-7", |
| 128 | NO_PROTECTION, FORBIDDEN15), |
| 129 | DAPC_INFRA_AO_SYS0_ATTR("MFG_S_S-8", |
| 130 | NO_PROTECTION, FORBIDDEN15), |
| 131 | DAPC_INFRA_AO_SYS0_ATTR("APU_S_S", |
| 132 | NO_PROTECTION, FORBIDDEN15), |
| 133 | DAPC_INFRA_AO_SYS0_ATTR("APU_S_S-1", |
| 134 | NO_PROTECTION, FORBIDDEN15), |
| 135 | DAPC_INFRA_AO_SYS0_ATTR("APU_S_S-2", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 136 | NO_PROTECTION, FORBIDDEN2, SEC_RW_ONLY, FORBIDDEN4, |
| 137 | SEC_RW_ONLY, FORBIDDEN7), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 138 | DAPC_INFRA_AO_SYS0_ATTR("APU_S_S-3", |
| 139 | NO_PROTECTION, FORBIDDEN15), |
| 140 | DAPC_INFRA_AO_SYS0_ATTR("APU_S_S-4", |
| 141 | NO_PROTECTION, FORBIDDEN15), |
| 142 | /* 60 */ |
| 143 | DAPC_INFRA_AO_SYS0_ATTR("APU_S_S-5", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 144 | NO_PROTECTION, FORBIDDEN2, SEC_RW_ONLY, FORBIDDEN4, |
| 145 | SEC_RW_ONLY, FORBIDDEN7), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 146 | DAPC_INFRA_AO_SYS0_ATTR("MCUSYS_CFGREG_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 147 | NO_PROTECTION, FORBIDDEN8, NO_PROTECTION, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 148 | DAPC_INFRA_AO_SYS0_ATTR("MCUSYS_CFGREG_APB_S-1", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 149 | NO_PROTECTION, FORBIDDEN8, NO_PROTECTION, FORBIDDEN4, |
| 150 | NO_PROTECTION, FORBIDDEN), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 151 | DAPC_INFRA_AO_SYS0_ATTR("MCUSYS_CFGREG_APB_S-2", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 152 | NO_PROTECTION, FORBIDDEN8, NO_PROTECTION, FORBIDDEN4, |
| 153 | NO_PROTECTION, FORBIDDEN), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 154 | DAPC_INFRA_AO_SYS0_ATTR("MCUSYS_CFGREG_APB_S-3", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 155 | NO_PROTECTION, FORBIDDEN8, NO_PROTECTION, FORBIDDEN4, |
| 156 | NO_PROTECTION, FORBIDDEN), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 157 | DAPC_INFRA_AO_SYS0_ATTR("MCUSYS_CFGREG_APB_S-4", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 158 | NO_PROTECTION, FORBIDDEN8, NO_PROTECTION, FORBIDDEN4, |
| 159 | NO_PROTECTION, FORBIDDEN), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 160 | DAPC_INFRA_AO_SYS0_ATTR("L3C_S", |
| 161 | NO_PROTECTION, FORBIDDEN15), |
| 162 | DAPC_INFRA_AO_SYS0_ATTR("L3C_S-1", |
| 163 | NO_PROTECTION, FORBIDDEN15), |
| 164 | DAPC_INFRA_AO_SYS0_ATTR("L3C_S-2", |
| 165 | NO_PROTECTION, FORBIDDEN15), |
| 166 | DAPC_INFRA_AO_SYS0_ATTR("PCIE0_AXI_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 167 | NO_PROTECTION, FORBIDDEN, NO_PROTECTION, FORBIDDEN13), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 168 | /* 70 */ |
| 169 | DAPC_INFRA_AO_SYS0_ATTR("VIOSYS_APB0_S", |
| 170 | NO_PROTECTION, FORBIDDEN15), |
| 171 | DAPC_INFRA_AO_SYS0_ATTR("VIOSYS_APB1_S", |
| 172 | NO_PROTECTION, FORBIDDEN15), |
| 173 | DAPC_INFRA_AO_SYS0_ATTR("VIOSYS_APB2_S", |
| 174 | NO_PROTECTION, FORBIDDEN15), |
| 175 | DAPC_INFRA_AO_SYS0_ATTR("VIOSYS_APB3_S", |
| 176 | NO_PROTECTION, FORBIDDEN15), |
| 177 | DAPC_INFRA_AO_SYS0_ATTR("VIOSYS_APB4_S", |
| 178 | NO_PROTECTION, FORBIDDEN15), |
| 179 | }; |
| 180 | |
| 181 | static const struct apc_infra_peri_dom_4 infra_ao_sys1_devices[] = { |
| 182 | /* 0 */ |
| 183 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 184 | NO_PROTECTION2, FORBIDDEN2), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 185 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-1", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 186 | NO_PROTECTION2, FORBIDDEN2), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 187 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-2", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 188 | NO_PROTECTION2, FORBIDDEN2), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 189 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-3", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 190 | NO_PROTECTION2, FORBIDDEN2), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 191 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-4", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 192 | NO_PROTECTION2, FORBIDDEN2), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 193 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-5", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 194 | NO_PROTECTION2, FORBIDDEN2), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 195 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-6", |
| 196 | NO_PROTECTION, FORBIDDEN3), |
| 197 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-7", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 198 | NO_PROTECTION2, FORBIDDEN2), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 199 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-8", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 200 | NO_PROTECTION2, FORBIDDEN2), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 201 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-9", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 202 | NO_PROTECTION2, FORBIDDEN2), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 203 | /* 10 */ |
| 204 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-10", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 205 | NO_PROTECTION2, FORBIDDEN2), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 206 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-11", |
| 207 | NO_PROTECTION, FORBIDDEN3), |
| 208 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-12", |
| 209 | NO_PROTECTION, FORBIDDEN3), |
| 210 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-13", |
| 211 | NO_PROTECTION, FORBIDDEN3), |
| 212 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-14", |
| 213 | NO_PROTECTION, FORBIDDEN3), |
| 214 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-15", |
| 215 | NO_PROTECTION, FORBIDDEN3), |
| 216 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-16", |
| 217 | NO_PROTECTION, FORBIDDEN3), |
| 218 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-17", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 219 | NO_PROTECTION2, FORBIDDEN2), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 220 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-18", |
| 221 | NO_PROTECTION, FORBIDDEN3), |
| 222 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-19", |
| 223 | NO_PROTECTION, FORBIDDEN3), |
| 224 | /* 20 */ |
| 225 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-20", |
| 226 | NO_PROTECTION, FORBIDDEN3), |
| 227 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-21", |
| 228 | NO_PROTECTION, FORBIDDEN3), |
| 229 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-22", |
| 230 | NO_PROTECTION, FORBIDDEN3), |
| 231 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-23", |
| 232 | NO_PROTECTION, FORBIDDEN3), |
| 233 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-24", |
| 234 | NO_PROTECTION, FORBIDDEN3), |
| 235 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-25", |
| 236 | NO_PROTECTION, FORBIDDEN3), |
| 237 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-26", |
| 238 | NO_PROTECTION, FORBIDDEN3), |
| 239 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-27", |
| 240 | NO_PROTECTION, FORBIDDEN3), |
| 241 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-28", |
| 242 | NO_PROTECTION, FORBIDDEN3), |
| 243 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-29", |
| 244 | NO_PROTECTION, FORBIDDEN3), |
| 245 | /* 30 */ |
| 246 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-30", |
| 247 | NO_PROTECTION, FORBIDDEN3), |
| 248 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-31", |
| 249 | NO_PROTECTION, FORBIDDEN3), |
| 250 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-32", |
| 251 | NO_PROTECTION, FORBIDDEN3), |
| 252 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-33", |
| 253 | NO_PROTECTION, FORBIDDEN3), |
| 254 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-34", |
| 255 | NO_PROTECTION, FORBIDDEN3), |
| 256 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-35", |
| 257 | NO_PROTECTION, FORBIDDEN3), |
| 258 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-36", |
| 259 | NO_PROTECTION, FORBIDDEN3), |
| 260 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-37", |
| 261 | NO_PROTECTION, FORBIDDEN3), |
| 262 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-38", |
| 263 | NO_PROTECTION, FORBIDDEN3), |
| 264 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-39", |
| 265 | NO_PROTECTION, FORBIDDEN3), |
| 266 | /* 40 */ |
| 267 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-40", |
| 268 | NO_PROTECTION, FORBIDDEN3), |
| 269 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-41", |
| 270 | NO_PROTECTION, FORBIDDEN3), |
| 271 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-42", |
| 272 | NO_PROTECTION, FORBIDDEN3), |
| 273 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-43", |
| 274 | NO_PROTECTION, FORBIDDEN3), |
| 275 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-44", |
| 276 | NO_PROTECTION, FORBIDDEN3), |
| 277 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-45", |
| 278 | NO_PROTECTION, FORBIDDEN3), |
| 279 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-46", |
| 280 | NO_PROTECTION, FORBIDDEN3), |
| 281 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-47", |
| 282 | NO_PROTECTION, FORBIDDEN3), |
| 283 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-48", |
| 284 | NO_PROTECTION, FORBIDDEN3), |
| 285 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-49", |
| 286 | NO_PROTECTION, FORBIDDEN3), |
| 287 | /* 50 */ |
| 288 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-50", |
| 289 | NO_PROTECTION, FORBIDDEN3), |
| 290 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-51", |
| 291 | NO_PROTECTION, FORBIDDEN3), |
| 292 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-52", |
| 293 | NO_PROTECTION, FORBIDDEN3), |
| 294 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-53", |
| 295 | NO_PROTECTION, FORBIDDEN3), |
| 296 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-54", |
| 297 | NO_PROTECTION, FORBIDDEN3), |
| 298 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-55", |
| 299 | NO_PROTECTION, FORBIDDEN3), |
| 300 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-56", |
| 301 | NO_PROTECTION, FORBIDDEN3), |
| 302 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-57", |
| 303 | NO_PROTECTION, FORBIDDEN3), |
| 304 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-58", |
| 305 | NO_PROTECTION, FORBIDDEN3), |
| 306 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-59", |
| 307 | NO_PROTECTION, FORBIDDEN3), |
| 308 | /* 60 */ |
| 309 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-60", |
| 310 | NO_PROTECTION, FORBIDDEN3), |
| 311 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-61", |
| 312 | NO_PROTECTION, FORBIDDEN3), |
| 313 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-62", |
| 314 | NO_PROTECTION, FORBIDDEN3), |
| 315 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-63", |
| 316 | NO_PROTECTION, FORBIDDEN3), |
| 317 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-64", |
| 318 | NO_PROTECTION, FORBIDDEN3), |
| 319 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-65", |
| 320 | NO_PROTECTION, FORBIDDEN3), |
| 321 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-66", |
| 322 | NO_PROTECTION, FORBIDDEN3), |
| 323 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-67", |
| 324 | NO_PROTECTION, FORBIDDEN3), |
| 325 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-68", |
| 326 | NO_PROTECTION, FORBIDDEN3), |
| 327 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-69", |
| 328 | NO_PROTECTION, FORBIDDEN3), |
| 329 | /* 70 */ |
| 330 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-70", |
| 331 | NO_PROTECTION, FORBIDDEN3), |
| 332 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-71", |
| 333 | NO_PROTECTION, FORBIDDEN3), |
| 334 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-72", |
| 335 | NO_PROTECTION, FORBIDDEN3), |
| 336 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-73", |
| 337 | NO_PROTECTION, FORBIDDEN3), |
| 338 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-74", |
| 339 | NO_PROTECTION, FORBIDDEN3), |
| 340 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-75", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 341 | SEC_RW_ONLY, FORBIDDEN3), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 342 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-76", |
| 343 | NO_PROTECTION, FORBIDDEN3), |
| 344 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-77", |
| 345 | NO_PROTECTION, FORBIDDEN3), |
| 346 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-78", |
| 347 | NO_PROTECTION, FORBIDDEN3), |
| 348 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-79", |
| 349 | NO_PROTECTION, FORBIDDEN3), |
| 350 | /* 80 */ |
| 351 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-80", |
| 352 | NO_PROTECTION, FORBIDDEN3), |
| 353 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-81", |
| 354 | NO_PROTECTION, FORBIDDEN3), |
| 355 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-82", |
| 356 | NO_PROTECTION, FORBIDDEN3), |
| 357 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-83", |
| 358 | NO_PROTECTION, FORBIDDEN3), |
| 359 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-84", |
| 360 | NO_PROTECTION, FORBIDDEN3), |
| 361 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-85", |
| 362 | NO_PROTECTION, FORBIDDEN3), |
| 363 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-86", |
| 364 | NO_PROTECTION, FORBIDDEN3), |
| 365 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-87", |
| 366 | NO_PROTECTION, FORBIDDEN3), |
| 367 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-88", |
| 368 | NO_PROTECTION, FORBIDDEN3), |
| 369 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-89", |
| 370 | NO_PROTECTION, FORBIDDEN3), |
| 371 | /* 90 */ |
| 372 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-90", |
| 373 | NO_PROTECTION, FORBIDDEN3), |
| 374 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-91", |
| 375 | NO_PROTECTION, FORBIDDEN3), |
| 376 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-92", |
| 377 | NO_PROTECTION, FORBIDDEN3), |
| 378 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-93", |
| 379 | NO_PROTECTION, FORBIDDEN3), |
| 380 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-94", |
| 381 | NO_PROTECTION, FORBIDDEN3), |
| 382 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-95", |
| 383 | NO_PROTECTION, FORBIDDEN3), |
| 384 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-96", |
| 385 | NO_PROTECTION, FORBIDDEN3), |
| 386 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-97", |
| 387 | NO_PROTECTION, FORBIDDEN3), |
| 388 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-98", |
| 389 | NO_PROTECTION, FORBIDDEN3), |
| 390 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-99", |
| 391 | NO_PROTECTION, FORBIDDEN3), |
| 392 | /* 100 */ |
| 393 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-100", |
| 394 | NO_PROTECTION, FORBIDDEN3), |
| 395 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-101", |
| 396 | NO_PROTECTION, FORBIDDEN3), |
| 397 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-102", |
| 398 | NO_PROTECTION, FORBIDDEN3), |
| 399 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-103", |
| 400 | NO_PROTECTION, FORBIDDEN3), |
| 401 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-104", |
| 402 | NO_PROTECTION, FORBIDDEN3), |
| 403 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-105", |
| 404 | NO_PROTECTION, FORBIDDEN3), |
| 405 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-106", |
| 406 | NO_PROTECTION, FORBIDDEN3), |
| 407 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-107", |
| 408 | NO_PROTECTION, FORBIDDEN3), |
| 409 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-108", |
| 410 | NO_PROTECTION, FORBIDDEN3), |
| 411 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-109", |
| 412 | NO_PROTECTION, FORBIDDEN3), |
| 413 | /* 110 */ |
| 414 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-110", |
| 415 | NO_PROTECTION, FORBIDDEN3), |
| 416 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-111", |
| 417 | NO_PROTECTION, FORBIDDEN3), |
| 418 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-112", |
| 419 | NO_PROTECTION, FORBIDDEN3), |
| 420 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-113", |
| 421 | NO_PROTECTION, FORBIDDEN3), |
| 422 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-114", |
| 423 | NO_PROTECTION, FORBIDDEN3), |
| 424 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-115", |
| 425 | NO_PROTECTION, FORBIDDEN3), |
| 426 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-116", |
| 427 | NO_PROTECTION, FORBIDDEN3), |
| 428 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-117", |
| 429 | NO_PROTECTION, FORBIDDEN3), |
| 430 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-118", |
| 431 | NO_PROTECTION, FORBIDDEN3), |
| 432 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-119", |
| 433 | NO_PROTECTION, FORBIDDEN3), |
| 434 | /* 120 */ |
| 435 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-120", |
| 436 | NO_PROTECTION, FORBIDDEN3), |
| 437 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-121", |
| 438 | NO_PROTECTION, FORBIDDEN3), |
| 439 | DAPC_INFRA_AO_SYS1_ATTR("MM_S_S-122", |
| 440 | NO_PROTECTION, FORBIDDEN3), |
| 441 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S", |
| 442 | NO_PROTECTION, FORBIDDEN3), |
| 443 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-1", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 444 | NO_PROTECTION2, FORBIDDEN2), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 445 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-2", |
| 446 | NO_PROTECTION, FORBIDDEN3), |
| 447 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-3", |
| 448 | NO_PROTECTION, FORBIDDEN3), |
| 449 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-4", |
| 450 | NO_PROTECTION, FORBIDDEN3), |
| 451 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-5", |
| 452 | NO_PROTECTION, FORBIDDEN3), |
| 453 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-6", |
| 454 | NO_PROTECTION, FORBIDDEN3), |
| 455 | /* 130 */ |
| 456 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-7", |
| 457 | NO_PROTECTION, FORBIDDEN3), |
| 458 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-8", |
| 459 | NO_PROTECTION, FORBIDDEN3), |
| 460 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-9", |
| 461 | NO_PROTECTION, FORBIDDEN3), |
| 462 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-10", |
| 463 | NO_PROTECTION, FORBIDDEN3), |
| 464 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-11", |
| 465 | NO_PROTECTION, FORBIDDEN3), |
| 466 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-12", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 467 | NO_PROTECTION2, FORBIDDEN2), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 468 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-13", |
| 469 | NO_PROTECTION, FORBIDDEN3), |
| 470 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-14", |
| 471 | NO_PROTECTION, FORBIDDEN3), |
| 472 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-15", |
| 473 | NO_PROTECTION, FORBIDDEN3), |
| 474 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-16", |
| 475 | NO_PROTECTION, FORBIDDEN3), |
| 476 | /* 140 */ |
| 477 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-17", |
| 478 | NO_PROTECTION, FORBIDDEN3), |
| 479 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-18", |
| 480 | NO_PROTECTION, FORBIDDEN3), |
| 481 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-19", |
| 482 | NO_PROTECTION, FORBIDDEN3), |
| 483 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-20", |
| 484 | NO_PROTECTION, FORBIDDEN3), |
| 485 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-21", |
| 486 | NO_PROTECTION, FORBIDDEN3), |
| 487 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-22", |
| 488 | NO_PROTECTION, FORBIDDEN3), |
| 489 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-23", |
| 490 | NO_PROTECTION, FORBIDDEN3), |
| 491 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-24", |
| 492 | NO_PROTECTION, FORBIDDEN3), |
| 493 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-25", |
| 494 | NO_PROTECTION, FORBIDDEN3), |
| 495 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-26", |
| 496 | NO_PROTECTION, FORBIDDEN3), |
| 497 | /* 150 */ |
| 498 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-27", |
| 499 | NO_PROTECTION, FORBIDDEN3), |
| 500 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-28", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 501 | SEC_RW_ONLY, FORBIDDEN3), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 502 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-29", |
| 503 | NO_PROTECTION, FORBIDDEN3), |
| 504 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-30", |
| 505 | NO_PROTECTION, FORBIDDEN3), |
| 506 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-31", |
| 507 | NO_PROTECTION, FORBIDDEN3), |
| 508 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-32", |
| 509 | NO_PROTECTION, FORBIDDEN3), |
| 510 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-33", |
| 511 | NO_PROTECTION, FORBIDDEN3), |
| 512 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-34", |
| 513 | NO_PROTECTION, FORBIDDEN3), |
| 514 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-35", |
| 515 | NO_PROTECTION, FORBIDDEN3), |
| 516 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-36", |
| 517 | NO_PROTECTION, FORBIDDEN3), |
| 518 | /* 160 */ |
| 519 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-37", |
| 520 | NO_PROTECTION, FORBIDDEN3), |
| 521 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-38", |
| 522 | NO_PROTECTION, FORBIDDEN3), |
| 523 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-39", |
| 524 | NO_PROTECTION, FORBIDDEN3), |
| 525 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-40", |
| 526 | NO_PROTECTION, FORBIDDEN3), |
| 527 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-41", |
| 528 | NO_PROTECTION, FORBIDDEN3), |
| 529 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-42", |
| 530 | NO_PROTECTION, FORBIDDEN3), |
| 531 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-43", |
| 532 | NO_PROTECTION, FORBIDDEN3), |
| 533 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-44", |
| 534 | NO_PROTECTION, FORBIDDEN3), |
| 535 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-45", |
| 536 | NO_PROTECTION, FORBIDDEN3), |
| 537 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-46", |
| 538 | NO_PROTECTION, FORBIDDEN3), |
| 539 | /* 170 */ |
| 540 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-47", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 541 | NO_PROTECTION2, FORBIDDEN2), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 542 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-48", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 543 | NO_PROTECTION2, FORBIDDEN2), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 544 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-49", |
| 545 | NO_PROTECTION, FORBIDDEN3), |
| 546 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-50", |
| 547 | NO_PROTECTION, FORBIDDEN3), |
| 548 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-51", |
| 549 | NO_PROTECTION, FORBIDDEN3), |
| 550 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-52", |
| 551 | NO_PROTECTION, FORBIDDEN3), |
| 552 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-53", |
| 553 | NO_PROTECTION, FORBIDDEN3), |
| 554 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-54", |
| 555 | NO_PROTECTION, FORBIDDEN3), |
| 556 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-55", |
| 557 | NO_PROTECTION, FORBIDDEN3), |
| 558 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-56", |
| 559 | NO_PROTECTION, FORBIDDEN3), |
| 560 | /* 180 */ |
| 561 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-57", |
| 562 | NO_PROTECTION, FORBIDDEN3), |
| 563 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-58", |
| 564 | NO_PROTECTION, FORBIDDEN3), |
| 565 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-59", |
| 566 | NO_PROTECTION, FORBIDDEN3), |
| 567 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-60", |
| 568 | NO_PROTECTION, FORBIDDEN3), |
| 569 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-61", |
| 570 | NO_PROTECTION, FORBIDDEN3), |
| 571 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-62", |
| 572 | NO_PROTECTION, FORBIDDEN3), |
| 573 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-63", |
| 574 | NO_PROTECTION, FORBIDDEN3), |
| 575 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-64", |
| 576 | NO_PROTECTION, FORBIDDEN3), |
| 577 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-65", |
| 578 | NO_PROTECTION, FORBIDDEN3), |
| 579 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-66", |
| 580 | NO_PROTECTION, FORBIDDEN3), |
| 581 | /* 190 */ |
| 582 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-67", |
| 583 | NO_PROTECTION, FORBIDDEN3), |
| 584 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-68", |
| 585 | NO_PROTECTION, FORBIDDEN3), |
| 586 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-69", |
| 587 | NO_PROTECTION, FORBIDDEN3), |
| 588 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-70", |
| 589 | NO_PROTECTION, FORBIDDEN3), |
| 590 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-71", |
| 591 | NO_PROTECTION, FORBIDDEN3), |
| 592 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-72", |
| 593 | NO_PROTECTION, FORBIDDEN3), |
| 594 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-73", |
| 595 | NO_PROTECTION, FORBIDDEN3), |
| 596 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-74", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 597 | NO_PROTECTION2, FORBIDDEN2), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 598 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-75", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 599 | NO_PROTECTION2, FORBIDDEN2), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 600 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-76", |
| 601 | NO_PROTECTION, FORBIDDEN3), |
| 602 | /* 200 */ |
| 603 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-77", |
| 604 | NO_PROTECTION, FORBIDDEN3), |
| 605 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-78", |
| 606 | NO_PROTECTION, FORBIDDEN3), |
| 607 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-79", |
| 608 | NO_PROTECTION, FORBIDDEN3), |
| 609 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-86", |
| 610 | NO_PROTECTION, FORBIDDEN3), |
| 611 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-88", |
| 612 | NO_PROTECTION, FORBIDDEN3), |
| 613 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-94", |
| 614 | NO_PROTECTION, FORBIDDEN3), |
| 615 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-95", |
| 616 | NO_PROTECTION, FORBIDDEN3), |
| 617 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-96", |
| 618 | NO_PROTECTION, FORBIDDEN3), |
| 619 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-97", |
| 620 | NO_PROTECTION, FORBIDDEN3), |
| 621 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-98", |
| 622 | NO_PROTECTION, FORBIDDEN3), |
| 623 | /* 210 */ |
| 624 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-99", |
| 625 | NO_PROTECTION, FORBIDDEN3), |
| 626 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-101", |
| 627 | NO_PROTECTION, FORBIDDEN3), |
| 628 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-102", |
| 629 | NO_PROTECTION, FORBIDDEN3), |
| 630 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-103", |
| 631 | NO_PROTECTION, FORBIDDEN3), |
| 632 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-104", |
| 633 | NO_PROTECTION, FORBIDDEN3), |
| 634 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-106", |
| 635 | NO_PROTECTION, FORBIDDEN3), |
| 636 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-107", |
| 637 | NO_PROTECTION, FORBIDDEN3), |
| 638 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-108", |
| 639 | NO_PROTECTION, FORBIDDEN3), |
| 640 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-109", |
| 641 | NO_PROTECTION, FORBIDDEN3), |
| 642 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-110", |
| 643 | NO_PROTECTION, FORBIDDEN3), |
| 644 | /* 220 */ |
| 645 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-111", |
| 646 | NO_PROTECTION, FORBIDDEN3), |
| 647 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-114", |
| 648 | NO_PROTECTION, FORBIDDEN3), |
| 649 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-115", |
| 650 | NO_PROTECTION, FORBIDDEN3), |
| 651 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-116", |
| 652 | NO_PROTECTION, FORBIDDEN3), |
| 653 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-117", |
| 654 | NO_PROTECTION, FORBIDDEN3), |
| 655 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-119", |
| 656 | NO_PROTECTION, FORBIDDEN3), |
| 657 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-121", |
| 658 | NO_PROTECTION, FORBIDDEN3), |
| 659 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-122", |
| 660 | NO_PROTECTION, FORBIDDEN3), |
| 661 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-123", |
| 662 | NO_PROTECTION, FORBIDDEN3), |
| 663 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-125", |
| 664 | NO_PROTECTION, FORBIDDEN3), |
| 665 | /* 230 */ |
| 666 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-126", |
| 667 | NO_PROTECTION, FORBIDDEN3), |
| 668 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-127", |
| 669 | NO_PROTECTION, FORBIDDEN3), |
| 670 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-128", |
| 671 | NO_PROTECTION, FORBIDDEN3), |
| 672 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-129", |
| 673 | NO_PROTECTION, FORBIDDEN3), |
| 674 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-130", |
| 675 | NO_PROTECTION, FORBIDDEN3), |
| 676 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-131", |
| 677 | NO_PROTECTION, FORBIDDEN3), |
| 678 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-132", |
| 679 | NO_PROTECTION, FORBIDDEN3), |
| 680 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-133", |
| 681 | NO_PROTECTION, FORBIDDEN3), |
| 682 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-134", |
| 683 | NO_PROTECTION, FORBIDDEN3), |
| 684 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-135", |
| 685 | NO_PROTECTION, FORBIDDEN3), |
| 686 | /* 240 */ |
| 687 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-136", |
| 688 | NO_PROTECTION, FORBIDDEN3), |
| 689 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-137", |
| 690 | NO_PROTECTION, FORBIDDEN3), |
| 691 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-138", |
| 692 | NO_PROTECTION, FORBIDDEN3), |
| 693 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-140", |
| 694 | NO_PROTECTION, FORBIDDEN3), |
| 695 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-141", |
| 696 | NO_PROTECTION, FORBIDDEN3), |
| 697 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-142", |
| 698 | NO_PROTECTION, FORBIDDEN3), |
| 699 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-143", |
| 700 | NO_PROTECTION, FORBIDDEN3), |
| 701 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-144", |
| 702 | NO_PROTECTION, FORBIDDEN3), |
| 703 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-145", |
| 704 | NO_PROTECTION, FORBIDDEN3), |
| 705 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-146", |
| 706 | NO_PROTECTION, FORBIDDEN3), |
| 707 | /* 250 */ |
| 708 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-147", |
| 709 | NO_PROTECTION, FORBIDDEN3), |
| 710 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-148", |
| 711 | NO_PROTECTION, FORBIDDEN3), |
| 712 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-149", |
| 713 | NO_PROTECTION, FORBIDDEN3), |
| 714 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-150", |
| 715 | NO_PROTECTION, FORBIDDEN3), |
| 716 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-151", |
| 717 | NO_PROTECTION, FORBIDDEN3), |
| 718 | DAPC_INFRA_AO_SYS1_ATTR("MDP_S_S-152", |
| 719 | NO_PROTECTION, FORBIDDEN3), |
| 720 | }; |
| 721 | |
| 722 | static const struct apc_infra_peri_dom_4 infra_ao_sys2_devices[] = { |
| 723 | /* 0 */ |
| 724 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-153", |
| 725 | NO_PROTECTION, FORBIDDEN3), |
| 726 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-154", |
| 727 | NO_PROTECTION, FORBIDDEN3), |
| 728 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-155", |
| 729 | NO_PROTECTION, FORBIDDEN3), |
| 730 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-156", |
| 731 | NO_PROTECTION, FORBIDDEN3), |
| 732 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-157", |
| 733 | NO_PROTECTION, FORBIDDEN3), |
| 734 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-158", |
| 735 | NO_PROTECTION, FORBIDDEN3), |
| 736 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-159", |
| 737 | NO_PROTECTION, FORBIDDEN3), |
| 738 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-160", |
| 739 | NO_PROTECTION, FORBIDDEN3), |
| 740 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-161", |
| 741 | NO_PROTECTION, FORBIDDEN3), |
| 742 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-163", |
| 743 | NO_PROTECTION, FORBIDDEN3), |
| 744 | /* 10 */ |
| 745 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-164", |
| 746 | NO_PROTECTION, FORBIDDEN3), |
| 747 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-165", |
| 748 | NO_PROTECTION, FORBIDDEN3), |
| 749 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-166", |
| 750 | NO_PROTECTION, FORBIDDEN3), |
| 751 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-167", |
| 752 | NO_PROTECTION, FORBIDDEN3), |
| 753 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-168", |
| 754 | NO_PROTECTION, FORBIDDEN3), |
| 755 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-169", |
| 756 | NO_PROTECTION, FORBIDDEN3), |
| 757 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-170", |
| 758 | NO_PROTECTION, FORBIDDEN3), |
| 759 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-171", |
| 760 | NO_PROTECTION, FORBIDDEN3), |
| 761 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-172", |
| 762 | NO_PROTECTION, FORBIDDEN3), |
| 763 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-173", |
| 764 | NO_PROTECTION, FORBIDDEN3), |
| 765 | /* 20 */ |
| 766 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-174", |
| 767 | NO_PROTECTION, FORBIDDEN3), |
| 768 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-176", |
| 769 | NO_PROTECTION, FORBIDDEN3), |
| 770 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-177", |
| 771 | NO_PROTECTION, FORBIDDEN3), |
| 772 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-178", |
| 773 | NO_PROTECTION, FORBIDDEN3), |
| 774 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-179", |
| 775 | NO_PROTECTION, FORBIDDEN3), |
| 776 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-181", |
| 777 | NO_PROTECTION, FORBIDDEN3), |
| 778 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-182", |
| 779 | NO_PROTECTION, FORBIDDEN3), |
| 780 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-183", |
| 781 | NO_PROTECTION, FORBIDDEN3), |
| 782 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-184", |
| 783 | NO_PROTECTION, FORBIDDEN3), |
| 784 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-186", |
| 785 | NO_PROTECTION, FORBIDDEN3), |
| 786 | /* 30 */ |
| 787 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-187", |
| 788 | NO_PROTECTION, FORBIDDEN3), |
| 789 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-188", |
| 790 | NO_PROTECTION, FORBIDDEN3), |
| 791 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-189", |
| 792 | NO_PROTECTION, FORBIDDEN3), |
| 793 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-190", |
| 794 | NO_PROTECTION, FORBIDDEN3), |
| 795 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-191", |
| 796 | NO_PROTECTION, FORBIDDEN3), |
| 797 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-192", |
| 798 | NO_PROTECTION, FORBIDDEN3), |
| 799 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-193", |
| 800 | NO_PROTECTION, FORBIDDEN3), |
| 801 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-194", |
| 802 | NO_PROTECTION, FORBIDDEN3), |
| 803 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-195", |
| 804 | NO_PROTECTION, FORBIDDEN3), |
| 805 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-196", |
| 806 | NO_PROTECTION, FORBIDDEN3), |
| 807 | /* 40 */ |
| 808 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-197", |
| 809 | NO_PROTECTION, FORBIDDEN3), |
| 810 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-198", |
| 811 | NO_PROTECTION, FORBIDDEN3), |
| 812 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-199", |
| 813 | NO_PROTECTION, FORBIDDEN3), |
| 814 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-200", |
| 815 | NO_PROTECTION, FORBIDDEN3), |
| 816 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-201", |
| 817 | NO_PROTECTION, FORBIDDEN3), |
| 818 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-202", |
| 819 | NO_PROTECTION, FORBIDDEN3), |
| 820 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-203", |
| 821 | NO_PROTECTION, FORBIDDEN3), |
| 822 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-204", |
| 823 | NO_PROTECTION, FORBIDDEN3), |
| 824 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-205", |
| 825 | NO_PROTECTION, FORBIDDEN3), |
| 826 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-207", |
| 827 | NO_PROTECTION, FORBIDDEN3), |
| 828 | /* 50 */ |
| 829 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-208", |
| 830 | NO_PROTECTION, FORBIDDEN3), |
| 831 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-209", |
| 832 | NO_PROTECTION, FORBIDDEN3), |
| 833 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-210", |
| 834 | NO_PROTECTION, FORBIDDEN3), |
| 835 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-211", |
| 836 | NO_PROTECTION, FORBIDDEN3), |
| 837 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-212", |
| 838 | NO_PROTECTION, FORBIDDEN3), |
| 839 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-213", |
| 840 | NO_PROTECTION, FORBIDDEN3), |
| 841 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-215", |
| 842 | NO_PROTECTION, FORBIDDEN3), |
| 843 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-216", |
| 844 | NO_PROTECTION, FORBIDDEN3), |
| 845 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-217", |
| 846 | NO_PROTECTION, FORBIDDEN3), |
| 847 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-218", |
| 848 | NO_PROTECTION, FORBIDDEN3), |
| 849 | /* 60 */ |
| 850 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-219", |
| 851 | NO_PROTECTION, FORBIDDEN3), |
| 852 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-220", |
| 853 | NO_PROTECTION, FORBIDDEN3), |
| 854 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-221", |
| 855 | NO_PROTECTION, FORBIDDEN3), |
| 856 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-222", |
| 857 | NO_PROTECTION, FORBIDDEN3), |
| 858 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-224", |
| 859 | NO_PROTECTION, FORBIDDEN3), |
| 860 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-225", |
| 861 | NO_PROTECTION, FORBIDDEN3), |
| 862 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-226", |
| 863 | NO_PROTECTION, FORBIDDEN3), |
| 864 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-227", |
| 865 | NO_PROTECTION, FORBIDDEN3), |
| 866 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-228", |
| 867 | NO_PROTECTION, FORBIDDEN3), |
| 868 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-229", |
| 869 | NO_PROTECTION, FORBIDDEN3), |
| 870 | /* 70 */ |
| 871 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-230", |
| 872 | NO_PROTECTION, FORBIDDEN3), |
| 873 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-231", |
| 874 | NO_PROTECTION, FORBIDDEN3), |
| 875 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-232", |
| 876 | NO_PROTECTION, FORBIDDEN3), |
| 877 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-233", |
| 878 | NO_PROTECTION, FORBIDDEN3), |
| 879 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-234", |
| 880 | NO_PROTECTION, FORBIDDEN3), |
| 881 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-235", |
| 882 | NO_PROTECTION, FORBIDDEN3), |
| 883 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-236", |
| 884 | NO_PROTECTION, FORBIDDEN3), |
| 885 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-237", |
| 886 | NO_PROTECTION, FORBIDDEN3), |
| 887 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-238", |
| 888 | NO_PROTECTION, FORBIDDEN3), |
| 889 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-239", |
| 890 | NO_PROTECTION, FORBIDDEN3), |
| 891 | /* 80 */ |
| 892 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-240", |
| 893 | NO_PROTECTION, FORBIDDEN3), |
| 894 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-242", |
| 895 | NO_PROTECTION, FORBIDDEN3), |
| 896 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-243", |
| 897 | NO_PROTECTION, FORBIDDEN3), |
| 898 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-244", |
| 899 | NO_PROTECTION, FORBIDDEN3), |
| 900 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-246", |
| 901 | NO_PROTECTION, FORBIDDEN3), |
| 902 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-247", |
| 903 | NO_PROTECTION, FORBIDDEN3), |
| 904 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-249", |
| 905 | NO_PROTECTION, FORBIDDEN3), |
| 906 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-250", |
| 907 | NO_PROTECTION, FORBIDDEN3), |
| 908 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-251", |
| 909 | NO_PROTECTION, FORBIDDEN3), |
| 910 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-253", |
| 911 | NO_PROTECTION, FORBIDDEN3), |
| 912 | /* 90 */ |
| 913 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-254", |
| 914 | NO_PROTECTION, FORBIDDEN3), |
| 915 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-256", |
| 916 | NO_PROTECTION, FORBIDDEN3), |
| 917 | DAPC_INFRA_AO_SYS2_ATTR("MDP_S_S-257", |
| 918 | NO_PROTECTION, FORBIDDEN3), |
| 919 | }; |
| 920 | |
| 921 | static const struct apc_infra_peri_dom_16 peri_ao_sys0_devices[] = { |
| 922 | /* 0 */ |
| 923 | DAPC_PERI_AO_SYS0_ATTR("DEVICE_APC_PERI_AO_APB_S", |
| 924 | SEC_RW_ONLY, FORBIDDEN15), |
| 925 | DAPC_PERI_AO_SYS0_ATTR("BCRM_PERI_AO_APB_S", |
| 926 | NO_PROTECTION, FORBIDDEN15), |
| 927 | DAPC_PERI_AO_SYS0_ATTR("DEBUG_CTRL_PERI_AO_APB_S", |
| 928 | NO_PROTECTION, FORBIDDEN15), |
| 929 | DAPC_PERI_AO_SYS0_ATTR("PWR_MD32_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 930 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 931 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 932 | DAPC_PERI_AO_SYS0_ATTR("PWR_MD32_S-1", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 933 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 934 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 935 | DAPC_PERI_AO_SYS0_ATTR("PWR_MD32_S-2", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 936 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 937 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 938 | DAPC_PERI_AO_SYS0_ATTR("PWR_MD32_S-3", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 939 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 940 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 941 | DAPC_PERI_AO_SYS0_ATTR("PWR_MD32_S-4", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 942 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 943 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 944 | DAPC_PERI_AO_SYS0_ATTR("PWR_MD32_S-5", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 945 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 946 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 947 | DAPC_PERI_AO_SYS0_ATTR("PWR_MD32_S-6", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 948 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 949 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 950 | /* 10 */ |
| 951 | DAPC_PERI_AO_SYS0_ATTR("PWR_MD32_S-7", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 952 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 953 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 954 | DAPC_PERI_AO_SYS0_ATTR("PWR_MD32_S-8", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 955 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 956 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 957 | DAPC_PERI_AO_SYS0_ATTR("PWR_MD32_S-9", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 958 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 959 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 960 | DAPC_PERI_AO_SYS0_ATTR("PWR_MD32_S-10", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 961 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 962 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 963 | DAPC_PERI_AO_SYS0_ATTR("DEBUGSYS_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 964 | NO_PROTECTION, FORBIDDEN8, NO_PROTECTION, FORBIDDEN4, |
| 965 | NO_PROTECTION, FORBIDDEN), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 966 | DAPC_PERI_AO_SYS0_ATTR("DRAMC_MD32_S0_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 967 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 968 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 969 | DAPC_PERI_AO_SYS0_ATTR("DRAMC_MD32_S0_APB_S-1", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 970 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 971 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 972 | DAPC_PERI_AO_SYS0_ATTR("DRAMC_MD32_S1_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 973 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 974 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 975 | DAPC_PERI_AO_SYS0_ATTR("DRAMC_MD32_S1_APB_S-1", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 976 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 977 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 978 | DAPC_PERI_AO_SYS0_ATTR("DRAMC_CH0_TOP0_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 979 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 980 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 981 | /* 20 */ |
| 982 | DAPC_PERI_AO_SYS0_ATTR("DRAMC_CH0_TOP1_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 983 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 984 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 985 | DAPC_PERI_AO_SYS0_ATTR("DRAMC_CH0_TOP2_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 986 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 987 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 988 | DAPC_PERI_AO_SYS0_ATTR("DRAMC_CH0_TOP3_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 989 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 990 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 991 | DAPC_PERI_AO_SYS0_ATTR("DRAMC_CH0_TOP4_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 992 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 993 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 994 | DAPC_PERI_AO_SYS0_ATTR("DRAMC_CH0_TOP5_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 995 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 996 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 997 | DAPC_PERI_AO_SYS0_ATTR("DRAMC_CH0_TOP6_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 998 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 999 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1000 | DAPC_PERI_AO_SYS0_ATTR("DRAMC_CH1_TOP0_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1001 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 1002 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1003 | DAPC_PERI_AO_SYS0_ATTR("DRAMC_CH1_TOP1_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1004 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 1005 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1006 | DAPC_PERI_AO_SYS0_ATTR("DRAMC_CH1_TOP2_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1007 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 1008 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1009 | DAPC_PERI_AO_SYS0_ATTR("DRAMC_CH1_TOP3_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1010 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 1011 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1012 | /* 30 */ |
| 1013 | DAPC_PERI_AO_SYS0_ATTR("DRAMC_CH1_TOP4_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1014 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 1015 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1016 | DAPC_PERI_AO_SYS0_ATTR("DRAMC_CH1_TOP5_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1017 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 1018 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1019 | DAPC_PERI_AO_SYS0_ATTR("DRAMC_CH1_TOP6_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1020 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 1021 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1022 | DAPC_PERI_AO_SYS0_ATTR("DRAMC_CH2_TOP0_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1023 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 1024 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1025 | DAPC_PERI_AO_SYS0_ATTR("DRAMC_CH2_TOP1_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1026 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 1027 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1028 | DAPC_PERI_AO_SYS0_ATTR("DRAMC_CH2_TOP2_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1029 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 1030 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1031 | DAPC_PERI_AO_SYS0_ATTR("DRAMC_CH2_TOP3_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1032 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 1033 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1034 | DAPC_PERI_AO_SYS0_ATTR("DRAMC_CH2_TOP4_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1035 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 1036 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1037 | DAPC_PERI_AO_SYS0_ATTR("DRAMC_CH2_TOP5_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1038 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 1039 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1040 | DAPC_PERI_AO_SYS0_ATTR("DRAMC_CH2_TOP6_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1041 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 1042 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1043 | /* 40 */ |
| 1044 | DAPC_PERI_AO_SYS0_ATTR("DRAMC_CH3_TOP0_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1045 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 1046 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1047 | DAPC_PERI_AO_SYS0_ATTR("DRAMC_CH3_TOP1_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1048 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 1049 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1050 | DAPC_PERI_AO_SYS0_ATTR("DRAMC_CH3_TOP2_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1051 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 1052 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1053 | DAPC_PERI_AO_SYS0_ATTR("DRAMC_CH3_TOP3_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1054 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 1055 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1056 | DAPC_PERI_AO_SYS0_ATTR("DRAMC_CH3_TOP4_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1057 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 1058 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1059 | DAPC_PERI_AO_SYS0_ATTR("DRAMC_CH3_TOP5_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1060 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 1061 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1062 | DAPC_PERI_AO_SYS0_ATTR("DRAMC_CH3_TOP6_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1063 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 1064 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1065 | DAPC_PERI_AO_SYS0_ATTR("CCIF2_AP_APB_S", |
| 1066 | NO_PROTECTION, FORBIDDEN15), |
| 1067 | DAPC_PERI_AO_SYS0_ATTR("CCIF2_MD_APB_S", |
| 1068 | NO_PROTECTION, FORBIDDEN15), |
| 1069 | DAPC_PERI_AO_SYS0_ATTR("CCIF3_AP_APB_S", |
| 1070 | NO_PROTECTION, FORBIDDEN15), |
| 1071 | /* 50 */ |
| 1072 | DAPC_PERI_AO_SYS0_ATTR("CCIF3_MD_APB_S", |
| 1073 | NO_PROTECTION, FORBIDDEN15), |
| 1074 | DAPC_PERI_AO_SYS0_ATTR("CCIF4_AP_APB_S", |
| 1075 | NO_PROTECTION, FORBIDDEN15), |
| 1076 | DAPC_PERI_AO_SYS0_ATTR("CCIF4_MD_APB_S", |
| 1077 | NO_PROTECTION, FORBIDDEN15), |
| 1078 | DAPC_PERI_AO_SYS0_ATTR("CCIF5_AP_APB_S", |
| 1079 | NO_PROTECTION, FORBIDDEN15), |
| 1080 | DAPC_PERI_AO_SYS0_ATTR("CCIF5_MD_APB_S", |
| 1081 | NO_PROTECTION, FORBIDDEN15), |
| 1082 | DAPC_PERI_AO_SYS0_ATTR("SSC_INFRA_APB0_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1083 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 1084 | NO_PROTECTION, FORBIDDEN7), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1085 | DAPC_PERI_AO_SYS0_ATTR("SSC_INFRA_APB1_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1086 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 1087 | NO_PROTECTION, FORBIDDEN7), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1088 | DAPC_PERI_AO_SYS0_ATTR("DEVICE_MPU_ACP_APB_S", |
| 1089 | SEC_RW_ONLY, FORBIDDEN15), |
| 1090 | }; |
| 1091 | |
| 1092 | static const struct apc_infra_peri_dom_8 peri_ao_sys1_devices[] = { |
| 1093 | /* 0 */ |
| 1094 | DAPC_PERI_AO_SYS1_ATTR("TINSYS_S", |
| 1095 | NO_PROTECTION, FORBIDDEN7), |
| 1096 | }; |
| 1097 | |
| 1098 | static const struct apc_infra_peri_dom_16 peri2_ao_sys0_devices[] = { |
| 1099 | /* 0 */ |
| 1100 | DAPC_PERI2_AO_SYS0_ATTR("DEVICE_APC_PERI_AO2_APB_S", |
| 1101 | SEC_RW_ONLY, FORBIDDEN15), |
| 1102 | DAPC_PERI2_AO_SYS0_ATTR("BCRM_PERI_AO2_APB_S", |
| 1103 | NO_PROTECTION, FORBIDDEN15), |
| 1104 | DAPC_PERI2_AO_SYS0_ATTR("DEBUG_CTRL_PERI_AO2_APB_S", |
| 1105 | NO_PROTECTION, FORBIDDEN15), |
| 1106 | DAPC_PERI2_AO_SYS0_ATTR("BND_EAST_APB0_S", |
| 1107 | NO_PROTECTION, FORBIDDEN15), |
| 1108 | DAPC_PERI2_AO_SYS0_ATTR("BND_EAST_APB1_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1109 | NO_PROTECTION, FORBIDDEN13, NO_PROTECTION, FORBIDDEN), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1110 | DAPC_PERI2_AO_SYS0_ATTR("BND_EAST_APB2_S", |
| 1111 | NO_PROTECTION, FORBIDDEN15), |
| 1112 | DAPC_PERI2_AO_SYS0_ATTR("BND_EAST_APB3_S", |
| 1113 | NO_PROTECTION, FORBIDDEN15), |
| 1114 | DAPC_PERI2_AO_SYS0_ATTR("BND_EAST_APB4_S", |
| 1115 | NO_PROTECTION, FORBIDDEN15), |
| 1116 | DAPC_PERI2_AO_SYS0_ATTR("BND_EAST_APB5_S", |
| 1117 | NO_PROTECTION, FORBIDDEN15), |
| 1118 | DAPC_PERI2_AO_SYS0_ATTR("BND_EAST_APB6_S", |
| 1119 | NO_PROTECTION, FORBIDDEN15), |
| 1120 | /* 10 */ |
| 1121 | DAPC_PERI2_AO_SYS0_ATTR("BND_EAST_APB7_S", |
| 1122 | NO_PROTECTION, FORBIDDEN15), |
| 1123 | DAPC_PERI2_AO_SYS0_ATTR("BND_EAST_APB8_S", |
| 1124 | NO_PROTECTION, FORBIDDEN15), |
| 1125 | DAPC_PERI2_AO_SYS0_ATTR("BND_EAST_APB9_S", |
| 1126 | NO_PROTECTION, FORBIDDEN15), |
| 1127 | DAPC_PERI2_AO_SYS0_ATTR("BND_EAST_APB10_S", |
| 1128 | NO_PROTECTION, FORBIDDEN15), |
| 1129 | DAPC_PERI2_AO_SYS0_ATTR("BND_EAST_APB11_S", |
| 1130 | NO_PROTECTION, FORBIDDEN15), |
| 1131 | DAPC_PERI2_AO_SYS0_ATTR("BND_EAST_APB12_S", |
| 1132 | NO_PROTECTION, FORBIDDEN15), |
| 1133 | DAPC_PERI2_AO_SYS0_ATTR("BND_EAST_APB13_S", |
| 1134 | NO_PROTECTION, FORBIDDEN15), |
| 1135 | DAPC_PERI2_AO_SYS0_ATTR("BND_EAST_APB14_S", |
| 1136 | NO_PROTECTION, FORBIDDEN15), |
| 1137 | DAPC_PERI2_AO_SYS0_ATTR("BND_EAST_APB15_S", |
| 1138 | NO_PROTECTION, FORBIDDEN15), |
| 1139 | DAPC_PERI2_AO_SYS0_ATTR("BND_WEST_APB0_S", |
| 1140 | NO_PROTECTION, FORBIDDEN15), |
| 1141 | /* 20 */ |
| 1142 | DAPC_PERI2_AO_SYS0_ATTR("BND_WEST_APB1_S", |
| 1143 | NO_PROTECTION, FORBIDDEN15), |
| 1144 | DAPC_PERI2_AO_SYS0_ATTR("BND_WEST_APB2_S", |
| 1145 | NO_PROTECTION, FORBIDDEN15), |
| 1146 | DAPC_PERI2_AO_SYS0_ATTR("BND_WEST_APB3_S", |
| 1147 | NO_PROTECTION, FORBIDDEN15), |
| 1148 | DAPC_PERI2_AO_SYS0_ATTR("BND_WEST_APB4_S", |
| 1149 | NO_PROTECTION, FORBIDDEN15), |
| 1150 | DAPC_PERI2_AO_SYS0_ATTR("BND_WEST_APB5_S", |
| 1151 | NO_PROTECTION, FORBIDDEN15), |
| 1152 | DAPC_PERI2_AO_SYS0_ATTR("BND_WEST_APB6_S", |
| 1153 | NO_PROTECTION, FORBIDDEN15), |
| 1154 | DAPC_PERI2_AO_SYS0_ATTR("BND_WEST_APB7_S", |
| 1155 | NO_PROTECTION, FORBIDDEN15), |
| 1156 | DAPC_PERI2_AO_SYS0_ATTR("BND_WEST_APB8_S", |
| 1157 | NO_PROTECTION, FORBIDDEN15), |
| 1158 | DAPC_PERI2_AO_SYS0_ATTR("BND_WEST_APB9_S", |
| 1159 | NO_PROTECTION, FORBIDDEN15), |
| 1160 | DAPC_PERI2_AO_SYS0_ATTR("BND_NORTH_APB0_S", |
| 1161 | NO_PROTECTION, FORBIDDEN15), |
| 1162 | /* 30 */ |
| 1163 | DAPC_PERI2_AO_SYS0_ATTR("BND_NORTH_APB1_S", |
| 1164 | NO_PROTECTION, FORBIDDEN15), |
| 1165 | DAPC_PERI2_AO_SYS0_ATTR("BND_NORTH_APB2_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1166 | NO_PROTECTION, FORBIDDEN13, NO_PROTECTION, FORBIDDEN), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1167 | DAPC_PERI2_AO_SYS0_ATTR("BND_NORTH_APB3_S", |
| 1168 | NO_PROTECTION, FORBIDDEN15), |
| 1169 | DAPC_PERI2_AO_SYS0_ATTR("BND_NORTH_APB4_S", |
| 1170 | NO_PROTECTION, FORBIDDEN15), |
| 1171 | DAPC_PERI2_AO_SYS0_ATTR("BND_NORTH_APB5_S", |
| 1172 | NO_PROTECTION, FORBIDDEN15), |
| 1173 | DAPC_PERI2_AO_SYS0_ATTR("BND_NORTH_APB6_S", |
| 1174 | NO_PROTECTION, FORBIDDEN15), |
| 1175 | DAPC_PERI2_AO_SYS0_ATTR("BND_NORTH_APB7_S", |
| 1176 | NO_PROTECTION, FORBIDDEN15), |
| 1177 | DAPC_PERI2_AO_SYS0_ATTR("BND_NORTH_APB8_S", |
| 1178 | NO_PROTECTION, FORBIDDEN15), |
| 1179 | DAPC_PERI2_AO_SYS0_ATTR("BND_NORTH_APB9_S", |
| 1180 | NO_PROTECTION, FORBIDDEN15), |
| 1181 | DAPC_PERI2_AO_SYS0_ATTR("BND_NORTH_APB10_S", |
| 1182 | NO_PROTECTION, FORBIDDEN15), |
| 1183 | /* 40 */ |
| 1184 | DAPC_PERI2_AO_SYS0_ATTR("BND_NORTH_APB11_S", |
| 1185 | NO_PROTECTION, FORBIDDEN15), |
| 1186 | DAPC_PERI2_AO_SYS0_ATTR("BND_NORTH_APB12_S", |
| 1187 | NO_PROTECTION, FORBIDDEN15), |
| 1188 | DAPC_PERI2_AO_SYS0_ATTR("BND_NORTH_APB13_S", |
| 1189 | NO_PROTECTION, FORBIDDEN15), |
| 1190 | DAPC_PERI2_AO_SYS0_ATTR("BND_NORTH_APB14_S", |
| 1191 | NO_PROTECTION, FORBIDDEN15), |
| 1192 | DAPC_PERI2_AO_SYS0_ATTR("BND_NORTH_APB15_S", |
| 1193 | NO_PROTECTION, FORBIDDEN15), |
| 1194 | DAPC_PERI2_AO_SYS0_ATTR("BND_SOUTH_APB0_S", |
| 1195 | NO_PROTECTION, FORBIDDEN15), |
| 1196 | DAPC_PERI2_AO_SYS0_ATTR("BND_SOUTH_APB1_S", |
| 1197 | NO_PROTECTION, FORBIDDEN15), |
| 1198 | DAPC_PERI2_AO_SYS0_ATTR("BND_SOUTH_APB2_S", |
| 1199 | NO_PROTECTION, FORBIDDEN15), |
| 1200 | DAPC_PERI2_AO_SYS0_ATTR("BND_SOUTH_APB3_S", |
| 1201 | NO_PROTECTION, FORBIDDEN15), |
| 1202 | DAPC_PERI2_AO_SYS0_ATTR("BND_SOUTH_APB4_S", |
| 1203 | NO_PROTECTION, FORBIDDEN15), |
| 1204 | /* 50 */ |
| 1205 | DAPC_PERI2_AO_SYS0_ATTR("BND_SOUTH_APB5_S", |
| 1206 | NO_PROTECTION, FORBIDDEN15), |
| 1207 | DAPC_PERI2_AO_SYS0_ATTR("BND_SOUTH_APB6_S", |
| 1208 | NO_PROTECTION, FORBIDDEN15), |
| 1209 | DAPC_PERI2_AO_SYS0_ATTR("BND_SOUTH_APB7_S", |
| 1210 | NO_PROTECTION, FORBIDDEN15), |
| 1211 | DAPC_PERI2_AO_SYS0_ATTR("BND_SOUTH_APB8_S", |
| 1212 | NO_PROTECTION, FORBIDDEN15), |
| 1213 | DAPC_PERI2_AO_SYS0_ATTR("BND_SOUTH_APB9_S", |
| 1214 | NO_PROTECTION, FORBIDDEN15), |
| 1215 | DAPC_PERI2_AO_SYS0_ATTR("BND_SOUTH_APB10_S", |
| 1216 | NO_PROTECTION, FORBIDDEN15), |
| 1217 | DAPC_PERI2_AO_SYS0_ATTR("BND_SOUTH_APB11_S", |
| 1218 | NO_PROTECTION, FORBIDDEN15), |
| 1219 | DAPC_PERI2_AO_SYS0_ATTR("BND_SOUTH_APB12_S", |
| 1220 | NO_PROTECTION, FORBIDDEN15), |
| 1221 | DAPC_PERI2_AO_SYS0_ATTR("BND_SOUTH_APB13_S", |
| 1222 | NO_PROTECTION, FORBIDDEN15), |
| 1223 | DAPC_PERI2_AO_SYS0_ATTR("BND_SOUTH_APB14_S", |
| 1224 | NO_PROTECTION, FORBIDDEN15), |
| 1225 | /* 60 */ |
| 1226 | DAPC_PERI2_AO_SYS0_ATTR("BND_SOUTH_APB15_S", |
| 1227 | NO_PROTECTION, FORBIDDEN15), |
| 1228 | DAPC_PERI2_AO_SYS0_ATTR("BND_EAST_NORTH_APB0_S", |
| 1229 | NO_PROTECTION, FORBIDDEN15), |
| 1230 | DAPC_PERI2_AO_SYS0_ATTR("BND_EAST_NORTH_APB1_S", |
| 1231 | NO_PROTECTION, FORBIDDEN15), |
| 1232 | DAPC_PERI2_AO_SYS0_ATTR("BND_EAST_NORTH_APB2_S", |
| 1233 | NO_PROTECTION, FORBIDDEN15), |
| 1234 | DAPC_PERI2_AO_SYS0_ATTR("BND_EAST_NORTH_APB3_S", |
| 1235 | NO_PROTECTION, FORBIDDEN15), |
| 1236 | DAPC_PERI2_AO_SYS0_ATTR("BND_EAST_NORTH_APB4_S", |
| 1237 | NO_PROTECTION, FORBIDDEN15), |
| 1238 | DAPC_PERI2_AO_SYS0_ATTR("BND_EAST_NORTH_APB5_S", |
| 1239 | NO_PROTECTION, FORBIDDEN15), |
| 1240 | DAPC_PERI2_AO_SYS0_ATTR("SYS_CIRQ_APB_S", |
| 1241 | NO_PROTECTION, FORBIDDEN15), |
| 1242 | DAPC_PERI2_AO_SYS0_ATTR("DEVICE_APC_INFRA_PDN_APB_S", |
| 1243 | NO_PROTECTION, FORBIDDEN15), |
| 1244 | DAPC_PERI2_AO_SYS0_ATTR("DEBUG_TRACKER_APB_S", |
| 1245 | NO_PROTECTION, FORBIDDEN15), |
| 1246 | /* 70 */ |
| 1247 | DAPC_PERI2_AO_SYS0_ATTR("CCIF0_AP_APB_S", |
| 1248 | NO_PROTECTION, FORBIDDEN15), |
| 1249 | DAPC_PERI2_AO_SYS0_ATTR("CCIF0_MD_APB_S", |
| 1250 | NO_PROTECTION, FORBIDDEN15), |
| 1251 | DAPC_PERI2_AO_SYS0_ATTR("CCIF1_AP_APB_S", |
| 1252 | NO_PROTECTION, FORBIDDEN15), |
| 1253 | DAPC_PERI2_AO_SYS0_ATTR("CCIF1_MD_APB_S", |
| 1254 | NO_PROTECTION, FORBIDDEN15), |
| 1255 | DAPC_PERI2_AO_SYS0_ATTR("MBIST_PDN_APB_S", |
| 1256 | NO_PROTECTION, FORBIDDEN15), |
| 1257 | DAPC_PERI2_AO_SYS0_ATTR("INFRACFG_PDN_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1258 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 1259 | NO_PROTECTION2, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1260 | DAPC_PERI2_AO_SYS0_ATTR("TRNG_APB_S", |
| 1261 | NO_PROTECTION, FORBIDDEN15), |
| 1262 | DAPC_PERI2_AO_SYS0_ATTR("GCPU_APB_S", |
| 1263 | NO_PROTECTION, FORBIDDEN15), |
| 1264 | DAPC_PERI2_AO_SYS0_ATTR("GCPU_NS_APB_S", |
| 1265 | NO_PROTECTION, FORBIDDEN15), |
| 1266 | DAPC_PERI2_AO_SYS0_ATTR("CQ_DMA_APB_S", |
| 1267 | NO_PROTECTION, FORBIDDEN15), |
| 1268 | /* 80 */ |
| 1269 | DAPC_PERI2_AO_SYS0_ATTR("SRAMROM_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1270 | NO_PROTECTION, FORBIDDEN8, NO_PROTECTION, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1271 | DAPC_PERI2_AO_SYS0_ATTR("INFRACFG_MEM_APB_S", |
| 1272 | NO_PROTECTION, FORBIDDEN15), |
| 1273 | DAPC_PERI2_AO_SYS0_ATTR("ECC_TOP_APB_S", |
| 1274 | NO_PROTECTION, FORBIDDEN15), |
| 1275 | DAPC_PERI2_AO_SYS0_ATTR("GCE_APB_S", |
| 1276 | NO_PROTECTION, FORBIDDEN15), |
| 1277 | DAPC_PERI2_AO_SYS0_ATTR("GCE_M2_APB_S", |
| 1278 | NO_PROTECTION, FORBIDDEN15), |
| 1279 | DAPC_PERI2_AO_SYS0_ATTR("SYS_CIRQ1_APB_S", |
| 1280 | NO_PROTECTION, FORBIDDEN15), |
| 1281 | DAPC_PERI2_AO_SYS0_ATTR("SYS_CIRQ2_APB_S", |
| 1282 | NO_PROTECTION, FORBIDDEN15), |
| 1283 | DAPC_PERI2_AO_SYS0_ATTR("DEBUG_TRACKER_APB1_S", |
| 1284 | NO_PROTECTION, FORBIDDEN15), |
| 1285 | DAPC_PERI2_AO_SYS0_ATTR("INFRA_IOMMU_WRAP_APB0_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1286 | NO_PROTECTION, FORBIDDEN8, NO_PROTECTION, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1287 | DAPC_PERI2_AO_SYS0_ATTR("INFRA_IOMMU_WRAP_APB1_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1288 | NO_PROTECTION, FORBIDDEN8, NO_PROTECTION, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1289 | /* 90 */ |
| 1290 | DAPC_PERI2_AO_SYS0_ATTR("INFRA_IOMMU_WRAP_APB2_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1291 | NO_PROTECTION, FORBIDDEN8, NO_PROTECTION, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1292 | DAPC_PERI2_AO_SYS0_ATTR("INFRA_IOMMU_WRAP_APB3_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1293 | NO_PROTECTION, FORBIDDEN8, NO_PROTECTION, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1294 | DAPC_PERI2_AO_SYS0_ATTR("INFRA_IOMMU_WRAP_APB4_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1295 | NO_PROTECTION, FORBIDDEN8, NO_PROTECTION, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1296 | DAPC_PERI2_AO_SYS0_ATTR("EMI_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1297 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 1298 | NO_PROTECTION, FORBIDDEN7), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1299 | DAPC_PERI2_AO_SYS0_ATTR("EMI_MPU_APB_S", |
| 1300 | SEC_RW_ONLY, FORBIDDEN15), |
| 1301 | DAPC_PERI2_AO_SYS0_ATTR("DEVICE_MPU_PDN_APB_S", |
| 1302 | SEC_RW_ONLY, FORBIDDEN15), |
| 1303 | DAPC_PERI2_AO_SYS0_ATTR("APDMA_APB_S", |
| 1304 | NO_PROTECTION, FORBIDDEN15), |
| 1305 | DAPC_PERI2_AO_SYS0_ATTR("DEBUG_TRACKER_APB2_S", |
| 1306 | NO_PROTECTION, FORBIDDEN15), |
| 1307 | DAPC_PERI2_AO_SYS0_ATTR("BCRM_INFRA_PDN_APB_S", |
| 1308 | NO_PROTECTION, FORBIDDEN15), |
| 1309 | DAPC_PERI2_AO_SYS0_ATTR("BCRM_PERI_PDN_APB_S", |
| 1310 | NO_PROTECTION, FORBIDDEN15), |
| 1311 | /* 100 */ |
| 1312 | DAPC_PERI2_AO_SYS0_ATTR("BCRM_PERI_PDN2_APB_S", |
| 1313 | NO_PROTECTION, FORBIDDEN15), |
| 1314 | DAPC_PERI2_AO_SYS0_ATTR("DEVICE_APC_PERI_PDN_APB_S", |
| 1315 | NO_PROTECTION, FORBIDDEN15), |
| 1316 | DAPC_PERI2_AO_SYS0_ATTR("DEVICE_APC_PERI_PDN2_APB_S", |
| 1317 | NO_PROTECTION, FORBIDDEN15), |
| 1318 | DAPC_PERI2_AO_SYS0_ATTR("BCRM_FMEM_PDN_APB_S", |
| 1319 | NO_PROTECTION, FORBIDDEN15), |
| 1320 | DAPC_PERI2_AO_SYS0_ATTR("FAKE_ENGINE_1_S", |
| 1321 | NO_PROTECTION, FORBIDDEN15), |
| 1322 | DAPC_PERI2_AO_SYS0_ATTR("FAKE_ENGINE_0_S", |
| 1323 | NO_PROTECTION, FORBIDDEN15), |
| 1324 | DAPC_PERI2_AO_SYS0_ATTR("PERI_SLOW_M_APB_S", |
| 1325 | NO_PROTECTION, FORBIDDEN15), |
| 1326 | DAPC_PERI2_AO_SYS0_ATTR("EMI_SUB_INFRA_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1327 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 1328 | NO_PROTECTION, FORBIDDEN7), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1329 | DAPC_PERI2_AO_SYS0_ATTR("EMI_MPU_SUB_INFRA_APB_S", |
| 1330 | SEC_RW_ONLY, FORBIDDEN15), |
| 1331 | DAPC_PERI2_AO_SYS0_ATTR("DEVICE_MPU_PDN_SUB_INFRA_APB_S", |
| 1332 | SEC_RW_ONLY, FORBIDDEN15), |
| 1333 | /* 110 */ |
| 1334 | DAPC_PERI2_AO_SYS0_ATTR("MBIST_PDN_SUB_INFRA_APB_S", |
| 1335 | NO_PROTECTION, FORBIDDEN15), |
| 1336 | DAPC_PERI2_AO_SYS0_ATTR("INFRACFG_MEM_SUB_INFRA_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1337 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 1338 | NO_PROTECTION, FORBIDDEN7), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1339 | DAPC_PERI2_AO_SYS0_ATTR("BCRM_SUB_INFRA_AO_APB_S", |
| 1340 | NO_PROTECTION, FORBIDDEN15), |
| 1341 | DAPC_PERI2_AO_SYS0_ATTR("DEBUG_CTRL_SUB_INFRA_AO_APB_S", |
| 1342 | NO_PROTECTION, FORBIDDEN15), |
| 1343 | DAPC_PERI2_AO_SYS0_ATTR("BCRM_SUB_INFRA_PDN_APB_S", |
| 1344 | NO_PROTECTION, FORBIDDEN15), |
| 1345 | DAPC_PERI2_AO_SYS0_ATTR("SSC_SUB_INFRA_APB1_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1346 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 1347 | NO_PROTECTION, FORBIDDEN7), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1348 | DAPC_PERI2_AO_SYS0_ATTR("SSC_SUB_INFRA_APB2_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1349 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 1350 | NO_PROTECTION, FORBIDDEN7), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1351 | DAPC_PERI2_AO_SYS0_ATTR("INFRACFG_AO_MEM_SUB_INFRA_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1352 | NO_PROTECTION, FORBIDDEN8, NO_PROTECTION, FORBIDDEN6), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1353 | DAPC_PERI2_AO_SYS0_ATTR("SUB_FAKE_ENGINE_MM_S", |
| 1354 | NO_PROTECTION, FORBIDDEN15), |
| 1355 | DAPC_PERI2_AO_SYS0_ATTR("SUB_FAKE_ENGINE_MDP_S", |
| 1356 | NO_PROTECTION, FORBIDDEN15), |
| 1357 | /* 120 */ |
| 1358 | DAPC_PERI2_AO_SYS0_ATTR("DEVICE_APC_SUB_INFRA_AO_APB_S", |
| 1359 | SEC_RW_ONLY, FORBIDDEN15), |
| 1360 | }; |
| 1361 | |
| 1362 | static const struct apc_infra_peri_dom_16 peri_par_ao_sys0_devices[] = { |
| 1363 | /* 0 */ |
| 1364 | DAPC_PERI_PAR_AO_SYS0_ATTR("SCP_S", |
| 1365 | NO_PROTECTION, FORBIDDEN15), |
| 1366 | DAPC_PERI_PAR_AO_SYS0_ATTR("SCP_S-1", |
| 1367 | NO_PROTECTION, FORBIDDEN15), |
| 1368 | DAPC_PERI_PAR_AO_SYS0_ATTR("SCP_S-2", |
| 1369 | NO_PROTECTION, FORBIDDEN15), |
| 1370 | DAPC_PERI_PAR_AO_SYS0_ATTR("SCP_S-3", |
| 1371 | NO_PROTECTION, FORBIDDEN15), |
| 1372 | DAPC_PERI_PAR_AO_SYS0_ATTR("SCP_S-4", |
| 1373 | NO_PROTECTION, FORBIDDEN15), |
| 1374 | DAPC_PERI_PAR_AO_SYS0_ATTR("SCP_S-5", |
| 1375 | NO_PROTECTION, FORBIDDEN15), |
| 1376 | DAPC_PERI_PAR_AO_SYS0_ATTR("SSUSB_S", |
| 1377 | NO_PROTECTION, FORBIDDEN15), |
| 1378 | DAPC_PERI_PAR_AO_SYS0_ATTR("SSUSB_S-1", |
| 1379 | NO_PROTECTION, FORBIDDEN15), |
| 1380 | DAPC_PERI_PAR_AO_SYS0_ATTR("SSUSB_S-2", |
| 1381 | NO_PROTECTION, FORBIDDEN15), |
| 1382 | DAPC_PERI_PAR_AO_SYS0_ATTR("NOR_AXI_S", |
| 1383 | NO_PROTECTION, FORBIDDEN15), |
| 1384 | /* 10 */ |
| 1385 | DAPC_PERI_PAR_AO_SYS0_ATTR("MSDC0_S", |
| 1386 | NO_PROTECTION, FORBIDDEN15), |
| 1387 | DAPC_PERI_PAR_AO_SYS0_ATTR("MSDC1_S", |
| 1388 | NO_PROTECTION, FORBIDDEN15), |
| 1389 | DAPC_PERI_PAR_AO_SYS0_ATTR("MSDC2_S", |
| 1390 | NO_PROTECTION, FORBIDDEN15), |
| 1391 | DAPC_PERI_PAR_AO_SYS0_ATTR("PCIE0_AHB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1392 | NO_PROTECTION, FORBIDDEN, NO_PROTECTION, FORBIDDEN13), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1393 | DAPC_PERI_PAR_AO_SYS0_ATTR("SSUSB_P2_S", |
| 1394 | NO_PROTECTION, FORBIDDEN15), |
| 1395 | DAPC_PERI_PAR_AO_SYS0_ATTR("SSUSB_P3_S", |
| 1396 | NO_PROTECTION, FORBIDDEN15), |
| 1397 | DAPC_PERI_PAR_AO_SYS0_ATTR("AUXADC_APB_S", |
| 1398 | NO_PROTECTION, FORBIDDEN15), |
| 1399 | DAPC_PERI_PAR_AO_SYS0_ATTR("UART0_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1400 | NO_PROTECTION, FORBIDDEN2, NO_PROTECTION, FORBIDDEN4, |
| 1401 | NO_PROTECTION, FORBIDDEN5, NO_PROTECTION, FORBIDDEN), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1402 | DAPC_PERI_PAR_AO_SYS0_ATTR("UART1_APB_S", |
| 1403 | NO_PROTECTION, FORBIDDEN15), |
| 1404 | DAPC_PERI_PAR_AO_SYS0_ATTR("UART2_APB_S", |
| 1405 | NO_PROTECTION, FORBIDDEN15), |
| 1406 | /* 20 */ |
| 1407 | DAPC_PERI_PAR_AO_SYS0_ATTR("UART3_APB_S", |
| 1408 | NO_PROTECTION, FORBIDDEN15), |
| 1409 | DAPC_PERI_PAR_AO_SYS0_ATTR("dummy_0", |
| 1410 | NO_PROTECTION, FORBIDDEN15), |
| 1411 | DAPC_PERI_PAR_AO_SYS0_ATTR("dummy_1", |
| 1412 | NO_PROTECTION, FORBIDDEN15), |
| 1413 | DAPC_PERI_PAR_AO_SYS0_ATTR("SPI0_APB_S", |
| 1414 | NO_PROTECTION, FORBIDDEN15), |
| 1415 | DAPC_PERI_PAR_AO_SYS0_ATTR("PTP_THERM_CTRL_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1416 | NO_PROTECTION, FORBIDDEN8, NO_PROTECTION, FORBIDDEN4, |
| 1417 | NO_PROTECTION, FORBIDDEN), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1418 | DAPC_PERI_PAR_AO_SYS0_ATTR("PERI_MBIST_PDN_APB_S", |
| 1419 | NO_PROTECTION, FORBIDDEN15), |
| 1420 | DAPC_PERI_PAR_AO_SYS0_ATTR("DISP_PWM_APB_S", |
| 1421 | NO_PROTECTION, FORBIDDEN15), |
| 1422 | DAPC_PERI_PAR_AO_SYS0_ATTR("DISP_PWM1_APB_S", |
| 1423 | NO_PROTECTION, FORBIDDEN15), |
| 1424 | DAPC_PERI_PAR_AO_SYS0_ATTR("SNPS_MAC_APB_S", |
| 1425 | NO_PROTECTION, FORBIDDEN15), |
| 1426 | DAPC_PERI_PAR_AO_SYS0_ATTR("SPI1_APB_S", |
| 1427 | NO_PROTECTION, FORBIDDEN15), |
| 1428 | /* 30 */ |
| 1429 | DAPC_PERI_PAR_AO_SYS0_ATTR("SPI2_APB_S", |
| 1430 | NO_PROTECTION, FORBIDDEN15), |
| 1431 | DAPC_PERI_PAR_AO_SYS0_ATTR("SPI3_APB_S", |
| 1432 | NO_PROTECTION, FORBIDDEN15), |
| 1433 | DAPC_PERI_PAR_AO_SYS0_ATTR("SPI4_APB_S", |
| 1434 | NO_PROTECTION, FORBIDDEN15), |
| 1435 | DAPC_PERI_PAR_AO_SYS0_ATTR("SPI5_APB_S", |
| 1436 | NO_PROTECTION, FORBIDDEN15), |
| 1437 | DAPC_PERI_PAR_AO_SYS0_ATTR("SPIS0_APB_S", |
| 1438 | NO_PROTECTION, FORBIDDEN15), |
| 1439 | DAPC_PERI_PAR_AO_SYS0_ATTR("SPIS1_APB_S", |
| 1440 | NO_PROTECTION, FORBIDDEN15), |
| 1441 | DAPC_PERI_PAR_AO_SYS0_ATTR("NFI_APB_S", |
| 1442 | NO_PROTECTION, FORBIDDEN15), |
| 1443 | DAPC_PERI_PAR_AO_SYS0_ATTR("NFIECC_APB_S", |
| 1444 | NO_PROTECTION, FORBIDDEN15), |
| 1445 | DAPC_PERI_PAR_AO_SYS0_ATTR("I2S_DMA_APB_S", |
| 1446 | NO_PROTECTION, FORBIDDEN15), |
| 1447 | DAPC_PERI_PAR_AO_SYS0_ATTR("I2S_DMA1_APB_S", |
| 1448 | NO_PROTECTION, FORBIDDEN15), |
| 1449 | /* 40 */ |
| 1450 | DAPC_PERI_PAR_AO_SYS0_ATTR("BCRM_PERI_PAR_PDN_APB_S", |
| 1451 | NO_PROTECTION, FORBIDDEN15), |
| 1452 | DAPC_PERI_PAR_AO_SYS0_ATTR("DEVICE_APC_PERI_PAR_PDN_APB_S", |
| 1453 | NO_PROTECTION, FORBIDDEN15), |
| 1454 | DAPC_PERI_PAR_AO_SYS0_ATTR("PTP_THERM_CTRL2_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1455 | NO_PROTECTION, FORBIDDEN8, NO_PROTECTION, FORBIDDEN4, |
| 1456 | NO_PROTECTION, FORBIDDEN), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1457 | DAPC_PERI_PAR_AO_SYS0_ATTR("IIC_P2P_REMAP_APB_S", |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1458 | NO_PROTECTION, FORBIDDEN13, NO_PROTECTION, FORBIDDEN), |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1459 | DAPC_PERI_PAR_AO_SYS0_ATTR("NOR_APB_S", |
| 1460 | NO_PROTECTION, FORBIDDEN15), |
| 1461 | DAPC_PERI_PAR_AO_SYS0_ATTR("PERICFG2_AO_APB_S", |
| 1462 | NO_PROTECTION, FORBIDDEN15), |
| 1463 | DAPC_PERI_PAR_AO_SYS0_ATTR("DEVICE_APC_PERI_PAR_AO_APB_S", |
| 1464 | SEC_RW_ONLY, FORBIDDEN15), |
| 1465 | DAPC_PERI_PAR_AO_SYS0_ATTR("DEBUG_CTRL_PERI_PAR_AO_APB_S", |
| 1466 | NO_PROTECTION, FORBIDDEN15), |
| 1467 | DAPC_PERI_PAR_AO_SYS0_ATTR("BCRM_PERI_PAR_AO_APB_S", |
| 1468 | NO_PROTECTION, FORBIDDEN15), |
| 1469 | }; |
| 1470 | |
| 1471 | static const enum domain_id domain_map[] = { |
| 1472 | DOMAIN_0, DOMAIN_1, DOMAIN_2, DOMAIN_3, DOMAIN_4, DOMAIN_5, DOMAIN_6, DOMAIN_7, |
| 1473 | DOMAIN_8, DOMAIN_9, DOMAIN_10, DOMAIN_11, DOMAIN_12, DOMAIN_13, DOMAIN_14, DOMAIN_15, |
| 1474 | }; |
| 1475 | |
| 1476 | static void set_infra_ao_apc(uintptr_t base) |
| 1477 | { |
| 1478 | int i, j; |
| 1479 | |
| 1480 | for (i = 0; i < ARRAY_SIZE(infra_ao_sys0_devices); i++) |
| 1481 | for (j = 0; j < ARRAY_SIZE(infra_ao_sys0_devices[i].d_permission); j++) |
| 1482 | set_module_apc(base + SYS0_D0_APC_0, i, domain_map[j], |
| 1483 | infra_ao_sys0_devices[i].d_permission[j]); |
| 1484 | |
| 1485 | for (i = 0; i < ARRAY_SIZE(infra_ao_sys1_devices); i++) |
| 1486 | for (j = 0; j < ARRAY_SIZE(infra_ao_sys1_devices[i].d_permission); j++) |
| 1487 | set_module_apc(base + SYS1_D0_APC_0, i, domain_map[j], |
| 1488 | infra_ao_sys1_devices[i].d_permission[j]); |
| 1489 | |
| 1490 | for (i = 0; i < ARRAY_SIZE(infra_ao_sys2_devices); i++) |
| 1491 | for (j = 0; j < ARRAY_SIZE(infra_ao_sys2_devices[i].d_permission); j++) |
| 1492 | set_module_apc(base + SYS2_D0_APC_0, i, domain_map[j], |
| 1493 | infra_ao_sys2_devices[i].d_permission[j]); |
| 1494 | |
| 1495 | } |
| 1496 | |
| 1497 | static void set_peri_ao_apc(uintptr_t base) |
| 1498 | { |
| 1499 | int i, j; |
| 1500 | |
| 1501 | for (i = 0; i < ARRAY_SIZE(peri_ao_sys0_devices); i++) |
| 1502 | for (j = 0; j < ARRAY_SIZE(peri_ao_sys0_devices[i].d_permission); j++) |
| 1503 | set_module_apc(base + SYS0_D0_APC_0, i, domain_map[j], |
| 1504 | peri_ao_sys0_devices[i].d_permission[j]); |
| 1505 | |
| 1506 | /* |
| 1507 | * Extra apc setting. |
| 1508 | * Block debugsys to avoid privilege escalation. |
| 1509 | */ |
| 1510 | if (!CONFIG(CONSOLE_SERIAL)) |
| 1511 | set_module_apc(base + SYS0_D0_APC_0, DEVAPC_DEBUGSYS_INDEX, |
| 1512 | DOMAIN_0, SEC_RW_NS_R); |
| 1513 | |
| 1514 | for (i = 0; i < ARRAY_SIZE(peri_ao_sys1_devices); i++) |
| 1515 | for (j = 0; j < ARRAY_SIZE(peri_ao_sys1_devices[i].d_permission); j++) |
| 1516 | set_module_apc(base + SYS1_D0_APC_0, i, domain_map[j], |
| 1517 | peri_ao_sys1_devices[i].d_permission[j]); |
| 1518 | |
| 1519 | } |
| 1520 | |
| 1521 | static void set_peri2_ao_apc(uintptr_t base) |
| 1522 | { |
| 1523 | int i, j; |
| 1524 | |
| 1525 | for (i = 0; i < ARRAY_SIZE(peri2_ao_sys0_devices); i++) |
| 1526 | for (j = 0; j < ARRAY_SIZE(peri2_ao_sys0_devices[i].d_permission); j++) |
| 1527 | set_module_apc(base + SYS0_D0_APC_0, i, domain_map[j], |
| 1528 | peri2_ao_sys0_devices[i].d_permission[j]); |
| 1529 | |
| 1530 | } |
| 1531 | |
| 1532 | static void set_peri_par_ao_apc(uintptr_t base) |
| 1533 | { |
| 1534 | int i, j; |
| 1535 | |
| 1536 | for (i = 0; i < ARRAY_SIZE(peri_par_ao_sys0_devices); i++) |
| 1537 | for (j = 0; j < ARRAY_SIZE(peri_par_ao_sys0_devices[i].d_permission); j++) |
| 1538 | set_module_apc(base + SYS0_D0_APC_0, i, domain_map[j], |
| 1539 | peri_par_ao_sys0_devices[i].d_permission[j]); |
| 1540 | |
| 1541 | } |
| 1542 | |
| 1543 | static void dump_infra_ao_apc(uintptr_t base) |
| 1544 | { |
| 1545 | int reg_max; |
| 1546 | int d, i; |
| 1547 | |
| 1548 | reg_max = DIV_ROUND_UP(ARRAY_SIZE(infra_ao_sys0_devices), MOD_NO_IN_1_DEVAPC); |
| 1549 | for (d = 0; d < DOM_NUM_INFRA_AO_SYS0; d++) |
| 1550 | for (i = 0; i < reg_max; i++) |
| 1551 | printk(BIOS_DEBUG, "[DEVAPC] (INFRA_AO_SYS0)D%d_APC_%d: %#x\n", d, |
| 1552 | i, read32(getreg_domain(base, SYS0_D0_APC_0, d, i))); |
| 1553 | |
| 1554 | reg_max = DIV_ROUND_UP(ARRAY_SIZE(infra_ao_sys1_devices), MOD_NO_IN_1_DEVAPC); |
| 1555 | for (d = 0; d < DOM_NUM_INFRA_AO_SYS1; d++) |
| 1556 | for (i = 0; i < reg_max; i++) |
| 1557 | printk(BIOS_DEBUG, "[DEVAPC] (INFRA_AO_SYS1)D%d_APC_%d: %#x\n", d, |
| 1558 | i, read32(getreg_domain(base, SYS1_D0_APC_0, d, i))); |
| 1559 | |
| 1560 | reg_max = DIV_ROUND_UP(ARRAY_SIZE(infra_ao_sys2_devices), MOD_NO_IN_1_DEVAPC); |
| 1561 | for (d = 0; d < DOM_NUM_INFRA_AO_SYS2; d++) |
| 1562 | for (i = 0; i < reg_max; i++) |
| 1563 | printk(BIOS_DEBUG, "[DEVAPC] (INFRA_AO_SYS2)D%d_APC_%d: %#x\n", d, |
| 1564 | i, read32(getreg_domain(base, SYS2_D0_APC_0, d, i))); |
| 1565 | |
| 1566 | printk(BIOS_DEBUG, "[DEVAPC] (INFRA_AO)MAS_SEC_0: %#x\n", |
| 1567 | read32(getreg(base, MAS_SEC_0))); |
| 1568 | } |
| 1569 | |
| 1570 | static void dump_peri_ao_apc(uintptr_t base) |
| 1571 | { |
| 1572 | int reg_max; |
| 1573 | int d, i; |
| 1574 | |
| 1575 | reg_max = DIV_ROUND_UP(ARRAY_SIZE(peri_ao_sys0_devices), MOD_NO_IN_1_DEVAPC); |
| 1576 | for (d = 0; d < DOM_NUM_PERI_AO_SYS0; d++) |
| 1577 | for (i = 0; i < reg_max; i++) |
| 1578 | printk(BIOS_DEBUG, "[DEVAPC] (PERI_AO_SYS0)D%d_APC_%d: %#x\n", d, |
| 1579 | i, read32(getreg_domain(base, SYS0_D0_APC_0, d, i))); |
| 1580 | |
| 1581 | reg_max = DIV_ROUND_UP(ARRAY_SIZE(peri_ao_sys1_devices), MOD_NO_IN_1_DEVAPC); |
| 1582 | for (d = 0; d < DOM_NUM_PERI_AO_SYS1; d++) |
| 1583 | for (i = 0; i < reg_max; i++) |
| 1584 | printk(BIOS_DEBUG, "[DEVAPC] (PERI_AO_SYS1)D%d_APC_%d: %#x\n", d, |
| 1585 | i, read32(getreg_domain(base, SYS1_D0_APC_0, d, i))); |
| 1586 | |
| 1587 | printk(BIOS_DEBUG, "[DEVAPC] (PERI_AO)MAS_SEC_0: %#x\n", |
| 1588 | read32(getreg(base, MAS_SEC_0))); |
| 1589 | } |
| 1590 | |
| 1591 | static void dump_peri2_ao_apc(uintptr_t base) |
| 1592 | { |
| 1593 | int reg_max; |
| 1594 | int d, i; |
| 1595 | |
| 1596 | reg_max = DIV_ROUND_UP(ARRAY_SIZE(peri2_ao_sys0_devices), MOD_NO_IN_1_DEVAPC); |
| 1597 | for (d = 0; d < DOM_NUM_PERI2_AO_SYS0; d++) |
| 1598 | for (i = 0; i < reg_max; i++) |
| 1599 | printk(BIOS_DEBUG, "[DEVAPC] (PERI2_AO_SYS0)D%d_APC_%d: %#x\n", d, |
| 1600 | i, read32(getreg_domain(base, SYS0_D0_APC_0, d, i))); |
| 1601 | |
| 1602 | } |
| 1603 | |
| 1604 | static void dump_peri_par_ao_apc(uintptr_t base) |
| 1605 | { |
| 1606 | int reg_max; |
| 1607 | int d, i; |
| 1608 | |
| 1609 | reg_max = DIV_ROUND_UP(ARRAY_SIZE(peri_par_ao_sys0_devices), MOD_NO_IN_1_DEVAPC); |
| 1610 | for (d = 0; d < DOM_NUM_PERI_PAR_AO_SYS0; d++) |
| 1611 | for (i = 0; i < reg_max; i++) |
| 1612 | printk(BIOS_DEBUG, "[DEVAPC] (PERI_PAR_AO_SYS0)D%d_APC_%d: %#x\n", d, |
| 1613 | i, read32(getreg_domain(base, SYS0_D0_APC_0, d, i))); |
| 1614 | |
| 1615 | printk(BIOS_DEBUG, "[DEVAPC] (PERI_PAR_AO)MAS_SEC_0: %#x\n", |
| 1616 | read32(getreg(base, MAS_SEC_0))); |
| 1617 | } |
| 1618 | |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1619 | static void dump_fmem_ao(uintptr_t base) |
| 1620 | { |
| 1621 | printk(BIOS_DEBUG, "[DEVAPC] (DEVAPC_FMEM_AO_BASE %#lx)DOM_REMAP_0_0:%#x\n", |
| 1622 | base, read32(getreg(base, DOM_REMAP_0_0))); |
| 1623 | } |
| 1624 | |
| 1625 | static void dump_infra2_ao(uintptr_t base) |
| 1626 | { |
| 1627 | printk(BIOS_DEBUG, "[DEVAPC] (DEVAPC_INFRA2_AO_BASE %#lx)DOM_REMAP_0_0:%#x\n", |
| 1628 | base, read32(getreg(base, DOM_REMAP_0_0))); |
| 1629 | } |
| 1630 | |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1631 | static void infra_init(uintptr_t base) |
| 1632 | { |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1633 | void *reg; |
| 1634 | |
Liju-Clr Chen | 78b7fb2 | 2022-11-01 13:14:13 +0800 | [diff] [blame] | 1635 | /* Side-band */ |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1636 | SET32_BITFIELDS(getreg(base, MAS_SEC_0), CPU_EB_SEC, SECURE_TRANS); |
| 1637 | SET32_BITFIELDS(getreg(base, MAS_SEC_0), SCP_SSPM_SEC, SECURE_TRANS); |
| 1638 | |
Nina Wu | 95a3c79 | 2023-09-08 10:03:09 +0800 | [diff] [blame^] | 1639 | /* Master Domain */ |
| 1640 | SET32_BITFIELDS(getreg(base, MAS_DOM_0), |
| 1641 | SCP_SSPM_DOM, DOMAIN_3, |
| 1642 | CPU_EB_DOM, DOMAIN_14); |
| 1643 | |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1644 | /* |
| 1645 | * Domain Remap: INFRA (4-bit) -> MMSYS (2-bit) |
| 1646 | * domain 0 -> domain 0 |
| 1647 | * domain 8 -> domain 1 (SCP) |
| 1648 | * others -> domain 3 |
| 1649 | */ |
| 1650 | reg = getreg(base, DOM_REMAP_2_0); |
| 1651 | write32(reg, 0xFFFFFFFF); |
| 1652 | SET32_BITFIELDS(reg, |
| 1653 | TWO_BIT_DOM_REMAP_0, DOMAIN_0, |
| 1654 | TWO_BIT_DOM_REMAP_8, DOMAIN_1); |
| 1655 | |
| 1656 | /* |
| 1657 | * Domain Remap: TINYSYS (3-bit) -> INFRA (4-bit) |
| 1658 | * domain 0 -> domain 4 (DSP) |
| 1659 | * others -> domain 15 |
| 1660 | */ |
| 1661 | reg = getreg(base, DOM_REMAP_0_0); |
| 1662 | write32(reg, 0xFFFFFFFF); |
| 1663 | SET32_BITFIELDS(reg, |
| 1664 | FOUR_BIT_DOM_REMAP_0, DOMAIN_4); |
| 1665 | |
Liju-Clr Chen | 78b7fb2 | 2022-11-01 13:14:13 +0800 | [diff] [blame] | 1666 | |
| 1667 | /* TODO: Setup SCP, SSPM and MCUPM permissions in APC . */ |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1668 | set_infra_ao_apc(base); |
| 1669 | } |
| 1670 | |
| 1671 | static void peri_init(uintptr_t base) |
| 1672 | { |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1673 | void *reg; |
| 1674 | |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1675 | /* Default APC setting */ |
| 1676 | set_peri_ao_apc(base); |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1677 | |
Nina Wu | 95a3c79 | 2023-09-08 10:03:09 +0800 | [diff] [blame^] | 1678 | /* Master Domain */ |
| 1679 | SET32_BITFIELDS(getreg(base, MAS_DOM_0), SPM_DOM, DOMAIN_9); |
| 1680 | |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1681 | /* |
| 1682 | * Domain Remap: INFRA (4-bit) -> TINYSYS (3-bit) |
| 1683 | * domain 0 -> domain 0 |
| 1684 | * domain 4 -> domain 0 (DSP) |
| 1685 | * others -> domain 7 |
| 1686 | */ |
| 1687 | reg = getreg(base, DOM_REMAP_0_0); |
| 1688 | write32(reg, 0xFFFFFFFF); |
| 1689 | SET32_BITFIELDS(reg, |
| 1690 | THREE_BIT_DOM_REMAP_0, DOMAIN_0, |
| 1691 | THREE_BIT_DOM_REMAP_4, DOMAIN_0); |
| 1692 | write32(getreg(base, DOM_REMAP_0_1), 0xFFFFFFFF); |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1693 | } |
| 1694 | |
| 1695 | static void peri2_init(uintptr_t base) |
| 1696 | { |
| 1697 | /* Default APC setting */ |
| 1698 | set_peri2_ao_apc(base); |
| 1699 | } |
| 1700 | |
| 1701 | static void peri_par_init(uintptr_t base) |
| 1702 | { |
| 1703 | /* Default APC setting */ |
| 1704 | set_peri_par_ao_apc(base); |
Nina Wu | 95a3c79 | 2023-09-08 10:03:09 +0800 | [diff] [blame^] | 1705 | |
| 1706 | /* Master Domain */ |
| 1707 | SET32_BITFIELDS(getreg_domain(base, MAS_DOM_0, 0, 4), |
| 1708 | PCIE0_DOM, DOMAIN_2); |
| 1709 | |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1710 | } |
| 1711 | |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1712 | static void fmem_master_init(uintptr_t base) |
| 1713 | { |
| 1714 | /* |
| 1715 | * Domain Remap: TINYSYS to EMI (3-bit to 4-bit) |
| 1716 | * 1. DSP from 0 to 4 |
| 1717 | * 2. others from XXX to 15 |
| 1718 | */ |
| 1719 | SET32_BITFIELDS(getreg(base, DOM_REMAP_0_0), |
| 1720 | FOUR_BIT_DOM_REMAP_0, DOMAIN_4, |
| 1721 | FOUR_BIT_DOM_REMAP_1, DOMAIN_15, |
| 1722 | FOUR_BIT_DOM_REMAP_2, DOMAIN_15, |
| 1723 | FOUR_BIT_DOM_REMAP_3, DOMAIN_15, |
| 1724 | FOUR_BIT_DOM_REMAP_4, DOMAIN_15, |
| 1725 | FOUR_BIT_DOM_REMAP_5, DOMAIN_15, |
| 1726 | FOUR_BIT_DOM_REMAP_6, DOMAIN_15, |
| 1727 | FOUR_BIT_DOM_REMAP_7, DOMAIN_15); |
| 1728 | } |
| 1729 | |
| 1730 | static void infra2_master_init(uintptr_t base) |
| 1731 | { |
| 1732 | /* |
| 1733 | * Domain Remap: TINYSYS to EMI (3-bit to 4-bit) |
| 1734 | * 1. DSP from 0 to 4 |
| 1735 | * 2. others from XXX to 15 |
| 1736 | */ |
| 1737 | SET32_BITFIELDS(getreg(base, DOM_REMAP_0_0), |
| 1738 | FOUR_BIT_DOM_REMAP_0, DOMAIN_4, |
| 1739 | FOUR_BIT_DOM_REMAP_1, DOMAIN_15, |
| 1740 | FOUR_BIT_DOM_REMAP_2, DOMAIN_15, |
| 1741 | FOUR_BIT_DOM_REMAP_3, DOMAIN_15, |
| 1742 | FOUR_BIT_DOM_REMAP_4, DOMAIN_15, |
| 1743 | FOUR_BIT_DOM_REMAP_5, DOMAIN_15, |
| 1744 | FOUR_BIT_DOM_REMAP_6, DOMAIN_15, |
| 1745 | FOUR_BIT_DOM_REMAP_7, DOMAIN_15); |
| 1746 | } |
| 1747 | |
Yidi Lin | 78b29f4 | 2022-12-20 15:30:38 +0800 | [diff] [blame] | 1748 | const struct devapc_init_ops devapc_init[] = { |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1749 | { DEVAPC_INFRA_AO_BASE, infra_init, dump_infra_ao_apc }, |
| 1750 | { DEVAPC_PERI_AO_BASE, peri_init, dump_peri_ao_apc }, |
| 1751 | { DEVAPC_PERI2_AO_BASE, peri2_init, dump_peri2_ao_apc }, |
| 1752 | { DEVAPC_PERI_PAR_AO_BASE, peri_par_init, dump_peri_par_ao_apc }, |
Nina Wu | 244ec48 | 2023-09-07 17:21:39 +0800 | [diff] [blame] | 1753 | { DEVAPC_FMEM_AO_BASE, fmem_master_init, dump_fmem_ao }, |
| 1754 | { DEVAPC_INFRA2_AO_BASE, infra2_master_init, dump_infra2_ao }, |
Nina Wu | c0797f5 | 2022-08-18 11:13:31 +0800 | [diff] [blame] | 1755 | }; |
| 1756 | |
Yidi Lin | 78b29f4 | 2022-12-20 15:30:38 +0800 | [diff] [blame] | 1757 | const size_t devapc_init_cnt = ARRAY_SIZE(devapc_init); |