]> git.ipfire.org Git - thirdparty/u-boot.git/blob - arch/arm/mach-omap2/reset.c
SPDX: Convert all of our single license tags to Linux Kernel style
[thirdparty/u-boot.git] / arch / arm / mach-omap2 / reset.c
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 <asm/io.h>
13 #include <asm/arch/cpu.h>
14 #include <linux/compiler.h>
15
16 void __weak reset_cpu(unsigned long ignored)
17 {
18 writel(PRM_RSTCTRL_RESET, PRM_RSTCTRL);
19 }
20
21 u32 __weak warm_reset(void)
22 {
23 return (readl(PRM_RSTST) & PRM_RSTST_WARM_RESET_MASK);
24 }
25
26 void __weak setup_warmreset_time(void)
27 {
28 }