Merge tag 'efi-2020-07-rc6' of https://gitlab.denx.de/u-boot/custodians/u-boot-efi
[oweals/u-boot.git] / arch / arm / cpu / armv7 / bcmcygnus / reset.c
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * Copyright 2014 Broadcom Corporation.
4  */
5
6 #include <common.h>
7 #include <cpu_func.h>
8 #include <asm/io.h>
9
10 #define CRMU_MAIL_BOX1          0x03024028
11 #define CRMU_SOFT_RESET_CMD     0xFFFFFFFF
12
13 void reset_cpu(ulong ignored)
14 {
15         /* Send soft reset command via Mailbox. */
16         writel(CRMU_SOFT_RESET_CMD, CRMU_MAIL_BOX1);
17
18         while (1)
19                 ;       /* loop forever till reset */
20 }