Nobuhiro Iwamatsu | b02bad1 | 2007-09-23 02:12:30 +0900 | [diff] [blame] | 1 | /* |
Yusuke Goda | b55523e | 2008-03-05 14:23:26 +0900 | [diff] [blame] | 2 | * (C) Copyright 2007,2008 Nobuhiro Iwamatsu <iwamatsu@nigauri.org> |
Nobuhiro Iwamatsu | b02bad1 | 2007-09-23 02:12:30 +0900 | [diff] [blame] | 3 | * |
| 4 | * This program is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU General Public License as |
| 6 | * published by the Free Software Foundation; either version 2 of |
| 7 | * the License, or (at your option) any later version. |
| 8 | * |
| 9 | * This program is distributed in the hope that it will be useful, |
| 10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | * GNU General Public License for more details. |
| 13 | * |
| 14 | * You should have received a copy of the GNU General Public License |
| 15 | * along with this program; if not, write to the Free Software |
| 16 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 17 | * MA 02111-1307 USA |
| 18 | */ |
| 19 | |
Nobuhiro Iwamatsu | 0b135cf | 2007-05-13 20:58:00 +0900 | [diff] [blame] | 20 | #ifndef _ASM_CPU_SH4_H_ |
| 21 | #define _ASM_CPU_SH4_H_ |
Nobuhiro Iwamatsu | b02bad1 | 2007-09-23 02:12:30 +0900 | [diff] [blame] | 22 | |
| 23 | /* cache control */ |
| 24 | #define CCR_CACHE_STOP 0x00000808 |
| 25 | #define CCR_CACHE_ENABLE 0x00000101 |
| 26 | #define CCR_CACHE_ICI 0x00000800 |
| 27 | |
| 28 | #define CACHE_OC_ADDRESS_ARRAY 0xf4000000 |
| 29 | #define CACHE_OC_WAY_SHIFT 14 |
| 30 | #define CACHE_OC_NUM_ENTRIES 512 |
| 31 | #define CACHE_OC_ENTRY_SHIFT 5 |
Nobuhiro Iwamatsu | b02bad1 | 2007-09-23 02:12:30 +0900 | [diff] [blame] | 32 | |
Nobuhiro Iwamatsu | 5669332 | 2008-03-12 12:10:28 +0900 | [diff] [blame] | 33 | #if defined (CONFIG_CPU_SH7750) || \ |
| 34 | defined(CONFIG_CPU_SH7751) |
| 35 | # include <asm/cpu_sh7750.h> |
Nobuhiro Iwamatsu | b02bad1 | 2007-09-23 02:12:30 +0900 | [diff] [blame] | 36 | #elif defined (CONFIG_CPU_SH7722) |
Nobuhiro Iwamatsu | 5669332 | 2008-03-12 12:10:28 +0900 | [diff] [blame] | 37 | # include <asm/cpu_sh7722.h> |
Nobuhiro Iwamatsu | ab09f43 | 2008-08-22 17:48:51 +0900 | [diff] [blame] | 38 | #elif defined (CONFIG_CPU_SH7723) |
| 39 | # include <asm/cpu_sh7723.h> |
Nobuhiro Iwamatsu | 6017909 | 2008-06-06 16:24:13 +0900 | [diff] [blame] | 40 | #elif defined (CONFIG_CPU_SH7763) |
| 41 | # include <asm/cpu_sh7763.h> |
Yusuke Goda | b55523e | 2008-03-05 14:23:26 +0900 | [diff] [blame] | 42 | #elif defined (CONFIG_CPU_SH7780) |
Nobuhiro Iwamatsu | 5669332 | 2008-03-12 12:10:28 +0900 | [diff] [blame] | 43 | # include <asm/cpu_sh7780.h> |
Yoshihiro Shimoda | b0b6218 | 2008-07-10 19:32:53 +0900 | [diff] [blame] | 44 | #elif defined (CONFIG_CPU_SH7785) |
| 45 | # include <asm/cpu_sh7785.h> |
Nobuhiro Iwamatsu | 0b135cf | 2007-05-13 20:58:00 +0900 | [diff] [blame] | 46 | #else |
Nobuhiro Iwamatsu | 5669332 | 2008-03-12 12:10:28 +0900 | [diff] [blame] | 47 | # error "Unknown SH4 variant" |
Nobuhiro Iwamatsu | 0b135cf | 2007-05-13 20:58:00 +0900 | [diff] [blame] | 48 | #endif |
Nobuhiro Iwamatsu | b02bad1 | 2007-09-23 02:12:30 +0900 | [diff] [blame] | 49 | |
| 50 | #endif /* _ASM_CPU_SH4_H_ */ |