Re; MTD support for 8x16 devices
Quoted 5 lines · Alice Hennessy
The other product has a single strata chip (8x16 variety) set in byte mode so the bus width is 1. The cfi ident info is requested at address
0xaaand read
starting at0x20so this is new code that I've added. I'll merge my code to
make use of the new defineCFI_DEVICETYPE_X8which I'm assuming was added for this purpose?
I have some Intel StrataFlash 28F640 which are 16x devices in 8x mode. It got it to work by setting the bus width to 2 (not 1) and fudging the "next chip" detection to look in the right place (ie pretend the bus width was 1). This made a single chip look like two interleaved chips but of course the chip size with the entire chip (not half) hence the fudging.
I wonder is it might be a good idea to have something in struct map_info which says that the devices are "interleaved internally"...?
While you're poking about in cfi_cmdset_0001.c you'll possibly need to change the code which selects the appropriate access routines (it currently only uses the interleave to select whether to use the 1_16 or 2_by_8 routines)
Quoted 3 lines
Quoted 3 lines
I think it's probably best to keep it in a header file or in
physmap.citself. The driver can default to no partitioning, and we can set up some #defines at the beginning which allow people to change it as they see fit.
Since lots of people want partitioning (me included) is it possible to have some sort of generic partitioning support instead of device specific partitions? Something in mtdcore.c? Something extra mtdpartition.c?
David Vrabel