[PATCH] Put the explicit flash header sections back in.
Marc Reilly
marc at cpdesign.com.au
Tue Jan 4 17:57:56 EST 2011
This (re)enables boards to have multiple boot headers so that the one
image can be used for booting from multiple boot sources.
Signed-off-by: Marc Reilly <marc at cpdesign.com.au>
---
arch/arm/mach-imx/include/mach/imx-flash-header.h | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-imx/include/mach/imx-flash-header.h b/arch/arm/mach-imx/include/mach/imx-flash-header.h
index f1054da..b8f5176 100644
--- a/arch/arm/mach-imx/include/mach/imx-flash-header.h
+++ b/arch/arm/mach-imx/include/mach/imx-flash-header.h
@@ -20,6 +20,18 @@
#define FLASH_HEADER_OFFSET 0x0400
#endif
+#define __flash_header_0x1000 __section(.flash_header_0x1000)
+#define __dcd_entry_0x1000 __section(.dcd_entry_0x1000)
+#define __image_len_0x1000 __section(.image_len_0x1000)
+
+#define __flash_header_0x0100 __section(.flash_header_0x0100)
+#define __dcd_entry_0x0100 __section(.dcd_entry_0x0100)
+#define __image_len_0x0100 __section(.image_len_0x0100)
+
+#define __flash_header_0x0400 __section(.flash_header_0x0400)
+#define __dcd_entry_0x0400 __section(.dcd_entry_0x0400)
+#define __image_len_0x0400 __section(.image_len_0x0400)
+
/*
* NOR is not automatically copied anywhere by the boot ROM
*/
--
1.7.1
More information about the barebox
mailing list