Juan Castillo | 9b265a8 | 2015-05-07 14:52:44 +0100 | [diff] [blame] | 1 | /* |
Soby Mathew | 0bdfef0 | 2017-11-07 17:03:57 +0000 | [diff] [blame] | 2 | * Copyright (c) 2015-2018, ARM Limited and Contributors. All rights reserved. |
Juan Castillo | 9b265a8 | 2015-05-07 14:52:44 +0100 | [diff] [blame] | 3 | * |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
Juan Castillo | 9b265a8 | 2015-05-07 14:52:44 +0100 | [diff] [blame] | 5 | */ |
6 | |||||
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 7 | #ifndef TBBR_IMG_DEF_H |
8 | #define TBBR_IMG_DEF_H | ||||
Juan Castillo | 9b265a8 | 2015-05-07 14:52:44 +0100 | [diff] [blame] | 9 | |
Antonio Nino Diaz | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 10 | #include <lib/utils_def.h> |
Antonio Nino Diaz | 38b4ce0 | 2018-08-21 14:14:31 +0100 | [diff] [blame] | 11 | |
Juan Castillo | 9b265a8 | 2015-05-07 14:52:44 +0100 | [diff] [blame] | 12 | /* Firmware Image Package */ |
Antonio Nino Diaz | 38b4ce0 | 2018-08-21 14:14:31 +0100 | [diff] [blame] | 13 | #define FIP_IMAGE_ID U(0) |
Juan Castillo | 9b265a8 | 2015-05-07 14:52:44 +0100 | [diff] [blame] | 14 | |
15 | /* Trusted Boot Firmware BL2 */ | ||||
Antonio Nino Diaz | 38b4ce0 | 2018-08-21 14:14:31 +0100 | [diff] [blame] | 16 | #define BL2_IMAGE_ID U(1) |
Juan Castillo | 9b265a8 | 2015-05-07 14:52:44 +0100 | [diff] [blame] | 17 | |
Juan Castillo | a72b647 | 2015-12-10 15:49:17 +0000 | [diff] [blame] | 18 | /* SCP Firmware SCP_BL2 */ |
Antonio Nino Diaz | 38b4ce0 | 2018-08-21 14:14:31 +0100 | [diff] [blame] | 19 | #define SCP_BL2_IMAGE_ID U(2) |
Juan Castillo | 9b265a8 | 2015-05-07 14:52:44 +0100 | [diff] [blame] | 20 | |
21 | /* EL3 Runtime Firmware BL31 */ | ||||
Antonio Nino Diaz | 38b4ce0 | 2018-08-21 14:14:31 +0100 | [diff] [blame] | 22 | #define BL31_IMAGE_ID U(3) |
Juan Castillo | 9b265a8 | 2015-05-07 14:52:44 +0100 | [diff] [blame] | 23 | |
24 | /* Secure Payload BL32 (Trusted OS) */ | ||||
Antonio Nino Diaz | 38b4ce0 | 2018-08-21 14:14:31 +0100 | [diff] [blame] | 25 | #define BL32_IMAGE_ID U(4) |
Juan Castillo | 9b265a8 | 2015-05-07 14:52:44 +0100 | [diff] [blame] | 26 | |
27 | /* Non-Trusted Firmware BL33 */ | ||||
Antonio Nino Diaz | 38b4ce0 | 2018-08-21 14:14:31 +0100 | [diff] [blame] | 28 | #define BL33_IMAGE_ID U(5) |
Juan Castillo | 9b265a8 | 2015-05-07 14:52:44 +0100 | [diff] [blame] | 29 | |
30 | /* Certificates */ | ||||
Antonio Nino Diaz | 38b4ce0 | 2018-08-21 14:14:31 +0100 | [diff] [blame] | 31 | #define TRUSTED_BOOT_FW_CERT_ID U(6) |
32 | #define TRUSTED_KEY_CERT_ID U(7) | ||||
Juan Castillo | 9b265a8 | 2015-05-07 14:52:44 +0100 | [diff] [blame] | 33 | |
Antonio Nino Diaz | 38b4ce0 | 2018-08-21 14:14:31 +0100 | [diff] [blame] | 34 | #define SCP_FW_KEY_CERT_ID U(8) |
35 | #define SOC_FW_KEY_CERT_ID U(9) | ||||
36 | #define TRUSTED_OS_FW_KEY_CERT_ID U(10) | ||||
37 | #define NON_TRUSTED_FW_KEY_CERT_ID U(11) | ||||
Juan Castillo | 9b265a8 | 2015-05-07 14:52:44 +0100 | [diff] [blame] | 38 | |
Antonio Nino Diaz | 38b4ce0 | 2018-08-21 14:14:31 +0100 | [diff] [blame] | 39 | #define SCP_FW_CONTENT_CERT_ID U(12) |
40 | #define SOC_FW_CONTENT_CERT_ID U(13) | ||||
41 | #define TRUSTED_OS_FW_CONTENT_CERT_ID U(14) | ||||
42 | #define NON_TRUSTED_FW_CONTENT_CERT_ID U(15) | ||||
Juan Castillo | 9b265a8 | 2015-05-07 14:52:44 +0100 | [diff] [blame] | 43 | |
Yatharth Kochar | 71c9a5e | 2015-10-10 19:06:53 +0100 | [diff] [blame] | 44 | /* Non-Trusted ROM Firmware NS_BL1U */ |
Antonio Nino Diaz | 38b4ce0 | 2018-08-21 14:14:31 +0100 | [diff] [blame] | 45 | #define NS_BL1U_IMAGE_ID U(16) |
Yatharth Kochar | 71c9a5e | 2015-10-10 19:06:53 +0100 | [diff] [blame] | 46 | |
47 | /* Trusted FWU Certificate */ | ||||
Antonio Nino Diaz | 38b4ce0 | 2018-08-21 14:14:31 +0100 | [diff] [blame] | 48 | #define FWU_CERT_ID U(17) |
Yatharth Kochar | 71c9a5e | 2015-10-10 19:06:53 +0100 | [diff] [blame] | 49 | |
50 | /* Trusted FWU SCP Firmware SCP_BL2U */ | ||||
Antonio Nino Diaz | 38b4ce0 | 2018-08-21 14:14:31 +0100 | [diff] [blame] | 51 | #define SCP_BL2U_IMAGE_ID U(18) |
Yatharth Kochar | 71c9a5e | 2015-10-10 19:06:53 +0100 | [diff] [blame] | 52 | |
53 | /* Trusted FWU Boot Firmware BL2U */ | ||||
Antonio Nino Diaz | 38b4ce0 | 2018-08-21 14:14:31 +0100 | [diff] [blame] | 54 | #define BL2U_IMAGE_ID U(19) |
Yatharth Kochar | 71c9a5e | 2015-10-10 19:06:53 +0100 | [diff] [blame] | 55 | |
56 | /* Non-Trusted FWU Firmware NS_BL2U */ | ||||
Antonio Nino Diaz | 38b4ce0 | 2018-08-21 14:14:31 +0100 | [diff] [blame] | 57 | #define NS_BL2U_IMAGE_ID U(20) |
Yatharth Kochar | 71c9a5e | 2015-10-10 19:06:53 +0100 | [diff] [blame] | 58 | |
Summer Qin | 8072678 | 2017-04-20 16:28:39 +0100 | [diff] [blame] | 59 | /* Secure Payload BL32_EXTRA1 (Trusted OS Extra1) */ |
Antonio Nino Diaz | 38b4ce0 | 2018-08-21 14:14:31 +0100 | [diff] [blame] | 60 | #define BL32_EXTRA1_IMAGE_ID U(21) |
Summer Qin | 8072678 | 2017-04-20 16:28:39 +0100 | [diff] [blame] | 61 | |
62 | /* Secure Payload BL32_EXTRA2 (Trusted OS Extra2) */ | ||||
Antonio Nino Diaz | 38b4ce0 | 2018-08-21 14:14:31 +0100 | [diff] [blame] | 63 | #define BL32_EXTRA2_IMAGE_ID U(22) |
Summer Qin | 8072678 | 2017-04-20 16:28:39 +0100 | [diff] [blame] | 64 | |
Soby Mathew | 0bdfef0 | 2017-11-07 17:03:57 +0000 | [diff] [blame] | 65 | /* HW_CONFIG (e.g. Kernel DT) */ |
Antonio Nino Diaz | 38b4ce0 | 2018-08-21 14:14:31 +0100 | [diff] [blame] | 66 | #define HW_CONFIG_ID U(23) |
Soby Mathew | 0bdfef0 | 2017-11-07 17:03:57 +0000 | [diff] [blame] | 67 | |
68 | /* TB_FW_CONFIG */ | ||||
Antonio Nino Diaz | 38b4ce0 | 2018-08-21 14:14:31 +0100 | [diff] [blame] | 69 | #define TB_FW_CONFIG_ID U(24) |
Soby Mathew | 0bdfef0 | 2017-11-07 17:03:57 +0000 | [diff] [blame] | 70 | |
Soby Mathew | 40eb4b6 | 2018-01-08 13:36:49 +0000 | [diff] [blame] | 71 | /* SOC_FW_CONFIG */ |
Antonio Nino Diaz | 38b4ce0 | 2018-08-21 14:14:31 +0100 | [diff] [blame] | 72 | #define SOC_FW_CONFIG_ID U(25) |
Soby Mathew | 40eb4b6 | 2018-01-08 13:36:49 +0000 | [diff] [blame] | 73 | |
74 | /* TOS_FW_CONFIG */ | ||||
Antonio Nino Diaz | 38b4ce0 | 2018-08-21 14:14:31 +0100 | [diff] [blame] | 75 | #define TOS_FW_CONFIG_ID U(26) |
Soby Mathew | 40eb4b6 | 2018-01-08 13:36:49 +0000 | [diff] [blame] | 76 | |
77 | /* NT_FW_CONFIG */ | ||||
Antonio Nino Diaz | 38b4ce0 | 2018-08-21 14:14:31 +0100 | [diff] [blame] | 78 | #define NT_FW_CONFIG_ID U(27) |
Soby Mathew | 40eb4b6 | 2018-01-08 13:36:49 +0000 | [diff] [blame] | 79 | |
Yann Gautier | f325df5 | 2018-10-15 09:36:21 +0200 | [diff] [blame] | 80 | /* GPT Partition */ |
81 | #define GPT_IMAGE_ID U(28) | ||||
82 | |||||
83 | /* Binary with STM32 header */ | ||||
84 | #define STM32_IMAGE_ID U(29) | ||||
85 | |||||
Roberto Vargas | be126ed | 2018-02-12 12:36:17 +0000 | [diff] [blame] | 86 | /* Define size of the array */ |
Yann Gautier | f325df5 | 2018-10-15 09:36:21 +0200 | [diff] [blame] | 87 | #define MAX_NUMBER_IDS U(30) |
Roberto Vargas | be126ed | 2018-02-12 12:36:17 +0000 | [diff] [blame] | 88 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 89 | #endif /* TBBR_IMG_DEF_H */ |