public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
From: stepan@suse.de (Stefan Reinauer)
To: Jeremy Jackson <jerj@coplanar.net>
Cc: linux-mtd@lists.infradead.org, linuxbios@lanl.gov
Subject: Re: jedec_probe_chip error?
Date: Thu, 4 Apr 2002 12:36:04 +0200	[thread overview]
Message-ID: <20020404123603.A2734@suse.de> (raw)
In-Reply-To: <015501c1db7f$5ea5ac90$7e0aa8c0@bridge>; from jerj@coplanar.net on Wed, Apr 03, 2002 at 06:21:02PM -0800

* Jeremy Jackson <jerj@coplanar.net> [020404 04:21]:
> Also, I have discovered (see prev. post) at least one device that doesn't
> respond to the aa 55 90 sequence, requiring an alternate
> "old" sequence instead.  Any guidance on the best way to
> implement this generically would be appreciated.
 
There's 3 different methods used by flash devices to identify
themselfes.
aa 55 90 is the most used one. Others (i.e. some Winbonds) need
aa 55 80 aa 55 60, whereas the third method (some other winbonds)
is aa 55 80 aa 55 20.
As far as I could estimate, the order in which you probe is crucial.
Some chips answer to aa 55 80 aa 55 60 or  aa 55 80 aa 55 20 with
their protection map instead of their id. 
Eon Flashchips don't put their device id to 0x01, but to 0x101. 
0x00 and 0x01 contain the vendor id (0x7f)

/dev/bios does that part of the probing pretty ok. I suggest you have a
look at programming.c:flash_probe_address()

get /dev/bios from the OpenBIOS cvs tree:
http://www.freiburg.linux.de/OpenBIOS/dev/cvs.html

Best regards,
  Stefan Reinauer
  
-- 
Ok hex 4666 dup negate do i 4000 dup 2* negate do " *" 0 dup 2dup 1e 0 do
 2swap * e >>a 2* 5 pick + -rot - j + dup dup * e >>a rot dup dup * e >>a 
  rot swap 2dup + 10000 > if 3drop 3drop "  " 0 dup 2dup leave then loop 
              2drop 2drop type 268 +loop cr drop 5de +loop

  parent reply	other threads:[~2002-04-04 10:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-04  2:21 jedec_probe_chip error? Jeremy Jackson
2002-04-04  3:25 ` Eric W. Biederman
2002-04-04 10:36 ` Stefan Reinauer [this message]
2002-04-05 17:09   ` Richard A. Smith
2002-04-05 18:54     ` Stefan Reinauer

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=20020404123603.A2734@suse.de \
    --to=stepan@suse.de \
    --cc=jerj@coplanar.net \
    --cc=linux-mtd@lists.infradead.org \
    --cc=linuxbios@lanl.gov \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox