2 * Copyright (C) 2008 Nobuhiro Iwamatsu
3 * Copyright (C) 2008 Renesas Solutions Corp.
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation; either version 2 of
8 * the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
23 #include <asm/processor.h>
24 #include <asm/macro.h>
33 write32 CCR1_A ,CCR1_D
35 /* ConfigurePortPins */
36 write16 PECRL3_A, PECRL3_D
38 write16 PCCRL4_A, PCCRL4_D0
40 write16 PECRL4_A, PECRL4_D0
42 write16 PEIORL_A, PEIORL_D0
44 write16 PCIORL_A, PCIORL_D
46 write16 PFCRH2_A, PFCRH2_D
48 write16 PFCRH3_A, PFCRH3_D
50 write16 PFCRH1_A, PFCRH1_D
52 write16 PFIORH_A, PFIORH_D
54 write16 PECRL1_A, PECRL1_D0
56 write16 PEIORL_A, PEIORL_D1
58 /* Configure Operating Frequency */
59 write16 WTCSR_A, WTCSR_D0
61 write16 WTCSR_A, WTCSR_D1
63 write16 WTCNT_A, WTCNT_D
66 write16 FRQCR_A, FRQCR_D
68 /* Configure Bus And Memory */
70 write16 PCCRL4_A, PCCRL4_D1
72 write16 PECRL1_A, PECRL1_D1
74 write32 CMNCR_A, CMNCR_D
76 write32 CS0BCR_A, CS0BCR_D
78 write32 CS0WCR_A, CS0WCR_D
81 write16 PECRL4_A, PECRL4_D1
83 write32 CS1WCR_A, CS1WCR_D
86 write16 PCCRL2_A, PCCRL2_D
88 write16 PCCRL4_A, PCCRL4_D2
90 write16 PCCRL1_A, PCCRL1_D
92 write16 PCCRL3_A, PCCRL3_D
94 write32 CS3BCR_A, CS3BCR_D
96 write32 CS3WCR_A, CS3WCR_D
98 write32 SDCR_A, SDCR_D
100 write32 RTCOR_A, RTCOR_D
102 write32 RTCSR_A, RTCSR_D
123 CCR1_D: .long 0x0000090B
124 PCCRL4_A: .long 0xFFFE3910
125 PCCRL4_D0: .word 0x0000
127 PECRL4_A: .long 0xFFFE3A10
128 PECRL4_D0: .word 0x0000
130 PECRL3_A: .long 0xFFFE3A12
131 PECRL3_D: .word 0x0000
133 PEIORL_A: .long 0xFFFE3A06
134 PEIORL_D0: .word 0x1C00
135 PEIORL_D1: .word 0x1C02
136 PCIORL_A: .long 0xFFFE3906
137 PCIORL_D: .word 0x4000
139 PFCRH2_A: .long 0xFFFE3A8C
140 PFCRH2_D: .word 0x0000
142 PFCRH3_A: .long 0xFFFE3A8A
143 PFCRH3_D: .word 0x0000
145 PFCRH1_A: .long 0xFFFE3A8E
146 PFCRH1_D: .word 0x0000
148 PFIORH_A: .long 0xFFFE3A84
149 PFIORH_D: .word 0x0729
151 PECRL1_A: .long 0xFFFE3A16
152 PECRL1_D0: .word 0x0033
156 WTCSR_A: .long 0xFFFE0000
157 WTCSR_D0: .word 0xA518
158 WTCSR_D1: .word 0xA51D
159 WTCNT_A: .long 0xFFFE0002
160 WTCNT_D: .word 0x5A84
162 FRQCR_A: .long 0xFFFE0010
163 FRQCR_D: .word 0x0104
166 PCCRL4_D1: .word 0x0010
167 PECRL1_D1: .word 0x0133
169 CMNCR_A: .long 0xFFFC0000
170 CMNCR_D: .long 0x00001810
171 CS0BCR_A: .long 0xFFFC0004
172 CS0BCR_D: .long 0x10000400
173 CS0WCR_A: .long 0xFFFC0028
174 CS0WCR_D: .long 0x00000B41
175 PECRL4_D1: .word 0x0100
177 CS1WCR_A: .long 0xFFFC002C
178 CS1WCR_D: .long 0x00000B01
179 PCCRL4_D2: .word 0x0011
181 PCCRL3_A: .long 0xFFFE3912
182 PCCRL3_D: .word 0x0011
184 PCCRL2_A: .long 0xFFFE3914
185 PCCRL2_D: .word 0x1111
187 PCCRL1_A: .long 0xFFFE3916
188 PCCRL1_D: .word 0x1010
189 PDCRL4_A: .long 0xFFFE3990
190 PDCRL4_D: .word 0x0011
192 PDCRL3_A: .long 0xFFFE3992
193 PDCRL3_D: .word 0x00011
195 PDCRL2_A: .long 0xFFFE3994
196 PDCRL2_D: .word 0x1111
198 PDCRL1_A: .long 0xFFFE3996
199 PDCRL1_D: .word 0x1000
201 CS3BCR_A: .long 0xFFFC0010
202 CS3BCR_D: .long 0x00004400
203 CS3WCR_A: .long 0xFFFC0034
204 CS3WCR_D: .long 0x00002892
205 SDCR_A: .long 0xFFFC004C
206 SDCR_D: .long 0x00000809
207 RTCOR_A: .long 0xFFFC0058
208 RTCOR_D: .long 0xA55A0041
209 RTCSR_A: .long 0xFFFC0050
210 RTCSR_D: .long 0xa55a0010
212 SDRAM_MODE: .long 0xFFFC5040
213 REPEAT_D: .long 0x00009C40