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