CFI with 4 x8/x16 devices on a 32-bit bus

David Woodhouse dwmw2 at infradead.org
Mon Apr 9 22:01:15 EDT 2001


dwmw2 at infradead.org said:
>  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; 

Actually, it's probably best not to override the device_type, but to change 
the code to always use DEVICE_TYPE_X8 instead of cfi->device_type when 
doing the unlock cycles, and set addr_unlock[12] to the pre-shifted value 
when cfi->device_type != 1.



--
dwmw2




To unsubscribe, send "unsubscribe mtd" to majordomo at infradead.org



More information about the linux-mtd mailing list