1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  *
4  * Common layer for reset related functionality of OMAP based socs.
5  *
6  * (C) Copyright 2012
7  * Texas Instruments, <www.ti.com>
8  *
9  * Sricharan R <r.sricharan@ti.com>
10  */
11 #include <config.h>
12 #include <cpu_func.h>
13 #include <asm/io.h>
14 #include <asm/arch/cpu.h>
15 #include <linux/compiler.h>
16 
reset_cpu(void)17 void __weak reset_cpu(void)
18 {
19 	writel(PRM_RSTCTRL_RESET, PRM_RSTCTRL);
20 }
21 
warm_reset(void)22 u32 __weak warm_reset(void)
23 {
24 	return (readl(PRM_RSTST) & PRM_RSTST_WARM_RESET_MASK);
25 }
26 
setup_warmreset_time(void)27 void __weak setup_warmreset_time(void)
28 {
29 }
30