blob: ea27248e8532bf66f1ec6ff511b1975a332d076d [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Minkyu Kangae6f0c62009-07-20 11:40:01 +09002/*
SRICHARAN R8d242922012-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 Kangae6f0c62009-07-20 11:40:01 +090010 */
Minkyu Kangae6f0c62009-07-20 11:40:01 +090011#include <config.h>
SRICHARAN R8d242922012-03-12 19:49:32 +000012#include <asm/io.h>
13#include <asm/arch/cpu.h>
14#include <linux/compiler.h>
Minkyu Kangae6f0c62009-07-20 11:40:01 +090015
SRICHARAN R8d242922012-03-12 19:49:32 +000016void __weak reset_cpu(unsigned long ignored)
17{
18 writel(PRM_RSTCTRL_RESET, PRM_RSTCTRL);
19}
Lokesh Vutlae89f1542012-05-29 19:26:41 +000020
21u32 __weak warm_reset(void)
22{
23 return (readl(PRM_RSTST) & PRM_RSTST_WARM_RESET_MASK);
24}
Lokesh Vutla100c2d82013-04-17 20:49:40 +000025
26void __weak setup_warmreset_time(void)
27{
28}