[PATCH] mtd/nand: Spansion S30MLxxxP support
Gernot Hoyler
Gernot.Hoyler at spansion.com
Wed Aug 18 09:03:10 EDT 2010
> Note that I am unsure about the wraparound nature of the ID string
> here. I have not been able to fully test this with the physical chip.
> Essentially, the rule is correct, but the ID string detection may fail
> here. Let me know if anyone can fix this.
I have just tested this on a physical device (S30ML512P30TFE51).
Unfortunately, the extended device IDs are a little bit different so
the patch does not work yet. With a S30ML512P30TFE51, the device IDs
are as follows:
id_data[0]=0x01
id_data[1]=0x56
id_data[2]=0x00
id_data[3]=0x01
id_data[4]=0x10
id_data[5]=0x00
id_data[6]=0x00
id_data[7]=0x00
My suggestion would be to check the page size instead of the extended
IDs (seems like the patch applies to all Spansion S30ML devices with
small pages, i.e. 512 bytes). So you might write:
+ if (*maf_id == NAND_MFR_AMD && type->pagesize == 512) {
...
This works for me.
More information about the linux-mtd
mailing list