]> Git Repo - J-u-boot.git/blame - arch/arm/lib/reset.c
command: Remove the cmd_tbl_t typedef
[J-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 <[email protected]>
6 *
7 * (C) Copyright 2002
8 * Sysgo Real-Time Solutions, GmbH <www.elinos.com>
9 * Alex Zuepke <[email protected]>
10 *
11 * (C) Copyright 2002
792a09eb 12 * Gary Jennejohn, DENX Software Engineering, <[email protected]>
ab298231
JCPV
13 *
14 * (C) Copyright 2004
15 * DAVE Srl
16 * http://www.dave-tech.it
17 * http://www.wawnet.biz
18 * mailto:[email protected]
19 *
20 * (C) Copyright 2004 Texas Insturments
ab298231
JCPV
21 */
22
23#include <common.h>
09140113 24#include <command.h>
9a3b4ceb 25#include <cpu_func.h>
36bf446b 26#include <irq_func.h>
ab298231 27
1fb4dab2
PM
28__weak void reset_misc(void)
29{
30}
31
09140113 32int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
ab298231
JCPV
33{
34 puts ("resetting ...\n");
35
09140113 36 mdelay(50); /* wait 50 ms */
ab298231
JCPV
37
38 disable_interrupts();
1fb4dab2
PM
39
40 reset_misc();
ab298231
JCPV
41 reset_cpu(0);
42
43 /*NOTREACHED*/
44 return 0;
45}
This page took 0.456726 seconds and 4 git commands to generate.