Scott Branden | 59f56be | 2014-08-11 13:58:24 -0700 | [diff] [blame] | 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 | } |