From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tolunay Orkun Date: Thu, 15 Mar 2007 01:43:35 -0500 Subject: [U-Boot-Users] CFI detection of erase regions incorrect on AT49BV162A In-Reply-To: <6F2FBAF8-FA8C-4467-950D-64C89088A038@kernel.crashing.org> References: <6F2FBAF8-FA8C-4467-950D-64C89088A038@kernel.crashing.org> Message-ID: <45F8EB17.3090308@orkun.us> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Kumar Gala wrote: > I'm working with an Atmel AT49BV162A and noticed that the CFI code > doesn't properly detection the erase regions for the device. > > Its a Bottom boot device and atmel (at least on this device) does > swap the erase region information. > > I was wondering what the 'proper' way was to add some sort of fixup > for this device so its regions are detected correctly. > > - k > Hi Kumar, We do geometry reversal for AMD/Spansion style flash devices. Look for "geometry_reversed" in the code. The variable is set from CFI table but CFI 1.0 tables do not have the appropriate information. :( So, the geometry reversal decision is made as a guess from device id (which could be wrong in which case you need to override the geometry_reversed flag based on exact match of manufacturer_id and device_id. Let me know how it goes. Tolunay