blob: e8fbbbaabe57c1a2867a39462e226ba9f56b1fd0 [file] [log] [blame]
dp-arm4972ec52016-05-25 16:20:20 +01001/*
2 * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are met:
6 *
7 * Redistributions of source code must retain the above copyright notice, this
8 * list of conditions and the following disclaimer.
9 *
10 * Redistributions in binary form must reproduce the above copyright notice,
11 * this list of conditions and the following disclaimer in the documentation
12 * and/or other materials provided with the distribution.
13 *
14 * Neither the name of ARM nor the names of its contributors may be used
15 * to endorse or promote products derived from this software without specific
16 * prior written permission.
17 *
18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
22 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 * POSSIBILITY OF SUCH DAMAGE.
29 */
30
31#include <stddef.h>
32
33#include "firmware_image_package.h"
34#include "tbbr_config.h"
35
36/* The images used depends on the platform. */
37toc_entry_t toc_entries[] = {
38 { "SCP Firmware Updater Configuration FWU SCP_BL2U", UUID_TRUSTED_UPDATE_FIRMWARE_SCP_BL2U,
39 "scp-fwu-cfg", NULL, 0, NULL },
40 { "AP Firmware Updater Configuration BL2U", UUID_TRUSTED_UPDATE_FIRMWARE_BL2U,
41 "ap-fwu-cfg", NULL, 0, NULL },
42 { "Firmware Updater NS_BL2U", UUID_TRUSTED_UPDATE_FIRMWARE_NS_BL2U,
43 "fwu", NULL, 0, NULL },
44 { "Non-Trusted Firmware Updater certificate", UUID_TRUSTED_FWU_CERT,
45 "fwu-cert", NULL, 0, NULL },
46 { "Trusted Boot Firmware BL2", UUID_TRUSTED_BOOT_FIRMWARE_BL2,
47 "tb-fw", NULL, 0, NULL },
48 { "SCP Firmware SCP_BL2", UUID_SCP_FIRMWARE_SCP_BL2,
49 "scp-fw", NULL, 0, NULL },
50 { "EL3 Runtime Firmware BL31", UUID_EL3_RUNTIME_FIRMWARE_BL31,
51 "soc-fw", NULL, 0, NULL },
52 { "Secure Payload BL32 (Trusted OS)", UUID_SECURE_PAYLOAD_BL32,
53 "tos-fw", NULL, 0, NULL },
54 { "Non-Trusted Firmware BL33", UUID_NON_TRUSTED_FIRMWARE_BL33,
55 "nt-fw", NULL, 0, NULL },
56 /* Key Certificates */
57 { "Root Of Trust key certificate", UUID_ROT_KEY_CERT,
58 "rot-cert", NULL, 0, NULL },
59 { "Trusted key certificate", UUID_TRUSTED_KEY_CERT,
60 "trusted-key-cert", NULL, 0, NULL },
61 { "SCP Firmware key certificate", UUID_SCP_FW_KEY_CERT,
62 "scp-fw-key-cert", NULL, 0, NULL },
63 { "SoC Firmware key certificate", UUID_SOC_FW_KEY_CERT,
64 "soc-fw-key-cert", NULL, 0, NULL },
65 { "Trusted OS Firmware key certificate", UUID_TRUSTED_OS_FW_KEY_CERT,
66 "tos-fw-key-cert", NULL, 0, NULL },
67 { "Non-Trusted Firmware key certificate", UUID_NON_TRUSTED_FW_KEY_CERT,
68 "nt-fw-key-cert", NULL, 0, NULL },
69 /* Content certificates */
70 { "Trusted Boot Firmware BL2 certificate", UUID_TRUSTED_BOOT_FW_CERT,
71 "tb-fw-cert", NULL, 0, NULL },
72 { "SCP Firmware content certificate", UUID_SCP_FW_CONTENT_CERT,
73 "scp-fw-cert", NULL, 0, NULL },
74 { "SoC Firmware content certificate", UUID_SOC_FW_CONTENT_CERT,
75 "soc-fw-cert", NULL, 0, NULL },
76 { "Trusted OS Firmware content certificate", UUID_TRUSTED_OS_FW_CONTENT_CERT,
77 "tos-fw-cert", NULL, 0, NULL },
78 { "Non-Trusted Firmware content certificate", UUID_NON_TRUSTED_FW_CONTENT_CERT,
79 "nt-fw-cert", NULL, 0, NULL },
80 { NULL, { 0 }, NULL, NULL, 0, NULL }
81};
82
83size_t toc_entries_len = sizeof(toc_entries) / sizeof(toc_entries[0]);