blob: d4b3ab7fd80eaf6f266f5b3d106ff278da657329 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001// SPDX-License-Identifier: GPL-2.0+
Vikas Manocha33913c52014-11-18 10:42:22 -08002/*
Patrice Chotardcc551162017-10-23 09:53:59 +02003 * Copyright (C) 2014, STMicroelectronics - All Rights Reserved
4 * Author(s): Vikas Manocha, <vikas.manocha@st.com> for STMicroelectronics.
Vikas Manocha33913c52014-11-18 10:42:22 -08005 */
6
7#include <common.h>
8#include <asm/io.h>
9#include <asm/arch/stv0991_wdru.h>
10void reset_cpu(ulong ignored)
11{
12 puts("System is going to reboot ...\n");
13 /*
14 * This 1 second delay will allow the above message
15 * to be printed before reset
16 */
17 udelay((1000 * 1000));
18
19 /* Setting bit 1 of the WDRU unit will reset the SoC */
20 writel(WDRU_RST_SYS, &stv0991_wd_ru_ptr->wdru_ctrl1);
21
22 /* system will restart */
23 while (1)
24 ;
25}