feat(tc): fpga: Enable support for loading FIP image to DRAM

This patch enable support for loading FIP image into DRAM rather than
flash drive.

Change-Id: I00d2de7b22e315db7f3e8a835ddd414ab297b554
Signed-off-by: Vishnu Satheesh <vishnu.satheesh@arm.com>
Signed-off-by: Icen Zeyada <Icen.Zeyada2@arm.com>
This commit is contained in:
Vishnu Satheesh 2024-04-23 15:25:32 +01:00 committed by Icen Zeyada
parent 932e64a1d7
commit 969b7591dc
2 changed files with 18 additions and 0 deletions

View file

@ -207,7 +207,21 @@
#if defined(TARGET_FLAVOUR_FPGA)
#undef V2M_FLASH0_BASE
#undef V2M_FLASH0_SIZE
#if TC_FPGA_FIP_IMG_IN_RAM
/*
* Note that this is just used for the FIP, which is not required
* anymore once Linux has commenced booting. So we are safe allowing
* Linux to also make use of this memory and it doesn't need to be
* carved out of the devicetree.
*
* This only needs to match the RAM load address that we give the FIP
* on either the FPGA or FVP command line so there is no need to link
* it to say halfway through the RAM or anything like that.
*/
#define V2M_FLASH0_BASE UL(0xB0000000)
#else
#define V2M_FLASH0_BASE UL(0x0C000000)
#endif
#define V2M_FLASH0_SIZE UL(0x02000000)
#endif

View file

@ -80,6 +80,9 @@ endif
# Support for loading Android Image to DRAM
TC_FPGA_ANDROID_IMG_IN_RAM := 0
# Support Loading of FIP image to DRAM
TC_FPGA_FIP_IMG_IN_RAM := 0
$(eval $(call add_defines, \
TARGET_PLATFORM \
TARGET_FLAVOUR_$(call uppercase,${TARGET_FLAVOUR}) \
@ -87,6 +90,7 @@ $(eval $(call add_defines, \
TC_DPU_USE_SCMI_CLK \
TC_SCMI_PD_CTRL_EN \
TC_FPGA_ANDROID_IMG_IN_RAM \
TC_FPGA_FIP_IMG_IN_RAM \
))
CSS_LOAD_SCP_IMAGES := 1