Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame^] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
Minkyu Kang | ae6f0c6 | 2009-07-20 11:40:01 +0900 | [diff] [blame] | 2 | /* |
SRICHARAN R | 8d24292 | 2012-03-12 19:49:32 +0000 | [diff] [blame] | 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> |
Minkyu Kang | ae6f0c6 | 2009-07-20 11:40:01 +0900 | [diff] [blame] | 10 | */ |
Minkyu Kang | ae6f0c6 | 2009-07-20 11:40:01 +0900 | [diff] [blame] | 11 | #include <config.h> |
SRICHARAN R | 8d24292 | 2012-03-12 19:49:32 +0000 | [diff] [blame] | 12 | #include <asm/io.h> |
| 13 | #include <asm/arch/cpu.h> |
| 14 | #include <linux/compiler.h> |
Minkyu Kang | ae6f0c6 | 2009-07-20 11:40:01 +0900 | [diff] [blame] | 15 | |
SRICHARAN R | 8d24292 | 2012-03-12 19:49:32 +0000 | [diff] [blame] | 16 | void __weak reset_cpu(unsigned long ignored) |
| 17 | { |
| 18 | writel(PRM_RSTCTRL_RESET, PRM_RSTCTRL); |
| 19 | } |
Lokesh Vutla | e89f154 | 2012-05-29 19:26:41 +0000 | [diff] [blame] | 20 | |
| 21 | u32 __weak warm_reset(void) |
| 22 | { |
| 23 | return (readl(PRM_RSTST) & PRM_RSTST_WARM_RESET_MASK); |
| 24 | } |
Lokesh Vutla | 100c2d8 | 2013-04-17 20:49:40 +0000 | [diff] [blame] | 25 | |
| 26 | void __weak setup_warmreset_time(void) |
| 27 | { |
| 28 | } |