dp-arm | 4972ec5 | 2016-05-25 16:20:20 +0100 | [diff] [blame] | 1 | /* |
Masahiro Yamada | e3a2b31 | 2017-05-08 18:29:03 +0900 | [diff] [blame] | 2 | * Copyright (c) 2016-2017, 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 | |
Masahiro Yamada | e3a2b31 | 2017-05-08 18:29:03 +0900 | [diff] [blame] | 7 | #include <firmware_image_package.h> |
Isla Mitchell | 9930501 | 2017-07-11 14:54:08 +0100 | [diff] [blame] | 8 | #include <stddef.h> |
Masahiro Yamada | e3a2b31 | 2017-05-08 18:29:03 +0900 | [diff] [blame] | 9 | |
dp-arm | 4972ec5 | 2016-05-25 16:20:20 +0100 | [diff] [blame] | 10 | #include "tbbr_config.h" |
| 11 | |
| 12 | /* The images used depends on the platform. */ |
| 13 | toc_entry_t toc_entries[] = { |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 14 | { |
| 15 | .name = "SCP Firmware Updater Configuration FWU SCP_BL2U", |
| 16 | .uuid = UUID_TRUSTED_UPDATE_FIRMWARE_SCP_BL2U, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 17 | .cmdline_name = "scp-fwu-cfg" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 18 | }, |
| 19 | { |
| 20 | .name = "AP Firmware Updater Configuration BL2U", |
| 21 | .uuid = UUID_TRUSTED_UPDATE_FIRMWARE_BL2U, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 22 | .cmdline_name = "ap-fwu-cfg" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 23 | }, |
| 24 | { |
| 25 | .name = "Firmware Updater NS_BL2U", |
| 26 | .uuid = UUID_TRUSTED_UPDATE_FIRMWARE_NS_BL2U, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 27 | .cmdline_name = "fwu" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 28 | }, |
| 29 | { |
| 30 | .name = "Non-Trusted Firmware Updater certificate", |
| 31 | .uuid = UUID_TRUSTED_FWU_CERT, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 32 | .cmdline_name = "fwu-cert" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 33 | }, |
| 34 | { |
| 35 | .name = "Trusted Boot Firmware BL2", |
| 36 | .uuid = UUID_TRUSTED_BOOT_FIRMWARE_BL2, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 37 | .cmdline_name = "tb-fw" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 38 | }, |
| 39 | { |
| 40 | .name = "SCP Firmware SCP_BL2", |
| 41 | .uuid = UUID_SCP_FIRMWARE_SCP_BL2, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 42 | .cmdline_name = "scp-fw" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 43 | }, |
| 44 | { |
| 45 | .name = "EL3 Runtime Firmware BL31", |
| 46 | .uuid = UUID_EL3_RUNTIME_FIRMWARE_BL31, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 47 | .cmdline_name = "soc-fw" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 48 | }, |
| 49 | { |
| 50 | .name = "Secure Payload BL32 (Trusted OS)", |
| 51 | .uuid = UUID_SECURE_PAYLOAD_BL32, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 52 | .cmdline_name = "tos-fw" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 53 | }, |
| 54 | { |
| 55 | .name = "Non-Trusted Firmware BL33", |
| 56 | .uuid = UUID_NON_TRUSTED_FIRMWARE_BL33, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 57 | .cmdline_name = "nt-fw" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 58 | }, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 59 | |
dp-arm | 4972ec5 | 2016-05-25 16:20:20 +0100 | [diff] [blame] | 60 | /* Key Certificates */ |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 61 | { |
| 62 | .name = "Root Of Trust key certificate", |
| 63 | .uuid = UUID_ROT_KEY_CERT, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 64 | .cmdline_name = "rot-cert" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 65 | }, |
| 66 | { |
| 67 | .name = "Trusted key certificate", |
| 68 | .uuid = UUID_TRUSTED_KEY_CERT, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 69 | .cmdline_name = "trusted-key-cert" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 70 | }, |
| 71 | { |
| 72 | .name = "SCP Firmware key certificate", |
| 73 | .uuid = UUID_SCP_FW_KEY_CERT, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 74 | .cmdline_name = "scp-fw-key-cert" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 75 | }, |
| 76 | { |
| 77 | .name = "SoC Firmware key certificate", |
| 78 | .uuid = UUID_SOC_FW_KEY_CERT, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 79 | .cmdline_name = "soc-fw-key-cert" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 80 | }, |
| 81 | { |
| 82 | .name = "Trusted OS Firmware key certificate", |
| 83 | .uuid = UUID_TRUSTED_OS_FW_KEY_CERT, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 84 | .cmdline_name = "tos-fw-key-cert" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 85 | }, |
| 86 | { |
| 87 | .name = "Non-Trusted Firmware key certificate", |
| 88 | .uuid = UUID_NON_TRUSTED_FW_KEY_CERT, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 89 | .cmdline_name = "nt-fw-key-cert" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 90 | }, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 91 | |
dp-arm | 4972ec5 | 2016-05-25 16:20:20 +0100 | [diff] [blame] | 92 | /* Content certificates */ |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 93 | { |
| 94 | .name = "Trusted Boot Firmware BL2 certificate", |
| 95 | .uuid = UUID_TRUSTED_BOOT_FW_CERT, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 96 | .cmdline_name = "tb-fw-cert" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 97 | }, |
| 98 | { |
| 99 | .name = "SCP Firmware content certificate", |
| 100 | .uuid = UUID_SCP_FW_CONTENT_CERT, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 101 | .cmdline_name = "scp-fw-cert" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 102 | }, |
| 103 | { |
| 104 | .name = "SoC Firmware content certificate", |
| 105 | .uuid = UUID_SOC_FW_CONTENT_CERT, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 106 | .cmdline_name = "soc-fw-cert" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 107 | }, |
| 108 | { |
| 109 | .name = "Trusted OS Firmware content certificate", |
| 110 | .uuid = UUID_TRUSTED_OS_FW_CONTENT_CERT, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 111 | .cmdline_name = "tos-fw-cert" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 112 | }, |
| 113 | { |
| 114 | .name = "Non-Trusted Firmware content certificate", |
| 115 | .uuid = UUID_NON_TRUSTED_FW_CONTENT_CERT, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 116 | .cmdline_name = "nt-fw-cert" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 117 | }, |
| 118 | { |
| 119 | .name = NULL, |
| 120 | .uuid = { 0 }, |
| 121 | .cmdline_name = NULL, |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 122 | } |
dp-arm | 4972ec5 | 2016-05-25 16:20:20 +0100 | [diff] [blame] | 123 | }; |