JEDEC support broken?
Erwin Authried
eauth at softsys.co.at
Wed Nov 15 06:07:35 EST 2000
Alice Hennessy[SMTP:ahennessy at mvista.com] wrote:
> 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
>
I'd like to spin your idea a little bit further: Instead of having a description of a particular
board, I'd prefer to have one "generic" linear mapping file that is able to probe for
flash in an adress range that is specified during configuration (starting adress and
length or end of the adress range, and possibly the adress increments for probing, e.g. 1MB).
This way, you would be able to support virtually all boards that carry linear, non-banked flash
without needing a specialized file for every board. That would be especially useful for uClinux ...
-erwin
To unsubscribe, send "unsubscribe mtd" to majordomo at infradead.org
More information about the linux-mtd
mailing list