cpu.c 809 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * (C) Copyright 2007
  4. * Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
  5. *
  6. * (C) Copyright 2007
  7. * Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
  8. */
  9. #include <common.h>
  10. #include <command.h>
  11. #include <asm/processor.h>
  12. int checkcpu(void)
  13. {
  14. puts("CPU: SH3\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. void flush_cache(unsigned long addr, unsigned long size)
  33. {
  34. }
  35. void icache_enable(void)
  36. {
  37. }
  38. void icache_disable(void)
  39. {
  40. }
  41. int icache_status(void)
  42. {
  43. return 0;
  44. }
  45. void dcache_enable(void)
  46. {
  47. }
  48. void dcache_disable(void)
  49. {
  50. }
  51. int dcache_status(void)
  52. {
  53. return 0;
  54. }