xref: /openbmc/u-boot/arch/sh/include/asm/cpu_sh7750.h (revision 9d466f2f)
1 /*
2  * (C) Copyright 2007 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
3  *
4  * SH7750/SH7750S/SH7750R/SH7751/SH7751R
5  *  Internal I/O register
6  *
7  * SPDX-License-Identifier:	GPL-2.0+
8  */
9 
10 #ifndef _ASM_CPU_SH7750_H_
11 #define _ASM_CPU_SH7750_H_
12 
13 #ifdef CONFIG_CPU_TYPE_R
14 #define CACHE_OC_NUM_WAYS     2
15 #define CCR_CACHE_INIT   0x8000090D     /* EMODE,ICI,ICE(16k),OCI,P1-wb,OCE(32k) */
16 #else
17 #define CACHE_OC_NUM_WAYS     1
18 #define CCR_CACHE_INIT   0x0000090B
19 #endif
20 
21 /*      OCN     */
22 #define PTEH	0xFF000000
23 #define PTEL	0xFF000004
24 #define TTB	0xFF000008
25 #define TEA	0xFF00000C
26 #define MMUCR	0xFF000010
27 #define BASRA	0xFF000014
28 #define BASRB	0xFF000018
29 #define CCR	0xFF00001C
30 #define TRA	0xFF000020
31 #define EXPEVT	0xFF000024
32 #define INTEVT	0xFF000028
33 #define PTEA	0xFF000034
34 #define QACR0	0xFF000038
35 #define QACR1	0xFF00003C
36 
37 /*      UBC     */
38 #define BARA	0xFF200000
39 #define BAMRA	0xFF200004
40 #define BBRA	0xFF200008
41 #define BARB	0xFF20000C
42 #define BAMRB	0xFF200010
43 #define BBRB	0xFF200014
44 #define BDRB	0xFF200018
45 #define BDMRB	0xFF20001C
46 #define BRCR	0xFF200020
47 
48 /*      BSC     */
49 #define BCR1	0xFF800000
50 #define BCR2	0xFF800004
51 #define BCR3	0xFF800050
52 #define BCR4	0xFE0A00F0
53 #define WCR1	0xFF800008
54 #define WCR2	0xFF80000C
55 #define WCR3	0xFF800010
56 #define MCR	0xFF800014
57 #define PCR	0xFF800018
58 #define RTCSR	0xFF80001C
59 #define RTCNT	0xFF800020
60 #define RTCOR	0xFF800024
61 #define RFCR	0xFF800028
62 #define PCTRA	0xFF80002C
63 #define PDTRA	0xFF800030
64 #define PCTRB	0xFF800040
65 #define PDTRB	0xFF800044
66 #define GPIOIC	0xFF800048
67 
68 /*      DMAC    */
69 #define SAR0	0xFFA00000
70 #define DAR0	0xFFA00004
71 #define DMATCR0 0xFFA00008
72 #define CHCR0	0xFFA0000C
73 #define SAR1	0xFFA00010
74 #define DAR1	0xFFA00014
75 #define DMATCR1 0xFFA00018
76 #define CHCR1	0xFFA0001C
77 #define SAR2	0xFFA00020
78 #define DAR2	0xFFA00024
79 #define DMATCR2 0xFFA00028
80 #define CHCR2	0xFFA0002C
81 #define SAR3	0xFFA00030
82 #define DAR3	0xFFA00034
83 #define DMATCR3 0xFFA00038
84 #define CHCR3	0xFFA0003C
85 #define DMAOR	0xFFA00040
86 #define SAR4	0xFFA00050
87 #define DAR4	0xFFA00054
88 #define DMATCR4 0xFFA00058
89 
90 /*      CPG     */
91 #define FRQCR	0xFFC00000
92 #define STBCR	0xFFC00004
93 #define WTCNT	0xFFC00008
94 #define WTCSR	0xFFC0000C
95 #define STBCR2	0xFFC00010
96 
97 /*      RTC     */
98 #define R64CNT	0xFFC80000
99 #define RSECCNT 0xFFC80004
100 #define RMINCNT 0xFFC80008
101 #define RHRCNT	0xFFC8000C
102 #define RWKCNT	0xFFC80010
103 #define RDAYCNT 0xFFC80014
104 #define RMONCNT 0xFFC80018
105 #define RYRCNT	0xFFC8001C
106 #define RSECAR	0xFFC80020
107 #define RMINAR	0xFFC80024
108 #define RHRAR	0xFFC80028
109 #define RWKAR	0xFFC8002C
110 #define RDAYAR	0xFFC80030
111 #define RMONAR	0xFFC80034
112 #define RCR1	0xFFC80038
113 #define RCR2	0xFFC8003C
114 #define RCR3	0xFFC80050
115 #define RYRAR	0xFFC80054
116 
117 /*      ICR     */
118 #define ICR	0xFFD00000
119 #define IPRA	0xFFD00004
120 #define IPRB	0xFFD00008
121 #define IPRC	0xFFD0000C
122 #define IPRD	0xFFD00010
123 #define INTPRI	0xFE080000
124 #define INTREQ	0xFE080020
125 #define INTMSK	0xFE080040
126 #define INTMSKCL	0xFE080060
127 
128 /*      CPG     */
129 #define CLKSTP		0xFE0A0000
130 #define CLKSTPCLR	0xFE0A0008
131 
132 /*      TMU     */
133 #define TMU_BASE	0xFFD80000
134 
135 /*      SCI     */
136 #define SCSMR1	0xFFE00000
137 #define SCF0_BASE	SCSMR1
138 
139 /*      SCIF    */
140 #define SCSMR2	0xFFE80000
141 #define SCIF1_BASE	SCSMR2
142 
143 /*      H-UDI   */
144 #define SDIR	0xFFF00000
145 #define SDDR	0xFFF00008
146 #define SDINT	0xFFF00014
147 
148 #endif	/* _ASM_CPU_SH7750_H_ */
149