1 // SPDX-License-Identifier: GPL-2.0+
4 * Vipin Kumar, ST Micoelectronics, vipin.kumar@st.com.
9 #include <asm/arch/hardware.h>
10 #include <asm/arch/spr_syscntl.h>
12 void reset_cpu(ulong ignored)
14 struct syscntl_regs *syscntl_regs_p =
15 (struct syscntl_regs *)CONFIG_SPEAR_SYSCNTLBASE;
17 printf("System is going to reboot ...\n");
20 * This 1 second delay will allow the above message
21 * to be printed before reset
23 udelay((1000 * 1000));
25 /* Going into slow mode before resetting SOC */
26 writel(0x02, &syscntl_regs_p->scctrl);
29 * Writing any value to the system status register will
32 writel(0x00, &syscntl_regs_p->scsysstat);
34 /* system will restart */