blob: 7bd77ff202f4aa05c345675a2f9211e575106e4d [file] [log] [blame]
Matthias Weisser6052ac82010-08-09 13:31:49 +02001/*
2 * (C) Copyright 2010
3 * Matthias Weisser <weisserm@arcor.de>
4 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Matthias Weisser6052ac82010-08-09 13:31:49 +02006 */
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 */
15void 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}