Alexei Fedorov | 61369a2 | 2020-07-13 14:59:02 +0100 | [diff] [blame] | 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 | { GPT_IMAGE_ID, GPT_IMAGE_STRING, PCR_0 }, |
| 19 | { HW_CONFIG_ID, HW_CONFIG_STRING, PCR_0 }, |
| 20 | { NT_FW_CONFIG_ID, NT_FW_CONFIG_STRING, PCR_0 }, |
| 21 | { SCP_BL2_IMAGE_ID, SCP_BL2_IMAGE_STRING, PCR_0 }, |
| 22 | { SOC_FW_CONFIG_ID, SOC_FW_CONFIG_STRING, PCR_0 }, |
| 23 | { STM32_IMAGE_ID, STM32_IMAGE_STRING, PCR_0 }, |
| 24 | { TOS_FW_CONFIG_ID, TOS_FW_CONFIG_STRING, PCR_0 }, |
| 25 | { INVALID_ID, NULL, (unsigned int)(-1) } /* Terminator */ |
| 26 | }; |
| 27 | |
| 28 | static const measured_boot_data_t fvp_measured_boot_data = { |
| 29 | fvp_images_data, |
| 30 | arm_set_nt_fw_info, |
| 31 | arm_set_tos_fw_info |
| 32 | }; |
| 33 | |
| 34 | /* |
| 35 | * Function retuns pointer to FVP plat_measured_boot_data_t structure |
| 36 | */ |
| 37 | const measured_boot_data_t *plat_get_measured_boot_data(void) |
| 38 | { |
| 39 | return &fvp_measured_boot_data; |
| 40 | } |