JEDEC support broken?
Quoted 16 lines · Alice Hennessy[SMTP:[email protected]] wrote:
I have a board that needs support for both cfi and jedec flashes. So,
the approach
I have taken is to usephysmap.cwith 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 ofmtd_partitionstructures to divide each flash into partitions (making use
ofmtdpart.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 ofCONFIG_MTD_PHYSMAP_START(and len and buswidth). Is this in keeping with
the intent
of the map file?
Quoted 2 lines
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 [email protected]