2 * Copyright (C) 2008 Renesas Solutions Corp.
3 * Copyright (C) 2008 Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
5 * board/ap325rxa/lowlevel_init.S
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.
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.
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,
25 #include <asm/processor.h>
28 * Board specific low level init code, called _very_ early in the
29 * startup sequence. Relocation to SDRAM has not happened yet, no
30 * stack is available, bss section has not been initialised, etc.
32 * (Note: As no stack is available, no subroutines can be called...).
117 mov.l SBSC_SDCR_A, r1
118 mov.l SBSC_SDCR_D1, r0
121 mov.l SBSC_SDWCR_A, r1
122 mov.l SBSC_SDWCR_D, r0
125 mov.l SBSC_SDPCR_A, r1
126 mov.l SBSC_SDPCR_D, r0
129 mov.l SBSC_RTCSR_A, r1
130 mov.l SBSC_RTCSR_D, r0
133 mov.l SBSC_RTCNT_A, r1
134 mov.l SBSC_RTCNT_D, r0
137 mov.l SBSC_RTCOR_A, r1
138 mov.l SBSC_RTCOR_D, r0
141 mov.l SBSC_SDMR3_A1, r1
142 mov.l SBSC_SDMR3_D, r0
145 mov.l SBSC_SDMR3_A2, r1
146 mov.l SBSC_SDMR3_D, r0
155 mov.l SBSC_SDMR3_A3, r1
156 mov.l SBSC_SDMR3_D, r0
159 mov.l SBSC_SDCR_A, r1
160 mov.l SBSC_SDCR_D2, r0
167 ! BL bit off (init = ON) (?!?)
169 stc sr, r0 ! BL bit off(init=ON)
179 DRVCRA_A: .long DRVCRA
180 DRVCRB_A: .long DRVCRB
181 DRVCRA_D: .long 0x4555
182 DRVCRB_D: .long 0x0005
184 RWTCSR_A: .long RWTCSR
185 RWTCNT_A: .long RWTCNT
187 RWTCSR_D1: .long 0xa507
188 RWTCSR_D2: .long 0xa504
189 RWTCNT_D: .long 0x5a00
190 FRQCR_D: .long 0x0b04474a
192 SBSC_SDCR_A: .long SBSC_SDCR
193 SBSC_SDWCR_A: .long SBSC_SDWCR
194 SBSC_SDPCR_A: .long SBSC_SDPCR
195 SBSC_RTCSR_A: .long SBSC_RTCSR
196 SBSC_RTCNT_A: .long SBSC_RTCNT
197 SBSC_RTCOR_A: .long SBSC_RTCOR
198 SBSC_SDMR3_A1: .long 0xfe510000
199 SBSC_SDMR3_A2: .long 0xfe500242
200 SBSC_SDMR3_A3: .long 0xfe5c0042
202 SBSC_SDCR_D1: .long 0x92810112
203 SBSC_SDCR_D2: .long 0x92810912
204 SBSC_SDWCR_D: .long 0x05162482
205 SBSC_SDPCR_D: .long 0x00300087
206 SBSC_RTCSR_D: .long 0xa55a0212
207 SBSC_RTCNT_D: .long 0xa55a0000
208 SBSC_RTCOR_D: .long 0xa55a0040
209 SBSC_SDMR3_D: .long 0x00
212 CS0BCR_A: .long CS0BCR
213 CS4BCR_A: .long CS4BCR
214 CS5ABCR_A: .long CS5ABCR
215 CS5BBCR_A: .long CS5BBCR
216 CS6ABCR_A: .long CS6ABCR
217 CS6BBCR_A: .long CS6BBCR
218 CS0WCR_A: .long CS0WCR
219 CS4WCR_A: .long CS4WCR
220 CS5AWCR_A: .long CS5AWCR
221 CS5BWCR_A: .long CS5BWCR
222 CS6AWCR_A: .long CS6AWCR
223 CS6BWCR_A: .long CS6BWCR
225 CMNCR_D: .long 0x00000013
226 CS0BCR_D: .long 0x24920400
227 CS4BCR_D: .long 0x24920400
228 CS5ABCR_D: .long 0x24920400
229 CS5BBCR_D: .long 0x7fff0600
230 CS6ABCR_D: .long 0x24920400
231 CS6BBCR_D: .long 0x24920600
232 CS0WCR_D: .long 0x00000480
233 CS4WCR_D: .long 0x00000480
234 CS5AWCR_D: .long 0x00000380
235 CS5BWCR_D: .long 0x00000600
236 CS6AWCR_D: .long 0x00000300
237 CS6BWCR_D: .long 0x00000540
239 CCR_A: .long 0xff00001c
240 CCR_D: .long 0x0000090d
242 SLEEP_CNT: .long 0x00000800
243 SR_MASK_D: .long 0xEFFFFF0F