1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2014, STMicroelectronics - All Rights Reserved
4 * Author(s): Vikas Manocha, <vikas.manocha@st.com> for STMicroelectronics.
10 #include <asm/arch/stv0991_wdru.h>
11 #include <linux/delay.h>
12 void reset_cpu(ulong ignored)
14 puts("System is going to reboot ...\n");
16 * This 1 second delay will allow the above message
17 * to be printed before reset
19 udelay((1000 * 1000));
21 /* Setting bit 1 of the WDRU unit will reset the SoC */
22 writel(WDRU_RST_SYS, &stv0991_wd_ru_ptr->wdru_ctrl1);
24 /* system will restart */