Commit e9ec5ea8 authored by Silvano di Ninno's avatar Silvano di Ninno
Browse files

MLK-18344: add OP-TEE support for i.Mx 8MM



like for i.MX 8mq ATF passes as argument to u-boot
the start and the length of the BL32 firmware.
u-boot uses this information to adjust the size of the DDR for linux.
Signed-off-by: default avatarSilvano di Ninno <silvano.dininno@nxp.com>
Acked-by: default avatarPeng Fan <peng.fan@nxp.com>
parent d5c9774e
......@@ -459,6 +459,7 @@ static int ft_add_optee_node(void *fdt, bd_t *bd)
int ft_system_setup(void *blob, bd_t *bd)
{
#ifndef CONFIG_IMX8MM
if (get_boot_device() == USB_BOOT) {
const char *nodes_path[] = {
"/dcss@32e00000",
......@@ -553,7 +554,7 @@ usb_modify_speed:
}
}
}
#endif
return ft_add_optee_node(blob, bd);
}
#endif
......
......@@ -135,7 +135,11 @@ int board_postclk_init(void)
int dram_init(void)
{
gd->ram_size = PHYS_SDRAM_SIZE;
/* rom_pointer[1] contains the size of TEE occupies */
if (rom_pointer[1])
gd->ram_size = PHYS_SDRAM_SIZE - rom_pointer[1];
else
gd->ram_size = PHYS_SDRAM_SIZE;
return 0;
}
......
......@@ -341,6 +341,8 @@
#endif
#define CONFIG_OF_SYSTEM_SETUP
#if defined(CONFIG_ANDROID_SUPPORT)
#include "imx8mm_evk_android.h"
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment