mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-10-30 19:48:19 +00:00 
			
		
		
		
	Move this function out of common.h and into a relevant header file. Signed-off-by: Simon Glass <sjg@chromium.org>
		
			
				
	
	
		
			30 lines
		
	
	
		
			554 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			554 B
		
	
	
	
		
			C
		
	
	
	
	
	
| // SPDX-License-Identifier: GPL-2.0+
 | |
| /*
 | |
|  *
 | |
|  * Common layer for reset related functionality of OMAP based socs.
 | |
|  *
 | |
|  * (C) Copyright 2012
 | |
|  * Texas Instruments, <www.ti.com>
 | |
|  *
 | |
|  * Sricharan R <r.sricharan@ti.com>
 | |
|  */
 | |
| #include <config.h>
 | |
| #include <cpu_func.h>
 | |
| #include <asm/io.h>
 | |
| #include <asm/arch/cpu.h>
 | |
| #include <linux/compiler.h>
 | |
| 
 | |
| void __weak reset_cpu(unsigned long ignored)
 | |
| {
 | |
| 	writel(PRM_RSTCTRL_RESET, PRM_RSTCTRL);
 | |
| }
 | |
| 
 | |
| u32 __weak warm_reset(void)
 | |
| {
 | |
| 	return (readl(PRM_RSTST) & PRM_RSTST_WARM_RESET_MASK);
 | |
| }
 | |
| 
 | |
| void __weak setup_warmreset_time(void)
 | |
| {
 | |
| }
 |