From: Larry Doolittle <ldoolitt@recycle.lbl.gov>
To: David Woodhouse <dwmw2@infradead.org>
Cc: linux-mtd@lists.infradead.org
Subject: Re: problems with 28F320B still
Date: Thu, 27 Sep 2001 15:39:11 -0700 [thread overview]
Message-ID: <20010927153911.A3025@recycle.lbl.gov> (raw)
In-Reply-To: <24339.1001451631@redhat.com>; from David Woodhouse on Tue, Sep 25, 2001 at 10:00:31PM +0100
I think I am slowly starting to grok at least part of the MTD chip
driver layer. Tell me if I'm on the right track.
All the chips listed in
static const struct amd_flash_info jedec_table[]
in drivers/mtd/chips/jedec_probe.c use the cfi_cmdset_0002.c driver.
This is implemented with the line
p_cfi->cfiq->P_ID = P_ID_AMD_STD;
deep inside cfi_jedec_setup().
Now I come along trying to turn on an Intel TE28B320B3B, which
is a non-CFI chip, with a valid JEDEC code (manufacturer=0x0089,
product=0x8897), but which needs to use the cfi_cmdset_0001.c
driver.
Maybe I should modify jedec_probe.c to add another field to
the amd_flash_info structure, telling which command set to use.
All existing chips would set that to P_ID_AMD_STD, but my new
entry would have P_ID_INTEL_STD. Such a change would obsolete
the name of the structure, which I wouldn't worry about for now.
If Intel is really a special case, an alternative would be to say:
p_cfi->cfiq->P_ID =
(p_cfi->mfr==MANUFACTURER_INTEL) ? P_ID_INTEL_STD : P_ID_AMD_STD;
The only chip feature that I found that is used in cfi_cmdset_0001.c
that is not shown in the data sheet for the 'B3 series chip data
sheet is block program (command code 0xe8). I would have to find
some way to disable that section of the code in do_write_buffer(),
and fall back to single word programming. Not hard to hack, but
in order for main branch code to claim 'B3 support, a flag would
need to be communicated from jedec_probe to cfi_cmdset_0001.
- Larry Doolittle <LRDoolittle@lbl.gov>
prev parent reply other threads:[~2001-09-27 22:30 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-25 20:40 problems with 28F320B still Larry Doolittle
2001-09-25 21:00 ` David Woodhouse
2001-09-25 21:25 ` Larry Doolittle
2001-09-25 21:28 ` David Woodhouse
[not found] ` <20010925143742.A22632@recycle.lbl.gov>
[not found] ` <25445.1001454134@redhat.com>
[not found] ` <20010925150341.A22897@recycle.lbl.gov>
[not found] ` <26239.1001455701@redhat.com>
[not found] ` <20010925153929.A24347@recycle.lbl.gov>
[not found] ` <20010927163205.A4845@recycle.lbl.gov>
[not found] ` <24249.1001660788@redhat.com>
[not found] ` <20010928123452.A6016@recycle.lbl.gov>
2001-09-28 23:07 ` problems with 28F320B: resolved? Larry Doolittle
2001-09-26 19:38 ` problems with 28F320B still Larry Doolittle
2001-09-27 22:39 ` Larry Doolittle [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=20010927153911.A3025@recycle.lbl.gov \
--to=ldoolitt@recycle.lbl.gov \
--cc=dwmw2@infradead.org \
--cc=linux-mtd@lists.infradead.org \
/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