xref: /openbmc/u-boot/arch/sh/include/asm/cpu_sh7724.h (revision 73f35e0b)
1 /*
2  * (C) Copyright 2008, 2011 Renesas Solutions Corp.
3  *
4  * SH7724 Internal I/O register
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2 of
9  * the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
19  * MA 02111-1307 USA
20  */
21 
22 #ifndef _ASM_CPU_SH7724_H_
23 #define _ASM_CPU_SH7724_H_
24 
25 #define CACHE_OC_NUM_WAYS	4
26 #define CCR_CACHE_INIT	0x0000090d
27 
28 /* EXP */
29 #define TRA		0xFF000020
30 #define EXPEVT	0xFF000024
31 #define INTEVT	0xFF000028
32 
33 /* MMU */
34 #define PTEH	0xFF000000
35 #define PTEL	0xFF000004
36 #define TTB		0xFF000008
37 #define TEA		0xFF00000C
38 #define MMUCR	0xFF000010
39 #define PASCR	0xFF000070
40 #define IRMCR	0xFF000078
41 
42 /* CACHE */
43 #define CCR		0xFF00001C
44 #define RAMCR	0xFF000074
45 
46 /* INTC */
47 
48 /* BSC */
49 #define MMSELR		0xFF800020
50 #define CMNCR		0xFEC10000
51 #define	CS0BCR		0xFEC10004
52 #define CS2BCR		0xFEC10008
53 #define CS4BCR		0xFEC10010
54 #define CS5ABCR		0xFEC10014
55 #define CS5BBCR		0xFEC10018
56 #define CS6ABCR		0xFEC1001C
57 #define CS6BBCR		0xFEC10020
58 #define CS0WCR		0xFEC10024
59 #define CS2WCR		0xFEC10028
60 #define CS4WCR		0xFEC10030
61 #define CS5AWCR		0xFEC10034
62 #define CS5BWCR		0xFEC10038
63 #define CS6AWCR		0xFEC1003C
64 #define CS6BWCR		0xFEC10040
65 #define RBWTCNT		0xFEC10054
66 
67 /* SBSC */
68 #define SBSC_SDCR	0xFE400008
69 #define SBSC_SDWCR	0xFE40000C
70 #define SBSC_SDPCR	0xFE400010
71 #define SBSC_RTCSR	0xFE400014
72 #define SBSC_RTCNT	0xFE400018
73 #define SBSC_RTCOR	0xFE40001C
74 #define SBSC_RFCR	0xFE400020
75 
76 /* DSBC */
77 #define DBKIND		0xFD000008
78 #define DBSTATE		0xFD00000C
79 #define DBEN		0xFD000010
80 #define DBCMDCNT	0xFD000014
81 #define DBCKECNT	0xFD000018
82 #define DBCONF		0xFD000020
83 #define DBTR0		0xFD000030
84 #define DBTR1		0xFD000034
85 #define DBTR2		0xFD000038
86 #define DBTR3		0xFD00003C
87 #define DBRFPDN0	0xFD000040
88 #define DBRFPDN1	0xFD000044
89 #define DBRFPDN2	0xFD000048
90 #define DBRFSTS		0xFD00004C
91 #define DBMRCNT		0xFD000060
92 #define DBPDCNT0	0xFD000108
93 
94 /* DMAC */
95 
96 /* CPG */
97 #define FRQCRA		0xA4150000
98 #define FRQCRB		0xA4150004
99 #define FRQCR		FRQCRA
100 #define VCLKCR      0xA4150004
101 #define SCLKACR     0xA4150008
102 #define SCLKBCR     0xA415000C
103 #define IRDACLKCR   0xA4150018
104 #define PLLCR       0xA4150024
105 #define DLLFRQ      0xA4150050
106 
107 /* LOW POWER MODE */
108 #define STBCR       0xA4150020
109 #define MSTPCR0     0xA4150030
110 #define MSTPCR1     0xA4150034
111 #define MSTPCR2     0xA4150038
112 
113 /* RWDT */
114 #define RWTCNT      0xA4520000
115 #define RWTCSR      0xA4520004
116 #define WTCNT		RWTCNT
117 
118 /* TMU */
119 #define TMU_BASE	0xFFD80000
120 
121 /* TPU */
122 
123 /* CMT */
124 #define CMSTR       0xA44A0000
125 #define CMCSR       0xA44A0060
126 #define CMCNT       0xA44A0064
127 #define CMCOR       0xA44A0068
128 
129 /* MSIOF */
130 
131 /* SCIF */
132 #define SCIF0_BASE  0xFFE00000
133 #define SCIF1_BASE  0xFFE10000
134 #define SCIF2_BASE  0xFFE20000
135 #define SCIF3_BASE  0xa4e30000
136 #define SCIF4_BASE  0xa4e40000
137 #define SCIF5_BASE  0xa4e50000
138 
139 /* RTC */
140 /* IrDA */
141 /* KEYSC */
142 /* USB */
143 /* IIC */
144 /* FLCTL */
145 /* VPU */
146 /* VIO(CEU) */
147 /* VIO(VEU) */
148 /* VIO(BEU) */
149 /* 2DG */
150 /* LCDC */
151 /* VOU */
152 /* TSIF */
153 /* SIU */
154 /* ATAPI */
155 
156 /* PFC */
157 #define PACR        0xA4050100
158 #define PBCR        0xA4050102
159 #define PCCR        0xA4050104
160 #define PDCR        0xA4050106
161 #define PECR        0xA4050108
162 #define PFCR        0xA405010A
163 #define PGCR        0xA405010C
164 #define PHCR        0xA405010E
165 #define PJCR        0xA4050110
166 #define PKCR        0xA4050112
167 #define PLCR        0xA4050114
168 #define PMCR        0xA4050116
169 #define PNCR        0xA4050118
170 #define PQCR        0xA405011A
171 #define PRCR        0xA405011C
172 #define PSCR        0xA405011E
173 #define PTCR        0xA4050140
174 #define PUCR        0xA4050142
175 #define PVCR        0xA4050144
176 #define PWCR        0xA4050146
177 #define PXCR        0xA4050148
178 #define PYCR        0xA405014A
179 #define PZCR        0xA405014C
180 #define PSELA       0xA405014E
181 #define PSELB       0xA4050150
182 #define PSELC       0xA4050152
183 #define PSELD       0xA4050154
184 #define PSELE       0xA4050156
185 #define HIZCRA      0xA4050158
186 #define HIZCRB      0xA405015A
187 #define HIZCRC      0xA405015C
188 #define HIZCRD      0xA405015E
189 #define MSELCRA     0xA4050180
190 #define MSELCRB     0xA4050182
191 #define PULCR       0xA4050184
192 #define DRVCRA      0xA405018A
193 #define DRVCRB      0xA405018C
194 
195 /* I/O Port */
196 #define PADR        0xA4050120
197 #define PBDR        0xA4050122
198 #define PCDR        0xA4050124
199 #define PDDR        0xA4050126
200 #define PEDR        0xA4050128
201 #define PFDR        0xA405012A
202 #define PGDR        0xA405012C
203 #define PHDR        0xA405012E
204 #define PJDR        0xA4050130
205 #define PKDR        0xA4050132
206 #define PLDR        0xA4050134
207 #define PMDR        0xA4050136
208 #define PNDR        0xA4050138
209 #define PQDR        0xA405013A
210 #define PRDR        0xA405013C
211 #define PSDR        0xA405013E
212 #define PTDR        0xA4050160
213 #define PUDR        0xA4050162
214 #define PVDR        0xA4050164
215 #define PWDR        0xA4050166
216 #define PYDR        0xA4050168
217 #define PZDR        0xA405016A
218 
219 /* Ether */
220 #define EDMR		0xA4600000
221 
222 /* UBC */
223 /* H-UDI */
224 
225 #endif /* _ASM_CPU_SH7724_H_ */
226