From: Sourav Poddar Date: Tue, 24 Sep 2013 15:11:23 +0000 (+0530) Subject: spi/qspi: Add dual/quad read mode bit. X-Git-Tag: v3.13-rc1~123^2~9^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=633795b992ebae2a78890c0cfa5c17058eb93817;p=kernel%2Fkernel-generic.git 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 Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti-qspi.c index e12d962..7a45c3e 100644 --- a/drivers/spi/spi-ti-qspi.c +++ b/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;