From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rogan Dawes Date: Thu, 12 Aug 2010 15:26:20 +0200 Subject: [U-Boot] Non standard CFI detection tweaks In-Reply-To: <4C63F3AC.4070201@emk-elektronik.de> References: <4C3CC5E5.1040606@dawes.za.net> <201007200958.33622.sr@denx.de> <4C63E3E7.30300@dawes.za.net> <201008121440.01113.sr@denx.de> <4C63F3AC.4070201@emk-elektronik.de> Message-ID: <4C63F67C.3050204@dawes.za.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 2010/08/12 3:14 PM, Reinhard Meyer wrote: > It is mostly likely a 8/16 bit wide device in 8 bit mode on an 8 bit > external bus. Then all CFI data appears twice. Yes, this is exactly what I was seeing. > Reason: the chip presents CFI data correctly (from the flash point of view) > in 16 bit mode (flash A0 connected to CPU A1). If connected in 8 bit mode > (flash A0 connected to CPU A1, flash A-1 connected to CPU A0) it still > presents the data at the same adresses but the CFI driver gets misled > because its told to try for 8 bit wide flash. > > Since that was an issue long ago, I made the board/emk/common/flash.c > (CFI) driver. Anyone is welcome to add that special handling for 16 bit > flash connected in 8 bit mode to the general CFI driver :) Thanks a lot! I'll take a look, and see if I can understand it. :-) Rogan