blob: 91ad031ddd33a035ded80d3b3406132a6e096044 [file] [log] [blame]
Minkyu Kangae6f0c62009-07-20 11:40:01 +09001/*
SRICHARAN R8d242922012-03-12 19:49:32 +00002 *
3 * Common layer for reset related functionality of OMAP based socs.
4 *
5 * (C) Copyright 2012
6 * Texas Instruments, <www.ti.com>
7 *
8 * Sricharan R <r.sricharan@ti.com>
Minkyu Kangae6f0c62009-07-20 11:40:01 +09009 *
Wolfgang Denkd79de1d2013-07-08 09:37:19 +020010 * SPDX-License-Identifier: GPL-2.0+
Minkyu Kangae6f0c62009-07-20 11:40:01 +090011 */
Minkyu Kangae6f0c62009-07-20 11:40:01 +090012#include <config.h>
SRICHARAN R8d242922012-03-12 19:49:32 +000013#include <asm/io.h>
14#include <asm/arch/cpu.h>
15#include <linux/compiler.h>
Minkyu Kangae6f0c62009-07-20 11:40:01 +090016
SRICHARAN R8d242922012-03-12 19:49:32 +000017void __weak reset_cpu(unsigned long ignored)
18{
19 writel(PRM_RSTCTRL_RESET, PRM_RSTCTRL);
20}
Lokesh Vutlae89f1542012-05-29 19:26:41 +000021
22u32 __weak warm_reset(void)
23{
24 return (readl(PRM_RSTST) & PRM_RSTST_WARM_RESET_MASK);
25}
Lokesh Vutla100c2d82013-04-17 20:49:40 +000026
27void __weak setup_warmreset_time(void)
28{
29}