SPI: DUAL/QUAD support

Sourav Poddar sourav.poddar at ti.com
Fri Jul 5 05:08:36 EDT 2013


On Friday 05 July 2013 02:37 PM, yuhang wang wrote:
>>                      if (!quad_mode)
>>                              dra7xxx_writel(qspi, qspi->cmd | QSPI_RD_SNGL,
>>                                              QSPI_SPI_CMD_REG);
>>                      else
>>                              dra7xxx_writel(qspi, qspi->cmd | QSPI_RD_QUAD,
>>                                              QSPI_SPI_CMD_REG);
>>                   .......
>>                  }
> So what do you based on to set variable quad_mode.
Best way should be to check for flash device id and manufacture data. 
Based on which you
can decide whether your flash supports quad bits or not.



More information about the linux-mtd mailing list