mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-11-04 05:50:17 +00:00 
			
		
		
		
	ARM: imx: Enable instruction cache early on on i.MX8M
Enable instruction cache early on to speed up the boot process on i.MX8M. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Fabio Estevam <festevam@gmail.com> Cc: Peng Fan <peng.fan@nxp.com> Cc: Stefano Babic <sbabic@denx.de>
This commit is contained in:
		
							parent
							
								
									87f958810f
								
							
						
					
					
						commit
						2fa763baa1
					
				@ -551,6 +551,11 @@ EVENT_SPY(EVT_DM_POST_INIT, imx8m_check_clock);
 | 
				
			|||||||
int arch_cpu_init(void)
 | 
					int arch_cpu_init(void)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct ocotp_regs *ocotp = (struct ocotp_regs *)OCOTP_BASE_ADDR;
 | 
						struct ocotp_regs *ocotp = (struct ocotp_regs *)OCOTP_BASE_ADDR;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if !CONFIG_IS_ENABLED(SYS_ICACHE_OFF)
 | 
				
			||||||
 | 
						icache_enable();
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/*
 | 
						/*
 | 
				
			||||||
	 * ROM might disable clock for SCTR,
 | 
						 * ROM might disable clock for SCTR,
 | 
				
			||||||
	 * enable the clock before timer_init.
 | 
						 * enable the clock before timer_init.
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user