Browse Source

spi/qspi: Add dual/quad read mode bit.

Add dual/quad read mode bit flag for the master controller.
These check will be used in the spi framework to determine
whether the master controller can do dual/quad read respectively.

Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Sourav Poddar 11 years ago
parent
commit
633795b992
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/spi/spi-ti-qspi.c

+ 1 - 1
drivers/spi/spi-ti-qspi.c

@@ -472,7 +472,7 @@ static int ti_qspi_probe(struct platform_device *pdev)
 	if (!master)
 		return -ENOMEM;
 
-	master->mode_bits = SPI_CPOL | SPI_CPHA;
+	master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_RX_DUAL | SPI_RX_QUAD;
 
 	master->bus_num = -1;
 	master->flags = SPI_MASTER_HALF_DUPLEX;