[PATCH v3 0/8] Add the Quadspi driver for vf610-twr

Mark Brown broonie at kernel.org
Thu Sep 12 09:43:45 EDT 2013


On Thu, Sep 12, 2013 at 01:02:03PM +0100, David Woodhouse wrote:
> On Thu, 2013-09-12 at 12:48 +0100, Mark Brown wrote:

> > So, to repeat my earlier question can someone tell me what a LUT is?

> I only know what's in the patch that you have also received, but it
> seems to be a table of commands. To send a given command to the flash,
> you write the actual command to the some slot in the LUT, then 'trigger'
> it by writing its index to another register.

OK, so the LUT itself isn't a generic mtd thing, though the commands
it's apparently sending are?

> I think this whole thing is about the fact that they are *prepopulating*
> the LUT with a set of 'known' commands, and have incestuous knowledge
> about what commands will be used, rather than being a truly generic SPI
> driver and being able to cope with *any* commands that might be sent to
> the slave(s), dynamically setting up to the LUT as required.

Yup, and I'm also worrying how this is going to work if the flash driver
starts supporting SPI controllers which can do the extra data lines but
are otherwise dumb and so need the device to explicitly send commands to
the device.  SPI is just byte streams, it's got no idea about commands.

I'm wondering if we want an abstraction between SPI and the flash chips
which understands SPI commands and could possibly have drivers itself?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20130912/613f1d0f/attachment.sig>


More information about the linux-arm-kernel mailing list