]> git.ipfire.org Git - thirdparty/u-boot.git/blame - arch/arm/lib/reset.c
Revert "Merge patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet""
[thirdparty/u-boot.git] / arch / arm / lib / reset.c
CommitLineData
83d290c5 1// SPDX-License-Identifier: GPL-2.0+
ab298231
JCPV
2/*
3 * (C) Copyright 2002
4 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
5 * Marius Groeger <mgroeger@sysgo.de>
6 *
7 * (C) Copyright 2002
8 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
9 * Alex Zuepke <azu@sysgo.de>
10 *
11 * (C) Copyright 2002
792a09eb 12 * Gary Jennejohn, DENX Software Engineering, <garyj@denx.de>
ab298231
JCPV
13 *
14 * (C) Copyright 2004
15 * DAVE Srl
16 * http://www.dave-tech.it
17 * http://www.wawnet.biz
18 * mailto:info@wawnet.biz
19 *
20 * (C) Copyright 2004 Texas Insturments
ab298231
JCPV
21 */
22
d678a59d 23#include <common.h>
09140113 24#include <command.h>
9a3b4ceb 25#include <cpu_func.h>
36bf446b 26#include <irq_func.h>
c05ed00a 27#include <linux/delay.h>
c5f4cdb8 28#include <stdio.h>
ab298231 29
1fb4dab2
PM
30__weak void reset_misc(void)
31{
32}
33
09140113 34int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
ab298231
JCPV
35{
36 puts ("resetting ...\n");
c5f4cdb8 37 flush();
ab298231
JCPV
38
39 disable_interrupts();
1fb4dab2
PM
40
41 reset_misc();
35b65dd8 42 reset_cpu();
ab298231
JCPV
43
44 /*NOTREACHED*/
45 return 0;
46}