public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 1/3] MX31: Add NAND SPL for i.MX31.
Date: Sun, 10 May 2009 22:34:54 +0200	[thread overview]
Message-ID: <20090510203454.GG21079@game.jcrosoft.org> (raw)
In-Reply-To: <59b21cf20905101231n6394d821ka7ffa26bc6dbae03@mail.gmail.com>

On 21:31 Sun 10 May     , Magnus Lilja wrote:
> 2009/5/9 Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>:
> > On 21:56 Sun 03 May ? ? , Magnus Lilja wrote:
> >> @@ -32,7 +35,7 @@
> >> ?#include <version.h>
> >> ?.globl _start
> >> ?_start: b ? ?reset
> >> -#ifdef CONFIG_ONENAND_IPL
> >> +#if defined(CONFIG_ONENAND_IPL) || defined(CONFIG_NAND_SPL)
> > create a better CONFIG_
> > because we could need for other boot mode
> 
> A better CONFIG_ than what? CONFIG_NAND_SPL is already used elsewhere
> in U-boot when booting from NAND.
IIRC in this case the purpose is to reduce the size of the start.S to allow more
code in the ipl & spl
> 
> >> ? ? ? ldr ? ? pc, _hang
> >> ? ? ? ldr ? ? pc, _hang
> >> ? ? ? ldr ? ? pc, _hang
> >> @@ -156,9 +159,9 @@ relocate: ? ? ? ? ? ? ? ? ? ? ? ? /* relocate U-Boot to RAM ? ? ? ? ? */
> >> ? ? ? adr ? ? r0, _start ? ? ? ? ? ? ?/* r0 <- current position of code ? */
> >> ? ? ? ldr ? ? r1, _TEXT_BASE ? ? ? ? ?/* test if we run from flash or RAM */
> >> ? ? ? cmp ? ? r0, r1 ? ? ? ? ? ? ? ? ?/* don't reloc during debug ? ? ? ? */
> >> -#ifndef CONFIG_ONENAND_IPL
> >> +#if !defined(CONFIG_ONENAND_IPL) && !defined(CONFIG_NAND_SPL)
> >> ? ? ? beq ? ? stack_setup
> >> -#endif ? ? ? /* CONFIG_ONENAND_IPL */
> >> +#endif ? ? ? /* !CONFIG_ONENAND_IPL && !CONFIG_NAND_SPL*/
> >>
> >> ?#endif ? ? ? /* CONFIG_ONENAND_IPL */
> >> +
> >> + ? ? }
> >> +
> >> + ? ? page_count = CFG_NAND_CHIP_SIZE / CFG_NAND_PAGE_SIZE;
> > please use CONFIG_SYS_ or CONFIG_
> 
> Will do.
> 
> > and why not detect it?
> 
> Might be possible, I'll look into it to see if it's doable.
tks

Best Regards,
J.

  reply	other threads:[~2009-05-10 20:34 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-03 19:56 [U-Boot] [PATCH v2 0/3] MX31: NAND boot for phyCORE and PDK boards Magnus Lilja
2009-05-03 19:56 ` [U-Boot] [PATCH v2 1/3] MX31: Add NAND SPL for i.MX31 Magnus Lilja
2009-05-03 19:56   ` [U-Boot] [PATCH v2 2/3] MX31: Add basic support for Freescale i.MX31 PDK board Magnus Lilja
2009-05-03 19:56     ` [U-Boot] [PATCH v2 3/3] MX31: Add NAND SPL boot support to " Magnus Lilja
2009-05-09 21:28       ` Jean-Christophe PLAGNIOL-VILLARD
2009-05-10 19:33         ` Magnus Lilja
2009-05-10 20:39           ` Jean-Christophe PLAGNIOL-VILLARD
2009-05-10 21:33             ` Wolfgang Denk
2009-05-10 22:18               ` Jean-Christophe PLAGNIOL-VILLARD
2009-05-11  6:52                 ` Wolfgang Denk
2009-05-12  0:27                   ` Jean-Christophe PLAGNIOL-VILLARD
2009-05-11  6:53             ` Magnus Lilja
2009-05-12  0:25               ` Jean-Christophe PLAGNIOL-VILLARD
2009-05-12 20:49             ` Magnus Lilja
2009-05-12 21:02               ` Jean-Christophe PLAGNIOL-VILLARD
2009-05-09 21:17     ` [U-Boot] [PATCH v2 2/3] MX31: Add basic support for Freescale " Jean-Christophe PLAGNIOL-VILLARD
2009-05-10 19:32       ` Magnus Lilja
2009-05-10 20:32         ` Jean-Christophe PLAGNIOL-VILLARD
2009-05-11  6:47           ` Magnus Lilja
2009-05-09 21:04   ` [U-Boot] [PATCH v2 1/3] MX31: Add NAND SPL for i.MX31 Jean-Christophe PLAGNIOL-VILLARD
2009-05-10 19:31     ` Magnus Lilja
2009-05-10 20:34       ` Jean-Christophe PLAGNIOL-VILLARD [this message]
2009-05-11 16:48         ` Magnus Lilja
2009-05-11 19:03         ` Magnus Lilja
2009-05-12  0:22           ` Jean-Christophe PLAGNIOL-VILLARD
2009-05-12  4:03             ` Magnus Lilja
2009-05-12 16:52               ` Scott Wood
2009-05-29 21:34   ` Scott Wood
2009-05-30  7:54     ` Magnus Lilja
2009-06-01 17:06       ` Scott Wood
2009-06-01 20:18         ` Magnus Lilja
2009-06-01 20:21       ` Magnus Lilja
2009-06-01 20:39         ` Scott Wood
2009-06-01 20:42           ` Magnus Lilja

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=20090510203454.GG21079@game.jcrosoft.org \
    --to=plagnioj@jcrosoft.com \
    --cc=u-boot@lists.denx.de \
    /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