cpu.c 632 B

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