blob: 88c4c8d58e6f826a9c2291be58b5164bd8563d6d [file] [log] [blame]
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +09001/*
2 * (C) Copyright 2007 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
3 *
Wolfgang Denk61fb15c52007-12-27 01:52:50 +01004 * SH7750/SH7750S/SH7750R/SH7751/SH7751R
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +09005 * Internal I/O register
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of
10 * the License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
20 * MA 02111-1307 USA
21 */
22
Nobuhiro Iwamatsu0b135cf2007-05-13 20:58:00 +090023#ifndef _ASM_CPU_SH7750_H_
24#define _ASM_CPU_SH7750_H_
25
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090026#ifdef CONFIG_CPU_TYPE_R
27#define CACHE_OC_NUM_WAYS 2
Nobuhiro Iwamatsu56693322008-03-12 12:10:28 +090028#define CCR_CACHE_INIT 0x8000090D /* EMODE,ICI,ICE(16k),OCI,P1-wb,OCE(32k) */
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090029#else
30#define CACHE_OC_NUM_WAYS 1
Nobuhiro Iwamatsu56693322008-03-12 12:10:28 +090031#define CCR_CACHE_INIT 0x0000090B
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090032#endif
33
34/* OCN */
Wolfgang Denk53677ef2008-05-20 16:00:29 +020035#define PTEH 0xFF000000
36#define PTEL 0xFF000004
37#define TTB 0xFF000008
38#define TEA 0xFF00000C
39#define MMUCR 0xFF000010
40#define BASRA 0xFF000014
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090041#define BASRB 0xFF000018
Nobuhiro Iwamatsu0b135cf2007-05-13 20:58:00 +090042#define CCR 0xFF00001C
Wolfgang Denk53677ef2008-05-20 16:00:29 +020043#define TRA 0xFF000020
44#define EXPEVT 0xFF000024
45#define INTEVT 0xFF000028
46#define PTEA 0xFF000034
47#define QACR0 0xFF000038
48#define QACR1 0xFF00003C
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090049
50/* UBC */
Wolfgang Denk53677ef2008-05-20 16:00:29 +020051#define BARA 0xFF200000
52#define BAMRA 0xFF200004
53#define BBRA 0xFF200008
54#define BARB 0xFF20000C
55#define BAMRB 0xFF200010
56#define BBRB 0xFF200014
57#define BDRB 0xFF200018
58#define BDMRB 0xFF20001C
59#define BRCR 0xFF200020
Nobuhiro Iwamatsu0b135cf2007-05-13 20:58:00 +090060
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090061/* BSC */
Nobuhiro Iwamatsu0b135cf2007-05-13 20:58:00 +090062#define BCR1 0xFF800000
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090063#define BCR2 0xFF800004
Wolfgang Denk53677ef2008-05-20 16:00:29 +020064#define BCR3 0xFF800050
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090065#define BCR4 0xFE0A00F0
Wolfgang Denk53677ef2008-05-20 16:00:29 +020066#define WCR1 0xFF800008
67#define WCR2 0xFF80000C
68#define WCR3 0xFF800010
69#define MCR 0xFF800014
70#define PCR 0xFF800018
71#define RTCSR 0xFF80001C
72#define RTCNT 0xFF800020
73#define RTCOR 0xFF800024
74#define RFCR 0xFF800028
75#define PCTRA 0xFF80002C
76#define PDTRA 0xFF800030
77#define PCTRB 0xFF800040
78#define PDTRB 0xFF800044
79#define GPIOIC 0xFF800048
Nobuhiro Iwamatsu0b135cf2007-05-13 20:58:00 +090080
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090081/* DMAC */
Wolfgang Denk53677ef2008-05-20 16:00:29 +020082#define SAR0 0xFFA00000
83#define DAR0 0xFFA00004
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090084#define DMATCR0 0xFFA00008
85#define CHCR0 0xFFA0000C
Wolfgang Denk53677ef2008-05-20 16:00:29 +020086#define SAR1 0xFFA00010
87#define DAR1 0xFFA00014
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090088#define DMATCR1 0xFFA00018
Wolfgang Denk53677ef2008-05-20 16:00:29 +020089#define CHCR1 0xFFA0001C
90#define SAR2 0xFFA00020
91#define DAR2 0xFFA00024
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090092#define DMATCR2 0xFFA00028
Wolfgang Denk53677ef2008-05-20 16:00:29 +020093#define CHCR2 0xFFA0002C
94#define SAR3 0xFFA00030
95#define DAR3 0xFFA00034
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090096#define DMATCR3 0xFFA00038
Wolfgang Denk53677ef2008-05-20 16:00:29 +020097#define CHCR3 0xFFA0003C
98#define DMAOR 0xFFA00040
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090099#define SAR4 0xFFA00050
Wolfgang Denk53677ef2008-05-20 16:00:29 +0200100#define DAR4 0xFFA00054
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +0900101#define DMATCR4 0xFFA00058
102
103/* CPG */
Wolfgang Denk53677ef2008-05-20 16:00:29 +0200104#define FRQCR 0xFFC00000
105#define STBCR 0xFFC00004
106#define WTCNT 0xFFC00008
107#define WTCSR 0xFFC0000C
108#define STBCR2 0xFFC00010
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +0900109
110/* RTC */
111#define R64CNT 0xFFC80000
112#define RSECCNT 0xFFC80004
113#define RMINCNT 0xFFC80008
Wolfgang Denk53677ef2008-05-20 16:00:29 +0200114#define RHRCNT 0xFFC8000C
115#define RWKCNT 0xFFC80010
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +0900116#define RDAYCNT 0xFFC80014
117#define RMONCNT 0xFFC80018
Wolfgang Denk53677ef2008-05-20 16:00:29 +0200118#define RYRCNT 0xFFC8001C
119#define RSECAR 0xFFC80020
120#define RMINAR 0xFFC80024
121#define RHRAR 0xFFC80028
122#define RWKAR 0xFFC8002C
123#define RDAYAR 0xFFC80030
124#define RMONAR 0xFFC80034
125#define RCR1 0xFFC80038
126#define RCR2 0xFFC8003C
127#define RCR3 0xFFC80050
128#define RYRAR 0xFFC80054
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +0900129
130/* ICR */
Wolfgang Denk53677ef2008-05-20 16:00:29 +0200131#define ICR 0xFFD00000
132#define IPRA 0xFFD00004
133#define IPRB 0xFFD00008
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +0900134#define IPRC 0xFFD0000C
Wolfgang Denk53677ef2008-05-20 16:00:29 +0200135#define IPRD 0xFFD00010
136#define INTPRI 0xFE080000
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +0900137#define INTREQ 0xFE080020
138#define INTMSK 0xFE080040
139#define INTMSKCL 0xFE080060
140
141/* CPG */
Nobuhiro Iwamatsu0b135cf2007-05-13 20:58:00 +0900142#define CLKSTP 0xFE0A0000
143#define CLKSTPCLR 0xFE0A0008
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +0900144
145/* TMU */
Nobuhiro Iwamatsu73f35e02012-08-21 13:14:46 +0900146#define TMU_BASE 0xFFD80000
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +0900147
148/* SCI */
Wolfgang Denk53677ef2008-05-20 16:00:29 +0200149#define SCSMR1 0xFFE00000
Nobuhiro Iwamatsu0b135cf2007-05-13 20:58:00 +0900150#define SCF0_BASE SCSMR1
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +0900151
152/* SCIF */
Wolfgang Denk53677ef2008-05-20 16:00:29 +0200153#define SCSMR2 0xFFE80000
Nobuhiro Iwamatsu0b135cf2007-05-13 20:58:00 +0900154#define SCIF1_BASE SCSMR2
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +0900155
156/* H-UDI */
Wolfgang Denk53677ef2008-05-20 16:00:29 +0200157#define SDIR 0xFFF00000
158#define SDDR 0xFFF00008
159#define SDINT 0xFFF00014
Nobuhiro Iwamatsu0b135cf2007-05-13 20:58:00 +0900160
161#endif /* _ASM_CPU_SH7750_H_ */