Marek Vasut | bcd861b | 2016-11-16 17:20:23 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Specialty padding for the Altera SoCFPGA preloader image |
| 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0+ |
| 5 | */ |
| 6 | |
| 7 | #ifndef __BOOT0_H |
| 8 | #define __BOOT0_H |
| 9 | |
Philipp Tomsich | 85bd93d | 2017-10-10 16:21:07 +0200 | [diff] [blame] | 10 | _start: |
| 11 | ARM_VECTORS |
| 12 | |
Marek Vasut | bcd861b | 2016-11-16 17:20:23 +0100 | [diff] [blame] | 13 | #ifdef CONFIG_SPL_BUILD |
Chee, Tien Fong | 19869ea | 2017-03-29 11:49:16 +0800 | [diff] [blame] | 14 | .balignl 64,0xf33db33f; |
| 15 | |
| 16 | .word 0x1337c0d3; /* SoCFPGA preloader validation word */ |
| 17 | .word 0xc01df00d; /* Version, flags, length */ |
| 18 | .word 0xcafec0d3; /* Checksum, zero-pad */ |
Marek Vasut | bcd861b | 2016-11-16 17:20:23 +0100 | [diff] [blame] | 19 | nop; |
Marek Vasut | bcd861b | 2016-11-16 17:20:23 +0100 | [diff] [blame] | 20 | |
Chee, Tien Fong | 19869ea | 2017-03-29 11:49:16 +0800 | [diff] [blame] | 21 | b reset; /* SoCFPGA jumps here */ |
| 22 | nop; |
| 23 | nop; |
| 24 | nop; |
| 25 | #endif |
Marek Vasut | bcd861b | 2016-11-16 17:20:23 +0100 | [diff] [blame] | 26 | |
| 27 | #endif /* __BOOT0_H */ |