mirror of
				https://github.com/smaeul/u-boot.git
				synced 2025-10-31 12:08:19 +00:00 
			
		
		
		
	With the updated boot0 semantics (i.e. giving the boot0-hook control over when and where the vector table is emitted), the boot0-hook for the socfpga needs to be adjusted. Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
		
			
				
	
	
		
			28 lines
		
	
	
		
			460 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			460 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * Specialty padding for the Altera SoCFPGA preloader image
 | |
|  *
 | |
|  * SPDX-License-Identifier:	GPL-2.0+
 | |
|  */
 | |
| 
 | |
| #ifndef __BOOT0_H
 | |
| #define __BOOT0_H
 | |
| 
 | |
| _start:
 | |
| 	ARM_VECTORS
 | |
| 
 | |
| #ifdef CONFIG_SPL_BUILD
 | |
| 	.balignl 64,0xf33db33f;
 | |
| 
 | |
| 	.word	0x1337c0d3;	/* SoCFPGA preloader validation word */
 | |
| 	.word	0xc01df00d;	/* Version, flags, length */
 | |
| 	.word	0xcafec0d3;	/* Checksum, zero-pad */
 | |
| 	nop;
 | |
| 
 | |
| 	b reset;		/* SoCFPGA jumps here */
 | |
| 	nop;
 | |
| 	nop;
 | |
| 	nop;
 | |
| #endif
 | |
| 
 | |
| #endif /* __BOOT0_H */
 |