blob: c78def5066ed34a2c28c83e49c91f8620626914f [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Marek Vasutbeee6a32016-11-16 17:20:23 +01002/*
3 * Specialty padding for the Altera SoCFPGA preloader image
Marek Vasutbeee6a32016-11-16 17:20:23 +01004 */
5
6#ifndef __BOOT0_H
7#define __BOOT0_H
8
Philipp Tomsicha0020772017-10-10 16:21:07 +02009_start:
10 ARM_VECTORS
11
Marek Vasutbeee6a32016-11-16 17:20:23 +010012#ifdef CONFIG_SPL_BUILD
Chee, Tien Fong4c0f3e72017-03-29 11:49:16 +080013 .balignl 64,0xf33db33f;
Marek Vasutbeee6a32016-11-16 17:20:23 +010014
Chee, Tien Fong4c0f3e72017-03-29 11:49:16 +080015 .word 0x1337c0d3; /* SoCFPGA preloader validation word */
16 .word 0xc01df00d; /* Version, flags, length */
17 .word 0xcafec0d3; /* Checksum, zero-pad */
18 nop;
19
Marek Vasut34fc2a62018-04-15 13:15:33 +020020 b reset; /* SoCFPGA Gen5 jumps here */
21 b reset; /* SoCFPGA Gen10 trampoline */
Chee, Tien Fong4c0f3e72017-03-29 11:49:16 +080022 nop;
23 nop;
24#endif
Marek Vasutbeee6a32016-11-16 17:20:23 +010025
26#endif /* __BOOT0_H */