1 // SPDX-License-Identifier: GPL-2.0+ 2 /* 3 * (C) Copyright 2007 4 * Nobuhiro Iwamatsu <iwamatsu@nigauri.org> 5 */ 6 7 #include <common.h> 8 #include <command.h> 9 #include <irq_func.h> 10 #include <cpu_func.h> 11 #include <netdev.h> 12 #include <asm/processor.h> 13 checkcpu(void)14int checkcpu(void) 15 { 16 puts("CPU: SH4\n"); 17 return 0; 18 } 19 cpu_init(void)20int cpu_init (void) 21 { 22 return 0; 23 } 24 cleanup_before_linux(void)25int cleanup_before_linux (void) 26 { 27 disable_interrupts(); 28 return 0; 29 } 30 do_reset(cmd_tbl_t * cmdtp,int flag,int argc,char * const argv[])31int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) 32 { 33 disable_interrupts(); 34 reset_cpu (0); 35 return 0; 36 } 37 cpu_eth_init(bd_t * bis)38int cpu_eth_init(bd_t *bis) 39 { 40 #ifdef CONFIG_SH_ETHER 41 sh_eth_initialize(bis); 42 #endif 43 return 0; 44 } 45