mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* imx: Put flash header position specific sections back in
@ 2011-01-04 22:57 Marc Reilly
  2011-01-04 22:57 ` [PATCH] Put the explicit flash header " Marc Reilly
  0 siblings, 1 reply; 2+ messages in thread
From: Marc Reilly @ 2011-01-04 22:57 UTC (permalink / raw)
  To: barebox

Hi,

This patch adds the position specific flash_header_0xXXXX section defines 
(and friends) so the one barebox image can support multiple boot sources, 
for example Nor and SD. 

If a board only uses one boot source, the existing generic section defines
are simpler to use, so I've left them.

Cheers
Marc


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] Put the explicit flash header sections back in.
  2011-01-04 22:57 imx: Put flash header position specific sections back in Marc Reilly
@ 2011-01-04 22:57 ` Marc Reilly
  0 siblings, 0 replies; 2+ messages in thread
From: Marc Reilly @ 2011-01-04 22:57 UTC (permalink / raw)
  To: barebox

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@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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-01-04 22:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-04 22:57 imx: Put flash header position specific sections back in Marc Reilly
2011-01-04 22:57 ` [PATCH] Put the explicit flash header " Marc Reilly

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox