1 // SPDX-License-Identifier: GPL-2.0+
10 #include <asm/arch/hardware.h>
11 #include <asm/arch/spr_syscntl.h>
12 #include <linux/delay.h>
14 void reset_cpu(ulong ignored)
16 struct syscntl_regs *syscntl_regs_p =
17 (struct syscntl_regs *)CONFIG_SPEAR_SYSCNTLBASE;
19 printf("System is going to reboot ...\n");
22 * This 1 second delay will allow the above message
23 * to be printed before reset
25 udelay((1000 * 1000));
27 /* Going into slow mode before resetting SOC */
28 writel(0x02, &syscntl_regs_p->scctrl);
31 * Writing any value to the system status register will
34 writel(0x00, &syscntl_regs_p->scsysstat);
36 /* system will restart */