From: Koen Martens <gmc@sonologic.nl>
To: linux-mtd@lists.infradead.org
Subject: Re: JEDEC / CFI questions & remarks
Date: Mon, 27 Jun 2005 10:42:34 +0200 [thread overview]
Message-ID: <42BFBBFA.5040005@sonologic.nl> (raw)
In-Reply-To: <42BC1FCB.8050003@sonologic.nl>
Koen Martens wrote:
> Second point: the EON clones of the original AMD chipsets have small
> incompatibility in the method for reading out the manufacturer id. First
> of all, a small fragment of jedec_probe.c:
>
> static inline u32 jedec_read_mfr(struct map_info *map, __u32 base,
> struct cfi_private *cfi)
> {
> map_word result;
> unsigned long mask;
> u32 ofs = cfi_build_cmd_addr(0, cfi_interleave(cfi),
> cfi->device_type);
> mask = (1 << (cfi->device_type * 8)) -1;
> result = map_read(map, base + ofs);
> return result.x[0] & mask;
> }
>
>
> Basically, it reads some info from offset 0 relative to the start of the
> flash memory. This is fine for AMD chips, which specify x00 as the (hex)
> address to read out the manufacturer ID. The EON chips we use, however,
> specify 100 (hex) as the offset of the manufacturer id. So what we did
> here is change that first argument to cfi_build_cmd_addr from 0 to 0x100
> , which should thus work on both AMD and EON chips. But who knows what
> this breaks on other chip types.... So, I wonder if this should be
> submitted as a patch (along with the EON chip definitions),
Actually, wouldn't it be better to put this address in the struct that
defines the chip, just as the unlock addresses are..??
koen
--
K.F.J. Martens, Sonologic, http://www.sonologic.nl/
Networking, hosting, embedded systems, unix, artificial intelligence.
Public PGP key: http://www.metro.cx/pubkey-gmc.asc
Wondering about the funny attachment your mail program
can't read? Visit http://www.openpgp.org/
prev parent reply other threads:[~2005-06-27 8:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-24 14:59 JEDEC / CFI questions & remarks Koen Martens
2005-06-27 8:42 ` Koen Martens [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=42BFBBFA.5040005@sonologic.nl \
--to=gmc@sonologic.nl \
--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