blob: 18a0f0ba24ee68c1bc87cfbdeab69a1bc2d7cd8e [file] [log] [blame]
Nobuhiro Iwamatsu6ad43d02008-08-31 22:48:33 +09001/*
2 * Copyright (C) 2007,2008 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
3 * Copyright (C) 2008 Renesas Solutions Corp.
4 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02005 * SPDX-License-Identifier: GPL-2.0+
Nobuhiro Iwamatsu6ad43d02008-08-31 22:48:33 +09006 */
7
8#ifndef _ASM_CPU_SH2_H_
9#define _ASM_CPU_SH2_H_
10
11/* cache control */
12#define CCR_CACHE_STOP 0x00000008
13#define CCR_CACHE_ENABLE 0x00000005
14#define CCR_CACHE_ICI 0x00000008
15
16#define CACHE_OC_ADDRESS_ARRAY 0xf0000000
17#define CACHE_OC_WAY_SHIFT 13
18#define CACHE_OC_NUM_ENTRIES 256
19#define CACHE_OC_ENTRY_SHIFT 4
20
21#if defined(CONFIG_CPU_SH7203)
22# include <asm/cpu_sh7203.h>
Phil Edworthy7fbeb642011-06-01 07:35:13 +010023#elif defined(CONFIG_CPU_SH7264)
24# include <asm/cpu_sh7264.h>
Phil Edworthy99744b72012-05-15 22:15:51 +000025#elif defined(CONFIG_CPU_SH7269)
26# include <asm/cpu_sh7269.h>
Nobuhiro Iwamatsu6ad43d02008-08-31 22:48:33 +090027#else
28# error "Unknown SH2 variant"
29#endif
30
31#endif /* _ASM_CPU_SH2_H_ */