From d5158f18b0b6e13760eb92afeff0a4129f63de4b Mon Sep 17 00:00:00 2001 From: Ye Li Date: Tue, 15 May 2018 23:50:21 -0700 Subject: imx8mm: add HAB support Similar to imx8mq, the U-boot calls SIP call for HAB interfaces, and trap to ATF to run the HAB. Since HAB codes locates in ROM, and need to access OCRAM, CAAM RAM and DDR to authenticate image. Add these relevant memory region to MMU. Also extend the stack size of each core to avoid stack overflow, and extend the BL31 limit to OCRAM end 0x940000. Signed-off-by: Ye Li --- plat/imx/imx8mm/imx8mm_bl31_setup.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'plat/imx/imx8mm/imx8mm_bl31_setup.c') diff --git a/plat/imx/imx8mm/imx8mm_bl31_setup.c b/plat/imx/imx8mm/imx8mm_bl31_setup.c index 310832ff..861d788c 100644 --- a/plat/imx/imx8mm/imx8mm_bl31_setup.c +++ b/plat/imx/imx8mm/imx8mm_bl31_setup.c @@ -173,9 +173,18 @@ void bl31_early_platform_setup2(u_register_t arg0, u_register_t arg1, void bl31_plat_arch_setup(void) { /* add the mmap */ - mmap_add_region(BL31_BASE, BL31_BASE, 0x10000, MT_MEMORY | MT_RW); + mmap_add_region(0x900000, 0x900000, 0x40000, + MT_MEMORY | MT_RW); + mmap_add_region(0x100000, 0x100000, 0x10000, + MT_MEMORY | MT_RW); + mmap_add_region(0x40000000, 0x40000000, 0xc0000000, + MT_MEMORY | MT_RW | MT_NS); + mmap_add_region(BL31_BASE, BL31_BASE, BL31_RO_LIMIT - BL31_RO_BASE, MT_MEMORY | MT_RO); + + mmap_add_region(IMX_ROM_BASE, IMX_ROM_BASE, + 0x40000, MT_MEMORY | MT_RO); /* Map GPV */ mmap_add_region(IMX_GPV_BASE, IMX_GPV_BASE, IMX_GPV_SIZE, MT_DEVICE | MT_RW); /* Map AIPS 1~3 */ -- cgit v1.2.3