xref: /rk3399_ARM-atf/plat/arm/board/fvp/fvp_bl1_measured_boot.c (revision e742bcdae0d28dc14a2aa0b4ca30f50420bb5ebe)
1 /*
2  * Copyright (c) 2021, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #include <stdint.h>
8 
9 #include <drivers/measured_boot/event_log/event_log.h>
10 
11 /* Event Log data */
12 static uint8_t event_log[PLAT_ARM_EVENT_LOG_MAX_SIZE];
13 
14 /* FVP table with platform specific image IDs, names and PCRs */
15 const event_log_metadata_t fvp_event_log_metadata[] = {
16 	{ FW_CONFIG_ID, FW_CONFIG_STRING, PCR_0 },
17 	{ TB_FW_CONFIG_ID, TB_FW_CONFIG_STRING, PCR_0 },
18 	{ BL2_IMAGE_ID, BL2_STRING, PCR_0 },
19 	{ INVALID_ID, NULL, (unsigned int)(-1) }	/* Terminator */
20 };
21 
22 void bl1_plat_mboot_init(void)
23 {
24 	event_log_init(event_log, PLAT_ARM_EVENT_LOG_MAX_SIZE, 0U);
25 }
26 
27 void bl1_plat_mboot_finish(void)
28 {
29 	/*
30 	 * ToDo: populate tb_fw_config with Event Log address, its maximum size
31 	 * and filled size
32 	 */
33 }
34