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