If OP-TEE early loading is performed, OP-TEE will configure the PL210 and lock access to the controller from the normal world. Skip the configuration in this case. Signed-off-by: Rouven Czerwinski <r.czerwinski@xxxxxxxxxxxxxx> --- arch/arm/mach-imx/imx6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/imx6.c b/arch/arm/mach-imx/imx6.c index 41e0066add..f2311efd92 100644 --- a/arch/arm/mach-imx/imx6.c +++ b/arch/arm/mach-imx/imx6.c @@ -278,7 +278,7 @@ static int imx6_mmu_init(void) void __iomem *l2x0_base = IOMEM(0x00a02000); u32 val, cache_part, cache_rtl; - if (!cpu_is_mx6()) + if (!cpu_is_mx6() || IS_ENABLED(CONFIG_PBL_OPTEE)) return 0; val = readl(l2x0_base + L2X0_CACHE_ID); -- 2.25.0 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox