cpu_sh3.h 756 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2007-2009 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
  4. * (C) Copyright 2007 Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
  5. */
  6. #ifndef _ASM_CPU_SH3_H_
  7. #define _ASM_CPU_SH3_H_
  8. /* cache control */
  9. #define CCR_CACHE_STOP 0x00000008
  10. #define CCR_CACHE_ENABLE 0x00000005
  11. #define CCR_CACHE_ICI 0x00000008
  12. #define CACHE_OC_ADDRESS_ARRAY 0xf0000000
  13. #define CACHE_OC_WAY_SHIFT 13
  14. #define CACHE_OC_NUM_ENTRIES 256
  15. #define CACHE_OC_ENTRY_SHIFT 4
  16. #if defined(CONFIG_CPU_SH7706)
  17. #include <asm/cpu_sh7706.h>
  18. #elif defined(CONFIG_CPU_SH7710)
  19. #include <asm/cpu_sh7710.h>
  20. #elif defined(CONFIG_CPU_SH7720)
  21. #include <asm/cpu_sh7720.h>
  22. #else
  23. #error "Unknown SH3 variant"
  24. #endif
  25. #endif /* _ASM_CPU_SH3_H_ */