dp-arm | 4972ec5 | 2016-05-25 16:20:20 +0100 | [diff] [blame] | 1 | /* |
laurenw-arm | cbf6154 | 2022-04-21 16:36:26 -0500 | [diff] [blame] | 2 | * Copyright (c) 2016-2022, ARM Limited and Contributors. All rights reserved. |
dp-arm | 4972ec5 | 2016-05-25 16:20:20 +0100 | [diff] [blame] | 3 | * |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
dp-arm | 4972ec5 | 2016-05-25 16:20:20 +0100 | [diff] [blame] | 5 | */ |
| 6 | |
Isla Mitchell | 9930501 | 2017-07-11 14:54:08 +0100 | [diff] [blame] | 7 | #include <stddef.h> |
Masahiro Yamada | e3a2b31 | 2017-05-08 18:29:03 +0900 | [diff] [blame] | 8 | |
Isla Mitchell | 751f56b | 2017-07-14 10:46:32 +0100 | [diff] [blame] | 9 | #include <firmware_image_package.h> |
| 10 | |
dp-arm | 4972ec5 | 2016-05-25 16:20:20 +0100 | [diff] [blame] | 11 | #include "tbbr_config.h" |
| 12 | |
| 13 | /* The images used depends on the platform. */ |
| 14 | toc_entry_t toc_entries[] = { |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 15 | { |
| 16 | .name = "SCP Firmware Updater Configuration FWU SCP_BL2U", |
| 17 | .uuid = UUID_TRUSTED_UPDATE_FIRMWARE_SCP_BL2U, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 18 | .cmdline_name = "scp-fwu-cfg" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 19 | }, |
| 20 | { |
| 21 | .name = "AP Firmware Updater Configuration BL2U", |
| 22 | .uuid = UUID_TRUSTED_UPDATE_FIRMWARE_BL2U, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 23 | .cmdline_name = "ap-fwu-cfg" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 24 | }, |
| 25 | { |
| 26 | .name = "Firmware Updater NS_BL2U", |
| 27 | .uuid = UUID_TRUSTED_UPDATE_FIRMWARE_NS_BL2U, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 28 | .cmdline_name = "fwu" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 29 | }, |
| 30 | { |
| 31 | .name = "Non-Trusted Firmware Updater certificate", |
| 32 | .uuid = UUID_TRUSTED_FWU_CERT, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 33 | .cmdline_name = "fwu-cert" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 34 | }, |
| 35 | { |
| 36 | .name = "Trusted Boot Firmware BL2", |
| 37 | .uuid = UUID_TRUSTED_BOOT_FIRMWARE_BL2, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 38 | .cmdline_name = "tb-fw" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 39 | }, |
| 40 | { |
| 41 | .name = "SCP Firmware SCP_BL2", |
| 42 | .uuid = UUID_SCP_FIRMWARE_SCP_BL2, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 43 | .cmdline_name = "scp-fw" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 44 | }, |
| 45 | { |
| 46 | .name = "EL3 Runtime Firmware BL31", |
| 47 | .uuid = UUID_EL3_RUNTIME_FIRMWARE_BL31, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 48 | .cmdline_name = "soc-fw" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 49 | }, |
| 50 | { |
| 51 | .name = "Secure Payload BL32 (Trusted OS)", |
| 52 | .uuid = UUID_SECURE_PAYLOAD_BL32, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 53 | .cmdline_name = "tos-fw" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 54 | }, |
| 55 | { |
Summer Qin | 8072678 | 2017-04-20 16:28:39 +0100 | [diff] [blame] | 56 | .name = "Secure Payload BL32 Extra1 (Trusted OS Extra1)", |
| 57 | .uuid = UUID_SECURE_PAYLOAD_BL32_EXTRA1, |
| 58 | .cmdline_name = "tos-fw-extra1" |
| 59 | }, |
| 60 | { |
| 61 | .name = "Secure Payload BL32 Extra2 (Trusted OS Extra2)", |
| 62 | .uuid = UUID_SECURE_PAYLOAD_BL32_EXTRA2, |
| 63 | .cmdline_name = "tos-fw-extra2" |
| 64 | }, |
| 65 | { |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 66 | .name = "Non-Trusted Firmware BL33", |
| 67 | .uuid = UUID_NON_TRUSTED_FIRMWARE_BL33, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 68 | .cmdline_name = "nt-fw" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 69 | }, |
Zelalem Aweke | 4d37db8 | 2021-07-11 18:33:20 -0500 | [diff] [blame] | 70 | { |
| 71 | .name = "Realm Monitor Management Firmware", |
| 72 | .uuid = UUID_REALM_MONITOR_MGMT_FIRMWARE, |
| 73 | .cmdline_name = "rmm-fw" |
| 74 | }, |
Soby Mathew | 2ffb473 | 2017-11-07 16:50:31 +0000 | [diff] [blame] | 75 | /* Dynamic Configs */ |
| 76 | { |
Manish V Badarkhe | e9207d6 | 2020-06-11 21:02:03 +0100 | [diff] [blame] | 77 | .name = "FW_CONFIG", |
| 78 | .uuid = UUID_FW_CONFIG, |
| 79 | .cmdline_name = "fw-config" |
| 80 | }, |
| 81 | { |
Soby Mathew | 2ffb473 | 2017-11-07 16:50:31 +0000 | [diff] [blame] | 82 | .name = "HW_CONFIG", |
| 83 | .uuid = UUID_HW_CONFIG, |
| 84 | .cmdline_name = "hw-config" |
| 85 | }, |
| 86 | { |
| 87 | .name = "TB_FW_CONFIG", |
| 88 | .uuid = UUID_TB_FW_CONFIG, |
| 89 | .cmdline_name = "tb-fw-config" |
| 90 | }, |
Soby Mathew | 2bb78d3 | 2018-03-29 14:29:55 +0100 | [diff] [blame] | 91 | { |
| 92 | .name = "SOC_FW_CONFIG", |
| 93 | .uuid = UUID_SOC_FW_CONFIG, |
| 94 | .cmdline_name = "soc-fw-config" |
| 95 | }, |
| 96 | { |
| 97 | .name = "TOS_FW_CONFIG", |
| 98 | .uuid = UUID_TOS_FW_CONFIG, |
| 99 | .cmdline_name = "tos-fw-config" |
| 100 | }, |
| 101 | { |
| 102 | .name = "NT_FW_CONFIG", |
| 103 | .uuid = UUID_NT_FW_CONFIG, |
| 104 | .cmdline_name = "nt-fw-config" |
| 105 | }, |
dp-arm | 4972ec5 | 2016-05-25 16:20:20 +0100 | [diff] [blame] | 106 | /* Key Certificates */ |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 107 | { |
| 108 | .name = "Root Of Trust key certificate", |
| 109 | .uuid = UUID_ROT_KEY_CERT, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 110 | .cmdline_name = "rot-cert" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 111 | }, |
| 112 | { |
| 113 | .name = "Trusted key certificate", |
| 114 | .uuid = UUID_TRUSTED_KEY_CERT, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 115 | .cmdline_name = "trusted-key-cert" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 116 | }, |
| 117 | { |
| 118 | .name = "SCP Firmware key certificate", |
| 119 | .uuid = UUID_SCP_FW_KEY_CERT, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 120 | .cmdline_name = "scp-fw-key-cert" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 121 | }, |
| 122 | { |
| 123 | .name = "SoC Firmware key certificate", |
| 124 | .uuid = UUID_SOC_FW_KEY_CERT, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 125 | .cmdline_name = "soc-fw-key-cert" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 126 | }, |
| 127 | { |
| 128 | .name = "Trusted OS Firmware key certificate", |
| 129 | .uuid = UUID_TRUSTED_OS_FW_KEY_CERT, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 130 | .cmdline_name = "tos-fw-key-cert" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 131 | }, |
| 132 | { |
| 133 | .name = "Non-Trusted Firmware key certificate", |
| 134 | .uuid = UUID_NON_TRUSTED_FW_KEY_CERT, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 135 | .cmdline_name = "nt-fw-key-cert" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 136 | }, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 137 | |
dp-arm | 4972ec5 | 2016-05-25 16:20:20 +0100 | [diff] [blame] | 138 | /* Content certificates */ |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 139 | { |
| 140 | .name = "Trusted Boot Firmware BL2 certificate", |
| 141 | .uuid = UUID_TRUSTED_BOOT_FW_CERT, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 142 | .cmdline_name = "tb-fw-cert" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 143 | }, |
| 144 | { |
| 145 | .name = "SCP Firmware content certificate", |
| 146 | .uuid = UUID_SCP_FW_CONTENT_CERT, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 147 | .cmdline_name = "scp-fw-cert" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 148 | }, |
| 149 | { |
| 150 | .name = "SoC Firmware content certificate", |
| 151 | .uuid = UUID_SOC_FW_CONTENT_CERT, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 152 | .cmdline_name = "soc-fw-cert" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 153 | }, |
| 154 | { |
| 155 | .name = "Trusted OS Firmware content certificate", |
| 156 | .uuid = UUID_TRUSTED_OS_FW_CONTENT_CERT, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 157 | .cmdline_name = "tos-fw-cert" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 158 | }, |
| 159 | { |
| 160 | .name = "Non-Trusted Firmware content certificate", |
| 161 | .uuid = UUID_NON_TRUSTED_FW_CONTENT_CERT, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 162 | .cmdline_name = "nt-fw-cert" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 163 | }, |
| 164 | { |
Manish Pandey | 0a65884 | 2020-05-22 12:27:28 +0100 | [diff] [blame] | 165 | .name = "SiP owned Secure Partition content certificate", |
| 166 | .uuid = UUID_SIP_SECURE_PARTITION_CONTENT_CERT, |
| 167 | .cmdline_name = "sip-sp-cert" |
| 168 | }, |
| 169 | { |
Manish Pandey | 3f0d7af | 2020-07-24 16:43:54 +0100 | [diff] [blame] | 170 | .name = "Platform owned Secure Partition content certificate", |
| 171 | .uuid = UUID_PLAT_SECURE_PARTITION_CONTENT_CERT, |
| 172 | .cmdline_name = "plat-sp-cert" |
| 173 | }, |
| 174 | { |
laurenw-arm | cbf6154 | 2022-04-21 16:36:26 -0500 | [diff] [blame] | 175 | .name = "CCA Content Certificate", |
| 176 | .uuid = UUID_CCA_CONTENT_CERT, |
| 177 | .cmdline_name = "cca-cert" |
| 178 | }, |
| 179 | { |
| 180 | .name = "Core Secure World Key Certificate", |
| 181 | .uuid = UUID_CORE_SWD_KEY_CERT, |
| 182 | .cmdline_name = "core-swd-cert" |
| 183 | }, |
| 184 | { |
| 185 | .name = "Platform Key Certificate", |
| 186 | .uuid = UUID_PLAT_KEY_CERT, |
| 187 | .cmdline_name = "plat-key-cert" |
| 188 | }, |
| 189 | { |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 190 | .name = NULL, |
Roberto Vargas | eace8f1 | 2018-04-26 13:36:53 +0100 | [diff] [blame] | 191 | .uuid = { {0} }, |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 192 | .cmdline_name = NULL, |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 193 | } |
dp-arm | 4972ec5 | 2016-05-25 16:20:20 +0100 | [diff] [blame] | 194 | }; |