xref: /openbmc/u-boot/arch/arm/cpu/armv7/bcmcygnus/reset.c (revision 57efeb04)
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Copyright 2014 Broadcom Corporation.
4  */
5 
6 #include <common.h>
7 #include <asm/io.h>
8 
9 #define CRMU_MAIL_BOX1		0x03024028
10 #define CRMU_SOFT_RESET_CMD	0xFFFFFFFF
11 
12 void reset_cpu(ulong ignored)
13 {
14 	/* Send soft reset command via Mailbox. */
15 	writel(CRMU_SOFT_RESET_CMD, CRMU_MAIL_BOX1);
16 
17 	while (1)
18 		;	/* loop forever till reset */
19 }
20