Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Nobuhiro Iwamatsu | 5b6918e | 2008-08-31 22:48:33 +0900 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2007,2008 Nobuhiro Iwamatsu <iwamatsu@nigauri.org> |
| 4 | * Copyright (C) 2008 Renesas Solutions Corp. |
Nobuhiro Iwamatsu | 5b6918e | 2008-08-31 22:48:33 +0900 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef _ASM_CPU_SH2_H_ |
| 8 | #define _ASM_CPU_SH2_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 | |
| 20 | #if defined(CONFIG_CPU_SH7203) |
| 21 | # include <asm/cpu_sh7203.h> |
Phil Edworthy | 2b3228d | 2011-06-01 07:35:13 +0100 | [diff] [blame] | 22 | #elif defined(CONFIG_CPU_SH7264) |
| 23 | # include <asm/cpu_sh7264.h> |
Phil Edworthy | 04a6275 | 2012-05-15 22:15:51 +0000 | [diff] [blame] | 24 | #elif defined(CONFIG_CPU_SH7269) |
| 25 | # include <asm/cpu_sh7269.h> |
Nobuhiro Iwamatsu | 5b6918e | 2008-08-31 22:48:33 +0900 | [diff] [blame] | 26 | #else |
| 27 | # error "Unknown SH2 variant" |
| 28 | #endif |
| 29 | |
| 30 | #endif /* _ASM_CPU_SH2_H_ */ |