xref: /linux/arch/sh/include/cpu-sh4/cpu/addrspace.h (revision 597473720f4dc69749542bfcfed4a927a43d935e)
1*6a0abce4SKuninori Morimoto /* SPDX-License-Identifier: GPL-2.0
2f15cbe6fSPaul Mundt  *
3f15cbe6fSPaul Mundt  * Copyright (C) 1999 by Kaz Kojima
4f15cbe6fSPaul Mundt  *
5f15cbe6fSPaul Mundt  * Defitions for the address spaces of the SH-4 CPUs.
6f15cbe6fSPaul Mundt  */
7f15cbe6fSPaul Mundt #ifndef __ASM_CPU_SH4_ADDRSPACE_H
8f15cbe6fSPaul Mundt #define __ASM_CPU_SH4_ADDRSPACE_H
9f15cbe6fSPaul Mundt 
10f15cbe6fSPaul Mundt #define P0SEG		0x00000000
11f15cbe6fSPaul Mundt #define P1SEG		0x80000000
12f15cbe6fSPaul Mundt #define P2SEG		0xa0000000
13f15cbe6fSPaul Mundt #define P3SEG		0xc0000000
14f15cbe6fSPaul Mundt #define P4SEG		0xe0000000
15f15cbe6fSPaul Mundt 
16f15cbe6fSPaul Mundt /* Detailed P4SEG  */
17f15cbe6fSPaul Mundt #define P4SEG_STORE_QUE	(P4SEG)
18f15cbe6fSPaul Mundt #define P4SEG_IC_ADDR	0xf0000000
19f15cbe6fSPaul Mundt #define P4SEG_IC_DATA	0xf1000000
20f15cbe6fSPaul Mundt #define P4SEG_ITLB_ADDR	0xf2000000
21f15cbe6fSPaul Mundt #define P4SEG_ITLB_DATA	0xf3000000
22f15cbe6fSPaul Mundt #define P4SEG_OC_ADDR	0xf4000000
23f15cbe6fSPaul Mundt #define P4SEG_OC_DATA	0xf5000000
24f15cbe6fSPaul Mundt #define P4SEG_TLB_ADDR	0xf6000000
25f15cbe6fSPaul Mundt #define P4SEG_TLB_DATA	0xf7000000
26f15cbe6fSPaul Mundt #define P4SEG_REG_BASE	0xff000000
27f15cbe6fSPaul Mundt 
28d9116d07SPaul Mundt #define PA_AREA0	0x00000000
29d9116d07SPaul Mundt #define PA_AREA1	0x04000000
30d9116d07SPaul Mundt #define PA_AREA2	0x08000000
31d9116d07SPaul Mundt #define PA_AREA3	0x0c000000
32d9116d07SPaul Mundt #define PA_AREA4	0x10000000
33d9116d07SPaul Mundt #define PA_AREA5	0x14000000
34d9116d07SPaul Mundt #define PA_AREA6	0x18000000
35d9116d07SPaul Mundt #define PA_AREA7	0x1c000000
36d9116d07SPaul Mundt 
37f15cbe6fSPaul Mundt #define PA_AREA5_IO	0xb4000000	/* Area 5 IO Memory */
38f15cbe6fSPaul Mundt #define PA_AREA6_IO	0xb8000000	/* Area 6 IO Memory */
39f15cbe6fSPaul Mundt 
40f15cbe6fSPaul Mundt #endif /* __ASM_CPU_SH4_ADDRSPACE_H */
41f15cbe6fSPaul Mundt 
42