mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-10-31 20:18:18 +00:00 
			
		
		
		
	As part of bringing the master branch back in to next, we need to allow for all of these changes to exist here. Reported-by: Jonas Karlman <jonas@kwiboo.se> Signed-off-by: Tom Rini <trini@konsulko.com>
		
			
				
	
	
		
			24 lines
		
	
	
		
			353 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			353 B
		
	
	
	
		
			C
		
	
	
	
	
	
| // SPDX-License-Identifier: GPL-2.0
 | |
| /*
 | |
|  * Copyright (C) 2018 MediaTek Inc.
 | |
|  */
 | |
| 
 | |
| #include <cpu_func.h>
 | |
| #include <dm.h>
 | |
| #include <init.h>
 | |
| #include <wdt.h>
 | |
| #include <dm/uclass-internal.h>
 | |
| 
 | |
| int arch_cpu_init(void)
 | |
| {
 | |
| 	icache_enable();
 | |
| 
 | |
| 	return 0;
 | |
| }
 | |
| 
 | |
| void enable_caches(void)
 | |
| {
 | |
| 	/* Enable D-cache. I-cache is already enabled in start.S */
 | |
| 	dcache_enable();
 | |
| }
 |