blob: bc48ca0f5b06ffbbeb9ffd106292841cfbe563e8 [file] [log] [blame]
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -05001/*
2 * Copyright (C) 2003 Josef Baumgartner <josef.baumgartner@telex.de>
3 * Based on code from Bernhard Kuhn <bkuhn@metrowerks.com>
4 *
Alison Wangfdc2fb12012-10-18 19:25:51 +00005 * Copyright 2010-2012 Freescale Semiconductor, Inc.
6 * TsiChung Liew (Tsi-Chung.Liew@freescale.com)
7 *
Wolfgang Denkbd8ec7e2013-10-07 13:07:26 +02008 * SPDX-License-Identifier: GPL-2.0+
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -05009 */
10
Alison Wangfdc2fb12012-10-18 19:25:51 +000011#include <common.h>
Wolfgang Denk0191e472010-10-26 14:34:52 +020012#include <asm-offsets.h>
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -050013#include <config.h>
Alison Wangfdc2fb12012-10-18 19:25:51 +000014#include <timestamp.h>
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -050015#include "version.h"
TsiChung Liew0ee47d42010-03-11 22:12:53 -060016#include <asm/cache.h>
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -050017
18#ifndef CONFIG_IDENT_STRING
19#define CONFIG_IDENT_STRING ""
20#endif
21
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -050022#define _START _start
23#define _FAULT _fault
24
25#define SAVE_ALL \
26 move.w #0x2700,%sr; /* disable intrs */ \
27 subl #60,%sp; /* space for 15 regs */ \
28 moveml %d0-%d7/%a0-%a6,%sp@;
29
30#define RESTORE_ALL \
31 moveml %sp@,%d0-%d7/%a0-%a6; \
32 addl #60,%sp; /* space for 15 regs */ \
33 rte;
34
Alison Wangfdc2fb12012-10-18 19:25:51 +000035#if defined(CONFIG_SERIAL_BOOT)
Angelo Dureghello65d59912016-05-22 00:14:29 +020036#define ASM_DRAMINIT (asm_dram_init - CONFIG_SYS_TEXT_BASE + \
37 CONFIG_SYS_INIT_RAM_ADDR)
Masahiro Yamada03390c62015-12-11 12:22:25 +090038#define ASM_DRAMINIT_N (asm_dram_init - CONFIG_SYS_TEXT_BASE)
Angelo Dureghello65d59912016-05-22 00:14:29 +020039#define ASM_SBF_IMG_HDR (asm_sbf_img_hdr - CONFIG_SYS_TEXT_BASE + \
40 CONFIG_SYS_INIT_RAM_ADDR)
TsiChung Liew23cf8fd2008-07-23 20:38:53 -050041#endif
42
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -050043.text
TsiChung Liew23cf8fd2008-07-23 20:38:53 -050044
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -050045/*
Angelo Dureghello65d59912016-05-22 00:14:29 +020046 * Vector table. This is used for initial platform startup.
47 * These vectors are to catch any un-intended traps.
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -050048 */
49_vectors:
Alison Wangfdc2fb12012-10-18 19:25:51 +000050#if defined(CONFIG_SERIAL_BOOT)
TsiChung Liew23cf8fd2008-07-23 20:38:53 -050051
Angelo Dureghello65d59912016-05-22 00:14:29 +020052INITSP: .long 0 /* Initial SP */
Alison Wangfdc2fb12012-10-18 19:25:51 +000053#ifdef CONFIG_CF_SBF
Angelo Dureghello65d59912016-05-22 00:14:29 +020054INITPC: .long ASM_DRAMINIT /* Initial PC */
Alison Wangfdc2fb12012-10-18 19:25:51 +000055#endif
56#ifdef CONFIG_SYS_NAND_BOOT
Angelo Dureghello65d59912016-05-22 00:14:29 +020057INITPC: .long ASM_DRAMINIT_N /* Initial PC */
Alison Wangfdc2fb12012-10-18 19:25:51 +000058#endif
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -050059
TsiChung Liew23cf8fd2008-07-23 20:38:53 -050060#else
61
Angelo Dureghello65d59912016-05-22 00:14:29 +020062INITSP: .long 0 /* Initial SP */
63INITPC: .long _START /* Initial PC */
TsiChung Liew23cf8fd2008-07-23 20:38:53 -050064
65#endif
66
Angelo Dureghello65d59912016-05-22 00:14:29 +020067vector02_0F:
68.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
69.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -050070
71/* Reserved */
72vector10_17:
73.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
74
Angelo Dureghello65d59912016-05-22 00:14:29 +020075vector18_1F:
76.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -050077
Alison Wangfdc2fb12012-10-18 19:25:51 +000078#if !defined(CONFIG_SERIAL_BOOT)
TsiChung Liew23cf8fd2008-07-23 20:38:53 -050079
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -050080/* TRAP #0 - #15 */
81vector20_2F:
82.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
83.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
84
85/* Reserved */
86vector30_3F:
87.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
88.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
89
90vector64_127:
91.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
92.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
93.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
94.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
95.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
96.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
97.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
98.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
99
100vector128_191:
101.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
102.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
103.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
104.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
105.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
106.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
107.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
108.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
109
110vector192_255:
111.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
112.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
113.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
114.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
115.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
116.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
117.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
118.long _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT, _FAULT
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500119#endif
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -0500120
Alison Wangfdc2fb12012-10-18 19:25:51 +0000121#if defined(CONFIG_SERIAL_BOOT)
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500122 /* Image header: chksum 4 bytes, len 4 bytes, img dest 4 bytes */
123asm_sbf_img_hdr:
Angelo Dureghello65d59912016-05-22 00:14:29 +0200124 .long 0x00000000 /* checksum, not yet implemented */
125 .long 0x00040000 /* image length */
Wolfgang Denk0708bc62010-10-07 21:51:12 +0200126 .long CONFIG_SYS_TEXT_BASE /* image to be relocated at */
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500127
128asm_dram_init:
Angelo Dureghello65d59912016-05-22 00:14:29 +0200129 move.w #0x2700,%sr /* Mask off Interrupt */
TsiChung Liewb78c9882009-06-11 15:39:57 +0000130
Alison Wangfdc2fb12012-10-18 19:25:51 +0000131#ifdef CONFIG_SYS_NAND_BOOT
132 /* for assembly stack */
133 move.l #(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_RAM_CTRL), %d0
134 movec %d0, %RAMBAR1
135
136 move.l #(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET), %sp
Angelo Dureghello65d59912016-05-22 00:14:29 +0200137 clr.l %sp@-
Alison Wangfdc2fb12012-10-18 19:25:51 +0000138#endif
139
140#ifdef CONFIG_CF_SBF
TsiChung Liewb78c9882009-06-11 15:39:57 +0000141 move.l #CONFIG_SYS_INIT_RAM_ADDR, %d0
142 movec %d0, %VBR
143
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200144 move.l #(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_RAM_CTRL), %d0
TsiChung Liewb78c9882009-06-11 15:39:57 +0000145 movec %d0, %RAMBAR1
146
147 /* initialize general use internal ram */
Angelo Dureghello65d59912016-05-22 00:14:29 +0200148 move.l #0, %d0
149 move.l #(ICACHE_STATUS), %a1 /* icache */
150 move.l #(DCACHE_STATUS), %a2 /* dcache */
151 move.l %d0, (%a1)
152 move.l %d0, (%a2)
TsiChung Liewb78c9882009-06-11 15:39:57 +0000153
154 /* invalidate and disable cache */
TsiChung Liew0ee47d42010-03-11 22:12:53 -0600155 move.l #(CONFIG_SYS_ICACHE_INV + CONFIG_SYS_DCACHE_INV), %d0
TsiChung Liewb78c9882009-06-11 15:39:57 +0000156 movec %d0, %CACR /* Invalidate cache */
157 move.l #0, %d0
158 movec %d0, %ACR0
159 movec %d0, %ACR1
160 movec %d0, %ACR2
161 movec %d0, %ACR3
162
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200163 move.l #(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET), %sp
Angelo Dureghello65d59912016-05-22 00:14:29 +0200164 clr.l %sp@-
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500165
166 /* Must disable global address */
167 move.l #0xFC008000, %a1
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200168 move.l #(CONFIG_SYS_CS0_BASE), (%a1)
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500169 move.l #0xFC008008, %a1
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200170 move.l #(CONFIG_SYS_CS0_CTRL), (%a1)
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500171 move.l #0xFC008004, %a1
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200172 move.l #(CONFIG_SYS_CS0_MASK), (%a1)
Angelo Dureghello65d59912016-05-22 00:14:29 +0200173#endif /* CONFIG_CF_SBF */
Alison Wangfdc2fb12012-10-18 19:25:51 +0000174
175#ifdef CONFIG_MCF5441x
176 /* TC: enable all peripherals,
177 in the future only enable certain peripherals */
178 move.l #0xFC04002D, %a1
179
180#if defined(CONFIG_CF_SBF)
Angelo Dureghello65d59912016-05-22 00:14:29 +0200181 move.b #23, (%a1) /* dspi */
Alison Wangfdc2fb12012-10-18 19:25:51 +0000182#endif
Angelo Dureghello65d59912016-05-22 00:14:29 +0200183 move.b #46, (%a1) /* DDR */
Alison Wangfdc2fb12012-10-18 19:25:51 +0000184
185 /* slew settings */
186 move.l #0xEC094060, %a1
187 move.b #0, (%a1)
188
189 /* use vco instead of cpu*2 clock for ddr clock */
190 move.l #0xEC09001A, %a1
191 move.w #0xE01D, (%a1)
192
193 /* DDR settings */
194 move.l #0xFC0B8180, %a1
195 move.l #0x00000000, (%a1)
196 move.l #0x40000000, (%a1)
197
198 move.l #0xFC0B81AC, %a1
199 move.l #0x01030203, (%a1)
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500200
Alison Wangfdc2fb12012-10-18 19:25:51 +0000201 move.l #0xFC0B8000, %a1
202 move.l #0x01010101, (%a1)+ /* 0x00 */
203 move.l #0x00000101, (%a1)+ /* 0x04 */
204 move.l #0x01010100, (%a1)+ /* 0x08 */
205 move.l #0x01010000, (%a1)+ /* 0x0C */
206 move.l #0x00010101, (%a1)+ /* 0x10 */
207 move.l #0xFC0B8018, %a1
208 move.l #0x00010100, (%a1)+ /* 0x18 */
209 move.l #0x00000001, (%a1)+ /* 0x1C */
210 move.l #0x01000001, (%a1)+ /* 0x20 */
211 move.l #0x00000100, (%a1)+ /* 0x24 */
212 move.l #0x00010001, (%a1)+ /* 0x28 */
213 move.l #0x00000200, (%a1)+ /* 0x2C */
214 move.l #0x01000002, (%a1)+ /* 0x30 */
215 move.l #0x00000000, (%a1)+ /* 0x34 */
216 move.l #0x00000100, (%a1)+ /* 0x38 */
217 move.l #0x02000100, (%a1)+ /* 0x3C */
218 move.l #0x02000407, (%a1)+ /* 0x40 */
219 move.l #0x02030007, (%a1)+ /* 0x44 */
220 move.l #0x02000100, (%a1)+ /* 0x48 */
221 move.l #0x0A030203, (%a1)+ /* 0x4C */
222 move.l #0x00020708, (%a1)+ /* 0x50 */
223 move.l #0x00050008, (%a1)+ /* 0x54 */
224 move.l #0x04030002, (%a1)+ /* 0x58 */
225 move.l #0x00000004, (%a1)+ /* 0x5C */
226 move.l #0x020A0000, (%a1)+ /* 0x60 */
227 move.l #0x0C00000E, (%a1)+ /* 0x64 */
228 move.l #0x00002004, (%a1)+ /* 0x68 */
229 move.l #0x00000000, (%a1)+ /* 0x6C */
230 move.l #0x00100010, (%a1)+ /* 0x70 */
231 move.l #0x00100010, (%a1)+ /* 0x74 */
232 move.l #0x00000000, (%a1)+ /* 0x78 */
233 move.l #0x07990000, (%a1)+ /* 0x7C */
234 move.l #0xFC0B80A0, %a1
235 move.l #0x00000000, (%a1)+ /* 0xA0 */
236 move.l #0x00C80064, (%a1)+ /* 0xA4 */
237 move.l #0x44520002, (%a1)+ /* 0xA8 */
238 move.l #0x00C80023, (%a1)+ /* 0xAC */
239 move.l #0xFC0B80B4, %a1
240 move.l #0x0000C350, (%a1) /* 0xB4 */
241 move.l #0xFC0B80E0, %a1
242 move.l #0x04000000, (%a1)+ /* 0xE0 */
243 move.l #0x03000304, (%a1)+ /* 0xE4 */
244 move.l #0x40040000, (%a1)+ /* 0xE8 */
245 move.l #0xC0004004, (%a1)+ /* 0xEC */
246 move.l #0x0642C000, (%a1)+ /* 0xF0 */
247 move.l #0x00000642, (%a1)+ /* 0xF4 */
248 move.l #0xFC0B8024, %a1
249 tpf
250 move.l #0x01000100, (%a1) /* 0x24 */
251
252 move.l #0x2000, %d1
253 jsr asm_delay
254#endif /* CONFIG_MCF5441x */
255
256#ifdef CONFIG_MCF5445x
TsiChung Liewb78c9882009-06-11 15:39:57 +0000257 /* Dram Initialization a1, a2, and d0 */
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500258 /* mscr sdram */
259 move.l #0xFC0A4074, %a1
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200260 move.b #(CONFIG_SYS_SDRAM_DRV_STRENGTH), (%a1)
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500261 nop
262
263 /* SDRAM Chip 0 and 1 */
264 move.l #0xFC0B8110, %a1
265 move.l #0xFC0B8114, %a2
266
267 /* calculate the size */
268 move.l #0x13, %d1
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200269 move.l #(CONFIG_SYS_SDRAM_SIZE), %d2
270#ifdef CONFIG_SYS_SDRAM_BASE1
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500271 lsr.l #1, %d2
272#endif
273
274dramsz_loop:
275 lsr.l #1, %d2
276 add.l #1, %d1
277 cmp.l #1, %d2
278 bne dramsz_loop
Alison Wangfdc2fb12012-10-18 19:25:51 +0000279#ifdef CONFIG_SYS_NAND_BOOT
280 beq asm_nand_chk_status
281#endif
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500282 /* SDRAM Chip 0 and 1 */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200283 move.l #(CONFIG_SYS_SDRAM_BASE), (%a1)
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500284 or.l %d1, (%a1)
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200285#ifdef CONFIG_SYS_SDRAM_BASE1
286 move.l #(CONFIG_SYS_SDRAM_BASE1), (%a2)
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500287 or.l %d1, (%a2)
288#endif
289 nop
290
291 /* dram cfg1 and cfg2 */
292 move.l #0xFC0B8008, %a1
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200293 move.l #(CONFIG_SYS_SDRAM_CFG1), (%a1)
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500294 nop
295 move.l #0xFC0B800C, %a2
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200296 move.l #(CONFIG_SYS_SDRAM_CFG2), (%a2)
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500297 nop
298
299 move.l #0xFC0B8000, %a1 /* Mode */
300 move.l #0xFC0B8004, %a2 /* Ctrl */
301
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500302 /* Issue PALL */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200303 move.l #(CONFIG_SYS_SDRAM_CTRL + 2), (%a2)
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500304 nop
305
TsiChung Liewb78c9882009-06-11 15:39:57 +0000306#ifdef CONFIG_M54455EVB
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500307 /* Issue LEMR */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200308 move.l #(CONFIG_SYS_SDRAM_EMOD + 0x408), (%a1)
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500309 nop
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200310 move.l #(CONFIG_SYS_SDRAM_MODE + 0x300), (%a1)
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500311 nop
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500312#endif
313
TsiChung Liewb78c9882009-06-11 15:39:57 +0000314 move.l #1000, %d1
315 jsr asm_delay
316
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500317 /* Issue PALL */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200318 move.l #(CONFIG_SYS_SDRAM_CTRL + 2), (%a2)
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500319 nop
320
321 /* Perform two refresh cycles */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200322 move.l #(CONFIG_SYS_SDRAM_CTRL + 4), %d0
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500323 nop
324 move.l %d0, (%a2)
325 move.l %d0, (%a2)
326 nop
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -0500327
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500328#ifdef CONFIG_M54455EVB
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200329 move.l #(CONFIG_SYS_SDRAM_MODE + 0x200), (%a1)
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500330 nop
331#elif defined(CONFIG_M54451EVB)
332 /* Issue LEMR */
TsiChung Liew38a5d942009-02-18 11:49:31 +0000333 move.l #(CONFIG_SYS_SDRAM_MODE), (%a1)
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500334 nop
TsiChung Liew38a5d942009-02-18 11:49:31 +0000335 move.l #(CONFIG_SYS_SDRAM_EMOD), (%a1)
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500336#endif
337
TsiChung Liewb78c9882009-06-11 15:39:57 +0000338 move.l #500, %d1
339 jsr asm_delay
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500340
TsiChung Liewb78c9882009-06-11 15:39:57 +0000341 move.l #(CONFIG_SYS_SDRAM_CTRL), %d1
342 and.l #0x7FFFFFFF, %d1
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500343#ifdef CONFIG_M54455EVB
TsiChung Liewb78c9882009-06-11 15:39:57 +0000344 or.l #0x10000C00, %d1
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500345#elif defined(CONFIG_M54451EVB)
TsiChung Liewb78c9882009-06-11 15:39:57 +0000346 or.l #0x10000C00, %d1
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500347#endif
TsiChung Liewb78c9882009-06-11 15:39:57 +0000348 move.l %d1, (%a2)
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500349 nop
350
TsiChung Liewb78c9882009-06-11 15:39:57 +0000351 move.l #2000, %d1
352 jsr asm_delay
Angelo Dureghello65d59912016-05-22 00:14:29 +0200353#endif /* CONFIG_MCF5445x */
TsiChung Liewb78c9882009-06-11 15:39:57 +0000354
Alison Wangfdc2fb12012-10-18 19:25:51 +0000355#ifdef CONFIG_CF_SBF
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500356 /*
357 * DSPI Initialization
358 * a0 - general, sram - 0x80008000 - 32, see M54455EVB.h
359 * a1 - dspi status
360 * a2 - dtfr
361 * a3 - drfr
362 * a4 - Dst addr
363 */
364 /* Enable pins for DSPI mode - chip-selects are enabled later */
TsiChung Liewb78c9882009-06-11 15:39:57 +0000365asm_dspi_init:
Alison Wangfdc2fb12012-10-18 19:25:51 +0000366#ifdef CONFIG_MCF5441x
367 move.l #0xEC09404E, %a1
368 move.l #0xEC09404F, %a2
369 move.b #0xFF, (%a1)
370 move.b #0x80, (%a2)
371#endif
372
373#ifdef CONFIG_MCF5445x
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500374 move.l #0xFC0A4063, %a0
375 move.b #0x7F, (%a0)
Alison Wangfdc2fb12012-10-18 19:25:51 +0000376#endif
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500377 /* Configure DSPI module */
378 move.l #0xFC05C000, %a0
379 move.l #0x80FF0C00, (%a0) /* Master, clear TX/RX FIFO */
380
381 move.l #0xFC05C00C, %a0
Alison Wangfdc2fb12012-10-18 19:25:51 +0000382#ifdef CONFIG_MCF5441x
383 move.l #0x3E000016, (%a0)
384#endif
385#ifdef CONFIG_MCF5445x
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500386 move.l #0x3E000011, (%a0)
Alison Wangfdc2fb12012-10-18 19:25:51 +0000387#endif
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500388
389 move.l #0xFC05C034, %a2 /* dtfr */
390 move.l #0xFC05C03B, %a3 /* drfr */
391
392 move.l #(ASM_SBF_IMG_HDR + 4), %a1
393 move.l (%a1)+, %d5
394 move.l (%a1), %a4
395
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200396 move.l #(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_SBFHDR_DATA_OFFSET), %a0
397 move.l #(CONFIG_SYS_SBFHDR_SIZE), %d4
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500398
399 move.l #0xFC05C02C, %a1 /* dspi status */
400
401 /* Issue commands and address */
402 move.l #0x8002000B, %d2 /* Fast Read Cmd */
403 jsr asm_dspi_wr_status
404 jsr asm_dspi_rd_status
405
406 move.l #0x80020000, %d2 /* Address byte 2 */
407 jsr asm_dspi_wr_status
408 jsr asm_dspi_rd_status
409
410 move.l #0x80020000, %d2 /* Address byte 1 */
411 jsr asm_dspi_wr_status
412 jsr asm_dspi_rd_status
413
414 move.l #0x80020000, %d2 /* Address byte 0 */
415 jsr asm_dspi_wr_status
416 jsr asm_dspi_rd_status
417
418 move.l #0x80020000, %d2 /* Dummy Wr and Rd */
419 jsr asm_dspi_wr_status
420 jsr asm_dspi_rd_status
421
422 /* Transfer serial boot header to sram */
423asm_dspi_rd_loop1:
424 move.l #0x80020000, %d2
425 jsr asm_dspi_wr_status
426 jsr asm_dspi_rd_status
427
428 move.b %d1, (%a0) /* read, copy to dst */
429
430 add.l #1, %a0 /* inc dst by 1 */
431 sub.l #1, %d4 /* dec cnt by 1 */
432 bne asm_dspi_rd_loop1
433
434 /* Transfer u-boot from serial flash to memory */
435asm_dspi_rd_loop2:
436 move.l #0x80020000, %d2
437 jsr asm_dspi_wr_status
438 jsr asm_dspi_rd_status
439
440 move.b %d1, (%a4) /* read, copy to dst */
441
442 add.l #1, %a4 /* inc dst by 1 */
443 sub.l #1, %d5 /* dec cnt by 1 */
444 bne asm_dspi_rd_loop2
445
446 move.l #0x00020000, %d2 /* Terminate */
447 jsr asm_dspi_wr_status
448 jsr asm_dspi_rd_status
449
450 /* jump to memory and execute */
Wolfgang Denk0708bc62010-10-07 21:51:12 +0200451 move.l #(CONFIG_SYS_TEXT_BASE + 0x400), %a0
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500452 jmp (%a0)
453
454asm_dspi_wr_status:
455 move.l (%a1), %d0 /* status */
456 and.l #0x0000F000, %d0
457 cmp.l #0x00003000, %d0
458 bgt asm_dspi_wr_status
459
460 move.l %d2, (%a2)
461 rts
462
463asm_dspi_rd_status:
464 move.l (%a1), %d0 /* status */
465 and.l #0x000000F0, %d0
466 lsr.l #4, %d0
467 cmp.l #0, %d0
468 beq asm_dspi_rd_status
469
470 move.b (%a3), %d1
471 rts
Angelo Dureghello65d59912016-05-22 00:14:29 +0200472#endif /* CONFIG_CF_SBF */
Alison Wangfdc2fb12012-10-18 19:25:51 +0000473
474#ifdef CONFIG_SYS_NAND_BOOT
475 /* copy 4 boot pages to dram as soon as possible */
476 /* each page is 996 bytes (1056 total with 60 ECC bytes */
477 move.l #0x00000000, %a1 /* src */
Masahiro Yamada03390c62015-12-11 12:22:25 +0900478 move.l #CONFIG_SYS_TEXT_BASE, %a2 /* dst */
Alison Wangfdc2fb12012-10-18 19:25:51 +0000479 move.l #0x3E0, %d0 /* sz in long */
480
481asm_boot_nand_copy:
482 move.l (%a1)+, (%a2)+
483 subq.l #1, %d0
484 bne asm_boot_nand_copy
485
486 /* jump to memory and execute */
487 move.l #(asm_nand_init), %a0
488 jmp (%a0)
489
490asm_nand_init:
491 /* exit nand boot-mode */
492 move.l #0xFC0FFF30, %a1
493 or.l #0x00000040, %d1
494 move.l %d1, (%a1)
495
496 /* initialize general use internal ram */
Angelo Dureghello65d59912016-05-22 00:14:29 +0200497 move.l #0, %d0
498 move.l #(CACR_STATUS), %a1 /* CACR */
499 move.l #(ICACHE_STATUS), %a2 /* icache */
500 move.l #(DCACHE_STATUS), %a3 /* dcache */
501 move.l %d0, (%a1)
502 move.l %d0, (%a2)
503 move.l %d0, (%a3)
Alison Wangfdc2fb12012-10-18 19:25:51 +0000504
505 /* invalidate and disable cache */
506 move.l #0x01004100, %d0 /* Invalidate cache cmd */
507 movec %d0, %CACR /* Invalidate cache */
508 move.l #0, %d0
509 movec %d0, %ACR0
510 movec %d0, %ACR1
511 movec %d0, %ACR2
512 movec %d0, %ACR3
513
514 /* Must disable global address */
515 move.l #0xFC008000, %a1
516 move.l #(CONFIG_SYS_CS0_BASE), (%a1)
517 move.l #0xFC008008, %a1
518 move.l #(CONFIG_SYS_CS0_CTRL), (%a1)
519 move.l #0xFC008004, %a1
520 move.l #(CONFIG_SYS_CS0_MASK), (%a1)
521
522 /* NAND port configuration */
523 move.l #0xEC094048, %a1
524 move.b #0xFD, (%a1)+
525 move.b #0x5F, (%a1)+
526 move.b #0x04, (%a1)+
527
528 /* reset nand */
529 move.l #0xFC0FFF38, %a1 /* isr */
530 move.l #0x000e0000, (%a1)
531 move.l #0xFC0FFF08, %a2
532 move.l #0x00000000, (%a2)+ /* car */
533 move.l #0x11000000, (%a2)+ /* rar */
534 move.l #0x00000000, (%a2)+ /* rpt */
535 move.l #0x00000000, (%a2)+ /* rai */
536 move.l #0xFC0FFF2c, %a2 /* cfg */
537 move.l #0x00000000, (%a2)+ /* secsz */
538 move.l #0x000e0681, (%a2)+
539 move.l #0xFC0FFF04, %a2 /* cmd2 */
540 move.l #0xFF404001, (%a2)
541 move.l #0x000e0000, (%a1)
542
543 move.l #0x2000, %d1
544 jsr asm_delay
545
546 /* setup nand */
547 move.l #0xFC0FFF00, %a1
548 move.l #0x30700000, (%a1)+ /* cmd1 */
549 move.l #0x007EF000, (%a1)+ /* cmd2 */
550
551 move.l #0xFC0FFF2C, %a1
552 move.l #0x00000841, (%a1)+ /* secsz */
553 move.l #0x000e0681, (%a1)+ /* cfg */
554
555 move.l #100, %d4 /* 100 pages ~200KB */
556 move.l #4, %d2 /* start at 4 */
557 move.l #0xFC0FFF04, %a0 /* cmd2 */
558 move.l #0xFC0FFF0C, %a1 /* rar */
Angelo Dureghello65d59912016-05-22 00:14:29 +0200559 move.l #(CONFIG_SYS_TEXT_BASE + 0xF80), %a2
Alison Wangfdc2fb12012-10-18 19:25:51 +0000560
561asm_nand_read:
562 move.l #0x11000000, %d0 /* rar */
563 or.l %d2, %d0
564 move.l %d0, (%a1)
565 add.l #1, %d2
566
567 move.l (%a0), %d0 /* cmd2 */
568 or.l #1, %d0
569 move.l %d0, (%a0)
570
571 move.l #0x200, %d1
572 jsr asm_delay
573
574asm_nand_chk_status:
575 move.l #0xFC0FFF38, %a4 /* isr */
576 move.l (%a4), %d0
577 and.l #0x40000000, %d0
578 tst.l %d0
579 beq asm_nand_chk_status
580
581 move.l #0xFC0FFF38, %a4 /* isr */
582 move.l (%a4), %d0
583 or.l #0x000E0000, %d0
584 move.l %d0, (%a4)
585
586 move.l #0x200, %d3
587 move.l #0xFC0FC000, %a3 /* buf 1 */
588asm_nand_copy:
589 move.l (%a3)+, (%a2)+
590 subq.l #1, %d3
591 bgt asm_nand_copy
592
593 subq.l #1, %d4
594 bgt asm_nand_read
595
596 /* jump to memory and execute */
Masahiro Yamada03390c62015-12-11 12:22:25 +0900597 move.l #(CONFIG_SYS_TEXT_BASE + 0x400), %a0
Alison Wangfdc2fb12012-10-18 19:25:51 +0000598 jmp (%a0)
599
600#endif /* CONFIG_SYS_NAND_BOOT */
TsiChung Liewb78c9882009-06-11 15:39:57 +0000601
602asm_delay:
603 nop
604 subq.l #1, %d1
605 bne asm_delay
606 rts
Alison Wangfdc2fb12012-10-18 19:25:51 +0000607#endif /* CONFIG_CF_SBF || CONFIG_NAND_U_BOOT */
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500608
Angelo Dureghello65d59912016-05-22 00:14:29 +0200609.text
TsiChung Liew23cf8fd2008-07-23 20:38:53 -0500610 . = 0x400
Angelo Dureghello65d59912016-05-22 00:14:29 +0200611.globl _start
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -0500612_start:
Alison Wangfdc2fb12012-10-18 19:25:51 +0000613#if !defined(CONFIG_SERIAL_BOOT)
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -0500614 nop
615 nop
Angelo Dureghello65d59912016-05-22 00:14:29 +0200616 move.w #0x2700,%sr /* Mask off Interrupt */
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -0500617
618 /* Set vector base register at the beginning of the Flash */
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200619 move.l #CONFIG_SYS_FLASH_BASE, %d0
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -0500620 movec %d0, %VBR
621
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200622 move.l #(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_RAM_CTRL), %d0
TsiChungLiew0573a7a2007-11-07 18:00:54 -0600623 movec %d0, %RAMBAR1
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -0500624
625 /* initialize general use internal ram */
Angelo Dureghello65d59912016-05-22 00:14:29 +0200626 move.l #0, %d0
627 move.l #(ICACHE_STATUS), %a1 /* icache */
628 move.l #(DCACHE_STATUS), %a2 /* dcache */
629 move.l %d0, (%a1)
630 move.l %d0, (%a2)
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -0500631
632 /* invalidate and disable cache */
TsiChung Liew0ee47d42010-03-11 22:12:53 -0600633 move.l #(CONFIG_SYS_ICACHE_INV + CONFIG_SYS_DCACHE_INV), %d0
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -0500634 movec %d0, %CACR /* Invalidate cache */
635 move.l #0, %d0
636 movec %d0, %ACR0
637 movec %d0, %ACR1
638 movec %d0, %ACR2
639 movec %d0, %ACR3
Alison Wangfdc2fb12012-10-18 19:25:51 +0000640#else
641 move.l #(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_RAM_CTRL), %d0
642 movec %d0, %RAMBAR1
643#endif
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -0500644
angelo@sysam.itef9707c2016-04-27 21:50:44 +0200645 /* put relocation table address to a5 */
Angelo Dureghello65d59912016-05-22 00:14:29 +0200646 move.l #__got_start, %a5
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -0500647
angelo@sysam.itef9707c2016-04-27 21:50:44 +0200648 /* setup stack initially on top of internal static ram */
Angelo Dureghello65d59912016-05-22 00:14:29 +0200649 move.l #(CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_RAM_SIZE), %sp
angelo@sysam.itef9707c2016-04-27 21:50:44 +0200650
651 /*
652 * if configured, malloc_f arena will be reserved first,
653 * then (and always) gd struct space will be reserved
654 */
655 move.l %sp, -(%sp)
656 move.l #board_init_f_alloc_reserve, %a1
657 jsr (%a1)
658
659 /* update stack and frame-pointers */
Angelo Dureghello65d59912016-05-22 00:14:29 +0200660 move.l %d0, %sp
661 move.l %sp, %fp
angelo@sysam.itef9707c2016-04-27 21:50:44 +0200662
663 /* initialize reserved area */
Angelo Dureghello65d59912016-05-22 00:14:29 +0200664 move.l %d0, -(%sp)
angelo@sysam.itef9707c2016-04-27 21:50:44 +0200665 move.l #board_init_f_init_reserve, %a1
666 jsr (%a1)
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -0500667
angelo@sysam.itb8cd1322016-04-12 00:30:59 +0200668 /* run low-level CPU init code (from flash) */
Angelo Dureghello65d59912016-05-22 00:14:29 +0200669 move.l #cpu_init_f, %a1
670 jsr (%a1)
671
angelo@sysam.itb8cd1322016-04-12 00:30:59 +0200672 /* run low-level board init code (from flash) */
angelo@sysam.itef9707c2016-04-27 21:50:44 +0200673 clr.l %sp@-
Angelo Dureghello65d59912016-05-22 00:14:29 +0200674 move.l #board_init_f, %a1
675 jsr (%a1)
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -0500676
677 /* board_init_f() does not return */
678
Angelo Dureghello65d59912016-05-22 00:14:29 +0200679/******************************************************************************/
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -0500680
681/*
682 * void relocate_code (addr_sp, gd, addr_moni)
683 *
684 * This "function" does not return, instead it continues in RAM
685 * after relocating the monitor code.
686 *
687 * r3 = dest
688 * r4 = src
689 * r5 = length in bytes
690 * r6 = cachelinesize
691 */
Angelo Dureghello65d59912016-05-22 00:14:29 +0200692.globl relocate_code
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -0500693relocate_code:
Angelo Dureghello65d59912016-05-22 00:14:29 +0200694 link.w %a6,#0
695 move.l 8(%a6), %sp /* set new stack pointer */
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -0500696
Angelo Dureghello65d59912016-05-22 00:14:29 +0200697 move.l 12(%a6), %d0 /* Save copy of Global Data pointer */
698 move.l 16(%a6), %a0 /* Save copy of Destination Address */
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -0500699
Angelo Dureghello65d59912016-05-22 00:14:29 +0200700 move.l #CONFIG_SYS_MONITOR_BASE, %a1
701 move.l #__init_end, %a2
702 move.l %a0, %a3
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -0500703
704 /* copy the code to RAM */
7051:
Angelo Dureghello65d59912016-05-22 00:14:29 +0200706 move.l (%a1)+, (%a3)+
707 cmp.l %a1,%a2
708 bgt.s 1b
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -0500709
710/*
711 * We are done. Do not return, instead branch to second part of board
712 * initialization, now running from RAM.
713 */
714 move.l %a0, %a1
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200715 add.l #(in_ram - CONFIG_SYS_MONITOR_BASE), %a1
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -0500716 jmp (%a1)
717
718in_ram:
719
720clear_bss:
721 /*
722 * Now clear BSS segment
723 */
724 move.l %a0, %a1
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200725 add.l #(_sbss - CONFIG_SYS_MONITOR_BASE),%a1
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -0500726 move.l %a0, %d1
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200727 add.l #(_ebss - CONFIG_SYS_MONITOR_BASE),%d1
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -05007286:
729 clr.l (%a1)+
730 cmp.l %a1,%d1
731 bgt.s 6b
732
733 /*
734 * fix got table in RAM
735 */
736 move.l %a0, %a1
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200737 add.l #(__got_start - CONFIG_SYS_MONITOR_BASE),%a1
Angelo Dureghello65d59912016-05-22 00:14:29 +0200738 move.l %a1,%a5 /* fix got pointer register a5 */
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -0500739
740 move.l %a0, %a2
Jean-Christophe PLAGNIOL-VILLARD03836942008-10-16 15:01:15 +0200741 add.l #(__got_end - CONFIG_SYS_MONITOR_BASE),%a2
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -0500742
7437:
744 move.l (%a1),%d1
745 sub.l #_start,%d1
746 add.l %a0,%d1
747 move.l %d1,(%a1)+
748 cmp.l %a2, %a1
749 bne 7b
750
751 /* calculate relative jump to board_init_r in ram */
Angelo Dureghello65d59912016-05-22 00:14:29 +0200752 move.l %a0, %a1
753 add.l #(board_init_r - CONFIG_SYS_MONITOR_BASE), %a1
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -0500754
755 /* set parameters for board_init_r */
Angelo Dureghello65d59912016-05-22 00:14:29 +0200756 move.l %a0,-(%sp) /* dest_addr */
757 move.l %d0,-(%sp) /* gd */
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -0500758 jsr (%a1)
759
Angelo Dureghello65d59912016-05-22 00:14:29 +0200760/******************************************************************************/
761
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -0500762/* exception code */
Angelo Dureghello65d59912016-05-22 00:14:29 +0200763.globl _fault
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -0500764_fault:
Angelo Dureghello65d59912016-05-22 00:14:29 +0200765 bra _fault
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -0500766
Angelo Dureghello65d59912016-05-22 00:14:29 +0200767.globl _exc_handler
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -0500768_exc_handler:
769 SAVE_ALL
770 movel %sp,%sp@-
Angelo Dureghello65d59912016-05-22 00:14:29 +0200771 bsr exc_handler
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -0500772 addql #4,%sp
773 RESTORE_ALL
774
Angelo Dureghello65d59912016-05-22 00:14:29 +0200775.globl _int_handler
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -0500776_int_handler:
777 SAVE_ALL
778 movel %sp,%sp@-
Angelo Dureghello65d59912016-05-22 00:14:29 +0200779 bsr int_handler
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -0500780 addql #4,%sp
781 RESTORE_ALL
782
Angelo Dureghello65d59912016-05-22 00:14:29 +0200783/******************************************************************************/
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -0500784
Angelo Dureghello65d59912016-05-22 00:14:29 +0200785.globl version_string
TsiChungLiewfc3ca3b62007-08-16 15:05:11 -0500786version_string:
Angelo Dureghello65d59912016-05-22 00:14:29 +0200787.ascii U_BOOT_VERSION_STRING, "\0"
788.align 4