Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Yoshihiro Shimoda | ad1a3a9 | 2007-12-03 22:58:45 +0900 | [diff] [blame] | 2 | /* |
Nobuhiro Iwamatsu | a04ce4f | 2010-10-25 02:58:21 +0900 | [diff] [blame] | 3 | * (C) Copyright 2007-2009 Nobuhiro Iwamatsu <iwamatsu@nigauri.org> |
Yoshihiro Shimoda | ad1a3a9 | 2007-12-03 22:58:45 +0900 | [diff] [blame] | 4 | * (C) Copyright 2007 Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com> |
Yoshihiro Shimoda | ad1a3a9 | 2007-12-03 22:58:45 +0900 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef _ASM_CPU_SH3_H_ |
| 8 | #define _ASM_CPU_SH3_H_ |
| 9 | |
| 10 | /* cache control */ |
| 11 | #define CCR_CACHE_STOP 0x00000008 |
| 12 | #define CCR_CACHE_ENABLE 0x00000005 |
| 13 | #define CCR_CACHE_ICI 0x00000008 |
| 14 | |
| 15 | #define CACHE_OC_ADDRESS_ARRAY 0xf0000000 |
| 16 | #define CACHE_OC_WAY_SHIFT 13 |
| 17 | #define CACHE_OC_NUM_ENTRIES 256 |
| 18 | #define CACHE_OC_ENTRY_SHIFT 4 |
| 19 | |
Nobuhiro Iwamatsu | a04ce4f | 2010-10-25 02:58:21 +0900 | [diff] [blame] | 20 | #if defined(CONFIG_CPU_SH7706) |
| 21 | #include <asm/cpu_sh7706.h> |
| 22 | #elif defined(CONFIG_CPU_SH7710) |
Nobuhiro Iwamatsu | fb3205b | 2008-01-15 23:25:25 +0900 | [diff] [blame] | 23 | #include <asm/cpu_sh7710.h> |
| 24 | #elif defined(CONFIG_CPU_SH7720) |
Yoshihiro Shimoda | ad1a3a9 | 2007-12-03 22:58:45 +0900 | [diff] [blame] | 25 | #include <asm/cpu_sh7720.h> |
| 26 | #else |
| 27 | #error "Unknown SH3 variant" |
| 28 | #endif |
| 29 | |
| 30 | #endif /* _ASM_CPU_SH3_H_ */ |