Matthias Weisser | 6052ac8 | 2010-08-09 13:31:49 +0200 | [diff] [blame] | 1 | /* |
| 2 | * (C) Copyright 2010 |
| 3 | * Matthias Weisser <weisserm@arcor.de> |
| 4 | * |
Wolfgang Denk | 1a45966 | 2013-07-08 09:37:19 +0200 | [diff] [blame] | 5 | * SPDX-License-Identifier: GPL-2.0+ |
Matthias Weisser | 6052ac8 | 2010-08-09 13:31:49 +0200 | [diff] [blame] | 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 | } |