/* * Copyright (c) 2022-2026, Arm Limited and Contributors. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include #include #include #include #include #include #include #include /* Table with platform specific image IDs and metadata. Intentionally not a * const struct, some members might set by bootloaders during trusted boot. */ struct rse_mboot_metadata tc_rse_mboot_metadata[] = { { .id = FW_CONFIG_ID, .slot = U(6), .signer_id_size = SIGNER_ID_MIN_SIZE, .sw_type = MBOOT_FW_CONFIG_STRING, .pk_oid = ZERO_OID, .lock_measurement = true }, { .id = TB_FW_CONFIG_ID, .slot = U(7), .signer_id_size = SIGNER_ID_MIN_SIZE, .sw_type = MBOOT_TB_FW_CONFIG_STRING, .pk_oid = ZERO_OID, .lock_measurement = true }, { .id = BL2_IMAGE_ID, .slot = U(8), .signer_id_size = SIGNER_ID_MIN_SIZE, .sw_type = MBOOT_BL2_IMAGE_STRING, .pk_oid = ZERO_OID, .lock_measurement = true }, { .id = RSE_MBOOT_INVALID_ID } }; void bl1_plat_mboot_init(void) { enum sfcp_error_t sfcp_err; /* Initialize SFCP for communications between AP and RSE */ sfcp_err = sfcp_init(); if (sfcp_err != SFCP_ERROR_SUCCESS) { ERROR("Unable to initialize SFCP\n"); plat_panic_handler(); } rse_measured_boot_init(tc_rse_mboot_metadata); } void bl1_plat_mboot_finish(void) { /* Nothing to do. */ }