]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - arch/arm/cpu/armv7/bcmnsp/reset.c
Merge branch 'master' of git://git.denx.de/u-boot-arc
[karo-tx-uboot.git] / arch / arm / cpu / armv7 / bcmnsp / reset.c
1 /*
2  * Copyright 2014 Broadcom Corporation.
3  *
4  * SPDX-License-Identifier:     GPL-2.0+
5  */
6
7 #include <common.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 }