From: Wolfgang Denk Date: Mon, 07 Jul 2008 00:14:30 +0200 Subject: [U-Boot-Users] TQM823L flash recognition problem In-Reply-To: Your message of "Mon, 30 Jun 2008 13:03:30 +0200." <4868BD82.20407@tqs.de> Message-ID: <20080706221430.236FF24681@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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.