1 /*
2  * Copyright (c) 2019-2023, ARM Limited and Contributors. All rights reserved.
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 
82 /* GPT primary header and entries */
83 #define GPT_IMAGE_ID			U(28)
84 
85 /* GPT backup header and entries */
86 #define BKUP_GPT_IMAGE_ID		U(29)
87 
88 /* Binary with STM32 header */
89 #define STM32_IMAGE_ID			U(30)
90 
91 /* Encrypted image identifier */
92 #define ENC_IMAGE_ID			U(31)
93 
94 /* FW_CONFIG */
95 #define FW_CONFIG_ID			U(32)
96 
97 /*
98  * Primary FWU metadata image ID
99  */
100 #define FWU_METADATA_IMAGE_ID		U(33)
101 
102 /*
103  * Backup FWU metadata image ID
104  */
105 #define BKUP_FWU_METADATA_IMAGE_ID	U(34)
106 
107 /* Realm Monitor Manager (RMM) */
108 #define RMM_IMAGE_ID			U(35)
109 
110 /* CCA Content Certificate ID */
111 #define CCA_CONTENT_CERT_ID		U(36)
112 
113 /* Core SWD Key Certificate ID */
114 #define CORE_SWD_KEY_CERT_ID		U(37)
115 
116 /* Platform Key Certificate ID */
117 #define PLAT_KEY_CERT_ID		U(38)
118 
119 /* Max Images */
120 #define MAX_IMAGE_IDS			U(39)
121 
122 #endif /* ARM_TRUSTED_FIRMWARE_EXPORT_COMMON_TBBR_TBBR_IMG_DEF_EXP_H */
123