blob: cf8da2e5df0dfb0d7ae9b2b2371413584b6c046f [file] [log] [blame]
Ovidiu Panait2c823912020-11-28 10:43:18 +02001// SPDX-License-Identifier: GPL-2.0+
2/*
3 * (C) Copyright 2003
4 * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5 */
6
Simon Glassa3702ba2023-12-15 20:14:07 -07007#include <command.h>
8#include <cpu_func.h>
Ovidiu Panait2c823912020-11-28 10:43:18 +02009#include <init.h>
Simon Glass3ba929a2020-10-30 21:38:53 -060010#include <asm/global_data.h>
Ovidiu Panait2c823912020-11-28 10:43:18 +020011
12DECLARE_GLOBAL_DATA_PTR;
13
14void trap_init(unsigned long reloc_addr);
15
16int arch_initr_trap(void)
17{
18 trap_init(gd->relocaddr);
19
20 return 0;
21}
Simon Glassa3702ba2023-12-15 20:14:07 -070022
23#ifndef CONFIG_SYSRESET
24void reset_cpu(void)
25{
26 /* TODO: Refactor all the do_reset calls to be reset_cpu() instead */
27 do_reset(NULL, 0, 0, NULL);
28}
29#endif