From: Sascha Hauer <s.hauer@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 01/36] i.MX25 3stack: fixup flash header to new names/layout
Date: Fri, 18 Dec 2009 16:47:50 +0100 [thread overview]
Message-ID: <1261151305-18627-2-git-send-email-s.hauer@pengutronix.de> (raw)
In-Reply-To: <1261151305-18627-1-git-send-email-s.hauer@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
---
board/freescale-mx25-3-stack/3stack.c | 38 +++++++++++++++-----------------
1 files changed, 18 insertions(+), 20 deletions(-)
diff --git a/board/freescale-mx25-3-stack/3stack.c b/board/freescale-mx25-3-stack/3stack.c
index 3a528fa..5590e55 100644
--- a/board/freescale-mx25-3-stack/3stack.c
+++ b/board/freescale-mx25-3-stack/3stack.c
@@ -34,7 +34,7 @@
#include <mach/imx-nand.h>
#include <fec.h>
#include <nand.h>
-#include <mach/imx25-flash-header.h>
+#include <mach/imx-flash-header.h>
#include <mach/iomux-mx25.h>
extern unsigned long _stext;
@@ -44,43 +44,41 @@ void __naked __flash_header_start go(void)
__asm__ __volatile__("b _start\n");
}
-struct mx25_dcd_entry __dcd_entry dcd_entry[] = {
+struct imx_dcd_entry __dcd_entry_0x400 dcd_entry[] = {
{ .ptr_type = 4, .addr = 0xb8002050, .val = 0x0000d843, },
{ .ptr_type = 4, .addr = 0xb8002054, .val = 0x22252521, },
{ .ptr_type = 4, .addr = 0xb8002058, .val = 0x22220a00, },
{ .ptr_type = 4, .addr = 0xb8001010, .val = 0x00000004, },
{ .ptr_type = 4, .addr = 0xb8001000, .val = 0x92100000, },
- { .ptr_type = 1, .addr = 0x80000400, .val = 0x12344321, },
+ { .ptr_type = 1, .addr = 0x80000400, .val = 0x21, },
{ .ptr_type = 4, .addr = 0xb8001000, .val = 0xa2100000, },
{ .ptr_type = 4, .addr = 0x80000000, .val = 0x12344321, },
{ .ptr_type = 4, .addr = 0x80000000, .val = 0x12344321, },
{ .ptr_type = 4, .addr = 0xb8001000, .val = 0xb2100000, },
- { .ptr_type = 1, .addr = 0x80000033, .val = 0x000000da, },
- { .ptr_type = 1, .addr = 0x81000000, .val = 0x000000ff, },
+ { .ptr_type = 1, .addr = 0x80000033, .val = 0xda, },
+ { .ptr_type = 1, .addr = 0x81000000, .val = 0xff, },
{ .ptr_type = 4, .addr = 0xb8001000, .val = 0x82216880, },
{ .ptr_type = 4, .addr = 0xb8001004, .val = 0x00295729, },
{ .ptr_type = 4, .addr = 0x53f80008, .val = 0x20034000, },
};
-struct mx25_nand_flash_header __flash_header mx25_3ds_header = {
- .flash_header = {
- .app_code_jump_vector = &_stext,
- .app_code_barker = APP_CODE_BARKER,
- .app_code_csf = NULL,
- .dcd_ptr_ptr = &mx25_3ds_header.flash_header.dcd,
- .super_root_key = NULL,
- .dcd = &mx25_3ds_header.dcd_header,
- .app_dest = (void *)TEXT_BASE,
- },
- .dcd_header = {
- .barker = DCD_BARKER,
- .block_len = sizeof (dcd_entry),
- },
+#define APP_DEST 0x80000000
+
+struct imx_flash_header __flash_header_0x400 mx25_3ds_header = {
+ .app_code_jump_vector = APP_DEST + 0x1000,
+ .app_code_barker = APP_CODE_BARKER,
+ .app_code_csf = 0,
+ .dcd_ptr_ptr = APP_DEST + 0x400 + offsetof(struct imx_flash_header, dcd),
+ .super_root_key = 0,
+ .dcd = APP_DEST + 0x400 + offsetof(struct imx_flash_header, dcd_barker),
+ .app_dest = APP_DEST,
+ .dcd_barker = DCD_BARKER,
+ .dcd_block_len = sizeof (dcd_entry),
};
extern unsigned long __bss_start;
-unsigned long __image_len barebox_len = 0x40000;
+unsigned long __image_len_0x400 barebox_len = 0x40000;
static struct fec_platform_data fec_info = {
.xcv_type = RMII,
--
1.6.5.2
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2009-12-18 15:49 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-18 15:47 barebox Patches Sascha Hauer
2009-12-18 15:47 ` Sascha Hauer [this message]
2009-12-18 15:47 ` [PATCH 02/36] ipe337: add missing include Sascha Hauer
2009-12-18 15:47 ` [PATCH 03/36] scb9328: setup chipselect the correct way Sascha Hauer
2009-12-18 15:47 ` [PATCH 04/36] read_key: Use ARRAY_SIZE instead of hardcoded value Sascha Hauer
2009-12-18 15:47 ` [PATCH 05/36] Remove unnecessary casts in key defines Sascha Hauer
2009-12-18 15:47 ` [PATCH 06/36] replace // style comments Sascha Hauer
2009-12-18 15:47 ` [PATCH 07/36] netx: enable second ethernet device Sascha Hauer
2009-12-18 15:47 ` [PATCH 08/36] pcm037: Add missing include Sascha Hauer
2009-12-18 15:47 ` [PATCH 09/36] imx ipu fb: Make fb_videomode const Sascha Hauer
2009-12-18 15:47 ` [PATCH 10/36] i.MX nand: mx21 has a v1 type controller Sascha Hauer
2009-12-18 15:48 ` [PATCH 11/36] vsprintf: Only define PAGE_SIZE if not already defined Sascha Hauer
2009-12-18 15:48 ` [PATCH 12/36] i2c: Add a no-op i2c_register_board_info if i2c is disabled Sascha Hauer
2009-12-18 15:48 ` [PATCH 13/36] sandbox: update defconfig Sascha Hauer
2009-12-18 15:48 ` [PATCH 14/36] pcm030: Update defconfig Sascha Hauer
2009-12-18 15:48 ` [PATCH 15/36] mx21ads: update defconfig Sascha Hauer
2009-12-18 15:48 ` [PATCH 16/36] pcm037: " Sascha Hauer
2009-12-18 15:48 ` [PATCH 17/36] pca100: " Sascha Hauer
2009-12-18 15:48 ` [PATCH 18/36] mx27ads: " Sascha Hauer
2009-12-18 15:48 ` [PATCH 19/36] ipe337: " Sascha Hauer
2009-12-18 15:48 ` [PATCH 20/36] scb9328: " Sascha Hauer
2009-12-18 15:48 ` [PATCH 21/36] pcm043: " Sascha Hauer
2009-12-18 15:48 ` [PATCH 22/36] pm9263: " Sascha Hauer
2009-12-18 15:48 ` [PATCH 23/36] netx: " Sascha Hauer
2009-12-18 15:48 ` [PATCH 24/36] mmccpu: " Sascha Hauer
2009-12-18 15:48 ` [PATCH 25/36] eukrea cpuimx27: " Sascha Hauer
2009-12-18 15:48 ` [PATCH 26/36] at91sam9260ek: " Sascha Hauer
2009-12-18 15:48 ` [PATCH 27/36] at91sam9263ek: " Sascha Hauer
2009-12-18 15:48 ` [PATCH 28/36] Digi a9m2410: " Sascha Hauer
2009-12-18 15:48 ` [PATCH 29/36] Digi a9m2440: " Sascha Hauer
2009-12-18 15:48 ` [PATCH 30/36] i.MX25 3stack: " Sascha Hauer
2009-12-18 15:48 ` [PATCH 31/36] i.MX35 " Sascha Hauer
2009-12-18 15:48 ` [PATCH 32/36] sdp3430: " Sascha Hauer
2009-12-18 15:48 ` [PATCH 33/36] beagle board: " Sascha Hauer
2009-12-18 15:48 ` [PATCH 34/36] omap3_evm: " Sascha Hauer
2009-12-18 15:48 ` [PATCH 35/36] Makefile: clean barebox.ldr Sascha Hauer
2009-12-18 15:48 ` [PATCH 36/36] Fix barebox Version number Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1261151305-18627-2-git-send-email-s.hauer@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox