diff mbox series

[U-Boot,v6,16/20] arm: socfpga: Enhance Intel SoCFPGA program header to support Arria 10

Message ID 1512986786-3745-17-git-send-email-tien.fong.chee@intel.com
State Superseded
Delegated to: Marek Vasut
Headers show
Series Add FPGA driver, SDRAM driver, generic firmware loader and booting U-Boot. | expand

Commit Message

Chee, Tien Fong Dec. 11, 2017, 10:06 a.m. UTC
From: Tien Fong Chee <tien.fong.chee@intel.com>

Enhance preloader header with both additional program length and program
entry offset attributes, which offset is relative to the start of program
header.

Signed-off-by: Tien Fong Chee <tien.fong.chee@intel.com>
Reviewed-by: Dinh Nguyen <dinguyen@kernel.org>
---
 arch/arm/mach-socfpga/include/mach/boot0.h | 7 +++++++
 1 file changed, 7 insertions(+)
diff mbox series

Patch

diff --git a/arch/arm/mach-socfpga/include/mach/boot0.h b/arch/arm/mach-socfpga/include/mach/boot0.h
index 7e8a2b1..e6db659 100644
--- a/arch/arm/mach-socfpga/include/mach/boot0.h
+++ b/arch/arm/mach-socfpga/include/mach/boot0.h
@@ -15,6 +15,13 @@  _start:
 
 	.word	0x1337c0d3;	/* SoCFPGA preloader validation word */
 	.word	0xc01df00d;	/* Header length(2B),flags(1B),version(1B) */
+#ifndef CONFIG_TARGET_SOCFPGA_GEN5
+	.word	0xfeedface;	/* Program length(4B) */
+	.word	0xf00dcafe;	/*
+				 * Program entry offset(4B),relative to
+				 * the start of program header
+				 */
+#endif
 	.word	0xcafec0d3;	/* Simple checksum(2B),spare offset(2B) */
 	nop;