Manish V Badarkhe | 2688093 | 2020-06-29 11:12:12 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2020, ARM Limited. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #include <tools_share/tbbr_oid.h> |
| 8 | #include <common/tbbr/tbbr_img_def.h> |
| 9 | |
| 10 | cot { |
| 11 | manifests { |
| 12 | compatible = "arm, cert-descs"; |
| 13 | |
| 14 | trusted_boot_fw_cert: trusted_boot_fw_cert { |
| 15 | root-certificate; |
| 16 | image-id =<TRUSTED_BOOT_FW_CERT_ID>; |
| 17 | antirollback-counter = <&trusted_nv_counter>; |
| 18 | |
| 19 | tb_fw_hash: tb_fw_hash { |
| 20 | oid = TRUSTED_BOOT_FW_HASH_OID; |
| 21 | }; |
| 22 | tb_fw_config_hash: tb_fw_config_hash { |
| 23 | oid = TRUSTED_BOOT_FW_CONFIG_HASH_OID; |
| 24 | }; |
| 25 | hw_config_hash: hw_config_hash { |
| 26 | oid = HW_CONFIG_HASH_OID; |
| 27 | }; |
| 28 | fw_config_hash: fw_config_hash { |
| 29 | oid = FW_CONFIG_HASH_OID; |
| 30 | }; |
| 31 | }; |
| 32 | |
| 33 | trusted_key_cert: trusted_key_cert { |
| 34 | root-certificate; |
| 35 | image-id = <TRUSTED_KEY_CERT_ID>; |
| 36 | antirollback-counter = <&trusted_nv_counter>; |
| 37 | |
| 38 | trusted_world_pk: trusted_world_pk { |
| 39 | oid = TRUSTED_WORLD_PK_OID; |
| 40 | }; |
| 41 | non_trusted_world_pk: non_trusted_world_pk { |
| 42 | oid = NON_TRUSTED_WORLD_PK_OID; |
| 43 | }; |
| 44 | }; |
| 45 | |
| 46 | scp_fw_key_cert: scp_fw_key_cert { |
| 47 | image-id = <SCP_FW_KEY_CERT_ID>; |
| 48 | parent = <&trusted_key_cert>; |
| 49 | signing-key = <&trusted_world_pk>; |
| 50 | antirollback-counter = <&trusted_nv_counter>; |
| 51 | |
| 52 | scp_fw_content_pk: scp_fw_content_pk { |
| 53 | oid = SCP_FW_CONTENT_CERT_PK_OID; |
| 54 | }; |
| 55 | }; |
| 56 | |
| 57 | scp_fw_content_cert: scp_fw_content_cert { |
| 58 | image-id = <SCP_FW_CONTENT_CERT_ID>; |
| 59 | parent = <&scp_fw_key_cert>; |
| 60 | signing-key = <&scp_fw_content_pk>; |
| 61 | antirollback-counter = <&trusted_nv_counter>; |
| 62 | |
| 63 | scp_fw_hash: scp_fw_hash { |
| 64 | oid = SCP_FW_HASH_OID; |
| 65 | }; |
| 66 | }; |
| 67 | |
| 68 | soc_fw_key_cert: soc_fw_key_cert { |
| 69 | image-id = <SOC_FW_KEY_CERT_ID>; |
| 70 | parent = <&trusted_key_cert>; |
| 71 | signing-key = <&trusted_world_pk>; |
| 72 | antirollback-counter = <&trusted_nv_counter>; |
| 73 | soc_fw_content_pk: soc_fw_content_pk { |
| 74 | oid = SOC_FW_CONTENT_CERT_PK_OID; |
| 75 | }; |
| 76 | }; |
| 77 | |
| 78 | soc_fw_content_cert: soc_fw_content_cert { |
| 79 | image-id = <SOC_FW_CONTENT_CERT_ID>; |
| 80 | parent = <&soc_fw_key_cert>; |
| 81 | signing-key = <&soc_fw_content_pk>; |
| 82 | antirollback-counter = <&trusted_nv_counter>; |
| 83 | |
| 84 | soc_fw_hash: soc_fw_hash { |
| 85 | oid = SOC_AP_FW_HASH_OID; |
| 86 | }; |
| 87 | soc_fw_config_hash: soc_fw_config_hash { |
| 88 | oid = SOC_FW_CONFIG_HASH_OID; |
| 89 | }; |
| 90 | }; |
| 91 | |
| 92 | trusted_os_fw_key_cert: trusted_os_fw_key_cert { |
| 93 | image-id = <TRUSTED_OS_FW_KEY_CERT_ID>; |
| 94 | parent = <&trusted_key_cert>; |
| 95 | signing-key = <&trusted_world_pk>; |
| 96 | antirollback-counter = <&trusted_nv_counter>; |
| 97 | |
| 98 | tos_fw_content_pk: tos_fw_content_pk { |
| 99 | oid = TRUSTED_OS_FW_CONTENT_CERT_PK_OID; |
| 100 | }; |
| 101 | }; |
| 102 | |
| 103 | trusted_os_fw_content_cert: trusted_os_fw_content_cert { |
| 104 | image-id = <TRUSTED_OS_FW_CONTENT_CERT_ID>; |
| 105 | parent = <&trusted_os_fw_key_cert>; |
| 106 | signing-key = <&tos_fw_content_pk>; |
| 107 | antirollback-counter = <&trusted_nv_counter>; |
| 108 | |
| 109 | tos_fw_hash: tos_fw_hash { |
| 110 | oid = TRUSTED_OS_FW_HASH_OID; |
| 111 | }; |
| 112 | tos_fw_extra1_hash: tos_fw_extra1_hash { |
| 113 | oid = TRUSTED_OS_FW_EXTRA1_HASH_OID; |
| 114 | }; |
| 115 | tos_fw_extra2_hash: tos_fw_extra2_hash { |
| 116 | oid = TRUSTED_OS_FW_EXTRA2_HASH_OID; |
| 117 | }; |
| 118 | tos_fw_config_hash: tos_fw_config_hash { |
| 119 | oid = TRUSTED_OS_FW_CONFIG_HASH_OID; |
| 120 | }; |
| 121 | }; |
| 122 | |
| 123 | non_trusted_fw_key_cert: non_trusted_fw_key_cert { |
| 124 | image-id = <NON_TRUSTED_FW_KEY_CERT_ID>; |
| 125 | parent = <&trusted_key_cert>; |
| 126 | signing-key = <&non_trusted_world_pk>; |
| 127 | antirollback-counter = <&non_trusted_nv_counter>; |
| 128 | |
| 129 | nt_fw_content_pk: nt_fw_content_pk { |
| 130 | oid = NON_TRUSTED_FW_CONTENT_CERT_PK_OID; |
| 131 | }; |
| 132 | }; |
| 133 | |
| 134 | non_trusted_fw_content_cert: non_trusted_fw_content_cert { |
| 135 | image-id = <NON_TRUSTED_FW_CONTENT_CERT_ID>; |
| 136 | parent = <&non_trusted_fw_key_cert>; |
| 137 | signing-key = <&nt_fw_content_pk>; |
| 138 | antirollback-counter = <&non_trusted_nv_counter>; |
| 139 | |
| 140 | nt_world_bl_hash: nt_world_bl_hash { |
| 141 | oid = NON_TRUSTED_WORLD_BOOTLOADER_HASH_OID; |
| 142 | }; |
| 143 | nt_fw_config_hash: nt_fw_config_hash { |
| 144 | oid = NON_TRUSTED_FW_CONFIG_HASH_OID; |
| 145 | }; |
| 146 | }; |
| 147 | |
| 148 | #if defined(SPD_spmd) |
| 149 | sp_content_cert: sp_content_cert { |
| 150 | image-id = <SP_CONTENT_CERT_ID>; |
| 151 | parent = <&trusted_key_cert>; |
| 152 | signing-key = <&trusted_world_pk>; |
| 153 | antirollback-counter = <&trusted_nv_counter>; |
| 154 | |
| 155 | sp_pkg1_hash: sp_pkg1_hash { |
| 156 | oid = SP_PKG1_HASH_OID; |
| 157 | }; |
| 158 | sp_pkg2_hash: sp_pkg2_hash { |
| 159 | oid = SP_PKG2_HASH_OID; |
| 160 | }; |
| 161 | sp_pkg3_hash: sp_pkg3_hash { |
| 162 | oid = SP_PKG3_HASH_OID; |
| 163 | }; |
| 164 | sp_pkg4_hash: sp_pkg4_hash { |
| 165 | oid = SP_PKG4_HASH_OID; |
| 166 | }; |
| 167 | sp_pkg5_hash: sp_pkg5_hash { |
| 168 | oid = SP_PKG5_HASH_OID; |
| 169 | }; |
| 170 | sp_pkg6_hash: sp_pkg6_hash { |
| 171 | oid = SP_PKG6_HASH_OID; |
| 172 | }; |
| 173 | sp_pkg7_hash: sp_pkg7_hash { |
| 174 | oid = SP_PKG7_HASH_OID; |
| 175 | }; |
| 176 | sp_pkg8_hash: sp_pkg8_hash { |
| 177 | oid = SP_PKG8_HASH_OID; |
| 178 | }; |
| 179 | }; |
| 180 | #endif |
| 181 | }; |
| 182 | |
| 183 | images { |
| 184 | compatible = "arm, img-descs"; |
| 185 | |
| 186 | hw_config { |
| 187 | image-id = <HW_CONFIG_ID>; |
| 188 | parent = <&trusted_boot_fw_cert>; |
| 189 | hash = <&hw_config_hash>; |
| 190 | }; |
| 191 | |
| 192 | tb_fw_config { |
| 193 | image-id = <TB_FW_CONFIG_ID>; |
| 194 | parent = <&trusted_boot_fw_cert>; |
| 195 | hash = <&tb_fw_config_hash>; |
| 196 | }; |
| 197 | |
| 198 | scp_bl2_image { |
| 199 | image-id = <SCP_BL2_IMAGE_ID>; |
| 200 | parent = <&scp_fw_content_cert>; |
| 201 | hash = <&scp_fw_hash>; |
| 202 | }; |
| 203 | |
| 204 | bl31_image { |
| 205 | image-id = <BL31_IMAGE_ID>; |
| 206 | parent = <&soc_fw_content_cert>; |
| 207 | hash = <&soc_fw_hash>; |
| 208 | }; |
| 209 | |
| 210 | soc_fw_config { |
| 211 | image-id = <SOC_FW_CONFIG_ID>; |
| 212 | parent = <&soc_fw_content_cert>; |
| 213 | hash = <&soc_fw_config_hash>; |
| 214 | }; |
| 215 | |
| 216 | bl32_image { |
| 217 | image-id = <BL32_IMAGE_ID>; |
| 218 | parent = <&trusted_os_fw_content_cert>; |
| 219 | hash = <&tos_fw_hash>; |
| 220 | }; |
| 221 | |
| 222 | bl32_extra1_image { |
| 223 | image-id = <BL32_EXTRA1_IMAGE_ID>; |
| 224 | parent = <&trusted_os_fw_content_cert>; |
| 225 | hash = <&tos_fw_extra1_hash>; |
| 226 | }; |
| 227 | |
| 228 | bl32_extra2_image { |
| 229 | image-id = <BL32_EXTRA2_IMAGE_ID>; |
| 230 | parent = <&trusted_os_fw_content_cert>; |
| 231 | hash = <&tos_fw_extra2_hash>; |
| 232 | }; |
| 233 | |
| 234 | tos_fw_config { |
| 235 | image-id = <TOS_FW_CONFIG_ID>; |
| 236 | parent = <&trusted_os_fw_content_cert>; |
| 237 | hash = <&tos_fw_config_hash>; |
| 238 | }; |
| 239 | |
| 240 | bl33_image { |
| 241 | image-id = <BL33_IMAGE_ID>; |
| 242 | parent = <&non_trusted_fw_content_cert>; |
| 243 | hash = <&nt_world_bl_hash>; |
| 244 | }; |
| 245 | |
| 246 | nt_fw_config { |
| 247 | image-id = <NT_FW_CONFIG_ID>; |
| 248 | parent = <&non_trusted_fw_content_cert>; |
| 249 | hash = <&nt_fw_config_hash>; |
| 250 | }; |
| 251 | |
| 252 | #if defined(SPD_spmd) |
| 253 | sp_pkg1 { |
| 254 | image-id = <SP_CONTENT_CERT_ID + 1>; |
| 255 | parent = <&sp_content_cert>; |
| 256 | hash = <&sp_pkg1_hash>; |
| 257 | }; |
| 258 | |
| 259 | sp_pkg2 { |
| 260 | image-id = <SP_CONTENT_CERT_ID + 2>; |
| 261 | parent = <&sp_content_cert>; |
| 262 | hash = <&sp_pkg2_hash>; |
| 263 | }; |
| 264 | |
| 265 | sp_pkg3 { |
| 266 | image-id = <SP_CONTENT_CERT_ID + 3>; |
| 267 | parent = <&sp_content_cert>; |
| 268 | hash = <&sp_pkg3_hash>; |
| 269 | }; |
| 270 | |
| 271 | sp_pkg4 { |
| 272 | image-id = <SP_CONTENT_CERT_ID + 4>; |
| 273 | parent = <&sp_content_cert>; |
| 274 | hash = <&sp_pkg4_hash>; |
| 275 | }; |
| 276 | |
| 277 | sp_pkg5 { |
| 278 | image-id = <SP_CONTENT_CERT_ID + 5>; |
| 279 | parent = <&sp_content_cert>; |
| 280 | hash = <&sp_pkg5_hash>; |
| 281 | }; |
| 282 | |
| 283 | sp_pkg6 { |
| 284 | image-id = <SP_CONTENT_CERT_ID + 6>; |
| 285 | parent = <&sp_content_cert>; |
| 286 | hash = <&sp_pkg6_hash>; |
| 287 | }; |
| 288 | |
| 289 | sp_pkg7 { |
| 290 | image-id = <SP_CONTENT_CERT_ID + 7>; |
| 291 | parent = <&sp_content_cert>; |
| 292 | hash = <&sp_pkg7_hash>; |
| 293 | }; |
| 294 | |
| 295 | sp_pkg8 { |
| 296 | image-id = <SP_CONTENT_CERT_ID + 8>; |
| 297 | parent = <&sp_content_cert>; |
| 298 | hash = <&sp_pkg8_hash>; |
| 299 | }; |
| 300 | #endif |
| 301 | }; |
| 302 | }; |
| 303 | |
| 304 | non-volatile-counters { |
| 305 | compatible = "arm, non-volatile-counter"; |
| 306 | |
| 307 | #address-cells = <1>; |
| 308 | #size-cells = <0>; |
| 309 | |
| 310 | counters { |
| 311 | trusted_nv_counter: trusted_nv_counter { |
| 312 | oid = TRUSTED_FW_NVCOUNTER_OID; |
| 313 | }; |
| 314 | non_trusted_nv_counter: non_trusted_nv_counter { |
| 315 | oid = NON_TRUSTED_FW_NVCOUNTER_OID; |
| 316 | }; |
| 317 | }; |
| 318 | }; |