All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tolunay Orkun <listmember@orkun.us>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] CFI detection of erase regions incorrect on	AT49BV162A
Date: Thu, 15 Mar 2007 01:43:35 -0500	[thread overview]
Message-ID: <45F8EB17.3090308@orkun.us> (raw)
In-Reply-To: <6F2FBAF8-FA8C-4467-950D-64C89088A038@kernel.crashing.org>

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

      reply	other threads:[~2007-03-15  6:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-11 23:51 [U-Boot-Users] CFI detection of erase regions incorrect on AT49BV162A Kumar Gala
2007-03-15  6:43 ` Tolunay Orkun [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45F8EB17.3090308@orkun.us \
    --to=listmember@orkun.us \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.