Julius Werner | 2a231e3 | 2019-05-28 21:03:58 -0700 | [diff] [blame] | 1 | /* |
Govindraj Raja | 8497001 | 2023-09-21 14:37:07 -0500 | [diff] [blame] | 2 | * Copyright (c) 2019-2023, ARM Limited and Contributors. All rights reserved. |
Julius Werner | 2a231e3 | 2019-05-28 21:03:58 -0700 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | */ |
| 6 | |
| 7 | #ifndef ARM_TRUSTED_FIRMWARE_EXPORT_COMMON_TBBR_TBBR_IMG_DEF_EXP_H |
| 8 | #define ARM_TRUSTED_FIRMWARE_EXPORT_COMMON_TBBR_TBBR_IMG_DEF_EXP_H |
| 9 | |
| 10 | /* EXPORT HEADER -- See include/export/README for details! -- EXPORT HEADER */ |
| 11 | |
| 12 | #include "../../lib/utils_def_exp.h" |
| 13 | |
| 14 | /* Firmware Image Package */ |
| 15 | #define FIP_IMAGE_ID U(0) |
| 16 | |
| 17 | /* Trusted Boot Firmware BL2 */ |
| 18 | #define BL2_IMAGE_ID U(1) |
| 19 | |
| 20 | /* SCP Firmware SCP_BL2 */ |
| 21 | #define SCP_BL2_IMAGE_ID U(2) |
| 22 | |
| 23 | /* EL3 Runtime Firmware BL31 */ |
| 24 | #define BL31_IMAGE_ID U(3) |
| 25 | |
| 26 | /* Secure Payload BL32 (Trusted OS) */ |
| 27 | #define BL32_IMAGE_ID U(4) |
| 28 | |
| 29 | /* Non-Trusted Firmware BL33 */ |
| 30 | #define BL33_IMAGE_ID U(5) |
| 31 | |
| 32 | /* Certificates */ |
| 33 | #define TRUSTED_BOOT_FW_CERT_ID U(6) |
| 34 | #define TRUSTED_KEY_CERT_ID U(7) |
| 35 | |
| 36 | #define SCP_FW_KEY_CERT_ID U(8) |
| 37 | #define SOC_FW_KEY_CERT_ID U(9) |
| 38 | #define TRUSTED_OS_FW_KEY_CERT_ID U(10) |
| 39 | #define NON_TRUSTED_FW_KEY_CERT_ID U(11) |
| 40 | |
| 41 | #define SCP_FW_CONTENT_CERT_ID U(12) |
| 42 | #define SOC_FW_CONTENT_CERT_ID U(13) |
| 43 | #define TRUSTED_OS_FW_CONTENT_CERT_ID U(14) |
| 44 | #define NON_TRUSTED_FW_CONTENT_CERT_ID U(15) |
| 45 | |
| 46 | /* Non-Trusted ROM Firmware NS_BL1U */ |
| 47 | #define NS_BL1U_IMAGE_ID U(16) |
| 48 | |
| 49 | /* Trusted FWU Certificate */ |
| 50 | #define FWU_CERT_ID U(17) |
| 51 | |
| 52 | /* Trusted FWU SCP Firmware SCP_BL2U */ |
| 53 | #define SCP_BL2U_IMAGE_ID U(18) |
| 54 | |
| 55 | /* Trusted FWU Boot Firmware BL2U */ |
| 56 | #define BL2U_IMAGE_ID U(19) |
| 57 | |
| 58 | /* Non-Trusted FWU Firmware NS_BL2U */ |
| 59 | #define NS_BL2U_IMAGE_ID U(20) |
| 60 | |
| 61 | /* Secure Payload BL32_EXTRA1 (Trusted OS Extra1) */ |
| 62 | #define BL32_EXTRA1_IMAGE_ID U(21) |
| 63 | |
| 64 | /* Secure Payload BL32_EXTRA2 (Trusted OS Extra2) */ |
| 65 | #define BL32_EXTRA2_IMAGE_ID U(22) |
| 66 | |
| 67 | /* HW_CONFIG (e.g. Kernel DT) */ |
| 68 | #define HW_CONFIG_ID U(23) |
| 69 | |
| 70 | /* TB_FW_CONFIG */ |
| 71 | #define TB_FW_CONFIG_ID U(24) |
| 72 | |
| 73 | /* SOC_FW_CONFIG */ |
| 74 | #define SOC_FW_CONFIG_ID U(25) |
| 75 | |
| 76 | /* TOS_FW_CONFIG */ |
| 77 | #define TOS_FW_CONFIG_ID U(26) |
| 78 | |
| 79 | /* NT_FW_CONFIG */ |
| 80 | #define NT_FW_CONFIG_ID U(27) |
| 81 | |
Govindraj Raja | 8497001 | 2023-09-21 14:37:07 -0500 | [diff] [blame] | 82 | /* GPT primary header and entries */ |
Julius Werner | 2a231e3 | 2019-05-28 21:03:58 -0700 | [diff] [blame] | 83 | #define GPT_IMAGE_ID U(28) |
| 84 | |
Govindraj Raja | 8497001 | 2023-09-21 14:37:07 -0500 | [diff] [blame] | 85 | /* GPT backup header and entries */ |
| 86 | #define BKUP_GPT_IMAGE_ID U(29) |
| 87 | |
Julius Werner | 2a231e3 | 2019-05-28 21:03:58 -0700 | [diff] [blame] | 88 | /* Binary with STM32 header */ |
Govindraj Raja | 8497001 | 2023-09-21 14:37:07 -0500 | [diff] [blame] | 89 | #define STM32_IMAGE_ID U(30) |
Julius Werner | 2a231e3 | 2019-05-28 21:03:58 -0700 | [diff] [blame] | 90 | |
Sumit Garg | 617e215 | 2019-11-15 15:34:55 +0530 | [diff] [blame] | 91 | /* Encrypted image identifier */ |
Govindraj Raja | 8497001 | 2023-09-21 14:37:07 -0500 | [diff] [blame] | 92 | #define ENC_IMAGE_ID U(31) |
Sumit Garg | 617e215 | 2019-11-15 15:34:55 +0530 | [diff] [blame] | 93 | |
Louis Mayencourt | 244027d | 2020-06-11 21:15:15 +0100 | [diff] [blame] | 94 | /* FW_CONFIG */ |
Govindraj Raja | 8497001 | 2023-09-21 14:37:07 -0500 | [diff] [blame] | 95 | #define FW_CONFIG_ID U(32) |
Louis Mayencourt | 244027d | 2020-06-11 21:15:15 +0100 | [diff] [blame] | 96 | |
Manish V Badarkhe | 7ef036f | 2021-06-20 20:35:25 +0100 | [diff] [blame] | 97 | /* |
| 98 | * Primary FWU metadata image ID |
| 99 | */ |
Govindraj Raja | 8497001 | 2023-09-21 14:37:07 -0500 | [diff] [blame] | 100 | #define FWU_METADATA_IMAGE_ID U(33) |
Manish V Badarkhe | 7ef036f | 2021-06-20 20:35:25 +0100 | [diff] [blame] | 101 | |
| 102 | /* |
| 103 | * Backup FWU metadata image ID |
| 104 | */ |
Govindraj Raja | 8497001 | 2023-09-21 14:37:07 -0500 | [diff] [blame] | 105 | #define BKUP_FWU_METADATA_IMAGE_ID U(34) |
Manish V Badarkhe | 7ef036f | 2021-06-20 20:35:25 +0100 | [diff] [blame] | 106 | |
Zelalem Aweke | 4d37db8 | 2021-07-11 18:33:20 -0500 | [diff] [blame] | 107 | /* Realm Monitor Manager (RMM) */ |
Govindraj Raja | 8497001 | 2023-09-21 14:37:07 -0500 | [diff] [blame] | 108 | #define RMM_IMAGE_ID U(35) |
Zelalem Aweke | 4d37db8 | 2021-07-11 18:33:20 -0500 | [diff] [blame] | 109 | |
laurenw-arm | 483e5ac | 2022-04-21 15:49:00 -0500 | [diff] [blame] | 110 | /* CCA Content Certificate ID */ |
Govindraj Raja | 8497001 | 2023-09-21 14:37:07 -0500 | [diff] [blame] | 111 | #define CCA_CONTENT_CERT_ID U(36) |
laurenw-arm | 483e5ac | 2022-04-21 15:49:00 -0500 | [diff] [blame] | 112 | |
| 113 | /* Core SWD Key Certificate ID */ |
Govindraj Raja | 8497001 | 2023-09-21 14:37:07 -0500 | [diff] [blame] | 114 | #define CORE_SWD_KEY_CERT_ID U(37) |
laurenw-arm | 483e5ac | 2022-04-21 15:49:00 -0500 | [diff] [blame] | 115 | |
| 116 | /* Platform Key Certificate ID */ |
Govindraj Raja | 8497001 | 2023-09-21 14:37:07 -0500 | [diff] [blame] | 117 | #define PLAT_KEY_CERT_ID U(38) |
laurenw-arm | 483e5ac | 2022-04-21 15:49:00 -0500 | [diff] [blame] | 118 | |
Manish Pandey | 5f8e1a0 | 2020-05-27 22:40:10 +0100 | [diff] [blame] | 119 | /* Max Images */ |
Govindraj Raja | 8497001 | 2023-09-21 14:37:07 -0500 | [diff] [blame] | 120 | #define MAX_IMAGE_IDS U(39) |
Julius Werner | 2a231e3 | 2019-05-28 21:03:58 -0700 | [diff] [blame] | 121 | |
| 122 | #endif /* ARM_TRUSTED_FIRMWARE_EXPORT_COMMON_TBBR_TBBR_IMG_DEF_EXP_H */ |