MLK-19263-1 imx8m: Configure trustzone region 0 for non-secure access
Set trustzone region 0 to allow both non-secure and secure access when trust zone is enabled. We found USB controller fails to access DDR if the default region 0 is secure access only. Signed-off-by: Ye Li <ye.li@nxp.com>
This commit is contained in:
		
							parent
							
								
									ece4a31cdc
								
							
						
					
					
						commit
						ebdf2c75f3
					
				| 
						 | 
					@ -64,6 +64,12 @@ void enable_tzc380(void)
 | 
				
			||||||
#ifdef CONFIG_IMX8MM
 | 
					#ifdef CONFIG_IMX8MM
 | 
				
			||||||
	setbits_le32(&gpr->gpr[10], GPR_TZASC_SWAP_ID);
 | 
						setbits_le32(&gpr->gpr[10], GPR_TZASC_SWAP_ID);
 | 
				
			||||||
#endif
 | 
					#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)
 | 
					void set_wdog_reset(struct wdog_regs *wdog)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue