mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-19 02:54:24 +00:00
fix(imx8mq): fix imx8mq build break due to hab
Add the HAB secure boot support for the i.MX8MQ to fix the build break. Signed-off-by: Jacky Bai <ping.bai@nxp.com> Change-Id: I806de2dc42806e008355cc185065e774570362f0
This commit is contained in:
parent
dc5d485206
commit
3a36f70ba0
4 changed files with 10 additions and 2 deletions
|
@ -72,6 +72,8 @@ static inline int dram_dvfs_handler(uint32_t smc_fid, void *handle,
|
|||
SMC_RET1(handle, SMC_UNK);
|
||||
}
|
||||
#endif
|
||||
int imx_hab_handler(uint32_t smc_fid, u_register_t x1,
|
||||
u_register_t x2, u_register_t x3, u_register_t x4);
|
||||
#endif
|
||||
#if defined(PLAT_imx8mm) || defined(PLAT_imx8mn) || defined(PLAT_imx8mp)
|
||||
int dram_dvfs_handler(uint32_t smc_fid, void *handle,
|
||||
|
|
|
@ -52,6 +52,8 @@ static const mmap_region_t imx_mmap[] = {
|
|||
MAP_REGION_FLAT(IMX_GIC_BASE, IMX_GIC_SIZE, MT_DEVICE | MT_RW), /* GIC map */
|
||||
MAP_REGION_FLAT(IMX_DDRPHY_BASE, IMX_DDR_IPS_SIZE, MT_DEVICE | MT_RW), /* DDRMIX map */
|
||||
MAP_REGION_FLAT(IMX_DRAM_BASE, IMX_DRAM_SIZE, MT_MEMORY | MT_RW | MT_NS),
|
||||
MAP_REGION_FLAT(IMX_CAAM_RAM_BASE, IMX_CAAM_RAM_SIZE, MT_MEMORY | MT_RW), /* CAMM RAM */
|
||||
MAP_REGION_FLAT(IMX_NS_OCRAM_BASE, IMX_NS_OCRAM_SIZE, MT_MEMORY | MT_RW), /* NS OCRAM */
|
||||
{0},
|
||||
};
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
#define PLATFORM_LINKER_FORMAT "elf64-littleaarch64"
|
||||
#define PLATFORM_LINKER_ARCH aarch64
|
||||
|
||||
#define PLATFORM_STACK_SIZE 0x800
|
||||
#define PLATFORM_STACK_SIZE 0xb00
|
||||
#define CACHE_WRITEBACK_GRANULE 64
|
||||
|
||||
#define PLAT_PRIMARY_CPU U(0x0)
|
||||
|
@ -93,7 +93,10 @@
|
|||
#define IMX_DDR_IPS_SIZE U(0x1800000)
|
||||
#define IMX_DRAM_BASE U(0x40000000)
|
||||
#define IMX_DRAM_SIZE U(0xc0000000)
|
||||
|
||||
#define IMX_NS_OCRAM_BASE U(0x900000)
|
||||
#define IMX_NS_OCRAM_SIZE U(0x20000)
|
||||
#define IMX_CAAM_RAM_BASE U(0x100000)
|
||||
#define IMX_CAAM_RAM_SIZE U(0x10000)
|
||||
#define IMX_ROM_BASE U(0x00000000)
|
||||
#define IMX_ROM_SIZE U(0x20000)
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@ BL31_SOURCES += plat/imx/common/imx8_helpers.S \
|
|||
plat/imx/imx8m/imx8mq/imx8mq_bl31_setup.c \
|
||||
plat/imx/imx8m/imx8mq/imx8mq_psci.c \
|
||||
plat/imx/imx8m/gpc_common.c \
|
||||
plat/imx/imx8m/imx_hab.c \
|
||||
plat/imx/imx8m/imx_aipstz.c \
|
||||
plat/imx/imx8m/imx8m_caam.c \
|
||||
plat/imx/imx8m/imx8m_ccm.c \
|
||||
|
|
Loading…
Add table
Reference in a new issue