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

Martin Krause Martin.Krause at tqs.de
Fri Jun 22 14:48:58 CEST 2007


Hi Stefan,

Stefan Roese wrote on Friday, June 22, 2007 1:29 PM:
> On Friday 22 June 2007, Martin Krause wrote:
> > -#define CFG_ENV_ADDR		(CFG_MONITOR_BASE - 0x20000)
> > -#define CFG_ENV_SECT_SIZE	0x20000 /* 128K(one sector) for env
*/
> > +#define CFG_ENV_ADDR		(CFG_MONITOR_BASE - 0x40000)
> > +#define CFG_ENV_SECT_SIZE	0x40000 /* 256K(one sector (N)) for
> > env	*/ 
> 
> How about this:
> 
> #define CFG_ENV_SECT_SIZE	0x40000 /* 256K(one sector (N)) for env
*/
> #define CFG_ENV_ADDR		(CFG_MONITOR_BASE - CFG_ENV_SECT_SIZE)
> 
> This way you only need to hardcode the sector size once.

Good idea. I will cleanup the patch and resubmit.

Regards,
Martin Krause

Entwicklung
Tel. +49 8153 93 08-157, Fax +49 8153 93 08-7157
mailto:martin.krause at tqs.de

TQ-Systems GmbH
Muehlstra?e 2, Gut Delling, D-82229 Seefeld
Amtsgericht Muenchen, HRB 105 018, UST-IdNr. DE 811 607 913
Geschaeftsfuehrer: Dipl.-Ing. (FH) Detlef Schneider, Dipl.-Ing. (FH)
Ruediger Stahl
http://www.tq-group.com





More information about the U-Boot mailing list