1 /*
2 * Copyright (c) 2020, Arm Limited. All rights reserved.
3 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
7 #include <drivers/measured_boot/event_log.h>
8 #include <plat/arm/common/plat_arm.h>
9
10 /* FVP table with platform specific image IDs, names and PCRs */
11 static const image_data_t fvp_images_data[] = {
12 { BL2_IMAGE_ID, BL2_STRING, PCR_0 }, /* Reserved for BL2 */
13 { BL31_IMAGE_ID, BL31_STRING, PCR_0 },
14 { BL32_IMAGE_ID, BL32_STRING, PCR_0 },
15 { BL32_EXTRA1_IMAGE_ID, BL32_EXTRA1_IMAGE_STRING, PCR_0 },
16 { BL32_EXTRA2_IMAGE_ID, BL32_EXTRA2_IMAGE_STRING, PCR_0 },
17 { BL33_IMAGE_ID, BL33_STRING, PCR_0 },
18 { HW_CONFIG_ID, HW_CONFIG_STRING, PCR_0 },
19 { NT_FW_CONFIG_ID, NT_FW_CONFIG_STRING, PCR_0 },
20 { SCP_BL2_IMAGE_ID, SCP_BL2_IMAGE_STRING, PCR_0 },
21 { SOC_FW_CONFIG_ID, SOC_FW_CONFIG_STRING, PCR_0 },
22 { TOS_FW_CONFIG_ID, TOS_FW_CONFIG_STRING, PCR_0 },
23 { INVALID_ID, NULL, (unsigned int)(-1) } /* Terminator */
24 };
25
26 static const measured_boot_data_t fvp_measured_boot_data = {
27 fvp_images_data,
28 arm_set_nt_fw_info,
29 arm_set_tos_fw_info
30 };
31
32 /*
33 * Function retuns pointer to FVP plat_measured_boot_data_t structure
34 */
plat_get_measured_boot_data(void)35 const measured_boot_data_t *plat_get_measured_boot_data(void)
36 {
37 return &fvp_measured_boot_data;
38 }
39