cpu.c 589 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 <netdev.h>
  9. #include <asm/processor.h>
  10. int checkcpu(void)
  11. {
  12. puts("CPU: SH4\n");
  13. return 0;
  14. }
  15. int cpu_init (void)
  16. {
  17. return 0;
  18. }
  19. int cleanup_before_linux (void)
  20. {
  21. disable_interrupts();
  22. return 0;
  23. }
  24. int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
  25. {
  26. disable_interrupts();
  27. reset_cpu (0);
  28. return 0;
  29. }
  30. int cpu_eth_init(bd_t *bis)
  31. {
  32. #ifdef CONFIG_SH_ETHER
  33. sh_eth_initialize(bis);
  34. #endif
  35. return 0;
  36. }