CFI with 4 x8/x16 devices on a 32-bit bus
David Woodhouse
dwmw2 at infradead.org
Mon Apr 9 21:53:25 EDT 2001
BrettC at nulec.com.au said:
> My take on the datasheet is that when in byte mode, A-1 becomes the
> LSB of the address.
OK,... looking at the (AM29LV320D) datasheet again, I see that.
> The unlock 2 address in word mode is 0x2AA (8 bits set to 1) and byte mode
> is 0x555 (9 bits set to 1).
Ah, yes - I see that too. I find it very concerning that the datasheet is
clearer to me at 2:30 in the morning than at any other time.
OK.... how about fixing it up in the probe code to appear as an 8-bit
device, and setting the unlock[12] addresses accordingly?
If we detect it's a 16-bit device in 8-bit mode, do...
cfi->device_type = 1;
cfi->addr_unlock1 = 0xaaa;
cfi->addr_unlock2 = 0x555;
Does that work?
--
dwmw2
To unsubscribe, send "unsubscribe mtd" to majordomo at infradead.org
More information about the linux-mtd
mailing list