]> git.ipfire.org Git - thirdparty/u-boot.git/blob - arch/arm/cpu/arm926ejs/mb86r0x/reset.c
Add GPL-2.0+ SPDX-License-Identifier to source files
[thirdparty/u-boot.git] / arch / arm / cpu / arm926ejs / mb86r0x / reset.c
1 /*
2 * (C) Copyright 2010
3 * Matthias Weisser <weisserm@arcor.de>
4 *
5 * SPDX-License-Identifier: GPL-2.0+
6 */
7
8 #include <common.h>
9 #include <asm/io.h>
10 #include <asm/arch/hardware.h>
11
12 /*
13 * Reset the cpu by setting software reset request bit
14 */
15 void reset_cpu(ulong ignored)
16 {
17 struct mb86r0x_crg * crg = (struct mb86r0x_crg *)
18 MB86R0x_CRG_BASE;
19
20 writel(MB86R0x_CRSR_SWRSTREQ, &crg->crsr);
21 while (1)
22 /* NOP */;
23 /* Never reached */
24 }