mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 01:54:22 +00:00

This feature is enabled by default using STM32MP_DDR_FIP_IO_STORAGE. DDR firmware binary is loaded from FIP to SRAM1 which needs to be mapped. Only half of the SRAM1 will be allocated to TF-A. RISAB3 has to be configured to allow access to SRAM1. Add image ID and update maximum number on platform side also. Fill related descriptor information, add policy and update numbers. DDR_TYPE variable is used to identify binary file, and image is now added in the fiptool command line. The DDR PHY firmware is not in TF-A repository. It can be found at https://github.com/STMicroelectronics/stm32-ddr-phy-binary To ease the selection of the firmware path, STM32MP_DDR_FW_PATH is added to platform.mk file. Change-Id: I09ab0a5c63406055a7b5ccd16d65e443de47ca2f Signed-off-by: Nicolas Le Bayon <nicolas.le.bayon@st.com> Signed-off-by: Yann Gautier <yann.gautier@st.com> Signed-off-by: Maxime Méré <maxime.mere@foss.st.com>
55 lines
1.4 KiB
C
55 lines
1.4 KiB
C
/*
|
|
* Copyright (c) 2024, STMicroelectronics - All Rights Reserved
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef PLAT_TBBR_IMG_DEF_H
|
|
#define PLAT_TBBR_IMG_DEF_H
|
|
|
|
#include <export/common/tbbr/tbbr_img_def_exp.h>
|
|
|
|
/* Undef the existing values */
|
|
#undef BKUP_FWU_METADATA_IMAGE_ID
|
|
#undef FWU_METADATA_IMAGE_ID
|
|
#undef FW_CONFIG_ID
|
|
#undef ENC_IMAGE_ID
|
|
#undef GPT_IMAGE_ID
|
|
#undef NT_FW_CONFIG_ID
|
|
#undef SOC_FW_CONFIG_ID
|
|
#undef TB_FW_CONFIG_ID
|
|
#undef HW_CONFIG_ID
|
|
#undef TRUSTED_BOOT_FW_CERT_ID
|
|
#undef SOC_FW_CONTENT_CERT_ID
|
|
#undef BL32_EXTRA1_IMAGE_ID
|
|
#undef TOS_FW_CONFIG_ID
|
|
|
|
/* Define the STM32MP2 used ID */
|
|
#define FW_CONFIG_ID U(1)
|
|
#define HW_CONFIG_ID U(2)
|
|
#define ENC_IMAGE_ID U(6)
|
|
#define BL32_EXTRA1_IMAGE_ID U(8)
|
|
#define FWU_METADATA_IMAGE_ID U(12)
|
|
#define BKUP_FWU_METADATA_IMAGE_ID U(13)
|
|
#define TOS_FW_CONFIG_ID U(16)
|
|
#define NT_FW_CONFIG_ID U(18)
|
|
#define SOC_FW_CONFIG_ID U(19)
|
|
#define TB_FW_CONFIG_ID U(20)
|
|
#define TRUSTED_BOOT_FW_CERT_ID U(21)
|
|
#define SOC_FW_CONTENT_CERT_ID U(23)
|
|
#define STM32MP_CONFIG_CERT_ID U(24)
|
|
#define GPT_IMAGE_ID U(25)
|
|
|
|
#if STM32MP_DDR_FIP_IO_STORAGE
|
|
#define DDR_FW_ID U(26)
|
|
/* Increase the MAX_NUMBER_IDS to match the authentication pool required */
|
|
#define MAX_NUMBER_IDS U(27)
|
|
|
|
#else
|
|
/* Increase the MAX_NUMBER_IDS to match the authentication pool required */
|
|
#define MAX_NUMBER_IDS U(26)
|
|
|
|
#endif
|
|
|
|
#endif /* PLAT_TBBR_IMG_DEF_H */
|
|
|