ST Micro M29W641D clone of AM29LV641D needs extra reset command
Bruce Penrod
bmpenrod at endruntechnologies.com
Sat Jul 10 03:13:07 EDT 2004
Ths ST Micro M29W641D nor flash chip is a clone of the AMD AM29LV641D.
As usual, it's not quite a perfect clone and I've solved a problem in
using it with the cfi_cmdset_0002() probe that is included in the 2.4.26
kernel mtd driver.
The difference in the two chips is that after a cfi query command is
performed while in the auto-select state, the ST Micro chip needs two
reset commands to return to the read state. The first reset command
only causes the ST Micro chip to go back to the auto-select state. The
AMD part jumps all the way back to the read state with only one reset
comand.
So the very simple fix which seems to work for me is to add a second
reset command after the existing one at the bottom of cfi_cmdset_0002().
This is the only place in the mtd code where I found cfi query being
performed while in the auto-select state.
I haven't tried to determine if this is a common problem across the
entire ST Micro AMD clone flash product line, but the second reset
command can do no harm and might solve problems for many.
Bruce
More information about the linux-mtd
mailing list