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 | |
| 7 | #include <stddef.h> |
| 8 | |
Masahiro Yamada | e3a2b31 | 2017-05-08 18:29:03 +0900 | [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 | { |
| 56 | .name = "Non-Trusted Firmware BL33", |
| 57 | .uuid = UUID_NON_TRUSTED_FIRMWARE_BL33, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 58 | .cmdline_name = "nt-fw" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 59 | }, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 60 | |
dp-arm | 4972ec5 | 2016-05-25 16:20:20 +0100 | [diff] [blame] | 61 | /* Key Certificates */ |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 62 | { |
| 63 | .name = "Root Of Trust key certificate", |
| 64 | .uuid = UUID_ROT_KEY_CERT, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 65 | .cmdline_name = "rot-cert" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 66 | }, |
| 67 | { |
| 68 | .name = "Trusted key certificate", |
| 69 | .uuid = UUID_TRUSTED_KEY_CERT, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 70 | .cmdline_name = "trusted-key-cert" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 71 | }, |
| 72 | { |
| 73 | .name = "SCP Firmware key certificate", |
| 74 | .uuid = UUID_SCP_FW_KEY_CERT, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 75 | .cmdline_name = "scp-fw-key-cert" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 76 | }, |
| 77 | { |
| 78 | .name = "SoC Firmware key certificate", |
| 79 | .uuid = UUID_SOC_FW_KEY_CERT, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 80 | .cmdline_name = "soc-fw-key-cert" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 81 | }, |
| 82 | { |
| 83 | .name = "Trusted OS Firmware key certificate", |
| 84 | .uuid = UUID_TRUSTED_OS_FW_KEY_CERT, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 85 | .cmdline_name = "tos-fw-key-cert" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 86 | }, |
| 87 | { |
| 88 | .name = "Non-Trusted Firmware key certificate", |
| 89 | .uuid = UUID_NON_TRUSTED_FW_KEY_CERT, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 90 | .cmdline_name = "nt-fw-key-cert" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 91 | }, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 92 | |
dp-arm | 4972ec5 | 2016-05-25 16:20:20 +0100 | [diff] [blame] | 93 | /* Content certificates */ |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 94 | { |
| 95 | .name = "Trusted Boot Firmware BL2 certificate", |
| 96 | .uuid = UUID_TRUSTED_BOOT_FW_CERT, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 97 | .cmdline_name = "tb-fw-cert" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 98 | }, |
| 99 | { |
| 100 | .name = "SCP Firmware content certificate", |
| 101 | .uuid = UUID_SCP_FW_CONTENT_CERT, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 102 | .cmdline_name = "scp-fw-cert" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 103 | }, |
| 104 | { |
| 105 | .name = "SoC Firmware content certificate", |
| 106 | .uuid = UUID_SOC_FW_CONTENT_CERT, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 107 | .cmdline_name = "soc-fw-cert" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 108 | }, |
| 109 | { |
| 110 | .name = "Trusted OS Firmware content certificate", |
| 111 | .uuid = UUID_TRUSTED_OS_FW_CONTENT_CERT, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 112 | .cmdline_name = "tos-fw-cert" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 113 | }, |
| 114 | { |
| 115 | .name = "Non-Trusted Firmware content certificate", |
| 116 | .uuid = UUID_NON_TRUSTED_FW_CONTENT_CERT, |
dp-arm | 90d2f0e | 2016-11-14 15:54:32 +0000 | [diff] [blame] | 117 | .cmdline_name = "nt-fw-cert" |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 118 | }, |
| 119 | { |
| 120 | .name = NULL, |
| 121 | .uuid = { 0 }, |
| 122 | .cmdline_name = NULL, |
dp-arm | 715ef42 | 2016-08-30 14:18:58 +0100 | [diff] [blame] | 123 | } |
dp-arm | 4972ec5 | 2016-05-25 16:20:20 +0100 | [diff] [blame] | 124 | }; |