]> Git Repo - u-boot.git/blob - arch/sh/cpu/sh4/cpu.c
Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-sh
[u-boot.git] / arch / sh / cpu / sh4 / cpu.c
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3  * (C) Copyright 2007
4  * Nobuhiro Iwamatsu <[email protected]>
5  */
6
7 #include <command.h>
8 #include <irq_func.h>
9 #include <cpu_func.h>
10 #include <net.h>
11 #include <netdev.h>
12 #include <asm/processor.h>
13 #include <asm/system.h>
14
15 void reset_cpu(void)
16 {
17         /* Address error with SR.BL=1 first. */
18         trigger_address_error();
19
20         while (1)
21                 ;
22 }
23
24 int checkcpu(void)
25 {
26         puts("CPU: SH4\n");
27         return 0;
28 }
29
30 int cpu_init (void)
31 {
32         return 0;
33 }
34
35 int cleanup_before_linux (void)
36 {
37         disable_interrupts();
38         return 0;
39 }
40
41 int do_reset(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
42 {
43         disable_interrupts();
44         reset_cpu();
45         return 0;
46 }
47
48 int cpu_eth_init(struct bd_info *bis)
49 {
50 #ifdef CONFIG_SH_ETHER
51         sh_eth_initialize(bis);
52 #endif
53         return 0;
54 }
This page took 0.03455 seconds and 4 git commands to generate.