CFI interface !

David Woodhouse dwmw2 at infradead.org
Mon Jun 17 06:09:20 EDT 2002


Srinivasan.Ramasubramaniam at nokia.com said:
> I am little confused about the CFI interface. As for as i could
> understand, it the interface for the hardware device (chip driver).
> But why is that need to different CFI file like cfi_cmdset_0001.c,
> cfi_cmdset_0002.c etc. Could anybody shed light on it. Thanks in
> advance.  

CFI only defines a common interface for _identifying_ flash. The actual 
command set used to drive writes/erases/etc is still the same for each 
manufacturer as it always was -- so the CFI standard gives them all 
'command set' numbers, and we have generic code for probing CFI-compliant 
chips, which then passes control to the _real_ commandset-specific 
drivers.

Note that because the command sets used now are identical to those of older
pre-CFI chips, we actually probe older non-CFI chips in the old way and then
just pass them into the appropriate CFI command set driver too.

--
dwmw2






More information about the linux-mtd mailing list