mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-10-30 19:48:19 +00:00 
			
		
		
		
	We don't have a reset method on any RISC-V board yet. Instead of adding the same 'unsupported' message for each CPU variant it might make more sense to add a generic do_reset function for all CPU variants to lib/, similar to the one for ARM (arch/arm/lib/reset.c). Suggested-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de> Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Lukas Auer <lukas.auer@aisec.fraunhofer.de>
		
			
				
	
	
		
			22 lines
		
	
	
		
			363 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			363 B
		
	
	
	
		
			C
		
	
	
	
	
	
| // SPDX-License-Identifier: GPL-2.0+
 | |
| /*
 | |
|  * Copyright (C) 2018, Bin Meng <bmeng.cn@gmail.com>
 | |
|  */
 | |
| 
 | |
| #include <common.h>
 | |
| 
 | |
| /*
 | |
|  * cleanup_before_linux() is called just before we call linux
 | |
|  * it prepares the processor for linux
 | |
|  *
 | |
|  * we disable interrupt and caches.
 | |
|  */
 | |
| int cleanup_before_linux(void)
 | |
| {
 | |
| 	disable_interrupts();
 | |
| 
 | |
| 	/* turn off I/D-cache */
 | |
| 
 | |
| 	return 0;
 | |
| }
 |