diff --git a/arch/arm/mach-imx/dt_optee.c b/arch/arm/mach-imx/dt_optee.c index 1451050..3441a0a 100644 --- a/arch/arm/mach-imx/dt_optee.c +++ b/arch/arm/mach-imx/dt_optee.c @@ -17,6 +17,9 @@ int ft_add_optee_node(void *fdt, bd_t *bd) phys_addr_t optee_start; size_t optee_size; + /* Not let uboot create the node */ + if (CONFIG_IS_ENABLED(XEN)) + return 0; /* * No TEE space allocated indicating no TEE running, so no * need to add optee node in dts