From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH 8/8] New board SIMPC8313 support: nand_boot.c, sdram.c, simpc8313.c
Date: Mon, 02 Jun 2008 14:06:27 -0500 [thread overview]
Message-ID: <484444B3.9070508@freescale.com> (raw)
In-Reply-To: <200806022043.26243.sr@denx.de>
Stefan Roese wrote:
> On Monday 02 June 2008, Scott Wood wrote:
>> but even then I'd
>> rather use the space for things like SPD-based SDRAM initialization.
>
> Are you talking about a full-blown I2C SPD DIMM detection and
> autoconfiguration? The code I know from 4xx is much too complicated and big
> for a 4k NAND booting image.
Yeah, it may not be possible; my point was more along the the lines of
if I were going to spend effort to squeeze in some bit of complex code,
it wouldn't be the fully generic NAND driver with all the API glue.
>> The NAND controller on the 8313 exposes a very different programming
>> interface than what nand_spl expects. I don't think there's much that
>> could be re-used, other than the high-level functions like nand_load().
>
> Isn't there a chance to change those NAND handling functions (like
> nand_read_page()) in nand_boot.c to be more flexible, that they can be used
> by "different" NAND drivers too? Could be that we need to simplify the
> current implementation somehow. Perhaps to use something as you did in your
> implementation like nand_read_next_block() instead of this nand_read_page().
> Addressing arbitrary blocks/pages seems not needed and could cut down the
> current code quite a bit.
Possibly -- but the code in nand_command() and nand_read_page() is
pretty much entirely inapplicable to the elbc fcm nand controller. The
programming interface of elbc fcm is higher level than that.
We can share nand_load(), but that's about it.
> I would really like to avoid that all newer NAND booting platforms (and I
> expact there will come more and more in the near future), to implement their
> own NAND loading routines.
Agreed -- but at the very least we'll need a couple different
implementations of nand_read_next_block().
-Scott
prev parent reply other threads:[~2008-06-02 19:06 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-30 18:21 [U-Boot-Users] [PATCH 8/8] New board SIMPC8313 support: nand_boot.c, sdram.c, simpc8313.c Ron Madrid
2008-05-31 13:11 ` Stefan Roese
2008-06-02 16:48 ` Scott Wood
2008-06-02 18:43 ` Stefan Roese
2008-06-02 19:06 ` Scott Wood [this message]
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=484444B3.9070508@freescale.com \
--to=scottwood@freescale.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.