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 / bcmnsp / 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 CRU_RESET_OFFSET        0x1803F184
11
12 void reset_cpu(ulong ignored)
13 {
14         /* Reset the cpu by setting software reset request bit */
15         writel(0x1, CRU_RESET_OFFSET);
16
17         while (1)
18                 ;       /* loop forever till reset */
19 }