[U-Boot] [PATCH RESEND 0/4] Add CONFIG_SPL_NAND_IDENT

Jörg Krause joerg.krause at embedded.rocks
Wed Jun 27 09:51:07 UTC 2018


Hi Stefano,

On Wed, 2018-06-27 at 09:43 +0200, Stefano Babic wrote:
> Hi Jörg,
> 
> On 26/06/2018 11:33, Jörg Krause wrote:
> > Hi,
> > 
> > this patch series propably felt off the radar?
> > 
> 
> I guess yes, but I doubt we can apply the series again. I guess you
> should at least rebase it.

No problem!

I've applied the series without any conflicts on the master branch.
Looks like nothing has changed in the mxs nand driver...

Best regards,
Jörg Krause

> Regards,
> Stefano
> 
> > Best regards,
> > Jörg Krause
> > 
> > On Sun, 2018-01-14 at 19:26 +0100, Jörg Krause wrote:
> > > RESEND because adding U-Boot NAND maintainer (Scott Wood) on Cc.
> > > 
> > > When adding SPL support to a custom i.MX6ULL board with Toshiba
> > > TC58NVG0S3 NAND chip the MXS NAND SPL loader failed with "Failed
> > > to
> > > identify". This reason is that the SPL MXS NAND driver only
> > > supports
> > > ONFi-compliant NAND chips and the mentioned Toshiba NAND chip is
> > > non-ONFi.
> > > 
> > > This patch set makes `nand_get_flash_type()` from `nand_base.c`
> > > public,
> > > so it can be used by any SPL NAND driver, introduced a new config
> > > option
> > > `CONFIG_SPL_NAND_IDENT` to enable the lookup for supported NAND
> > > chips
> > > in
> > > the chip ID list. Finally, the MXS NAND SPL driver is refactored
> > > so
> > > that
> > > the original ONFi-only identification routine is enabled by
> > > default.
> > > For
> > > non-ONFi NAND chips the newly introduced config option can be
> > > used.
> > > 
> > > In my setup the binary size of `u-boot-spl.bin` is increased by
> > > about
> > > 13 kB when `CONFIG_SPL_NAND_IDENT` is enabled. As the i.MX6, as
> > > well
> > > as
> > > the i.MX28, both have an OCRAM of 128 kB the increase in the
> > > binary
> > > size
> > > is reasonable.
> > > 
> > > Jörg Krause (4):
> > >   mtd: nand: export nand_get_flash_type function
> > >   spl, nand: add option CONFIG_SPL_NAND_IDENT to lookup for
> > > supported
> > >     NAND chips
> > >   mtd: nand: mxs_nand_spl: refactor mxs_flash_ident
> > >   mtd: nand: mxs_nand_spl: add mxs_flash_full_ident
> > > 
> > >  README                          |  4 ++++
> > >  drivers/mtd/nand/Makefile       |  1 +
> > >  drivers/mtd/nand/mxs_nand_spl.c | 37
> > > ++++++++++++++++++++++++++++++++++++-
> > >  drivers/mtd/nand/nand_base.c    |  3 ++-
> > >  include/linux/mtd/rawnand.h     | 10 +++++++---
> > >  scripts/config_whitelist.txt    |  1 +
> > >  6 files changed, 51 insertions(+), 5 deletions(-)
> > > 
> 
> 


More information about the U-Boot mailing list