[U-Boot-Users] TQM823L flash recognition problem

Wolfgang Denk
2008-07-06T22:14:30Z

In message <4868BD82.20407@tqs.de> Jens Gehrlein wrote:
>
> Could you please change TQM823L.h:
>
> -#define CFG_FLASH_BANKS_LIST { CFG_FLASH_BASE }
> +#define CFG_FLASH_BANKS_LIST { CFG_FLASH_BASE, CFG_FLASH_BASE +
> 0x400000 }

Note that a proper patch (and without line wrapping) would have been
much more useful.

> There was a switch-over to use the CFI driver (see git history of file
> TQM823L.h). AFAIK the CFI driver needs a list with fix start addresses
> of each bank to start the CFI query on.

Thanks for pointing this out.

The big disadvantage of above code is that it requires a static
mapping of the second flash bank, i. e. it works only correctly for
fixed flash sizes. This may be not a big problem for the boards in
question here, but we use autoconfiguration everywhere else so this
doesn't fit in style.

The following patch tries to fix this in a more general way, but it
requires slight modification of the CFI driver to support this.