From: Alice Hennessy <ahennessy@mvista.com>
To: David Woodhouse <dwmw2@infradead.org>
Cc: Erwin Authried <eauth@softsys.co.at>,
"'mtd@infradead.org'" <mtd@infradead.org>,
ahennessy@mvista.com
Subject: Re: JEDEC support broken?
Date: Tue, 14 Nov 2000 17:10:29 -0800 [thread overview]
Message-ID: <3A11E285.1FF18FF7@mvista.com> (raw)
In-Reply-To: 12128.974207817@redhat.com
David Woodhouse wrote:
> eauth@softsys.co.at said
> > With several patches, I'm able to compile most of the MTD devices and
> > chip drivers for uClinux now. There are problems with jedec.c, the
> > compiler complains about the missing "bank_size" in the "map_info"
> > structure. What's wrong with jedec.c?
>
> It's been half-ported to the map stuff, but not completely. Remove all
> references to bank_size and keep a start offset in the individual flash
> chip structures.
I am using jedec.c after making a few quick changes, ie making
bank_size a static variable and setting to map->size and setting
priv.size to bank_size, fleshing out jedec_probe8() and making a few other
small changes.
I'm using mtdpart.c for partitioning of the flash. It seems to work fine
but only
because I have one flash chip. Do you mean to use map->size instead of
bank_size (to spread the individual start offsets over if there are gaps
between chips) and
start offset instead of bank_fill[0] to skip over gaps in flash_write and
jedec_read_banked?
Also, is spin_lock support going to be added in jedec.c?
>
>
> > Is there a driver that is able to use a physically mapped flash that
> > doesn't support CFI? I think it would be best to probe for CFI, and
> > then for JEDEC in physmap.c.
>
> Agreed. Let me finish merging the inter_module_xxx() stuff before you do
> that, though.
>
> --
> dwmw2
>
> To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
I have a board that needs support for both cfi and jedec flashes. So,
the approach
I have taken is to use physmap.c with an array of "physmap_info" structures
that describe the window
address, window size, buswidth and number of partitions for each flash. I
also use a double array of
mtd_partition structures to divide each flash into partitions (making use
of mtdpart.c). This allows multiple
flashes to be described in one mapping file so the file is really a
description of a particular board. There is
a probe for a cfi flash and if that fails, then a probe for a jedec
flash. This eliminates the use of
CONFIG_MTD_PHYSMAP_START (and len and buswidth). Is this in keeping with
the intent
of the map file?
Alice
To unsubscribe, send "unsubscribe mtd" to majordomo@infradead.org
next prev parent reply other threads:[~2000-11-15 1:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-11-14 11:59 JEDEC support broken? Erwin Authried
2000-11-14 13:16 ` David Woodhouse
2000-11-15 1:10 ` Alice Hennessy [this message]
2000-11-15 1:43 ` David Woodhouse
2000-11-15 18:15 ` Alice Hennessy
-- strict thread matches above, loose matches on Subject: below --
2000-11-15 11:07 Erwin Authried
2000-11-15 21:13 quine
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=3A11E285.1FF18FF7@mvista.com \
--to=ahennessy@mvista.com \
--cc=dwmw2@infradead.org \
--cc=eauth@softsys.co.at \
--cc=mtd@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 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.