cpu.c 662 B

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