support DUAL and QUAD[patch v1]

Huang Shijie b32955 at freescale.com
Mon Jul 22 06:32:55 EDT 2013


于 2013年07月22日 17:56, Gupta, Pekon 写道:
> (b) struct spi_transfer: if each transfer of same message need to be
> transferred at different width. 	Example: Command @ Single-SPI
>   followed by Data @ Quad-SPI
>
I am coding the QuadSpi driver for Freescale's Vybrid now.

I think we dot need to change the spi code.
the spi layer should not know the different width of the command and the 
data,
let the qspi driver does it.

In the m25p_probe(), after we knows that the qspi driver and flash 
support the Quad read, so we can set the
m25p->read_opcode to 0xeb or 0xec. In the qspi driver, it can do the 
real job.


thanks
Huang Shijie











More information about the linux-mtd mailing list