mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: Marc Reilly <marc@cpdesign.com.au>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH 1/2] imx: Internal boot sources, handle all header offsets
Date: Fri, 1 Oct 2010 06:29:59 +0200	[thread overview]
Message-ID: <20101001042959.GE25320@game.jcrosoft.org> (raw)
In-Reply-To: <1285904458-7015-1-git-send-email-marc@cpdesign.com.au>

>  
>  #define __flash_header_start		__section(.flash_header_start)
>  
> -#define __flash_header_0x100		__section(.flash_header_0x100)
> -#define __dcd_entry_0x100		__section(.dcd_entry_0x100)
> -#define __image_len_0x100		__section(.image_len_0x100)
> +#if defined(CONFIG_ARCH_IMX_INTERNAL_BOOT_NOR)
> +	#define __flash_header_section		__section(.flash_header_0x1000)
> +	#define __dcd_entry_section		__section(.dcd_entry_0x1000)
> +	#define __image_len_section		__section(.image_len_0x1000)
> +	#define FLASH_HEADER_OFFSET 0x1000
> +#elif defined(CONFIG_ARCH_IMX_INTERNAL_BOOT_ONENAND)
> +	#define __flash_header_section		__section(.flash_header_0x0100)
> +	#define __dcd_entry_section		__section(.dcd_entry_0x0100)
> +	#define __image_len_section		__section(.image_len_0x0100)
> +	#define FLASH_HEADER_OFFSET 0x0100
nor and onenand are the same why duplicate them?

Best Regards,
J.

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

  parent reply	other threads:[~2010-10-01  4:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-01  3:40 Marc Reilly
2010-10-01  3:40 ` [PATCH 2/2] Update flash headers for boards supporting internal boot Marc Reilly
2010-10-01  4:29 ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2010-10-01  4:58   ` [PATCH 1/2] imx: Internal boot sources, handle all header offsets Marc Reilly
2010-10-01 16:53     ` Jean-Christophe PLAGNIOL-VILLARD
2010-10-02  2:20       ` Marc Reilly

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=20101001042959.GE25320@game.jcrosoft.org \
    --to=plagnioj@jcrosoft.com \
    --cc=barebox@lists.infradead.org \
    --cc=marc@cpdesign.com.au \
    /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