blob: 91ad031ddd33a035ded80d3b3406132a6e096044 [file] [log] [blame]
Minkyu Kang6b96a202009-07-20 11:40:01 +09001/*
SRICHARAN Rd417d1db5f2012-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 Kang6b96a202009-07-20 11:40:01 +09009 *
Wolfgang Denk1a459662013-07-08 09:37:19 +020010 * SPDX-License-Identifier: GPL-2.0+
Minkyu Kang6b96a202009-07-20 11:40:01 +090011 */
Minkyu Kang6b96a202009-07-20 11:40:01 +090012#include <config.h>
SRICHARAN Rd417d1db5f2012-03-12 19:49:32 +000013#include <asm/io.h>
14#include <asm/arch/cpu.h>
15#include <linux/compiler.h>
Minkyu Kang6b96a202009-07-20 11:40:01 +090016
SRICHARAN Rd417d1db5f2012-03-12 19:49:32 +000017void __weak reset_cpu(unsigned long ignored)
18{
19 writel(PRM_RSTCTRL_RESET, PRM_RSTCTRL);
20}
Lokesh Vutla70239502012-05-29 19:26:41 +000021
22u32 __weak warm_reset(void)
23{
24 return (readl(PRM_RSTST) & PRM_RSTST_WARM_RESET_MASK);
25}
Lokesh Vutla0b1b60c2013-04-17 20:49:40 +000026
27void __weak setup_warmreset_time(void)
28{
29}