SPDX: Convert all of our single license tags to Linux Kernel style
[platform/kernel/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 <asm/io.h>
8
9 #define CRU_RESET_OFFSET        0x1803F184
10
11 void reset_cpu(ulong ignored)
12 {
13         /* Reset the cpu by setting software reset request bit */
14         writel(0x1, CRU_RESET_OFFSET);
15
16         while (1)
17                 ;       /* loop forever till reset */
18 }