cpu.c 592 B

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