blob: cf8da2e5df0dfb0d7ae9b2b2371413584b6c046f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// SPDX-License-Identifier: GPL-2.0+
/*
* (C) Copyright 2003
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*/
#include <command.h>
#include <cpu_func.h>
#include <init.h>
#include <asm/global_data.h>
DECLARE_GLOBAL_DATA_PTR;
void trap_init(unsigned long reloc_addr);
int arch_initr_trap(void)
{
trap_init(gd->relocaddr);
return 0;
}
#ifndef CONFIG_SYSRESET
void reset_cpu(void)
{
/* TODO: Refactor all the do_reset calls to be reset_cpu() instead */
do_reset(NULL, 0, 0, NULL);
}
#endif
|