blob: d5bf3fd6d0292ad2b3bbda61f2586b0da21fc60c [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 *
Wolfgang Denk1a459662013-07-08 09:37:19 +02007 * SPDX-License-Identifier: GPL-2.0+
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +09008 */
9
Nobuhiro Iwamatsu0b135cf2007-05-13 20:58:00 +090010#ifndef _ASM_CPU_SH7750_H_
11#define _ASM_CPU_SH7750_H_
12
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090013#ifdef CONFIG_CPU_TYPE_R
14#define CACHE_OC_NUM_WAYS 2
Nobuhiro Iwamatsu56693322008-03-12 12:10:28 +090015#define CCR_CACHE_INIT 0x8000090D /* EMODE,ICI,ICE(16k),OCI,P1-wb,OCE(32k) */
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090016#else
17#define CACHE_OC_NUM_WAYS 1
Nobuhiro Iwamatsu56693322008-03-12 12:10:28 +090018#define CCR_CACHE_INIT 0x0000090B
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090019#endif
20
21/* OCN */
Wolfgang Denk53677ef2008-05-20 16:00:29 +020022#define PTEH 0xFF000000
23#define PTEL 0xFF000004
24#define TTB 0xFF000008
25#define TEA 0xFF00000C
26#define MMUCR 0xFF000010
27#define BASRA 0xFF000014
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090028#define BASRB 0xFF000018
Nobuhiro Iwamatsu0b135cf2007-05-13 20:58:00 +090029#define CCR 0xFF00001C
Wolfgang Denk53677ef2008-05-20 16:00:29 +020030#define TRA 0xFF000020
31#define EXPEVT 0xFF000024
32#define INTEVT 0xFF000028
33#define PTEA 0xFF000034
34#define QACR0 0xFF000038
35#define QACR1 0xFF00003C
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090036
37/* UBC */
Wolfgang Denk53677ef2008-05-20 16:00:29 +020038#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
Nobuhiro Iwamatsu0b135cf2007-05-13 20:58:00 +090047
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090048/* BSC */
Nobuhiro Iwamatsu0b135cf2007-05-13 20:58:00 +090049#define BCR1 0xFF800000
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090050#define BCR2 0xFF800004
Wolfgang Denk53677ef2008-05-20 16:00:29 +020051#define BCR3 0xFF800050
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090052#define BCR4 0xFE0A00F0
Wolfgang Denk53677ef2008-05-20 16:00:29 +020053#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
Nobuhiro Iwamatsu0b135cf2007-05-13 20:58:00 +090067
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090068/* DMAC */
Wolfgang Denk53677ef2008-05-20 16:00:29 +020069#define SAR0 0xFFA00000
70#define DAR0 0xFFA00004
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090071#define DMATCR0 0xFFA00008
72#define CHCR0 0xFFA0000C
Wolfgang Denk53677ef2008-05-20 16:00:29 +020073#define SAR1 0xFFA00010
74#define DAR1 0xFFA00014
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090075#define DMATCR1 0xFFA00018
Wolfgang Denk53677ef2008-05-20 16:00:29 +020076#define CHCR1 0xFFA0001C
77#define SAR2 0xFFA00020
78#define DAR2 0xFFA00024
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090079#define DMATCR2 0xFFA00028
Wolfgang Denk53677ef2008-05-20 16:00:29 +020080#define CHCR2 0xFFA0002C
81#define SAR3 0xFFA00030
82#define DAR3 0xFFA00034
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090083#define DMATCR3 0xFFA00038
Wolfgang Denk53677ef2008-05-20 16:00:29 +020084#define CHCR3 0xFFA0003C
85#define DMAOR 0xFFA00040
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090086#define SAR4 0xFFA00050
Wolfgang Denk53677ef2008-05-20 16:00:29 +020087#define DAR4 0xFFA00054
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090088#define DMATCR4 0xFFA00058
89
90/* CPG */
Wolfgang Denk53677ef2008-05-20 16:00:29 +020091#define FRQCR 0xFFC00000
92#define STBCR 0xFFC00004
93#define WTCNT 0xFFC00008
94#define WTCSR 0xFFC0000C
95#define STBCR2 0xFFC00010
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +090096
97/* RTC */
98#define R64CNT 0xFFC80000
99#define RSECCNT 0xFFC80004
100#define RMINCNT 0xFFC80008
Wolfgang Denk53677ef2008-05-20 16:00:29 +0200101#define RHRCNT 0xFFC8000C
102#define RWKCNT 0xFFC80010
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +0900103#define RDAYCNT 0xFFC80014
104#define RMONCNT 0xFFC80018
Wolfgang Denk53677ef2008-05-20 16:00:29 +0200105#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
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +0900116
117/* ICR */
Wolfgang Denk53677ef2008-05-20 16:00:29 +0200118#define ICR 0xFFD00000
119#define IPRA 0xFFD00004
120#define IPRB 0xFFD00008
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +0900121#define IPRC 0xFFD0000C
Wolfgang Denk53677ef2008-05-20 16:00:29 +0200122#define IPRD 0xFFD00010
123#define INTPRI 0xFE080000
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +0900124#define INTREQ 0xFE080020
125#define INTMSK 0xFE080040
126#define INTMSKCL 0xFE080060
127
128/* CPG */
Nobuhiro Iwamatsu0b135cf2007-05-13 20:58:00 +0900129#define CLKSTP 0xFE0A0000
130#define CLKSTPCLR 0xFE0A0008
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +0900131
132/* TMU */
Nobuhiro Iwamatsu73f35e02012-08-21 13:14:46 +0900133#define TMU_BASE 0xFFD80000
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +0900134
135/* SCI */
Wolfgang Denk53677ef2008-05-20 16:00:29 +0200136#define SCSMR1 0xFFE00000
Nobuhiro Iwamatsu0b135cf2007-05-13 20:58:00 +0900137#define SCF0_BASE SCSMR1
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +0900138
139/* SCIF */
Wolfgang Denk53677ef2008-05-20 16:00:29 +0200140#define SCSMR2 0xFFE80000
Nobuhiro Iwamatsu0b135cf2007-05-13 20:58:00 +0900141#define SCIF1_BASE SCSMR2
Nobuhiro Iwamatsub02bad12007-09-23 02:12:30 +0900142
143/* H-UDI */
Wolfgang Denk53677ef2008-05-20 16:00:29 +0200144#define SDIR 0xFFF00000
145#define SDDR 0xFFF00008
146#define SDINT 0xFFF00014
Nobuhiro Iwamatsu0b135cf2007-05-13 20:58:00 +0900147
148#endif /* _ASM_CPU_SH7750_H_ */