cache.h 921 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * include/asm-sh/cpu-sh2/cache.h
  3. *
  4. * Copyright (C) 2003 Paul Mundt
  5. *
  6. * This file is subject to the terms and conditions of the GNU General Public
  7. * License. See the file "COPYING" in the main directory of this archive
  8. * for more details.
  9. */
  10. #ifndef __ASM_CPU_SH2_CACHE_H
  11. #define __ASM_CPU_SH2_CACHE_H
  12. #define L1_CACHE_SHIFT 4
  13. #define CCR 0xfffffe92 /* Address of Cache Control Register */
  14. #define CCR_CACHE_CE 0x01 /* Cache enable */
  15. #define CCR_CACHE_ID 0x02 /* Instruction Replacement disable */
  16. #define CCR_CACHE_OD 0x04 /* Data Replacement disable */
  17. #define CCR_CACHE_TW 0x08 /* Two-way mode */
  18. #define CCR_CACHE_CP 0x10 /* Cache purge */
  19. #define CACHE_OC_ADDRESS_ARRAY 0x60000000
  20. #define CCR_CACHE_ENABLE CCR_CACHE_CE
  21. #define CCR_CACHE_INVALIDATE CCR_CACHE_CP
  22. #define CCR_CACHE_ORA CCR_CACHE_TW
  23. #define CCR_CACHE_WT 0x00 /* SH-2 is _always_ write-through */
  24. #endif /* __ASM_CPU_SH2_CACHE_H */