[U-Boot-Users] [PATCH] TQM85xx: add support for Spansion 'N' type flashes.

Martin Krause Martin.Krause at tqs.de
Mon Jun 25 17:08:45 CEST 2007


Andy Fleming wrote on Saturday, June 23, 2007 9:08 PM:
> On 6/22/07, Martin Krause <martin.krause at tqs.de> wrote:
> > From: Thomas Waehner <thomas.waehner at tqs.de>
> > 
> > ---
> > 
> >  include/configs/TQM85xx.h |    6 +++---
> >  1 files changed, 3 insertions(+), 3 deletions(-)
> > 
> > diff --git a/include/configs/TQM85xx.h b/include/configs/TQM85xx.h
> > index f45f3a2..35bfb00 100644
> > --- a/include/configs/TQM85xx.h
> > +++ b/include/configs/TQM85xx.h
> > @@ -149,7 +149,7 @@
> >  #define CFG_INIT_SP_OFFSET     CFG_GBL_DATA_OFFSET
> > 
> >  #define CFG_MONITOR_LEN                (256 * 1024)    /* Reserve
> > 256kB for Mon*/ -#define CFG_MALLOC_LEN         (128 * 1024)    /*
> > Reserved for malloc  */ +#define CFG_MALLOC_LEN         (256 *
> > 1024)    /* Reserved for malloc  */ 
> 
> 
> I'm not familiar with this board, so I'm not familiar with what type
> of flash it has.  Does the current config file not work?  Does this

It does work. But only with boards equipped with 'M' type flashes,
not with 'N' types. 

OK, I should explain what I mean with 'M' and 'N' types. On the 
TQM85xx boards we use Spansion flashes from the S29GLxxx series.
We started with the S29GLxxxM series (-> 'M' type). Spansion
discontinued this series (or plans to do so soon), so we switched
to the successor S29GLxxxN (-> 'N' type).

Unfortunately the 'N' type has doubled sector sizes compared to
the 'M' types. Because of this, the flash map has to be adjusted
a little bit -> the address of the environment has changed
(and more malloc space is required to handle the bigger sectors).

> new config file switch the TQM85xx to using the 'N' type at the
> expense of older boards which use the 'M' type?  If so, my preference

The new configuration runs on boards with 'N' _and_ 'M' type 
flashes. However, it is not 100% compatible, because of the
changed address of the u-boot environment in flash.

> would be to preserve the old config options for the old board, and
> have new options for the new board.  There are a number of ways you
> could do that without creating a new board config file.

Hm, I could create a new CONFIG_TQM_N_TYPE option and add some new
make targets (TQM8540_n-type_config, TQM8541_n-type_config, ...).
But I'm not sure, if Wolfang Denk will like this ...

> Or does no one have a board with the 'M' type flash?

There are boards with both types of flashes floating around.
All new boards have 'N' type flashes.

Regards,
Martin Krause





More information about the U-Boot mailing list