blob: 1fd79c2e8a43b96f0f9d15f9e6e46ecbaacdea30 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Minkyu Kang6b96a202009-07-20 11:40:01 +09002/*
SRICHARAN Rd417d1db5f2012-03-12 19:49:32 +00003 *
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 Kang6b96a202009-07-20 11:40:01 +090010 */
Minkyu Kang6b96a202009-07-20 11:40:01 +090011#include <config.h>
Simon Glass9a3b4ce2019-12-28 10:45:01 -070012#include <cpu_func.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
Harald Seiler35b65dd2020-12-15 16:47:52 +010017void __weak reset_cpu(void)
SRICHARAN Rd417d1db5f2012-03-12 19:49:32 +000018{
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}