diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c index 72b8862eb0..f22ca383a4 100644 --- a/arch/arm/mach-imx/imx8m/soc.c +++ b/arch/arm/mach-imx/imx8m/soc.c @@ -64,6 +64,12 @@ void enable_tzc380(void) #ifdef CONFIG_IMX8MM setbits_le32(&gpr->gpr[10], GPR_TZASC_SWAP_ID); #endif + + /* + * set Region 0 attribute to allow secure and non-secure read/write permission + * Found some masters like usb dwc3 controllers can't work with secure memory. + */ + writel(0xf0000000, TZASC_BASE_ADDR + 0x108); } void set_wdog_reset(struct wdog_regs *wdog)