1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */ 2819833afSPeter Tyser /* 3f3a7b953SNobuhiro Iwamatsu * (C) Copyright 2007-2009 Nobuhiro Iwamatsu <iwamatsu@nigauri.org> 4819833afSPeter Tyser * (C) Copyright 2007 Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> 5819833afSPeter Tyser */ 6819833afSPeter Tyser 7819833afSPeter Tyser #ifndef _ASM_CPU_SH3_H_ 8819833afSPeter Tyser #define _ASM_CPU_SH3_H_ 9819833afSPeter Tyser 10819833afSPeter Tyser /* cache control */ 11819833afSPeter Tyser #define CCR_CACHE_STOP 0x00000008 12819833afSPeter Tyser #define CCR_CACHE_ENABLE 0x00000005 13819833afSPeter Tyser #define CCR_CACHE_ICI 0x00000008 14819833afSPeter Tyser 15819833afSPeter Tyser #define CACHE_OC_ADDRESS_ARRAY 0xf0000000 16819833afSPeter Tyser #define CACHE_OC_WAY_SHIFT 13 17819833afSPeter Tyser #define CACHE_OC_NUM_ENTRIES 256 18819833afSPeter Tyser #define CACHE_OC_ENTRY_SHIFT 4 19819833afSPeter Tyser 20f3a7b953SNobuhiro Iwamatsu #if defined(CONFIG_CPU_SH7706) 21f3a7b953SNobuhiro Iwamatsu #include <asm/cpu_sh7706.h> 22f3a7b953SNobuhiro Iwamatsu #elif defined(CONFIG_CPU_SH7710) 23819833afSPeter Tyser #include <asm/cpu_sh7710.h> 24819833afSPeter Tyser #elif defined(CONFIG_CPU_SH7720) 25819833afSPeter Tyser #include <asm/cpu_sh7720.h> 26819833afSPeter Tyser #else 27819833afSPeter Tyser #error "Unknown SH3 variant" 28819833afSPeter Tyser #endif 29819833afSPeter Tyser 30819833afSPeter Tyser #endif /* _ASM_CPU_SH3_H_ */ 31