summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorSourav Poddar <sourav.poddar@ti.com>2013-09-24 20:41:23 +0530
committerMark Brown <broonie@linaro.org>2013-09-26 12:12:04 +0100
commit633795b992ebae2a78890c0cfa5c17058eb93817 (patch)
treeb4e874622c384bb0d43cfb476bebb4ff1c7c719d /drivers/spi
parent4a10c2ac2f368583138b774ca41fac4207911983 (diff)
downloadop-kernel-dev-633795b992ebae2a78890c0cfa5c17058eb93817.zip
op-kernel-dev-633795b992ebae2a78890c0cfa5c17058eb93817.tar.gz
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>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi-ti-qspi.c2
1 files changed, 1 insertions, 1 deletions
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;
OpenPOWER on IntegriCloud